﻿/* =========================================================
   DR. SHYAM SINGH PUBLIC ACADEMY
   ACHIEVEMENTS PAGE
   ========================================================= */

:root {
    --ach-maroon: #6E1423;
    --ach-maroon-dark: #4F0D19;
    --ach-gold: #D9A441;
    --ach-gold-light: #F0C96E;
    --ach-cream: #FBF6EC;
    --ach-green: #1F4B3F;
    --ach-dark: #2A2320;
    --ach-muted: #6D625C;
    --ach-white: #FFFFFF;
    --ach-border: rgba(110, 20, 35, 0.12);
}


/* =========================================================
   COMMON
   ========================================================= */

.achievement-hero *,
.achievement-highlights *,
.featured-achievement *,
.achievement-card-section *,
.achievement-timeline *,
.achievement-gallery *,
.achievement-cta * {
    box-sizing: border-box;
}

.achievement-hero a,
.achievement-highlights a,
.featured-achievement a,
.achievement-card-section a,
.achievement-gallery a,
.achievement-cta a {
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--ach-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading {
    max-width: 760px;
    text-align: center;
    margin: 0 auto 55px;
}

    .section-heading h2,
    .timeline-heading h2,
    .achievement-cta-box h2 {
        font-family: Georgia, "Times New Roman", serif;
        line-height: 1.15;
    }

    .section-heading h2 {
        color: var(--ach-dark);
        font-size: clamp(35px, 4vw, 52px);
        margin: 0 0 18px;
    }

        .section-heading h2 span,
        .timeline-heading h2 span,
        .achievement-cta-box h2 span {
            color: var(--ach-maroon);
        }

    .section-heading p {
        color: var(--ach-muted);
        line-height: 1.8;
    }


/* =========================================================
   HERO
   ========================================================= */

.achievement-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--ach-maroon-dark);
}

.achievement-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s ease;
}

.achievement-hero:hover .achievement-hero-img {
    transform: scale(1.025);
}

.achievement-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(48, 7, 16, 0.93) 0%, rgba(79, 13, 25, 0.70) 44%, rgba(79, 13, 25, 0.16) 100% );
}

.achievement-hero-content {
    position: absolute;
    z-index: 2;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 680px;
}

.achievement-kicker {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid rgba(217,164,65,0.75);
    color: #F3D58F;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    background: rgba(110,20,35,0.3);
    margin-bottom: 22px;
}

.achievement-hero-content h1 {
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 6vw, 78px);
    line-height: 1;
    margin: 0 0 23px;
}

    .achievement-hero-content h1 span {
        display: block;
        color: var(--ach-gold-light);
    }

.achievement-hero-content p {
    max-width: 610px;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.achievement-hero-btn,
.achievement-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 14px 22px;
    background: var(--ach-gold);
    color: var(--ach-dark);
    font-weight: 800;
    transition: 0.3s ease;
}

    .achievement-hero-btn:hover,
    .achievement-cta-btn:hover {
        background: white;
        color: var(--ach-maroon);
        transform: translateY(-3px);
    }


/* =========================================================
   HIGHLIGHTS
   ========================================================= */

.achievement-highlights {
    background: var(--ach-cream);
    padding: 105px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    background: white;
    padding: 30px 27px;
    border: 1px solid var(--ach-border);
    transition: 0.35s ease;
}

    .highlight-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(42,35,32,0.11);
    }

.highlight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.highlight-number {
    color: var(--ach-maroon);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ach-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.highlight-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ach-dark);
    font-size: 23px;
    margin: 0 0 13px;
}

.highlight-card p {
    color: var(--ach-muted);
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
}

.highlight-line {
    display: block;
    width: 42px;
    height: 3px;
    background: var(--ach-gold);
    margin-top: 22px;
}


/* =========================================================
   FEATURED ACHIEVEMENT
   ========================================================= */

.featured-achievement {
    background: white;
    padding: 110px 0;
}

.featured-achievement-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ach-green);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(42,35,32,0.16);
}

.featured-achievement-image {
    position: relative;
    min-height: 540px;
    overflow: hidden;
}

    .featured-achievement-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

.featured-achievement-box:hover .featured-achievement-image img {
    transform: scale(1.05);
}

.trophy-badge {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 70px;
    height: 70px;
    background: var(--ach-gold);
    color: var(--ach-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.featured-achievement-content {
    padding: 55px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

    .featured-achievement-content .section-label {
        color: var(--ach-gold-light);
    }

    .featured-achievement-content h2 {
        color: white;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(36px, 4vw, 53px);
        line-height: 1.15;
        margin: 0 0 22px;
    }

        .featured-achievement-content h2 span {
            color: var(--ach-gold-light);
        }

    .featured-achievement-content > p {
        color: rgba(255,255,255,0.82);
        line-height: 1.85;
        margin-bottom: 14px;
    }

.merit-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 25px;
    padding: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(217,164,65,0.35);
}

.merit-item {
    text-align: center;
}

.merit-label {
    display: block;
    color: var(--ach-gold-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.merit-item strong {
    display: block;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
}

.merit-item small {
    color: rgba(255,255,255,0.68);
    font-size: 11px;
}

.merit-divider {
    height: 60px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}


/* =========================================================
   ACHIEVEMENT CARDS
   ========================================================= */

.achievement-card-section {
    background: var(--ach-cream);
    padding: 105px 0;
}

.achievement-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.achievement-card {
    background: white;
    border: 1px solid var(--ach-border);
    overflow: hidden;
    transition: 0.35s ease;
}

    .achievement-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 50px rgba(42,35,32,0.12);
    }

.achievement-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

    .achievement-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.55s ease;
    }

.achievement-card:hover .achievement-card-image img {
    transform: scale(1.07);
}

.card-number {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 42px;
    height: 42px;
    background: var(--ach-maroon);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}

.achievement-card-content {
    padding: 28px;
}

.card-icon {
    font-size: 28px;
}

.achievement-card-content h3 {
    color: var(--ach-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    margin: 10px 0 13px;
}

.achievement-card-content p {
    color: var(--ach-muted);
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
}

.card-bottom-line {
    display: block;
    width: 45px;
    height: 3px;
    background: var(--ach-gold);
    margin-top: 22px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.achievement-timeline {
    background: var(--ach-green);
    padding: 110px 0;
}

.timeline-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 65px;
}

    .timeline-heading h2 {
        color: white;
        font-size: clamp(36px, 4vw, 53px);
        margin: 0 0 18px;
    }

        .timeline-heading h2 span {
            color: var(--ach-gold-light);
        }

    .timeline-heading p {
        color: rgba(255,255,255,0.76);
        line-height: 1.8;
    }

.timeline {
    position: relative;
    max-width: 850px;
    margin: auto;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 34px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(217,164,65,0.45);
    }

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 28px;
    margin-bottom: 35px;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.timeline-marker {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--ach-gold);
    color: var(--ach-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 0 8px rgba(31,75,63,1);
}

.timeline-content {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 25px 28px;
}

    .timeline-content > span {
        color: var(--ach-gold-light);
        font-size: 10px;
        letter-spacing: 2px;
        font-weight: 900;
    }

    .timeline-content h3 {
        color: white;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 25px;
        margin: 8px 0 10px;
    }

    .timeline-content p {
        color: rgba(255,255,255,0.73);
        line-height: 1.75;
        margin: 0;
    }


/* =========================================================
   GALLERY
   ========================================================= */

.achievement-gallery {
    background: var(--ach-cream);
    padding: 110px 0;
}

.achievement-gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 15px;
}

.achievement-gallery-item {
    position: relative;
    overflow: hidden;
}

    .achievement-gallery-item.large {
        grid-row: span 2;
    }

    .achievement-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

    .achievement-gallery-item:hover img {
        transform: scale(1.08);
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient( transparent 25%, rgba(42,10,17,0.88) );
    color: white;
    opacity: 0;
    transition: 0.35s ease;
}

.achievement-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--ach-gold-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.gallery-overlay strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    margin: 5px 0 10px;
}

.gallery-overlay a {
    color: white;
    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   CTA
   ========================================================= */

.achievement-cta {
    background: white;
    padding: 100px 0;
}

.achievement-cta-box {
    position: relative;
    text-align: center;
    padding: 70px 35px;
    background: var(--ach-cream);
    border: 1px solid var(--ach-border);
    box-shadow: 0 20px 55px rgba(42,35,32,0.08);
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient( 90deg, var(--ach-maroon), var(--ach-gold), var(--ach-green) );
}

.achievement-cta-box h2 {
    color: var(--ach-dark);
    font-size: clamp(35px, 4vw, 52px);
    max-width: 850px;
    margin: 0 auto 20px;
}

    .achievement-cta-box h2 span {
        display: block;
    }

.achievement-cta-box p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--ach-muted);
    line-height: 1.8;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-achievement-box {
        grid-template-columns: 1fr;
    }

    .featured-achievement-image {
        min-height: 400px;
    }

    .achievement-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-gallery-item.large {
        grid-row: span 1;
    }
}


@media (max-width: 650px) {

    .achievement-hero {
        height: 570px;
    }

    .achievement-hero-content {
        left: 7%;
        right: 7%;
    }

        .achievement-hero-content h1 {
            font-size: 48px;
        }

        .achievement-hero-content p {
            font-size: 15px;
        }

    .achievement-highlights,
    .featured-achievement,
    .achievement-card-section,
    .achievement-timeline,
    .achievement-gallery,
    .achievement-cta {
        padding: 75px 0;
    }

    .highlight-grid,
    .achievement-card-grid {
        grid-template-columns: 1fr;
    }

    .featured-achievement-content {
        padding: 38px 27px;
    }

    .featured-achievement-image {
        min-height: 320px;
    }

    .merit-box {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .merit-divider {
        height: 1px;
        width: 100%;
    }

    .achievement-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        grid-template-columns: 50px 1fr;
        gap: 20px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }

    .timeline-content {
        padding: 20px;
    }
}
