/* =========================================
   EVENTS SECTION
========================================= */

.events {
    position: relative;
    padding: 50px 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(13, 110, 253, 0.18),
            transparent 38%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(25, 135, 84, 0.18),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #eef4f3,
            #e4ece9,
            #edf1f7
        );

    overflow: hidden;
}


/* =========================================
   SECTION HEADER
========================================= */

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;

    margin-bottom: 70px;
}


.events-header h2 {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 800;

    line-height: 1.05;

    color: #1f2937;

    max-width: 700px;

    margin-top: 20px;
}


.events-header h2 span {
    display: block;

    background: linear-gradient(
        90deg,
        #ffc107,
        #ffe29a
    );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


.events-header p {
    max-width: 520px;

    font-size: 1.1rem;

    line-height: 1.8;

    color: #64748b;

    margin-bottom: 5px;
}


/* =========================================
   EVENTS GRID
========================================= */

.events-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr;

    gap: 30px;

    align-items: stretch;
}


/* =========================================
   EVENT CARD
========================================= */

.event-card {
    position: relative;

    min-height: 520px;

    padding: 35px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border-radius: 28px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.75);

    border: 1px solid rgba(255, 255, 255, 0.6);

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.12);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


.event-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.2);
}

/* ===============================
   STANDARD EVENT CARD IMAGES
================================ */

.event-card:not(.featured-event) img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}


/* =========================================
   FEATURED EVENT
========================================= */

.featured-event {
    color: #fff;

    background: #111827;
}


.featured-event img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}


.featured-event:hover img {
    transform: scale(1.08);
}


/* IMAGE OVERLAY */

.event-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8, 15, 25, 0.95),
            rgba(8, 15, 25, 0.5),
            rgba(8, 15, 25, 0.1)
        );
}


/* =========================================
   EVENT DATE
========================================= */

.event-date {
    position: absolute;

    top: 25px;
    right: 25px;

    width: 70px;
    height: 78px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ffb703
        );

    color: #1f2937;

    font-weight: 800;

    z-index: 2;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);
}


.event-date span {
    font-size: 1.8rem;

    line-height: 1;
}


.event-date small {
    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 1px;

    margin-top: 5px;
}


/* =========================================
   EVENT CONTENT
========================================= */

.event-content {
    position: relative;

    z-index: 2;
}


.event-category {
    display: inline-block;

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #ffc107;

    margin-bottom: 15px;
}


.event-content h3 {
    font-size: 1.65rem;

    font-weight: 800;

    line-height: 1.25;

    margin-bottom: 18px;

    color: #1f2937;
}


.featured-event .event-content h3 {
    color: #fff;
}


.event-content p {
    font-size: 1rem;

    line-height: 1.7;

    color: #64748b;

    margin-bottom: 25px;
}


.featured-event .event-content p {
    color: rgba(255, 255, 255, 0.75);
}


/* =========================================
   EVENT META
========================================= */

.event-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 28px;

    font-size: 0.85rem;

    color: #64748b;
}


.event-meta span {
    display: flex;

    align-items: center;

    gap: 8px;
}


.event-meta i {
    color: #198754;
}


.featured-event .event-meta {
    color: rgba(255, 255, 255, 0.7);
}


.featured-event .event-meta i {
    color: #ffc107;
}


/* =========================================
   EVENT LINK
========================================= */

.event-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    font-weight: 700;

    color: #0d6efd;

    text-decoration: none;

    transition: gap 0.3s ease;
}


.event-link:hover {
    gap: 16px;

    color: #0d6efd;
}


.featured-event .event-link {
    color: #ffc107;
}


/* =========================================
   EVENTS FOOTER
========================================= */

.events-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    margin-top: 70px;

    padding-top: 35px;

    border-top:
        1px solid rgba(15, 23, 42, 0.1);
}


.events-footer p {
    margin: 0;

    font-size: 1rem;

    color: #64748b;
}


.events-btn {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 15px 28px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #198754
        );

    color: #fff;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.events-btn:hover {
    transform: translateY(-3px);

    color: #fff;

    box-shadow:
        0 15px 30px rgba(13, 110, 253, 0.25);
}