﻿
/* =========================================
   ABOUT ACADEMY PAGE
========================================= */

/* PAGE BANNER */

.about-page-banner {
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('/images/school/about-school.jpg') center 45% / cover no-repeat;
    overflow: hidden;
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(3, 39, 62, .93), rgba(3, 39, 62, .55) );
}

.about-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
    padding-top: 55px;
    padding-bottom: 55px;
}

    .about-banner-content > span {
        display: inline-block;
        color: #F4A62A;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .about-banner-content h1 {
        color: #fff;
        font-size: clamp(32px, 5vw, 48px);
        font-weight: 800;
        margin: 12px 0 18px;
        line-height: 1.2;
    }

/* BREADCRUMB */

.about-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #fff;
}

    .about-breadcrumb a {
        display: inline-flex;
        align-items: center;
        color: #F4A62A;
        font-weight: 700;
        text-decoration: none;
        transition: color .2s ease;
    }

        .about-breadcrumb a:hover {
            color: #fff;
            text-decoration: underline;
        }

    .about-breadcrumb i {
        color: rgba(255, 255, 255, .75);
        font-size: 10px;
    }

    .about-breadcrumb span {
        color: #fff;
        font-weight: 600;
    }


/* =========================================
   INTRODUCTION
========================================= */

.about-founder-image {
    height: 460px;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background: #07507B;
    box-shadow: 12px 12px 0 #E7F2F9;
}

    .about-founder-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.founder-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 45px 22px 22px;
    background: linear-gradient( transparent, rgba(3, 35, 58, .94) );
}

    .founder-image-caption span {
        color: #F4A62A;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.5px;
    }

    .founder-image-caption h4 {
        color: #fff;
        margin: 7px 0 0;
        font-size: 22px;
    }

.about-lead {
    color: #17324D;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 600;
}

.about-intro p,
.about-establishment p,
.about-campus p {
    line-height: 1.9;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    margin-top: 25px;
    background: #EDF5FA;
    border-left: 4px solid #F4A62A;
    border-radius: 5px;
}

    .about-highlight > i {
        font-size: 28px;
        color: #07507B;
        flex-shrink: 0;
    }

    .about-highlight strong {
        display: block;
        color: #17324D;
        margin-bottom: 5px;
    }

    .about-highlight p {
        margin: 0;
        font-size: 13px;
    }


/* =========================================
   HISTORY TIMELINE
========================================= */

.history-timeline {
    max-width: 900px;
    margin: 45px auto 0;
    position: relative;
}

    .history-timeline::before {
        content: "";
        position: absolute;
        top: 20px;
        bottom: 20px;
        left: 27px;
        width: 2px;
        background: #D6E4ED;
    }

.history-item {
    position: relative;
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.history-marker {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #07507B;
    border: 4px solid #E7F2F9;
    color: #F4A62A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    z-index: 1;
}

.history-card {
    flex: 1;
    background: #fff;
    padding: 25px 28px;
    border-radius: 7px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    border-left: 3px solid #F4A62A;
}

    .history-card h3 {
        color: #07507B;
        font-size: 19px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .history-card p {
        font-size: 14px;
        line-height: 1.9;
        margin-bottom: 0;
    }


/* =========================================
   ESTABLISHMENT
========================================= */

.establishment-details {
    margin-top: 25px;
    display: grid;
    gap: 18px;
}

.establishment-detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .establishment-detail > i {
        width: 46px;
        height: 46px;
        min-width: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #E7F2F9;
        color: #07507B;
        border-radius: 6px;
        font-size: 20px;
    }

    .establishment-detail strong,
    .establishment-detail span {
        display: block;
    }

    .establishment-detail strong {
        color: #17324D;
        font-size: 14px;
    }

    .establishment-detail span {
        color: #667788;
        font-size: 13px;
        margin-top: 4px;
    }

.about-campus-image {
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 12px 12px 0 #F4A62A;
    background: #E7F2F9;
}

    .about-campus-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


/* =========================================
   CAMPUS
========================================= */

.campus-image-grid {
    position: relative;
    height: 390px;
    border-radius: 8px;
    overflow: hidden;
}

    .campus-image-grid > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.campus-image-note {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 13px 20px;
    background: #07507B;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
}

    .campus-image-note i {
        color: #F4A62A;
        font-size: 20px;
    }

.campus-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

    .campus-stat > i {
        font-size: 35px;
        color: #0B8C62;
    }

    .campus-stat strong,
    .campus-stat span {
        display: block;
    }

    .campus-stat strong {
        color: #07507B;
        font-size: 24px;
    }

    .campus-stat span {
        color: #667788;
        font-size: 12px;
    }


/* =========================================
   EDUCATION CTA
========================================= */

.about-education {
    background: #07507B;
    color: #fff;
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.education-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(244, 166, 42, .15);
    color: #F4A62A;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
}

.education-content .home-section-label {
    color: #F4A62A;
}

.education-content h2 {
    color: #fff;
    font-size: 36px;
    margin: 15px 0;
}

    .education-content h2 span {
        color: #F4A62A;
    }

.education-content p {
    color: #E1EDF4;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 25px;
}

.education-content .btn-school {
    background: #F4A62A;
    border-color: #F4A62A;
    color: #063B5B;
}

    .education-content .btn-school:hover {
        background: #fff;
        border-color: #fff;
        color: #07507B;
    }


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .about-founder-image {
        height: 400px;
    }

    .about-campus-image {
        height: 350px;
    }
}

@media (max-width: 767px) {

    .about-page-banner {
        min-height: 230px;
        background-position: center center;
    }

    .about-banner-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

        .about-banner-content h1 {
            font-size: 32px;
            margin: 10px 0 14px;
        }

    .about-breadcrumb {
        gap: 8px;
        font-size: 12px;
    }

    .about-founder-image {
        height: 350px;
    }

    .history-item {
        gap: 13px;
    }

    .history-marker {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 15px;
    }

    .history-timeline::before {
        left: 21px;
    }

    .history-card {
        padding: 20px 16px;
    }

        .history-card h3 {
            font-size: 16px;
        }

        .history-card p {
            font-size: 13px;
        }

    .about-campus-image {
        height: 300px;
    }

    .campus-image-grid {
        height: 280px;
    }

    .campus-image-note {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .education-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    .about-banner-content h1 {
        font-size: 28px;
    }

    .about-founder-image {
        height: 300px;
    }

    .founder-image-caption h4 {
        font-size: 19px;
    }

    .about-highlight {
        padding: 14px;
        gap: 12px;
    }

    .history-card {
        padding: 17px 13px;
    }

    .campus-stat {
        padding: 15px;
    }

        .campus-stat strong {
            font-size: 21px;
        }
}
/* Vision content layout */

.vision-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    align-items: start;
}

/* Objectives on left */

.vision-objectives {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Image on right */

.vision-image {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

    .vision-image img {
        display: block;
        width: 100%;
        height: 550px;
        object-fit: cover;
        object-position: center;
        border-radius: 15px;
    }

/* Mobile responsive */

@media (max-width: 991px) {
    .vision-content {
        grid-template-columns: 1fr;
    }

    .vision-image {
        position: static;
        grid-row: 1;
    }

        .vision-image img {
            height: auto;
            max-height: 450px;
            object-fit: contain;
        }

    .vision-objectives {
        grid-row: 2;
    }
}

/* =========================================
   CHAIRMAN MESSAGE PAGE
========================================= */

.chairman-section {
    padding: 65px 0;
    margin-top: 20px;
    margin-bottom: 30px;
    background: #fff;
}

.chairman-heading {
    margin-bottom: 40px;
}

.chairman-subtitle {
    color: #C49A32;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.chairman-heading h2 {
    color: #252525;
    font-size: 36px;
    font-weight: 800;
    margin: 12px 0 15px;
}

.chairman-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 45px;
    align-items: start;
}

/* Message */

.chairman-message {
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

    .chairman-message p {
        margin-bottom: 20px;
        text-align: justify;
    }

.chairman-quote {
    background: #faf5f7;
    border-left: 5px solid #C49A32;
    padding: 22px 25px;
    margin-bottom: 25px;
    border-radius: 0 10px 10px 0;
}

    .chairman-quote i {
        color: #C49A32;
        font-size: 30px;
    }

    .chairman-quote h3 {
        color: #C49A32;
        font-size: 21px;
        font-weight: 700;
        line-height: 1.5;
        margin: 5px 0 0;
    }

/* Chairman image */

.chairman-image {
    position: sticky;
    top: 100px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

    .chairman-image img {
        display: block;
        width: 100%;
        height: 480px;
        object-fit: cover;
        object-position: center top;
        border-radius: 9px;
    }

.chairman-image-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 8px 5px;
    color: #C49A32;
    font-size: 14px;
    font-weight: 600;
}

    .chairman-image-caption i {
        font-size: 22px;
    }

/* Signature */

.chairman-signature {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

    .chairman-signature span {
        color: #777;
        font-size: 14px;
    }

    .chairman-signature h4 {
        color: #C49A32;
        font-size: 23px;
        font-weight: 800;
        margin: 8px 0 4px;
    }

    .chairman-signature p {
        color: #777;
        font-size: 13px;
        margin: 0;
        text-align: left;
    }

/* Responsive */

@media (max-width: 991px) {
    .chairman-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .chairman-image {
        position: static;
        grid-row: 1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

        .chairman-image img {
            height: auto;
            max-height: 550px;
            object-fit: contain;
        }

    .chairman-message {
        grid-row: 2;
    }
}

@media (max-width: 576px) {
    .chairman-section {
        padding: 40px 0;
    }

    .chairman-heading h2 {
        font-size: 28px;
    }

    .chairman-quote h3 {
        font-size: 18px;
    }

    .chairman-message {
        font-size: 14px;
    }

        .chairman-message p {
            text-align: left;
        }

    .chairman-image img {
        max-height: 420px;
    }
}

/* =========================================
   CONTACT US PAGE
========================================= */

.contact-section {
    padding: 65px 0;
    background: #fff;
}

.contact-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.contact-subtitle {
    color: #C49A32;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.contact-heading h2 {
    font-size: 35px;
    font-weight: 800;
    color: #252525;
    margin: 12px 0;
}

.contact-heading p {
    color: #777;
    line-height: 1.8;
    margin-top: 20px;
}

/* Main layout */

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    align-items: stretch;
}

/* Contact information */

.contact-info {
    background: #292929;
    color: #fff;
    padding: 35px;
    border-radius: 12px;
}

    .contact-info h3,
    .contact-form-box h3 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 12px;
    }

.contact-info-intro {
    color: #ddd;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #292929;
    background: #C49A32;
    border-radius: 8px;
    font-size: 19px;
}

.contact-info-item h4 {
    color: #E5C76B;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: #eee;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.contact-info-item a {
    color: #eee;
    text-decoration: none;
}

    .contact-info-item a:hover {
        color: #E5C76B;
    }

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    margin-top: 8px;
    color: #292929;
    background: #E5C76B;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

    .contact-map-link:hover {
        background: #C49A32;
        color: #fff;
    }

/* Contact form */

.contact-form-box {
    padding: 35px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

    .contact-form-box > p {
        color: #777;
        font-size: 14px;
        margin-bottom: 25px;
    }

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-field {
    margin-bottom: 20px;
}

    .contact-field label {
        display: block;
        color: #333;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #ddd;
        border-radius: 6px;
        outline: none;
        font-size: 14px;
        background: #fff;
        transition: 0.3s;
    }

        .contact-field input:focus,
        .contact-field select:focus,
        .contact-field textarea:focus {
            border-color: #C49A32;
            box-shadow: 0 0 0 3px rgba(196,154,50,0.12);
        }

    .contact-field textarea {
        resize: vertical;
    }

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: none;
    border-radius: 6px;
    background: #C49A32;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

    .contact-submit:hover {
        background: #96701C;
        transform: translateY(-2px);
    }

.contact-form-message {
    margin-top: 15px;
    color: #96701C;
    font-size: 13px;
}

/* Map */

.contact-map-section {
    margin-top: 65px;
}

.contact-map-heading {
    margin-bottom: 20px;
}

    .contact-map-heading h3 {
        font-size: 25px;
        font-weight: 800;
        color: #292929;
    }

    .contact-map-heading p {
        color: #777;
        font-size: 14px;
    }

.contact-map {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

    .contact-map iframe {
        display: block;
    }

/* Responsive */

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-heading h2 {
        font-size: 27px;
    }

    .contact-info,
    .contact-form-box {
        padding: 23px 18px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-map-section {
        margin-top: 40px;
    }

    .contact-map iframe {
        height: 300px;
    }
}

/* =========================================
   OUR FACULTY / OUR PRIDE
========================================= */

.faculty-section {
    padding: 70px 0;
    background: #fff;
}

.faculty-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.faculty-subtitle {
    color: #C49A32;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.faculty-heading h2 {
    color: #292929;
    font-size: 36px;
    font-weight: 800;
    margin: 12px 0;
}

.faculty-heading p {
    color: #777;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 20px;
}

/* Faculty grid */

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.faculty-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

    .faculty-card:hover {
        transform: translateY(-7px);
        border-color: #C49A32;
        box-shadow: 0 12px 30px rgba(196,154,50,0.17);
    }

.faculty-photo {
    position: relative;
    height: 260px;
    background: #FFF8E7;
    overflow: hidden;
}

    .faculty-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        z-index: 2;
    }

.faculty-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C49A32;
    font-size: 48px;
    font-weight: 800;
}

.faculty-details {
    padding: 20px 12px 22px;
}

    .faculty-details h3 {
        color: #292929;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 9px;
        text-transform: uppercase;
    }

    .faculty-details span {
        display: inline-block;
        padding: 6px 16px;
        background: #FFF8E7;
        color: #96701C;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

/* Bottom section */

.faculty-bottom {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    background: #FFF8E7;
    border-radius: 12px;
    border: 1px solid #F0DFAD;
}

    .faculty-bottom i {
        font-size: 38px;
        color: #C49A32;
    }

    .faculty-bottom h3 {
        color: #292929;
        font-size: 23px;
        font-weight: 800;
        margin: 12px 0;
    }

    .faculty-bottom p {
        color: #777;
        margin: 0;
        font-size: 14px;
    }

/* Responsive */

@media (max-width: 991px) {
    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .faculty-photo {
        height: 220px;
    }

    .faculty-details h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faculty-section {
        padding: 45px 0;
    }

    .faculty-heading h2 {
        font-size: 27px;
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .faculty-photo {
        height: 180px;
    }

    .faculty-details {
        padding: 15px 8px;
    }

        .faculty-details h3 {
            font-size: 12px;
        }

        .faculty-details span {
            font-size: 10px;
            padding: 5px 10px;
        }

    .faculty-bottom h3 {
        font-size: 19px;
    }
}

/* =========================================
   PREMIUM GALLERY CATEGORY CARDS
========================================= */


/* =========================================
   GALLERY CATEGORY CARDS
========================================= */

.gallery-category-card {
    display: block;
    height: 100%;
    background: #fff;
    text-decoration: none;
    border-radius: 17px;
    overflow: hidden;
    border: 1px solid #eee6d5;
    box-shadow: 0 6px 25px rgba(49, 38, 15, .07);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

    .gallery-category-card:hover,
    .gallery-category-card:focus-visible {
        transform: translateY(-7px);
        box-shadow: 0 18px 40px rgba(150, 112, 28, .18);
        border-color: #d7bd76;
    }

    .gallery-category-card:focus-visible {
        outline: 3px solid rgba(196, 154, 50, .45);
        outline-offset: 4px;
    }

/* IMAGE */

.gallery-category-image {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8e7, #e9d9ae);
}

    .gallery-category-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .65s ease;
    }

.gallery-category-card:hover .gallery-category-image img {
    transform: scale(1.08);
}

.gallery-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bd922e;
    font-size: 65px;
}

/* DARK GOLD OVERLAY */

.gallery-category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( to top, rgba(45, 33, 10, .75), rgba(45, 33, 10, .08) );
    opacity: 0;
    transition: opacity .35s ease;
}

.gallery-category-card:hover .gallery-category-overlay,
.gallery-category-card:focus-visible .gallery-category-overlay {
    opacity: 1;
}

.gallery-view-btn {
    background: #c49a32;
    color: #fff;
    padding: 12px 23px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(15px);
    transition: transform .35s ease;
}

.gallery-category-card:hover .gallery-view-btn,
.gallery-category-card:focus-visible .gallery-view-btn {
    transform: translateY(0);
}

.gallery-view-btn i {
    margin-right: 6px;
}

/* GALLERY LABEL */

.gallery-category-number {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, .94);
    color: #96701c;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
}

    .gallery-category-number i {
        margin-right: 5px;
    }

/* CARD DETAILS */

.gallery-category-info {
    padding: 21px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .gallery-category-info h4 {
        font-family: 'Playfair Display', serif;
        font-size: 21px;
        font-weight: 700;
        color: #493b20;
        margin: 0 0 7px;
        transition: color .3s ease;
    }

.gallery-category-card:hover .gallery-category-info h4 {
    color: #b58b2a;
}

.gallery-category-info p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.gallery-category-arrow {
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff5d9;
    color: #96701c;
    font-size: 18px;
    transition: background .35s ease, color .35s ease, transform .35s ease;
}

.gallery-category-card:hover .gallery-category-arrow {
    background: #c49a32;
    color: #fff;
    transform: rotate(45deg);
}

/* RESPONSIVE */

@media (max-width: 767px) {
    .gallery-category-image {
        height: 210px;
    }

    .gallery-category-info {
        padding: 17px;
    }

        .gallery-category-info h4 {
            font-size: 18px;
        }

    .gallery-category-arrow {
        width: 37px;
        height: 37px;
    }

    /* Keep the overlay visible on touch devices */
    .gallery-category-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(45, 33, 10, .45), transparent 65% );
        justify-content: flex-end;
        align-items: flex-end;
        padding: 14px;
    }

    .gallery-view-btn {
        transform: none;
        padding: 9px 16px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .gallery-category-card,
    .gallery-category-image img,
    .gallery-category-overlay,
    .gallery-view-btn,
    .gallery-category-arrow {
        transition: none;
    }

        .gallery-category-card:hover {
            transform: none;
        }
}



