.hero-bg {
    background-image: url('../assets/about-hero.png');
}

.hero-bottom .top {
    display: flex;
    
}

.hero-bottom .top h2 {
    text-align: left;
    font-size: var(--fs-xxl);
}

.hero-bottom .bottom {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    place-items: center;
}

.about-left p {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
}

.about-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 100px;
}

.about-card {
    position: relative;
    padding: var(--space-md) var(--space-md) 0;
    border-left: 1px solid grey;
    max-width: 200px;
}

.about-card::after {
    content: '+';
    position: absolute;
    left: -4.5px;
    top: -13px;
    width: 20px;
    height: 20px;
}

.about-card:nth-child(1) h3 {
    font-size: var(--fs-xl);
    font-weight: 500;
}

.about-card:nth-child(2) {
    transform: translateY(50px);
}

.about-card:nth-child(3) {
    transform: translateY(100px);
}

.about-card h3 {
    font-family: var(--urbanist);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--primary-color);
    
}



.about-card p {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
}

.about-image-large {
    position: relative;
    overflow: hidden;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-section) * 2) var(--space-lg);
    margin-bottom: calc(var(--space-section) * 2);
}

.about-image-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/Rectangle\ 28790.jpg');
    background-size: cover;
    background-position: center;
    
    z-index: 0;
}

.about-image-large::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #071a2e;
    opacity: 0.5;
    z-index: 1;
}

.about-image-large p {
    font-family: var(--playfair-display);
    font-size: calc(var(--fs-lg) - 2px);
    color: var(--secondary-color);
    text-align: center;
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.formal-establishment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: calc(var(--space-section) * 2);
}

.formal-establishment-years {
    padding: var(--space-xs);
    border: 1px solid var(--gold);
    border-radius: var(--space-xl);
}

.formal-establishment-years p {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: var(--gold);
}

.formal-establishment-content {
    text-align: center;
    max-width: 800px;
}

.formal-establishment-content h2 {
    font-family: var(--playfair-display);
    font-size: var(--fs-xl);
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.formal-establishment-content p {
    font-family: var(--urbanist);
    color: var(--primary-color);
    line-height: var(--fs-lg);
}

.formal-establishment-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    grid-template-rows: repeat(2, clamp(200px, 30vw, 380px));
    gap: var(--space-xs);
}

.formal-establishment-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-xs);
    display: block;
}

.formal-establishment-grid img:nth-child(3) {
    object-position: top center;
}

.principles {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: calc(var(--space-section) * 2);
}

.principles-top {
    padding: var(--space-xs);
    border: 1px solid var(--gold);
    border-radius: var(--space-xl);
    margin-bottom: var(--space-md);
}

.principles-top p {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: var(--primary-color);
}

.principles-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.principles-content h2 {
    font-family: var(--playfair-display);
    font-size: var(--fs-xl);
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.principles-content p {
    font-family: var(--urbanist);
    color: var(--primary-color);
    line-height: var(--fs-lg);
}

.principles-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-section);
}

.principles-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.principles-image {
    flex: 0 0 53%;
    background-color: grey;
    height: 340px;
    border-radius: var(--space-md);
}

.principles-card-content {
    flex: 0 1 420px;
    max-width: 420px;
}

.principles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-md);
}

.principles-card-content h3 {
    font-family: var(--urbanist);
    font-size: var(--fs-base);
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.principles-card-content p {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
    line-height: var(--fs-lg);
}

.principles-card:nth-child(even) {
    flex-direction: row-reverse;
}

.rooted {
    background-color: var(--primary-color);
    margin-bottom: calc(var(--space-section) * 2);
    padding: var(--space-section) 0;
}

.rooted-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: flex-start;
    justify-content: space-between;
    color: #f9f5ee;
}

.rooted-left {
    max-width: 400px;
}

.rooted-left h2 {
    font-family: var(--urbanist);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

.rooted-left p {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    line-height: var(--fs-lg);
}

.rooted-right {
    max-width: 600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.rooted-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.rooted-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background-color: #f9f5ee;
    border-radius: 999px;
    flex-shrink: 0;
}

.rooted-card img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rooted-card h3 {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
}

.rooted-card p {
    font-family: var(--urbanist);
    font-size: calc(var(--fs-sm) - 3px);
}

.people-behind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: calc(var(--space-section) * 2);
}

.people-behind-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.people-behind-heading h2 {
    font-family: var(--urbanist);
    font-size: var(--fs-xl);
    color: var(--primary-color);
}

.people-behind-heading a {
    padding: var(--space-xs);
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--secondary-color);
    text-decoration: none;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.people-behind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-sm);
    width: 100%;
}

.person-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-sm);

}

.person-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--space-sm);
}

.person-about {
    background-color: #fffefe;
    padding: var(--space-sm);
    border-radius: var(--space-sm);
}

.person-about h3 {
    font-family: var(--urbanist);
    font-size: var(--fs-base);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.person-about p {
    font-family: 'JetBrains Mono', monospace;
    font-size: calc(var(--fs-sm) - 7px);
    color: var(--gold);
}




@media (min-width: 769px) and (max-width: 1024px) {
    .hero-bottom .bottom {
        grid-template-columns: 1fr 1.4fr;
        align-items: start;
    }

    .about-right {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .about-card {
        max-width: 100%;
    }

    .formal-establishment-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, clamp(180px, 26vw, 260px));
    }

    .rooted-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .people-behind-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 1024px) {

    
    .hero-bottom .bottom {
        grid-template-columns: 1fr;
        place-items: start;
    }

    
    .formal-establishment-grid {
        grid-template-rows: repeat(2, clamp(160px, 22vw, 280px));
    }

    
    .about-right {
        grid-template-columns: 1fr 1fr;
        padding-bottom: 0;
    }

    .about-card:nth-child(2),
    .about-card:nth-child(3) {
        transform: none;
    }

    .about-card {
        max-width: 100%;
    }



    
    .principles-card {
        flex-direction: column;
    }

    .principles-card:nth-child(even) {
        flex-direction: column;
    }

    .principles-image {
        flex: none;
        width: 100%;
        height: 280px;
    }

    .principles-card-content {
        flex: none;
        width: 100%;
    }

    
    .rooted-content {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .rooted-left {
        max-width: 100%;
    }

    .rooted-right {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    
    .people-behind-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .people-behind-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    
    .about-image-large {
        padding: var(--space-section) var(--space-md);
    }

    .about-image-large p {
        font-size: var(--fs-base);
    }

    
    .formal-establishment-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, clamp(160px, 50vw, 280px));
    }

    .about-card:nth-child(2),
    .about-card:nth-child(3) {
        transform: none;
    }

    
    .rooted-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-right {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .people-behind-grid {
        grid-template-columns: 1fr;
    }

    .hero-bottom .top h2 {
        font-size: var(--fs-xl);
    }
}