@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Figtree", sans-serif;
}

.container {
    width: 100%;
    max-width: 1365px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================
   SECTION HEADER
========================= */

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
}

.section-subtitle {
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #39a7a1;
    margin-bottom: 10px;
}

.section-title {
    font-size: 46px;
    line-height: 1.05;
    font-weight: 800;
    color: #202833;
    letter-spacing: -1.2px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0a5b7f;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 24px;
    text-decoration: none;
    transition: 0.25s ease;
}

.view-all:hover {
    opacity: 0.8;
}

.view-all span {
    font-size: 24px;
    line-height: 1;
}

/* =========================
   EVENTS GRID
========================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-bottom: 25px;
    align-items: start;
}

.event-card {
    background: #ffffff;
    border: 1px solid #edf1f4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.02), 0 2px 10px rgba(16, 24, 40, 0.04);
    display: flex;
    flex-direction: column;
    height: auto;
}

.event-image {
    width: 100%;
    height: 148px;
    object-fit: cover;
    display: block;
}

.event-body {
    padding: 16px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.event-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.event-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #2b3138;
    max-width: 220px;
}

.event-badge {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 2px;
}

.badge-urgent {
    color: #a86447;
    background: #f9dfd5;
}

.badge-premium {
    color: #0d8f88;
    background: #c7f4e9;
}

.badge-exclusive {
    color: #5d88a7;
    background: #d7ecf9;
}

.event-meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
}

.event-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #848d98;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.event-meta svg {
    width: 14px;
    height: 14px;
    fill: #8f98a3;
    flex-shrink: 0;
}

.event-footer {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #eef2f5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.pay-label {
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #9aa3ad;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pay-amount {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    color: #0c5a80;
    letter-spacing: -0.4px;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #05846f;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    padding: 0 18px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: 0.25s ease;
}

.apply-btn:hover {
    background: #046f5e;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.event-card-description {
    min-height: 44px;
    margin: 0 0 12px;
    color: #7b8ea0;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}

/* =========================
   ALL EVENTS PAGE
========================= */

.events-page {
    padding: 44px 0 58px;
    background: #ffffff;
}

.events-page-header {
    margin-bottom: 24px;
}

.events-page-header p {
    margin: 8px 0 0;
    max-width: 620px;
    color: #7b8ea0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
}

.featured-events-slider {
    position: relative;
    min-height: 430px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid #edf1f4;
    border-radius: 18px;
    background: #f4f6f8;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.featured-event-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 42px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.featured-event-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.featured-event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 28, 43, 0.76), rgba(3, 28, 43, 0.24));
}

.featured-event-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    color: #ffffff;
}

.featured-event-content h2 {
    margin: 14px 0 14px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.9);
}

.featured-slider-dots {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.featured-slider-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.featured-slider-dots button.is-active {
    width: 26px;
    border-radius: 999px;
    background: #ffffff;
}

.events-list-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid #edf1f4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.events-list-toolbar .filter-field {
    flex: 1;
    border: 1px solid #edf1f4;
    border-radius: 12px;
}

.events-skeleton {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.events-skeleton span {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f1f5f9, #e6edf4, #f1f5f9);
    background-size: 200% 100%;
    animation: eventSkeleton 1.2s linear infinite;
}

body.is-loading-events .events-skeleton {
    display: grid;
}

@keyframes eventSkeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.events-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.page-control,
.page-number {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    background: #ffffff;
    color: #0b5678;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    padding: 0 14px;
    transition: 0.25s ease;
}

.page-control:hover,
.page-number:hover,
.page-number.is-active {
    background: #05846f;
    border-color: #05846f;
    color: #ffffff;
}

.page-control.is-disabled {
    color: #a8b2bd;
    background: #f4f6f8;
    cursor: not-allowed;
}

/* =========================
   HERO / FILTER SECTION
========================= */

.filterWithBackground {
    position: relative;
    min-height: 100vh;
    background: url('../images/OnlyEvents BG.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.filterWithBackground .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 30, 0.35) 0%,
        rgba(10, 20, 30, 0.45) 35%,
        rgba(245, 247, 250, 0.88) 100%
    );
    z-index: 1;
}

.filter-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    text-align: center;
    margin-top: -40px;
}

.filter-content h1 {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.filter-content h1 span {
    display: block;
    color: #63f3e8;
}

.filter-content p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 22px;
    line-height: 1.5;
    color: #e9eef2;
    font-weight: 400;
}

.filter-box {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.filter-field {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 62px;
    background: #ffffff;
}

.location-field {
    flex: 1.4;
    border-right: 1px solid #e6e6e6;
}

.date-field {
    flex: 1;
    border-right: 1px solid #e6e6e6;
}

.filter-field .icon {
    font-size: 18px;
    margin-right: 10px;
    color: #7b7b7b;
    flex-shrink: 0;
}

.filter-field input,
.filter-field select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #2b2b2b;
    font-weight: 500;
}

.filter-field input::placeholder {
    color: #9a9a9a;
}

.filter-field select {
    appearance: none;
    cursor: pointer;
    color: #4a4a4a;
}

.find-btn {
    min-width: 190px;
    height: 62px;
    border: none;
    border-radius: 10px;
    background: #006d67;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.find-btn:hover {
    background: #00534f;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .section-title {
        font-size: 38px;
    }

    .view-all {
        font-size: 16px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-event-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .filter-content h1 {
        font-size: 54px;
    }

    .filter-content p {
        max-width: 620px;
        font-size: 18px;
    }

    .filter-box {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .location-field,
    .date-field {
        flex: 1 1 100%;
        border-right: none;
        border: 1px solid #ececec;
        border-radius: 10px;
    }

    .find-btn {
        width: 100%;
        border-radius: 10px;
    }

    .featured-events-slider {
        min-height: 360px;
    }

    .featured-event-slide {
        padding: 28px;
    }

    .events-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .events-list-toolbar .filter-field {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .events-section {
        padding: 22px 14px 30px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .section-title {
        font-size: 32px;
    }

    .view-all {
        margin-top: 0;
        font-size: 15px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .events-page {
        padding: 28px 0 42px;
    }

    .events-page-header {
        margin-bottom: 18px;
    }

    .featured-events-slider {
        min-height: 310px;
        border-radius: 14px;
    }

    .featured-event-slide {
        padding: 22px;
    }

    .featured-event-content h2 {
        font-size: 28px;
    }

    .featured-slider-dots {
        right: 20px;
        bottom: 18px;
    }

    .events-skeleton {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 170px;
    }

    .event-body {
        padding: 16px;
    }

    .event-title {
        max-width: 100%;
        font-size: 20px;
    }

    .apply-btn {
        min-width: 95px;
        height: 42px;
        font-size: 17px;
    }

    .filterWithBackground {
        min-height: 85vh;
        padding: 30px 15px;
    }

    .filter-content {
        margin-top: 0;
    }

    .filter-content h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .filter-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .filter-field {
        height: 56px;
        padding: 0 14px;
    }

    .find-btn {
        min-width: 100%;
        height: 56px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 11px;
    }

    .section-title {
        font-size: 28px;
    }

    .event-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .apply-btn {
        width: 100%;
    }

    .event-image {
        height: 200px;
    }
}
