﻿/* =====================================================
   EVENTS MODULE - ENTERPRISE DESIGN
   PoliticalLeaderPortal
===================================================== */

/* =====================================================
   COMMON SECTION STYLING
===================================================== */

.section-subtitle {
    color: #800000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    color: #111827;
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 15px;
}

.section-description {
    color: #6b7280;
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
}


.event-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
/* =====================================================
   HOMEPAGE EVENTS SECTION
===================================================== */

.upcoming-events-section {
    padding: 90px 0;
    background: #f8fafc;
}

.featured-event-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: all .35s ease;
    height: 100%;
}

    .featured-event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 55px rgba(0,0,0,.12);
    }

.event-banner {
    position: relative;
}

    .event-banner img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

.event-date-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 75px;
    height: 85px;
    background: #800000;
    color: #ffffff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(128,0,0,.25);
}

    .event-date-badge .day {
        display: block;
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
        margin-top: 16px;
    }

    .event-date-badge .month {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
        margin-top: 6px;
    }

.event-content {
    padding: 30px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

    .event-meta span {
        color: #800000;
        font-size: 14px;
        font-weight: 600;
    }

    .event-meta i {
        margin-right: 6px;
    }

.event-content h3 {
    font-size: 1.8rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
}

.event-content p {
    color: #6b7280;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 20px;
}

.btn-register-event {
    display: inline-block;
    background: #800000;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: all .3s ease;
}

    .btn-register-event:hover {
        background: #5f0000;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* =====================================================
   SIDE EVENTS
===================================================== */

.mini-event-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: all .3s ease;
}

    .mini-event-card:hover {
        transform: translateX(8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.10);
    }

.mini-date {
    width: 70px;
    min-width: 70px;
    height: 80px;
    background: #800000;
    color: #ffffff;
    border-radius: 14px;
    text-align: center;
    padding-top: 10px;
}

    .mini-date span {
        display: block;
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
    }

.mini-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mini-event-content h5 {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
}

.mini-event-content p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.btn-view-events {
    display: inline-block;
    background: #800000;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 10px;
    font-weight: 700;
    transition: all .3s ease;
}

    .btn-view-events:hover {
        background: #5f0000;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* =====================================================
   EVENTS LISTING PAGE
===================================================== */

.events-page {
    background: #f8fafc;
    padding: 80px 0;
}

.events-subtitle {
    color: #800000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.events-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
}

.events-description {
    color: #6b7280;
    max-width: 800px;
    margin: auto;
}

.event-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: all .35s ease;
    height: 100%;
}

    .event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 45px rgba(0,0,0,.12);
    }

.event-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.event-card .event-content {
    padding: 25px;
}

.event-title {
    font-size: 1.3rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.5;
    margin: 15px 0;
}

.event-short-desc {
    color: #6b7280;
    line-height: 1.8;
    text-align: justify;
}

.btn-event-readmore {
    display: inline-block;
    margin-top: 12px;
    background: #800000;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}

    .btn-event-readmore:hover {
        background: #5f0000;
        color: #ffffff;
    }

/* =====================================================
   EVENT DETAILS PAGE
===================================================== */

.event-details-page {
    background: #f8fafc;
    padding: 60px 0;
}

.event-details-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.event-main-image {
    background: #f3f4f6;
    text-align: center;
}

    .event-main-image img {
        width: 100%;
        max-height: 650px;
        height: auto;
        object-fit: contain;
        display: block;
    }

.event-details-content {
    padding: 35px;
}

.event-meta-item {
    display: inline-block;
    margin-right: 20px;
    color: #800000;
    font-weight: 600;
    font-size: 14px;
}

.event-main-title {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
}

.event-summary-box {
    background: linear-gradient( 135deg, #fff7ed, #ffffff );
    border-left: 5px solid #ff6b00;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(255,107,0,.08);
}

.event-article-body {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
}

    .event-article-body p {
        margin-bottom: 14px;
    }

    .event-article-body img {
        max-width: 100%;
        border-radius: 10px;
        margin: 20px 0;
    }

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .event-banner img,
    .event-main-image img {
        height: 320px;
    }

    .section-title,
    .events-title,
    .event-main-title {
        font-size: 2rem;
    }

    .featured-event-card {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {

    .upcoming-events-section,
    .events-page,
    .event-details-page {
        padding: 50px 0;
    }

    .section-title,
    .events-title {
        font-size: 1.8rem;
    }

    .event-main-title {
        font-size: 1.6rem;
    }

    .event-banner img,
    .event-main-image img {
        height: 240px;
    }

    .event-content,
    .event-details-content {
        padding: 28px;
    }

    .event-meta {
        gap: 10px;
        flex-direction: column;
    }

    .mini-event-card {
        padding: 15px;
    }

    .mini-date {
        width: 60px;
        min-width: 60px;
        height: 70px;
    }

        .mini-date span {
            font-size: 20px;
        }

    .event-article-body {
        font-size: 15px;
    }

    .event-meta-item {
        display: block;
        margin-bottom: 8px;
    }
}
/* =========================================
   PREMIUM EVENT OVERLAY
========================================= */

.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.55), rgba(0,0,0,.05) );
}

.event-status-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 2;
    background: #16a34a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.event-action-area {
    margin-top: 25px;
}

.mini-badge {
    display: inline-block;
    background: rgba(128,0,0,.08);
    color: #800000;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 30px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

/* =========================================
   BETTER HOMEPAGE EVENT CONTENT
========================================= */

.featured-event-card .event-content h3 {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.featured-event-card .event-content p {
    margin-bottom: 0;
    color: #64748b;
}

.mini-event-content {
    flex: 1;
}

    .mini-event-content h5 {
        margin-bottom: 6px;
    }

    .mini-event-content p {
        margin-bottom: 0;
        color: #64748b;
    }

    .mini-event-content i {
        color: #800000;
        margin-right: 5px;
    }

/* =========================================
   MOBILE
========================================= */

@media (max-width:767px) {

    .event-status-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 10px;
    }
    .event-content,
    .event-details-content {
        padding: 22px;
    }
    .featured-event-card .event-content h3 {
        font-size: 1.5rem;
    }
}
