/* ==========================================================================
   OVBRYJOD EDUCATION HUB LIMITED — EVENTS & CONFERENCES STYLESHEET
   File: css/events.css
   ========================================================================== */

/* Global container & document overflow guards */
.events-container,
.events-page-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

/* ==========================================================================
   HERO SECTION (#events-hero)
   ========================================================================== */
#events-hero {
    width: 100%;
    background: linear-gradient(135deg, #0d1b33 0%, #1a2b4a 55%, #1d4ed8 100%);
    padding: 72px 0 84px 0;
    position: relative;
    overflow: hidden;
}

#events-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.22) 0%, rgba(230, 126, 34, 0) 70%);
    pointer-events: none;
}

#events-hero::before {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

#events-hero-inner {
    width: 90%;
    max-width: 1240px;
    margin: auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 52px;
    box-sizing: border-box;
}

#events-hero-text {
    flex: 1.2;
    min-width: 0;
}

#events-hero-text h1 {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

#events-hero-text h1 span {
    color: #e67e22;
    background: linear-gradient(135deg, #f39c12 0%, #ffbe76 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.events-hero-motto {
    font-size: 17px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

#events-hero-text p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 620px;
}

.events-hero-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.events-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 16px;
    border-radius: 9999px;
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.events-trust-item svg {
    stroke: #ffbe76;
    flex-shrink: 0;
}

/* Hero Spotlight Card (Right Column) */
#events-hero-spotlight {
    flex: 0.95;
    min-width: 330px;
    position: relative;
    box-sizing: border-box;
}

.spotlight-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-4px);
}

.spotlight-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0b2d4e;
}

.spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e67e22;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spotlight-body {
    padding: 22px 24px;
}

.spotlight-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.spotlight-title {
    font-size: 18px;
    font-weight: 800;
    color: #0b2d4e;
    line-height: 1.35;
    margin-bottom: 10px;
}

.spotlight-venue {
    font-size: 13px;
    color: #475569;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Countdown bar inside spotlight */
.spotlight-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.countdown-num {
    font-size: 16px;
    font-weight: 800;
    color: #0b2d4e;
    line-height: 1;
}

.countdown-lbl {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.countdown-sep {
    font-size: 14px;
    font-weight: 800;
    color: #cbd5e1;
}

.spotlight-btn {
    width: 100%;
    padding: 12px 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.spotlight-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.45);
    color: #ffffff;
}

/* ==========================================================================
   CATEGORY & FILTER PILL BAR
   ========================================================================== */
.events-filter-bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(11, 45, 78, 0.03);
}

.events-filter-inner {
    width: 90%;
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.events-pills-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.events-pills-wrap::-webkit-scrollbar {
    display: none;
}

.event-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.event-pill-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.event-pill-btn:hover {
    background: #f1f5f9;
    color: #0b2d4e;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.event-pill-btn.active {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

.event-pill-btn.active svg {
    stroke: #ffffff;
}

.events-count-badge {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.events-count-badge strong {
    color: #0b2d4e;
}

/* ==========================================================================
   MAIN EVENTS SECTION & GRID
   ========================================================================== */
.events-main-section {
    width: 90%;
    max-width: 1240px;
    margin: 40px auto 70px;
    box-sizing: border-box;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    box-sizing: border-box;
}

/* Event Card */
.event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(11, 45, 78, 0.05);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 45, 78, 0.12);
    border-color: rgba(230, 126, 34, 0.4);
}

.event-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0b2d4e;
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.event-card:hover .event-card-img {
    transform: scale(1.05);
}

/* Calendar Date Badge overlaid on top left */
.event-date-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 12px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 2;
    min-width: 50px;
}

.date-chip-day {
    font-size: 18px;
    font-weight: 900;
    color: #e67e22;
    line-height: 1;
}

.date-chip-month {
    font-size: 10.5px;
    font-weight: 800;
    color: #0b2d4e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Category Pill */
.event-category-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(11, 45, 78, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

.event-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #0b2d4e;
    line-height: 1.35;
    margin-bottom: 10px;
}

.event-card-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

/* Key Details Row: Venue, CPD, Price */
.event-details-bar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12.5px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 500;
}

.detail-row svg {
    stroke: #e67e22;
    flex-shrink: 0;
}

.detail-row.cpd-row {
    color: #047857;
    font-weight: 700;
}

.detail-row.cpd-row svg {
    stroke: #059669;
}

/* Card Footer: Price & CTA */
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.event-price-box {
    display: flex;
    flex-direction: column;
}

.event-price-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.event-price-value {
    font-size: 18px;
    font-weight: 800;
    color: #0b2d4e;
}

.event-price-free {
    color: #059669;
}

.btn-register-event {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-register-event:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.42);
}

/* ==========================================================================
   SPEAKER & FACULTY SPOTLIGHT
   ========================================================================== */
.faculty-section {
    width: 100%;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 64px 0 72px;
}

.faculty-inner {
    width: 90%;
    max-width: 1240px;
    margin: auto;
    box-sizing: border-box;
}

.faculty-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.faculty-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0b2d4e;
    margin-bottom: 12px;
}

.faculty-header p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.faculty-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(11, 45, 78, 0.04);
    transition: all 0.25s ease;
}

.faculty-card:hover {
    transform: translateY(-4px);
    border-color: #f39c12;
    box-shadow: 0 10px 24px rgba(11, 45, 78, 0.08);
}

.faculty-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid rgba(230, 126, 34, 0.3);
}

.faculty-name {
    font-size: 16px;
    font-weight: 800;
    color: #0b2d4e;
    margin-bottom: 4px;
}

.faculty-role {
    font-size: 12.5px;
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 6px;
}

.faculty-institution {
    font-size: 12px;
    color: #64748b;
}

/* ==========================================================================
   EVENT REGISTRATION MODAL (#eventRegisterModal)
   ========================================================================== */
.event-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 29, 51, 0.65);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.event-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.event-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-modal-backdrop.show .event-modal-card {
    transform: translateY(0);
}

.event-modal-header {
    background: linear-gradient(135deg, #0b2d4e 0%, #163b61 100%);
    color: #ffffff;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.btn-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.event-modal-body {
    padding: 26px;
}

.modal-event-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.modal-event-title {
    font-size: 15px;
    font-weight: 800;
    color: #0b2d4e;
    margin-bottom: 4px;
}

.modal-event-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.attendance-options {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.attendance-option-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.attendance-option-item:hover,
.attendance-option-item.selected {
    border-color: #e67e22;
    background: rgba(230, 126, 34, 0.08);
    color: #d35400;
}

.btn-submit-registration {
    width: 100%;
    padding: 13px 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
    transition: all 0.25s ease;
    margin-top: 10px;
}

.btn-submit-registration:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.45);
}

/* Instant Registration Ticket Confirmation */
.registration-success-card {
    text-align: center;
    padding: 20px 10px;
}

.success-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.ticket-pass {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    margin: 20px 0;
}

.ticket-pass h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0b2d4e;
    margin-bottom: 6px;
}

.ticket-pass p {
    font-size: 12.5px;
    color: #64748b;
    margin: 3px 0;
}

.ticket-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: #e67e22;
    background: #fff3e6;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    #events-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    #events-hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .events-hero-trust-row,
    .about-hero-btns {
        justify-content: center;
    }
    #events-hero-spotlight {
        width: 100%;
        max-width: 480px;
    }
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    #events-hero {
        padding: 50px 0 60px 0;
    }
    #events-hero-text h1 {
        font-size: 30px;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .attendance-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #events-hero-text h1 {
        font-size: 26px;
    }
    .events-hero-trust-row {
        gap: 8px;
    }
    .events-trust-item {
        font-size: 11.5px;
        padding: 5px 12px;
    }
}
