/* ================================================
   EVENT ARCHIVE PAGE - TeroTAM
   Font: Montserrat | Colors: #0C1C44, #FF8214
   ================================================ */

/* ---------- Global Overrides for WP/Elementor ---------- */
.ev-archive-page,
.ev-archive-page *,
.ev-archive-page *::before,
.ev-archive-page *::after {
    box-sizing: border-box;
}
.ev-archive-page {
    font-family: 'Montserrat', sans-serif;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-block-start: 0 !important;
    width: 100%;
    overflow-x: clip;
}
.ev-archive-page section {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ---------- Container ---------- */
.ev-archive-page .ev-container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px; width: 100%;
}

/* ---------- Breadcrumbs ---------- */
.ev-breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; margin-bottom: 24px;
}
.ev-breadcrumbs a {
    color: rgba(255,255,255,0.7); text-decoration: none; transition: color .3s;
}
.ev-breadcrumbs a:hover { color: #FF8214; }
.ev-bread-sep { color: rgba(255,255,255,0.4); display: flex; }
.ev-bread-current { color: #FF8214; font-weight: 500; }

/* ================================
   HERO SECTION
   ================================ */
.ev-hero {
    background: linear-gradient(135deg, #0C1C44 0%, #142952 60%, #0C1C44 100%);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}
.ev-hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,130,20,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,130,20,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.ev-hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255,130,20,0.08);
    pointer-events: none;
}
.ev-hero .ev-container { position: relative; z-index: 2; }
.ev-hero-title {
    font-size: 42px; font-weight: 700; color: #fff !important;
    line-height: 1.2; margin: 0 0 16px 0;
}
.ev-hero-title span { color: #FF8214; }
.ev-hero-desc {
    font-size: 16px; color: rgba(255,255,255,0.75) !important;
    max-width: 680px; line-height: 1.7; margin: 0 0 0 0;
}

/* Hero Stats - Full Width */
.ev-hero-stats-wrapper {
    margin-top: 40px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    padding: 28px 30px;
    position: relative; z-index: 2;
}
.ev-hero-stats {
    display: flex; align-items: center; gap: 50px;
    max-width: 1200px; margin: 0 auto;
    justify-content: center;
}
.ev-stat {
    display: flex; align-items: center; gap: 14px;
}
.ev-stat-icon {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    background: rgba(255,130,20,0.1);
    border-radius: 0; flex-shrink: 0;
}
.ev-stat-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.ev-stat-number {
    font-size: 32px; font-weight: 700; color: #FF8214;
    line-height: 1;
}
.ev-stat-suffix { font-size: 20px; font-weight: 700; color: #FF8214; }
.ev-stat-label {
    font-size: 12px; color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 0.5px;
    width: 100%;
}
.ev-stat-divider {
    width: 1px; height: 50px; background: rgba(255,255,255,0.12);
}

/* ================================
   SEARCH SECTION
   ================================ */
.ev-search-section {
    background: #fff;
    padding: 28px 0;
    box-shadow: 0 2px 20px rgba(12,28,68,0.06);
    position: relative; z-index: 10;
}
.ev-search-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.ev-search-wrapper {
    position: relative; max-width: 400px; flex: 1;
}
.ev-search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); pointer-events: none; z-index: 2;
}
.ev-archive-page .ev-search-input {
    width: 100% !important; padding: 12px 16px 12px 46px !important;
    border: 1px solid #e2e5ea !important; border-radius: 0 !important;
    font-size: 14px !important; font-family: 'Montserrat', sans-serif;
    background: #F8F9FE !important; transition: all .3s;
    outline: none; box-sizing: border-box;
}
.ev-archive-page .ev-search-input:focus {
    border-color: #FF8214 !important; background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,130,20,0.1) !important;
}
.ev-archive-page .ev-search-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none !important; border: none !important;
    font-size: 20px; color: #999 !important; cursor: pointer;
    line-height: 1; padding: 4px;
}
.ev-results-count {
    font-size: 14px; color: #666;
}
.ev-results-count strong { color: #0C1C44; }

/* ================================
   EVENT LISTING SECTION
   ================================ */
.ev-listing-section {
    padding: 50px 0 70px;
    background: #F8F9FE;
}

/* Month Group */
.ev-month-group {
    margin-bottom: 40px;
}
.ev-month-group:last-of-type {
    margin-bottom: 0;
}
.ev-month-heading {
    display: inline-flex; align-items: center; gap: 10px;
    background: #0C1C44; color: #fff !important;
    padding: 10px 24px;
    font-size: 16px; font-weight: 600;
    margin-bottom: 24px;
    border-radius: 0;
}
.ev-month-heading svg { color: #FF8214; }

/* Events List */
.ev-events-list {
    display: flex; flex-direction: column; gap: 20px;
}

/* ---------- Event Card ---------- */
.ev-card {
    background: #fff;
    border: 1px solid #d9dfed;
    border-radius: 0;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(12,28,68,0.04);
    transition: all .4s cubic-bezier(.25,.8,.25,1);
    opacity: 0; transform: translateY(20px);
}
.ev-card.visible {
    opacity: 1; transform: translateY(0);
}
.ev-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(12,28,68,0.1);
    border-color: #FF8214;
}

/* Date Badge - Top Right */
.ev-card-date-badge {
    position: absolute;
    top: 20px; right: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d9dfed;
    border-radius: 0;
    font-size: 13px; font-weight: 500;
    color: #0C1C44;
    background: #fff;
}
.ev-card-date-badge svg {
    color: #0C1C44; flex-shrink: 0;
}

/* Card Body */
.ev-card-body {
    padding-right: 220px;
    min-width: 0;
}
.ev-card-title {
    font-size: 22px; font-weight: 700; color: #FF8214 !important;
    line-height: 1.4; margin: 0 0 14px 0;
}
.ev-card-description {
    font-size: 14px; color: #444;
    line-height: 1.75; margin: 0 0 16px 0;
}

/* Venue */
.ev-card-venue {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500;
    color: #FF8214;
    margin-bottom: 0;
}
.ev-card-venue svg {
    color: #FF8214; flex-shrink: 0;
}

/* Card Action */
.ev-card-action {
    margin-top: 24px;
}

/* ================================
   BUTTONS
   ================================ */
.ev-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 0;
    font-size: 14px; font-weight: 600; text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: all .3s; cursor: pointer; border: 2px solid transparent;
    white-space: nowrap;
}
.ev-archive-page .ev-btn-orange,
.ev-archive-page .ev-btn-orange:link,
.ev-archive-page .ev-btn-orange:visited {
    background: #FF8214 !important; color: #fff !important; border-color: #FF8214 !important;
}
.ev-archive-page .ev-btn-orange:hover {
    background: #e6720e !important; border-color: #e6720e !important; color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,130,20,0.3);
}
.ev-btn-primary {
    background: #0C1C44; color: #fff; border-color: #0C1C44;
}
.ev-btn-primary:hover {
    background: #142952; transform: translateY(-2px);
}
.ev-btn-outline {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3);
}
.ev-btn-outline:hover {
    border-color: #FF8214; color: #FF8214;
}

/* ================================
   PAGINATION
   ================================ */
.ev-pagination {
    margin-top: 50px; display: flex; justify-content: center;
}
.ev-pagination .page-numbers {
    list-style: none; display: flex; gap: 6px;
    padding: 0; margin: 0;
}
.ev-pagination .page-numbers li { display: flex; }
.ev-pagination .page-numbers a,
.ev-pagination .page-numbers span {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 6px;
    border-radius: 0; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all .3s;
    border: 1px solid #e2e5ea; color: #555;
    background: #fff;
}
.ev-pagination .page-numbers a:hover {
    border-color: #FF8214; color: #FF8214;
    background: rgba(255,130,20,0.04);
}
.ev-pagination .page-numbers .current {
    background: #0C1C44; color: #fff; border-color: #0C1C44;
}

/* ================================
   NO RESULTS
   ================================ */
.ev-no-results {
    text-align: center; padding: 80px 20px;
}
.ev-no-results-icon { margin-bottom: 20px; }
.ev-no-results h3 { font-size: 22px; color: #0C1C44; margin: 0 0 8px 0; }
.ev-no-results p { color: #666; margin: 0 0 24px 0; }

/* ================================
   CTA SECTION
   ================================ */
.ev-cta-section {
    background: linear-gradient(135deg, #0C1C44 0%, #142952 100%);
    padding: 80px 0; position: relative; overflow: hidden;
    text-align: center;
}
.ev-cta-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,130,20,0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(255,130,20,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.ev-cta-content { position: relative; z-index: 2; }
.ev-cta-title {
    font-size: 34px; font-weight: 700; color: #fff !important; margin: 0 0 14px 0;
}
.ev-cta-title span { color: #FF8214; }
.ev-cta-desc {
    font-size: 15px; color: rgba(255,255,255,0.7) !important;
    max-width: 560px; margin: 0 auto 30px; line-height: 1.7;
}
.ev-cta-buttons {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .ev-hero-title { font-size: 34px; }
    .ev-hero-stats { gap: 30px; }
    .ev-stat-number { font-size: 26px; }
}

@media (max-width: 768px) {
    .ev-hero { padding: 40px 0 0; }
    .ev-hero-title { font-size: 28px; }
    .ev-hero-desc { font-size: 14px; }
    .ev-hero-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .ev-hero-stats-wrapper { padding: 20px; }
    .ev-stat-divider { display: none; }
    .ev-search-bar { flex-direction: column; align-items: flex-start; }
    .ev-search-wrapper { max-width: 100%; width: 100%; }

    .ev-card { padding: 24px; }
    .ev-card-body { padding-right: 0; }
    .ev-card-date-badge {
        position: static;
        margin-bottom: 16px;
    }
    .ev-cta-title { font-size: 26px; }
    .ev-cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .ev-hero-stats { flex-direction: column; gap: 16px; }
    .ev-stat { width: 100%; justify-content: flex-start; }
    .ev-hero-title { font-size: 24px; }
    .ev-card { padding: 20px; }
    .ev-card-title { font-size: 18px; }
    .ev-btn { padding: 11px 20px; font-size: 13px; }
}
