/* =====================================================
   EVENT ARCHIVE PAGE
   Aggarwal College Ballabgarh
===================================================== */

:root {

    --maroon: #7A0D16;
    --maroon-dark: #4d0710;
    --maroon-deep: #35050a;

    --gold: #C89B3C;
    --gold-light: #e6c76d;

    --cream: #faf8f3;
    --white: #ffffff;

    --text: #242124;
    --muted: #686468;

    --border: #e8e1d9;

    --shadow:
        0 15px 45px rgba(60, 20, 20, 0.09);

    --shadow-hover:
        0 25px 60px rgba(80, 10, 20, 0.18);
}


/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "DM Sans", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(200,155,60,0.07),
            transparent 25%
        ),
        var(--cream);

    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}


img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   HERO
===================================================== */

.archive-hero {

    position: relative;

    min-height: 590px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            #41060d 0%,
            #680912 48%,
            #7A0D16 100%
        );

    color: white;
}


.hero-pattern {

    position: absolute;

    inset: 0;

    opacity: 0.09;

    background-image:
        linear-gradient(
            30deg,
            transparent 12%,
            rgba(255,255,255,0.4) 13%,
            transparent 14%
        );

    background-size: 55px 55px;

    pointer-events: none;
}


.hero-container {

    width: min(1380px, 92%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 70px;

    position: relative;

    z-index: 2;

    padding: 80px 0;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero-content {
    max-width: 720px;
}


.mini-badge {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--gold-light);

    margin-bottom: 22px;
}


.badge-dot {

    width: 8px;
    height: 8px;

    background: var(--gold);

    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(200,155,60,0.13);
}


.hero-content h1 {

    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 5vw, 78px);

    line-height: 1.04;

    font-weight: 600;

    letter-spacing: -2px;

    margin-bottom: 28px;
}


.hero-content h1 span {

    color: var(--gold-light);

    display: inline-block;
}


.hero-content p {

    font-size: 17px;

    line-height: 1.8;

    max-width: 690px;

    color: rgba(255,255,255,0.78);

    margin-bottom: 38px;
}


/* =====================================================
   HERO STATS
===================================================== */

.hero-stats {

    display: flex;

    align-items: center;

    gap: 30px;
}


.hero-stat {

    display: flex;

    align-items: center;

    gap: 13px;

    padding-right: 30px;

    border-right:
        1px solid rgba(255,255,255,0.2);
}


.hero-stat:last-child {
    border-right: none;
}


.stat-icon {

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--gold-light);

    background:
        rgba(255,255,255,0.08);

    border:
        1px solid rgba(200,155,60,0.45);

    font-size: 18px;
}


.hero-stat strong {

    display: block;

    font-family: "Playfair Display", serif;

    font-size: 25px;

    color: white;
}


.hero-stat small {

    display: block;

    font-size: 11px;

    color: rgba(255,255,255,0.6);

    margin-top: 2px;
}


/* =====================================================
   HERO IMAGE
===================================================== */

.hero-visual {

    position: relative;

    min-height: 400px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.hero-image-wrap {

    width: 470px;
    height: 430px;

    position: relative;

    overflow: hidden;

    border-radius: 35px 35px 35px 100px;

    border:
        1px solid rgba(255,255,255,0.3);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.3);

    transform: rotate(2deg);
}


.hero-image-wrap img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.8s ease;
}


.hero-image-wrap:hover img {
    transform: scale(1.08);
}


.hero-image-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(40,0,5,0.65),
            transparent 60%
        );
}


/* =====================================================
   FLOATING CARD
===================================================== */

.floating-card {

    position: absolute;

    bottom: 28px;
    left: 28px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 15px 20px;

    background:
        rgba(255,255,255,0.95);

    color: var(--text);

    border-radius: 14px;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.2);

    transform: rotate(-2deg);
}


.floating-icon {

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--maroon);

    color: var(--gold-light);
}


.floating-card strong {

    display: block;

    font-size: 14px;
}


.floating-card span {

    display: block;

    font-size: 11px;

    color: var(--muted);

    margin-top: 2px;
}


/* =====================================================
   DECORATIVE CIRCLES
===================================================== */

.gold-circle {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(200,155,60,0.5);
}


.circle-one {

    width: 100px;
    height: 100px;

    top: 10px;
    right: 20px;
}


.circle-two {

    width: 40px;
    height: 40px;

    bottom: 15px;
    left: 25px;

    background: var(--gold);
}


/* =====================================================
   CATEGORY
===================================================== */

.category-section {

    position: relative;

    z-index: 5;

    margin-top: -42px;
}


.category-container {

    width: min(1300px, 92%);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(8, 1fr);

    background: white;

    border-radius: 20px;

    padding: 8px;

    box-shadow:
        0 20px 55px rgba(50,10,10,0.12);

    border:
        1px solid rgba(0,0,0,0.05);
}


.category {

    min-height: 76px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border-radius: 14px;

    font-size: 12px;

    font-weight: 600;

    color: #474047;

    transition: 0.3s ease;

    position: relative;
}


.category i {

    font-size: 18px;

    color: var(--maroon);

    transition: 0.3s ease;
}


.category:hover {

    background:
        rgba(122,13,22,0.06);

    color: var(--maroon);
}


.category.active {

    background: var(--maroon);

    color: white;

    box-shadow:
        0 8px 20px rgba(122,13,22,0.2);
}


.category.active i {
    color: var(--gold-light);
}


/* =====================================================
   ARCHIVE SECTION
===================================================== */

.archive-section {

    width: min(1380px, 92%);

    margin: auto;

    padding:
        100px 0 110px;
}


.archive-heading {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    align-items: end;

    gap: 80px;

    margin-bottom: 48px;
}


.section-label {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--maroon);

    margin-bottom: 14px;
}


.section-label span {

    width: 28px;
    height: 2px;

    background: var(--gold);
}


.archive-heading h2 {

    font-family: "Playfair Display", serif;

    font-size: clamp(38px, 4vw, 56px);

    line-height: 1.1;

    color: #171419;
}


.archive-heading h2 span {
    color: var(--maroon);
}


.heading-right p {

    max-width: 650px;

    font-size: 15px;

    line-height: 1.8;

    color: var(--muted);
}


/* =====================================================
   EVENT GRID
===================================================== */

.event-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}


/* =====================================================
   EVENT CARD
===================================================== */

.event-card {

    background: white;

    border:
        1px solid var(--border);

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(40,10,10,0.04);

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


.event-card.show {

    opacity: 1;

    transform: translateY(0);
}


.event-card:hover {

    transform:
        translateY(-9px);

    box-shadow: var(--shadow-hover);

    border-color:
        rgba(122,13,22,0.22);
}


/* =====================================================
   CARD IMAGE
===================================================== */

.event-image {

    height: 230px;

    position: relative;

    overflow: hidden;
}


.event-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}


.event-card:hover .event-image img {
    transform: scale(1.08);
}


.image-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(45,3,8,0.7),
            rgba(122,13,22,0.05) 70%
        );
}


/* =====================================================
   YEAR BADGE
===================================================== */

.year-badge {

    position: absolute;

    top: 18px;
    left: 18px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 3px;

    min-width: 82px;

    padding: 11px 15px;

    background: var(--maroon);

    color: white;

    border-radius: 12px;

    border:
        1px solid rgba(255,255,255,0.3);

    box-shadow:
        0 10px 25px rgba(50,0,5,0.25);
}


.year-badge i {

    color: var(--gold-light);

    font-size: 13px;
}


.year-badge span {

    font-family: "Playfair Display", serif;

    font-size: 26px;

    line-height: 1;
}


/* =====================================================
   CARD CONTENT
===================================================== */

.event-content {

    padding: 25px 25px 24px;
}


.event-tag {

    display: inline-block;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--maroon);

    background:
        rgba(122,13,22,0.07);

    padding: 6px 9px;

    border-radius: 5px;

    margin-bottom: 12px;
}


.event-content h3 {

    font-family: "Playfair Display", serif;

    font-size: 23px;

    line-height: 1.25;

    color: #211c21;

    margin-bottom: 10px;

    transition: color 0.3s ease;
}


.event-card:hover .event-content h3 {
    color: var(--maroon);
}


.event-content p {

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;

    min-height: 65px;

    margin-bottom: 20px;
}


/* =====================================================
   EVENT ACTION
===================================================== */

.event-action {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 17px;

    border-top:
        1px solid #eee8e2;

    font-size: 13px;

    font-weight: 700;

    color: var(--maroon);
}


.arrow {

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--maroon);

    color: white;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.event-card:hover .arrow {

    transform:
        translateX(5px);

    background: var(--gold);

    color: #381008;
}


/* =====================================================
   LEGACY CTA
===================================================== */

.legacy-section {

    width: min(1380px, 92%);

    margin:
        0 auto 100px;
}


.legacy-inner {

    position: relative;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr
        auto;

    align-items: center;

    gap: 40px;

    padding: 45px 55px;

    border-radius: 24px;

    background:
        linear-gradient(
            110deg,
            #530710,
            #7A0D16
        );

    border:
        2px solid var(--gold);

    box-shadow:
        0 20px 55px rgba(60,5,10,0.16);

    color: white;
}


.legacy-inner::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    border:
        1px solid rgba(200,155,60,0.15);

    right: -180px;

    top: -250px;
}


.legacy-small {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--gold-light);

    margin-bottom: 8px;
}


.legacy-content h2 {

    font-family: "Playfair Display", serif;

    font-size: clamp(27px, 3vw, 40px);

    line-height: 1.15;
}


.legacy-content h2 span {

    display: block;

    color: var(--gold-light);
}


.legacy-quote {

    border-left:
        1px solid rgba(255,255,255,0.25);

    padding-left: 30px;
}


.legacy-quote i {

    color: var(--gold-light);

    font-size: 18px;

    margin-bottom: 8px;
}


.legacy-quote p {

    font-family: "Playfair Display", serif;

    font-size: 16px;

    line-height: 1.6;

    color: rgba(255,255,255,0.85);
}


.legacy-button {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 13px;

    white-space: nowrap;

    padding: 13px 18px 13px 22px;

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    color: #3b080d;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.16);

    transition:
        transform 0.3s ease;
}


.legacy-button span {

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.45);
}


.legacy-button:hover {
    transform: translateY(-3px);
}


/* =====================================================
   DECORATIONS
===================================================== */

.legacy-decoration {

    position: absolute;

    color: var(--gold-light);

    font-size: 30px;

    opacity: 0.8;
}


.decoration-left {

    left: 18px;
    top: 15px;
}


.decoration-right {

    right: 25px;
    bottom: 12px;
}


/* =====================================================
   LARGE DESKTOP
===================================================== */

@media (max-width: 1200px) {

    .hero-container {
        gap: 35px;
    }

    .hero-image-wrap {
        width: 410px;
        height: 390px;
    }

    .category-container {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .category {
        min-height: 65px;
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

    .archive-hero {
        min-height: auto;
    }


    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;

        padding: 70px 0 110px;
    }


    .hero-content {
        margin: auto;
    }


    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-stats {
        justify-content: center;
    }


    .hero-visual {
        min-height: 350px;
    }


    .hero-image-wrap {
        width: min(500px, 90%);
        height: 380px;
    }


    .archive-heading {

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .event-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .legacy-inner {

        grid-template-columns:
            1fr;

        text-align: center;

        gap: 25px;
    }


    .legacy-quote {

        border-left: none;

        border-top:
            1px solid rgba(255,255,255,0.25);

        padding:
            20px 0 0;
    }


    .legacy-button {
        justify-self: center;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .archive-hero {
        margin-top: 0;
    }


    .hero-container {

        width: 90%;

        padding:
            55px 0 90px;

        gap: 35px;
    }


    .mini-badge {

        font-size: 9px;

        letter-spacing: 2px;

        justify-content: center;
    }


    .hero-content h1 {

        font-size: 42px;

        letter-spacing: -1px;
    }


    .hero-content p {

        font-size: 14px;

        line-height: 1.7;
    }


    .hero-stats {

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 20px;

        text-align: left;
    }


    .hero-stat {

        padding-right: 0;

        border-right: none;
    }


    .hero-stat:last-child {

        grid-column:
            1 / -1;

        justify-content: center;
    }


    .hero-image-wrap {

        width: 100%;

        height: 320px;

        border-radius:
            25px 25px 25px 70px;
    }


    .floating-card {

        bottom: 18px;

        left: 18px;

        padding:
            11px 14px;
    }


    .category-section {

        margin-top: -30px;
    }


    .category-container {

        width: 92%;

        grid-template-columns:
            repeat(4, 1fr);

        gap: 4px;

        padding: 6px;

        border-radius: 17px;
    }


    .category {

        min-height: 62px;

        font-size: 9px;

        gap: 5px;
    }


    .category i {
        font-size: 15px;
    }


    .archive-section {

        width: 90%;

        padding:
            65px 0 75px;
    }


    .section-label {

        font-size: 9px;

        letter-spacing: 2px;
    }


    .archive-heading h2 {

        font-size: 38px;
    }


    .heading-right p {

        font-size: 13px;
    }


    .event-grid {

        grid-template-columns: 1fr;

        gap: 22px;
    }


    .event-image {
        height: 220px;
    }


    .event-content {
        padding: 22px;
    }


    .event-content h3 {
        font-size: 22px;
    }


    .event-content p {
        min-height: auto;
    }


    .legacy-section {

        width: 90%;

        margin-bottom: 70px;
    }


    .legacy-inner {

        padding:
            38px 25px;
    }


    .legacy-content h2 {

        font-size: 28px;
    }


    .legacy-quote p {

        font-size: 14px;
    }


    .legacy-decoration {
        display: none;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 36px;
    }


    .hero-stats {

        grid-template-columns: 1fr;

        text-align: center;
    }


    .hero-stat {

        justify-content: center;
    }


    .hero-stat:last-child {
        grid-column: auto;
    }


    .category-container {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .category {
        min-height: 58px;
    }


    .archive-heading h2 {
        font-size: 34px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}