@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;
}

/* =========================
   DYNAMIC HOMEPAGE HERO SLIDER
========================= */

.home-hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #08231f;
}

.home-hero-track,
.home-hero-slide {
    position: absolute;
    inset: 0;
}

.home-hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: scale(1.015);
}

.home-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.home-hero-slide picture,
.home-hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
}

.home-hero-slide picture {
    position: absolute;
    inset: 0;
}

.home-hero-slide img {
    object-fit: cover;
    object-position: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 35, 31, 0.84) 0%, rgba(5, 35, 31, 0.58) 42%, rgba(5, 35, 31, 0.16) 100%),
        linear-gradient(180deg, rgba(5, 35, 31, 0.18) 0%, rgba(245, 247, 250, 0.92) 100%);
}

.home-hero-content {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: min(1120px, calc(100% - 40px));
    height: 100%;
    min-height: 0;
    transform: translateX(-50%);
    padding: 150px 0 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.home-hero-content > span {
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(99, 243, 232, 0.16);
    color: #9ef7ef;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero-content h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    font-weight: 900;
}

.home-hero-content p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.55;
    font-weight: 600;
}

.home-hero-cta {
    width: fit-content;
    margin-top: 28px;
    padding: 15px 24px;
    border-radius: 8px;
    color: #07362f;
    background: #63f3e8;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(99, 243, 232, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-cta:hover {
    transform: translateY(-2px);
    color: #07362f;
    box-shadow: 0 24px 54px rgba(99, 243, 232, 0.32);
}

.home-hero-search {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 58px;
    width: min(900px, calc(100% - 40px));
    transform: translateX(-50%);
}

.home-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 35, 31, 0.35);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.home-hero-prev {
    left: 28px;
}

.home-hero-next {
    right: 28px;
}

.home-hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.home-hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.home-hero-dots button.is-active {
    width: 30px;
    background: #63f3e8;
}

@media (max-width: 767px) {
    .home-hero-slider {
        min-height: 92vh;
    }

    .home-hero-overlay {
        background:
            linear-gradient(180deg, rgba(5, 35, 31, 0.76) 0%, rgba(5, 35, 31, 0.54) 52%, rgba(245, 247, 250, 0.92) 100%);
    }

    .home-hero-content {
        width: calc(100% - 32px);
        min-height: 0;
        padding: 110px 0 220px;
        text-align: center;
        align-items: center;
    }

    .home-hero-content h1 {
        font-size: clamp(36px, 12vw, 54px);
    }

    .home-hero-content p {
        font-size: 15px;
    }

    .home-hero-search {
        bottom: 56px;
        width: calc(100% - 28px);
    }

    .home-hero-nav {
        top: auto;
        bottom: 14px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .home-hero-prev {
        left: 16px;
    }

    .home-hero-next {
        right: 16px;
    }

    .home-hero-dots {
        bottom: 28px;
    }
}

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;
}

/* =========================
   HOMEPAGE BLOG SECTION
========================= */

.home-blog-section {
    padding: 36px 0 70px;
}

.home-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.home-blog-highlight,
.home-blog-item {
    border: 1px solid #dbe9e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.home-blog-highlight {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    min-height: 420px;
}

.home-blog-highlight-image {
    display: block;
    min-height: 420px;
    overflow: hidden;
}

.home-blog-highlight-image img,
.home-blog-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-blog-highlight > div {
    min-width: 0;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-chip {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #007665;
    background: #dff3f1;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.home-blog-highlight h3 {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: 0;
}

.home-blog-highlight p {
    margin: 24px 0 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 700;
}

.blog-read-btn {
    width: fit-content;
    margin-top: 24px;
    padding: 14px 22px;
    border-radius: 8px;
    color: #ffffff !important;
    background: #05846f;
    text-decoration: none !important;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease;
}

.blog-read-btn:hover {
    background: #046f5e;
    transform: translateY(-1px);
}

.home-blog-list {
    display: grid;
    gap: 16px;
    align-content: start;
}

.home-blog-item {
    min-height: 150px;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.09);
}

.home-blog-item img {
    height: 126px;
    border-radius: 7px;
}

.home-blog-item span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-blog-item small {
    margin-bottom: 8px;
    color: #007665;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
}

.home-blog-item strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

/* =========================
   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;
    }

    .home-blog-layout {
        grid-template-columns: 1fr;
    }

    .home-blog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@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;
    }

    .home-blog-section {
        padding: 24px 0 48px;
    }

    .home-blog-highlight {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-blog-highlight-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .home-blog-highlight > div {
        padding: 24px;
    }

    .home-blog-highlight h3 {
        font-size: 30px;
    }

    .home-blog-highlight p {
        font-size: 16px;
    }

    .home-blog-list {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .home-blog-item {
        grid-template-columns: 1fr;
    }

    .home-blog-item img {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
