:root {
    --gracie-red: #cc0000;
    --gracie-blue: #2d8cff;
    --gracie-white: #ffffff;
}

.gb1-section {
    position: relative;
    padding: 100px 0;
    background: #e9ecef;
    overflow: hidden;
}
.gb1-section-2 {
    position: relative;
    padding: 80px 0;
    background: #e9ecef;
    overflow: hidden;
}

.gb1-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.gb1-header {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.gb1-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gracie-red);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gb1-title sup {
    font-size: 1.5rem;
    top: -1.5em;
}

.gb1-subtitle {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 30px;
}

.gb1-description {
    max-width: 800px;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.gb1-goals {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.gb1-goals-title {
    color: var(--gracie-blue);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.gb1-goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gb1-goal-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.gb1-goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gb1-goal-icon {
    color: var(--gracie-red);
    font-size: 1.5rem;
    margin-right: 15px;
}

.gb1-goal-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.gb1-structure {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.gb1-structure-title {
    text-align: center;
    font-size: 3rem;
    color: #212121;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin-top: 0;
    position: relative;
    display: block;
    padding-bottom: 15px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

.gb1-scroll-indicator {
    display: none;
    text-align: center;
    margin-bottom: 15px;
    color: var(--gracie-red);
    font-weight: 600;
    font-size: 1rem;
    animation: bounceX 1.5s infinite;
}

.gb1-scroll-indicator i {
    margin-right: 5px;
    margin-left: 0;
}

@keyframes bounceX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.gb1-structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gb1-structure-item {
    background: white;
    padding: 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gb1-structure-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--gracie-red);
}

.gb1-structure-icon {
    font-size: 2rem;
    color: var(--gracie-red);
    margin-bottom: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gb1-structure-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(225, 37, 27, 0.1);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gb1-structure-item:hover .gb1-structure-icon::after {
    transform: scale(1);
}

.gb1-structure-item h4 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

.gb1-structure-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--gracie-red);
    transition: width 0.3s ease;
}

.gb1-structure-item:hover h4::after {
    width: 60px;
}

.gb1-structure-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.gb1-structure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gb1-content-wrapper {
    display: grid;
    justify-items: center;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.gb1-image-container {
    max-height: 650px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.gb1-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block; /* Ensures no extra space */
    margin: 0; /* Removes any margin */
}

.gb1-image-container:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .gb1-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gb1-image-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .gb1-title {
        font-size: 3rem;
    }

    .gb1-subtitle {
        font-size: 1.8rem;
    }

    .gb1-description {
        font-size: 1.1rem;
    }

    .gb1-structure-grid {
        grid-template-columns: 1fr;
    }
    
    .gb1-scroll-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gracie-red);
        margin-bottom: 15px;
        z-index: 10;
        position: relative;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .gb1-structure-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-behavior: smooth;
        padding: 10px 0 20px 0;
        margin: 0 -20px;
        padding-left: 20px;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
    }
}

.gb1-structure-grid::-webkit-scrollbar {
    display: none;
}

.gb1-structure-grid {
    -ms-overflow-style: none;
    /* Removed scrollbar-width: none; */
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
}

.gb1-structure-item {
    flex: 0 0 auto;
    width: 280px !important;
    min-width: 280px !important;
    scroll-snap-align: start;
    margin-right: 5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}