/* =========================================================
   PRIMEX CNC — EVENTS PAGE
   Alternative Editorial / Exhibition Layout
========================================================= */

.events-page {
    background: #ffffff;
    color: #222334;
    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.events-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            115deg,
            #131d3b 0%,
            #182548 58%,
            #10182f 100%
        );
    overflow: hidden;
}

.events-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -190px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
}

.events-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: 20px;
    bottom: -220px;
    border: 1px solid rgba(220,35,45,0.25);
    border-radius: 50%;
}

.events-hero-wrap {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    padding: 90px 0;
}

.events-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.events-eyebrow span {
    width: 42px;
    height: 2px;
    display: inline-block;
    background: #990000;
}

.events-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 7vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -3px;
}

.events-hero h1 em {
    color: #990000;
    font-style: normal;
}

.events-hero p {
    max-width: 650px;
    margin: 35px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   INTRO
========================================================= */

.events-intro {
    padding: 115px 0 85px;
    background: #ffffff;
}

.events-intro-wrap {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 90px;
    align-items: end;
}

.events-section-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #990000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.events-section-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #990000;
}

.events-intro h2 {
    max-width: 650px;
    margin: 0;
    color: #222334;
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2px;
}

.events-intro-wrap > p {
    margin: 0;
    color: #666d81;
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   GALLERY
========================================================= */

.events-gallery {
    padding: 20px 0 120px;
    background: #f5f6f8;
}

.events-grid {
    width: min(1280px, calc(100% - 60px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}


/* Base card */

.event-card {
    position: relative;
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    background: #131d3b;
}

.event-card img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.event-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(10,16,34,0.92) 0%,
            rgba(10,16,34,0.30) 48%,
            rgba(10,16,34,0.03) 75%
        );

    z-index: 1;
}

.event-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.88);
}


/* =========================================================
   ASYMMETRIC CARD STRUCTURE
========================================================= */

/* 1 */
.event-card:nth-child(1) {
    grid-column: span 7;
    min-height: 570px;
}

.event-card:nth-child(1) img {
    min-height: 570px;
}

/* 2 */
.event-card:nth-child(2) {
    grid-column: span 5;
}

/* 3 */
.event-card:nth-child(3) {
    grid-column: span 5;
}

/* 4 */
.event-card:nth-child(4) {
    grid-column: span 7;
    min-height: 520px;
}

.event-card:nth-child(4) img {
    min-height: 520px;
}

/* 5 */
.event-card:nth-child(5) {
    grid-column: span 4;
}

/* 6 */
.event-card:nth-child(6) {
    grid-column: span 4;
}

/* 7 */
.event-card:nth-child(7) {
    grid-column: span 4;
}

/* 8 */
.event-card:nth-child(8) {
    grid-column: span 7;
    min-height: 540px;
}

.event-card:nth-child(8) img {
    min-height: 540px;
}

/* 9 */
.event-card:nth-child(9) {
    grid-column: span 5;
}

/* 10 */
.event-card:nth-child(10) {
    grid-column: span 5;
}

/* 11 */
.event-card:nth-child(11) {
    grid-column: span 7;
    min-height: 500px;
}

.event-card:nth-child(11) img {
    min-height: 500px;
}

/* 12 */
.event-card:nth-child(12) {
    grid-column: span 12;
    min-height: 430px;
}

.event-card:nth-child(12) img {
    min-height: 430px;
}


/* =========================================================
   CARD CAPTION
========================================================= */

.event-caption {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 30px;
    z-index: 3;
}

.event-caption small {
    display: block;
    margin-bottom: 9px;
    color: #e52b39;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.event-caption h3 {
    max-width: 600px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 2.4vw, 32px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.events-bottom {
    padding: 100px 0;
    background: #222334;
    margin-bottom: 40px;
}

.events-bottom-wrap {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.events-bottom h2 {
    max-width: 650px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.events-bottom p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,0.66);
    font-size: 15px;
    line-height: 1.8;
}

.events-contact-btn {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-width: 185px;
    padding: 17px 25px;

    color: #ffffff;
    background: #990000;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-decoration: none;
    border-radius: 4px;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.events-contact-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.events-contact-btn:hover {
    background: #c40000;
    
}

.events-contact-btn:hover i {
    transform: translateX(5px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .events-hero {
        min-height: 540px;
    }

    .events-hero-wrap {
        width: min(100% - 50px, 700px);
    }

    .events-intro-wrap {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .events-grid {
        width: min(100% - 40px, 700px);
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card,
    .event-card:nth-child(n) {
        grid-column: span 1;
        min-height: 390px;
    }

    .event-card img,
    .event-card:nth-child(n) img {
        min-height: 390px;
    }

    .event-card:nth-child(1),
    .event-card:nth-child(4),
    .event-card:nth-child(8),
    .event-card:nth-child(11),
    .event-card:nth-child(12) {
        grid-column: span 2;
    }

    .events-bottom-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .events-hero {
        min-height: 560px;
    }

    .events-hero-wrap {
        width: calc(100% - 40px);
        padding: 70px 0;
    }

    .events-eyebrow {
        font-size: 10px;
        letter-spacing: 1.8px;
    }

    .events-eyebrow span {
        width: 28px;
    }

    .events-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
        line-height: 1;
        letter-spacing: -2px;
    }

    .events-hero p {
        margin-top: 27px;
        font-size: 14px;
        line-height: 1.75;
    }


    /* Intro */

    .events-intro {
        padding: 75px 0 55px;
    }

    .events-intro-wrap {
        width: calc(100% - 40px);
        gap: 28px;
    }

    .events-section-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .events-intro h2 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .events-intro-wrap > p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* Gallery */

    .events-gallery {
        padding: 10px 0 75px;
    }

    .events-grid {
        width: calc(100% - 24px);
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-card,
    .event-card:nth-child(n),
    .event-card:nth-child(1),
    .event-card:nth-child(4),
    .event-card:nth-child(8),
    .event-card:nth-child(11),
    .event-card:nth-child(12) {
        grid-column: span 1;
        min-height: 390px;
    }

    .event-card img,
    .event-card:nth-child(n) img {
        min-height: 390px;
    }

    .event-caption {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .event-caption small {
        font-size: 9px;
        margin-bottom: 7px;
    }

    .event-caption h3 {
        font-size: 23px;
        line-height: 1.15;
    }


    /* CTA */

    .events-bottom {
        padding: 70px 0;
    }

    .events-bottom-wrap {
        width: calc(100% - 40px);
        gap: 30px;
    }

    .events-bottom h2 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .events-bottom p {
        font-size: 14px;
        line-height: 1.75;
    }

    .events-contact-btn {
        width: 100%;
    }

}


