
/*
Theme Name: Exceed School Child
Template: exceed-school-theme
Version: 1.0.0
Description: Custom child theme for Exceed School
*/

/* =====================================================
   EXCEED SCHOOL - EVENT PAGES
   Events Listing + Individual Event
   Brand: Purple #2E2C73 | Orange #F49A43
   Font: Poppins
===================================================== */

/* ------------------------------
   SHARED EVENT STYLES
------------------------------ */

.ex-events-page,
.exceed-single-event {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: #26334A;
}

.ex-events-page *,
.exceed-single-event * {
    box-sizing: border-box;
}

.ex-events-page img,
.exceed-single-event img {
    max-width: 100%;
}

.ex-events-container {
    width: min(1180px, 90%);
    margin-left: auto;
    margin-right: auto;
}

.ex-event-wrap {
    width: min(1280px, 92%);
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   1. EVENTS LISTING PAGE
===================================================== */

/* Hero */

.ex-events-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 20px 75px;
    text-align: center;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(120deg, #172F55, #2E2C73);
}

.ex-events-label {
    display: inline-block;
    padding: 9px 19px;
    margin-bottom: 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.13);
    color: #FFAD59;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ex-events-hero h1 {
    margin: 0 0 15px;
    color: #FFFFFF;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.15;
}

.ex-events-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.8;
}

/* Events section */

.ex-events-section {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 45px 0 65px;
}

.ex-events-heading {
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}

.ex-events-kicker,
.ex-events-heading > span {
    display: block;
    margin-bottom: 10px;
    color: #E99543;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: left;
}

.ex-events-heading h2 {
    margin: 0 0 10px;
    color: #2E2C73;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.ex-events-heading p {
    max-width: 760px;
    margin: 0;
    color: #687080;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

/* Event cards grid */

.ex-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.ex-event-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E9EDF3;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 8px 28px rgba(16,39,71,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ex-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(16,39,71,.13);
}

/* Event image */

.ex-event-image {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: #F2EFFB;
}

.ex-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.ex-event-card:hover .ex-event-image img {
    transform: scale(1.04);
}

.ex-event-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E2C73, #172F55);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Date badge */

.ex-event-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    min-width: 64px;
    flex-direction: column;
    align-items: center;
    padding: 9px 10px;
    border-radius: 11px;
    background: #FFFFFF;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.ex-event-date-badge strong {
    color: #2E2C73;
    font-size: 21px;
    line-height: 1.1;
}

.ex-event-date-badge span {
    margin-top: 4px;
    color: #ED7F2F;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Card content */

.ex-event-card-content {
    padding: 23px;
}

.ex-event-card-date {
    display: block;
    margin-bottom: 10px;
    color: #DF8736;
    font-size: 12px;
    font-weight: 700;
}

.ex-event-card-content h3 {
    margin: 0 0 12px;
    color: #102747;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
}

.ex-event-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.ex-event-card-content h3 a:hover {
    color: #ED7F2F;
}

.ex-event-description {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.ex-event-card-content p {
    margin: 8px 0;
}

.ex-event-readmore {
    display: inline-block;
    color: #2E2C73;
    font-weight: 700;
    text-decoration: none;
}

.ex-event-readmore:hover {
    color: #ED7F2F;
}

.ex-event-venue {
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

/* Card buttons */

.ex-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ex-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid #F49A43;
    border-radius: 7px;
    background: #F49A43;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease;
}

.ex-event-button:hover {
    border-color: #2E2C73;
    background: #2E2C73;
    color: #FFFFFF !important;
}

/* Empty state */

.ex-events-empty {
    padding: 45px 20px;
    border: 1px dashed #D7DCE8;
    border-radius: 16px;
    background: #FAFBFE;
    text-align: center;
    color: #667085;
}

/* =====================================================
   2. INDIVIDUAL EVENT PAGE
===================================================== */

.exceed-single-event {
    overflow: hidden;
    background: #FFFFFF;
    color: #26334A;
}

/* Hero */

.exceed-single-event .ex-event-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 420px;
    align-items: center;
    overflow: hidden;
    background-color: #2E2C73;
    background-image:
        linear-gradient(
            90deg,
            rgba(15,20,42,.94) 0%,
            rgba(22,25,55,.78) 48%,
            rgba(22,25,55,.35) 100%
        ),
        var(--event-poster);
    background-size: cover;
    background-position: center 35%;
    color: #FFFFFF;
}

.exceed-single-event .ex-event-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        0deg,
        rgba(12,15,35,.65),
        transparent 75%
    );
}

.ex-event-hero-inner {
    width: min(1280px, 92%);
    margin: 0 auto;
    padding: 65px 0 75px;
}

.ex-event-hero-copy {
    max-width: 650px;
}

/* Registration status */

.ex-event-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    margin-bottom: 18px;
    border-radius: 30px;
    background: #E8F7E9;
    color: #247A35;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ex-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: currentColor;
}

.ex-event-status.status-opening_soon {
    background: #FFF3D6;
    color: #A96A00;
}

.ex-event-status.status-closed {
    background: #FFE5E5;
    color: #C52B35;
}

.ex-event-kicker {
    display: block;
    margin-bottom: 12px;
    color: #FFAD55;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Hero title and description */

.exceed-single-event .ex-event-hero h1 {
    margin: 0 0 15px;
    color: #FFFFFF !important;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
}

.ex-event-hero-description {
    max-width: 600px;
    margin: 0 0 20px;
    color: #F1F1F7;
    font-size: 15px;
    line-height: 1.7;
}

/* Date, time and venue */

.ex-event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-bottom: 25px;
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.6;
}

/* Hero buttons */

.ex-event-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ex-event-primary-button,
.ex-event-outline-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 12px 23px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

.ex-event-primary-button {
    border-color: #ED7F2F;
    background: #ED7F2F;
    color: #FFFFFF !important;
}

.ex-event-primary-button:hover {
    border-color: #D96C20;
    background: #D96C20;
    color: #FFFFFF !important;
}

.ex-event-outline-button {
    border-color: #FFFFFF;
    background: transparent;
    color: #FFFFFF !important;
}

.ex-event-outline-button:hover {
    background: #FFFFFF;
    color: #2E2C73 !important;
}

.ex-event-status-note {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

/* Four information cards */

.ex-event-summary {
    position: relative;
    z-index: 2;
    margin-top: -22px;
}

.ex-event-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ex-event-summary-card {
    min-width: 0;
    padding: 17px 20px;
    border: 1px solid #E9E9EF;
    border-radius: 9px;
    background: #FFFFFF;
    box-shadow: 0 5px 18px rgba(20,25,60,.08);
}

.ex-event-summary-card span {
    display: block;
    margin-bottom: 6px;
    color: #ED7F2F;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.ex-event-summary-card strong {
    display: block;
    color: #182844;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ex-event-summary-card small {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-size: 11px;
    line-height: 1.5;
}

.status-text-open {
    color: #247A35 !important;
}

.status-text-opening_soon {
    color: #A96A00 !important;
}

.status-text-closed {
    color: #C52B35 !important;
}

/* Main content section */

.ex-event-content-section {
    padding: 55px 0 75px;
    background: #FFFFFF;
}

.ex-event-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    align-items: start;
    gap: 45px;
}

.ex-event-main-content {
    min-width: 0;
}

.ex-event-section-label {
    display: block;
    margin-bottom: 9px;
    color: #A13D82;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.ex-event-main-content h2 {
    margin: 0 0 18px;
    color: #172844;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.2;
}

/* Event description */

.ex-event-description {
    color: #46546A;
    font-size: 14px;
    line-height: 1.85;
}

.ex-event-description p {
    margin: 0 0 15px;
}

.ex-event-description h2,
.ex-event-description h3,
.ex-event-description h4 {
    margin-top: 22px;
    margin-bottom: 10px;
    color: #172844;
}

.ex-event-description ul,
.ex-event-description ol {
    margin-bottom: 18px;
    padding-left: 22px;
}

/* Sidebar */

.ex-event-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.ex-event-important-card {
    padding: 18px 20px;
    border-left: 4px solid #ED5262;
    border-radius: 7px;
    background: #FFF5F6;
}

.ex-event-important-card .ex-event-section-label {
    color: #D83E50;
}

.ex-event-important-card p {
    margin: 0;
    color: #46546A;
    font-size: 13px;
    line-height: 1.7;
}

.ex-event-contact-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 8px;
    background: #191919;
    color: #FFFFFF;
}

.ex-event-contact-card span {
    margin-bottom: 4px;
    color: #FFAD55;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.ex-event-contact-card strong,
.ex-event-contact-card a {
    color: #FFFFFF !important;
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ex-event-contact-card a:hover {
    text-decoration: underline;
}

/* Event information card */

.ex-event-info-card {
    padding: 22px;
    border: 1px solid #E7E6F2;
    border-radius: 10px;
    background: #F7F7FC;
}

.ex-event-info-card h3 {
    margin: 0 0 18px;
    color: #2E2C73;
    font-size: 19px;
}

.ex-event-info-card p {
    margin: 0 0 15px;
    color: #46546A;
    font-size: 13px;
    line-height: 1.7;
}

.ex-event-info-card p strong {
    display: block;
    margin-bottom: 3px;
    color: #2E2C73;
}

.ex-event-sidebar-button {
    display: flex;
    width: 100%;
    margin-top: 18px;
}

/* Registration area */

.ex-event-bottom-register {
    margin-top: 35px;
    padding: 25px;
    border-radius: 10px;
    background: #F5F5FB;
    text-align: center;
}

.ex-event-bottom-register h3 {
    margin: 0 0 8px;
    color: #172844;
    font-size: 23px;
}

.ex-event-bottom-register p {
    margin: 0 0 15px;
    color: #64748B;
    font-size: 14px;
    line-height: 1.7;
}

.ex-event-bottom-register .ex-event-primary-button {
    margin-top: 8px;
}

/* =====================================================
   3. TABLET RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .ex-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ex-event-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ex-event-content-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ex-event-sidebar {
        order: 2;
    }

    .exceed-single-event .ex-event-hero {
        min-height: 380px;
    }

}

/* =====================================================
   4. MOBILE RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    /* Events listing */

    .ex-events-hero {
        padding: 60px 18px;
    }

    .ex-events-hero h1 {
        font-size: 34px;
    }

    .ex-events-hero p {
        font-size: 14px;
    }

    .ex-events-container,
    .ex-event-wrap {
        width: 90%;
    }

    .ex-events-section {
        padding: 35px 0 45px;
    }

    .ex-events-heading {
        margin-bottom: 22px;
        text-align: left;
    }

    .ex-events-heading h2 {
        font-size: 27px;
        text-align: left;
    }

    .ex-events-heading p {
        font-size: 14px;
        text-align: left;
    }

    .ex-events-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ex-event-image {
        height: 230px;
    }

    .ex-event-card-content {
        padding: 20px;
    }

    .ex-event-card-content h3 {
        font-size: 19px;
    }

    /* Individual event hero */

    .exceed-single-event .ex-event-hero {
        min-height: 0;
        background-position: center center;
    }

    .ex-event-hero-inner {
        padding: 48px 0 55px;
    }

    .ex-event-hero-copy {
        max-width: 100%;
    }

    .ex-event-status {
        padding: 6px 10px;
        margin-bottom: 14px;
        font-size: 10px;
    }

    .ex-event-kicker {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .exceed-single-event .ex-event-hero h1 {
        font-size: 30px;
        line-height: 1.18;
    }

    .ex-event-hero-description {
        font-size: 13px;
        line-height: 1.65;
    }

    .ex-event-hero-meta {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .ex-event-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ex-event-primary-button,
    .ex-event-outline-button {
        width: 100%;
        min-height: 46px;
    }

    /* Summary cards */

    .ex-event-summary {
        margin-top: 18px;
    }

    .ex-event-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .ex-event-summary-card {
        padding: 13px;
    }

    .ex-event-summary-card strong {
        font-size: 12px;
    }

    .ex-event-summary-card small {
        font-size: 10px;
    }

    /* Main content */

    .ex-event-content-section {
        padding: 35px 0 45px;
    }

    .ex-event-content-grid {
        gap: 25px;
    }

    .ex-event-main-content h2 {
        font-size: 25px;
    }

    .ex-event-description {
        font-size: 13px;
        line-height: 1.8;
    }

    /* Sidebar and registration */

    .ex-event-important-card,
    .ex-event-contact-card,
    .ex-event-info-card {
        padding: 17px;
    }

    .ex-event-bottom-register {
        padding: 20px 15px;
        margin-top: 28px;
    }

    .ex-event-bottom-register h3 {
        font-size: 20px;
    }

}

/* =====================================================
   5. SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .ex-event-summary-grid {
        grid-template-columns: 1fr;
    }

    .exceed-single-event .ex-event-hero h1 {
        font-size: 27px;
    }

    .ex-events-heading h2 {
        font-size: 25px;
    }

}
/* Event card registration status */
.exceed-event-card {
    position: relative;
}

.exceed-event-card-status {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.exceed-event-card-status.status-open {
    color: #16803d;
    background: #e7f8ec;
}

.exceed-event-card-status.status-opening_soon {
    color: #a86500;
    background: #fff3d6;
}

.exceed-event-card-status.status-closed {
    color: #b42318;
    background: #fde8e7;
}

/* FULL WIDTH EVENT STATUS STRIP */

.ex-event-card {
    position: relative;
    overflow: hidden;
}

.ex-event-card-status {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 5 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px 12px !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

/* GREEN - OPEN */
.ex-event-card-status.status-open {
    color: #166534 !important;
    background: #dcfce7 !important;
}

/* YELLOW - OPENING SOON */
.ex-event-card-status.status-opening_soon {
    color: #92400e !important;
    background: #fef3c7 !important;
}

/* RED - CLOSED */
.ex-event-card-status.status-closed {
    color: #991b1b !important;
    background: #fee2e2 !important;
}
