/* ===== PREVENT HORIZONTAL SCROLL ===== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===== HEADER FIX ===== */
header.main-header {
    background: transparent !important;
    border-bottom: none !important;
    margin: 0 auto !important;
    left: 0;
    right: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

header.main-header .header-sticky {
    padding: 0 !important;
    margin: 20px 0 0 !important;
}

.main-header {
    position: absolute;
    top: 15px;
    width: 100%;
    z-index: 999;
    background: transparent;
    /* Keep desktop centering intact — don't touch margin here */
}

/* CENTER HEADER */
.main-header .container {
    display: flex;
    justify-content: center;
}

/* MOBILE: logo left, hamburger right inside the pill */
@media (max-width: 991px) {
    .main-header .header-sticky {
        width: 100%;
    }
    .main-header .navbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px !important;
    }
    .main-header .navbar-brand {
        flex: 0 0 auto;
    }
    .main-header .navbar-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    /* Hide desktop nav on mobile */
    .main-header .main-menu {
        display: none;
    }
}

/* HEADER BOX */
.main-header .navbar {
    background: #fff;
    border-radius: 60px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* NAV LINKS */
.main-header .navbar-nav li a {
    font-size: 15px;
}

/* BUTTON */
.main-header .btn {
    font-size: 14px;
    border-radius: 30px;
}

/* ===== HERO ===== */
.page-header {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.page-header-box {
    text-align: center;
    padding: 0 15px;
}

.page-header h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* BREADCRUMB */
.breadcrumb {
    justify-content: center;
    background: transparent;
    margin-top: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: #fff;
    font-size: 14px;
}

/* ===== EVENTS GRID ===== */
.pe-grid {
    padding: 60px 0 40px;
}

.pe-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 15px;
}

.pe-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.pe-title p {
    color: #666;
    font-size: 16px;
}

/* ===== CARD ===== */
.pe-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 240px;
    transition: 0.4s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.pe-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* DARK OVERLAY */
.pe-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* GRADIENT */
.pe-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

/* CONTENT */
.pe-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
}

.pe-content h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

/* BUTTON */
.pe-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #f4c430;
    color: #000;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: 0.3s;
}

/* HOVER EFFECTS — desktop only */
@media (hover: hover) {
    .pe-card:hover img {
        transform: scale(1.1);
    }
    .pe-card:hover {
        transform: translateY(-6px);
    }
    .pe-card:hover .pe-btn {
        opacity: 1;
    }
}

/* Always show button on touch devices */
@media (hover: none) {
    .pe-btn {
        opacity: 1;
    }
}

.pe-card,
.pe-card img,
.event-click {
    cursor: pointer;
}

/* ===== CONTENT SECTION ===== */
.pe-content-section {
    width: 100%;
    padding: 15px 40px 60px;
    box-sizing: border-box;
}

.pe-content-section .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.pe-content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* ===== EVENT POPUP ===== */
.event-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
}

.event-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
}

.event-popup-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.event-popup-box h3 {
    margin-bottom: 10px;
    padding-right: 30px;
    font-size: 22px;
}

.event-popup-box p {
    color: #555;
    line-height: 1.6;
}

.close-popup {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: #ff5c35;
    line-height: 1;
    z-index: 10;
}

/* INNER SCROLL */
#popupContent {
    max-height: calc(85vh - 140px);
    overflow-y: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
}

/* BOOK NOW BUTTON */
.popup-btn-wrap-outside {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    white-space: nowrap;
}

.popup-book-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #f4c430;
    color: #000;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}

.popup-book-btn:hover {
    background: #000;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE — TABLET (max 992px) ===== */
@media (max-width: 992px) {

    .main-header .navbar {
        padding: 10px 15px;
    }

    .page-header {
        min-height: 360px;
        padding: 140px 0 80px;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .pe-grid {
        padding: 50px 0 30px;
    }

    .pe-title h2 {
        font-size: 30px;
    }

    .pe-content-section {
        padding: 15px 20px 50px;
    }

    .event-popup-box {
        width: 92%;
        padding: 25px;
    }

}

/* ===== RESPONSIVE — MOBILE (max 767px) ===== */
@media (max-width: 767px) {

    /* Header on mobile — shrink margin so it doesn't overflow */
    header.main-header {
        margin: 0 8px !important;
        box-sizing: border-box;
    }

    /* navbar-toggle: hamburger button sits inside navbar pill */
    .navbar-toggle {
        position: static !important;
        display: flex !important;
        align-items: center !important;
    }

    /* slicknav_menu injected inside navbar-toggle —
       must NOT be absolute/full-width or it creates a ghost box */
    .slicknav_menu {
        position: static !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* responsive-menu is OUTSIDE the navbar pill (sibling of nav) —
       position it absolutely so it takes NO space in normal flow */
    .responsive-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
        z-index: 997;
    }

    /* The generated slicknav_menu inside responsive-menu */
    .responsive-menu .slicknav_menu {
        background: var(--secondary-color) !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
        overflow: hidden !important;
        margin-top: 6px !important;
        width: 100% !important;
    }

    /* Hide the duplicate button slicknav puts in responsive-menu */
    .responsive-menu .slicknav_btn {
        display: none !important;
    }

    .main-header img {
        height: 32px;
    }

    .page-header {
        min-height: 300px;
        padding: 120px 0 70px;
    }

    .page-header h1 {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .breadcrumb-item,
    .breadcrumb-item a {
        font-size: 13px;
    }

    .pe-grid {
        padding: 40px 0 20px;
    }

    .pe-title {
        margin-bottom: 35px;
    }

    .pe-title h2 {
        font-size: 26px;
    }

    .pe-title p {
        font-size: 14px;
    }

    .pe-card {
        height: 220px;
    }

    .pe-content h3 {
        font-size: 16px;
    }

    /* Content section — safe padding on mobile */
    .pe-content-section {
        padding: 15px 15px 40px;
    }

    /* Popup — bottom sheet style */
    .event-popup.show {
        align-items: flex-end;
        padding: 0;
    }

    .event-popup-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px 18px 80px;
        max-height: 90vh;
        box-sizing: border-box;
    }

    .event-popup-box h3 {
        font-size: 18px;
    }

    #popupContent {
        max-height: calc(90vh - 160px);
    }

    .popup-btn-wrap-outside {
        bottom: 16px;
        width: calc(100% - 36px);
        left: 18px;
        transform: none;
        text-align: center;
    }

    .popup-book-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        border-radius: 30px;
        font-size: 15px;
        box-sizing: border-box;
    }

}

/* ===== RESPONSIVE — SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {

    .page-header {
        min-height: 260px;
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .pe-title h2 {
        font-size: 22px;
    }

    .pe-card {
        height: 200px;
        border-radius: 14px;
    }

    .pe-content {
        bottom: 14px;
        left: 14px;
    }

    .pe-content h3 {
        font-size: 15px;
    }

    .pe-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .pe-content-section p {
        font-size: 15px;
    }

    .event-popup-box {
        padding: 18px 15px 80px;
    }

    .event-popup-box h3 {
        font-size: 16px;
    }

    .close-popup {
        font-size: 20px;
        top: 10px;
        right: 14px;
    }

}

/* ===== RESPONSIVE — VERY SMALL (max 360px) ===== */
@media (max-width: 360px) {

    .page-header h1 {
        font-size: 20px;
    }

    .pe-card {
        height: 180px;
    }

}
