/* ==========================================================
   Header "Explore" mega dropdown + landing-page extras
   Loaded after main-style.css (and after index.php inline CSS)
   ========================================================== */

/* ---------- Desktop nav spacing (keeps 11 items on one line) ---------- */
@media (min-width: 1025px) {
    .header-container nav li { margin-left: 18px; }
    .header-container nav a,
    .header-container nav .nav-dropdown-toggle { font-size: 13px; }
}

/* ---------- Dropdown toggle button ---------- */
.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary, #0a2a44);
    padding: 5px 0;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.25s ease;
}
.nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-toggle:hover { color: var(--secondary, #c19a6b); }

/* ---------- Desktop mega panel ---------- */
.nav-dropdown { position: relative; }

.mega-panel {
    display: none;
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, calc(100vw - 40px));
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--white, #fff);
    border-top: 3px solid var(--secondary, #c19a6b);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 24px 60px rgba(10, 42, 68, 0.22);
    padding: 26px 30px 22px;
    z-index: 1100;
}

/* invisible bridge so the panel does not close while the pointer travels down */
.nav-dropdown::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 100%;
    height: 36px;
    display: none;
}

@media (min-width: 1025px) and (hover: hover) {
    .nav-dropdown:hover::after { display: block; }
    .nav-dropdown:hover .mega-panel { display: block; }
}
.nav-dropdown.open .mega-panel { display: block; }
.nav-dropdown.open::after { display: block; }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 34px;
}

.mega-group h5 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #0a2a44);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-light, #e9ecef);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mega-group h5 i { display: none; font-size: 11px; color: var(--secondary, #c19a6b); }

.header-container .mega-panel ul {
    display: block;
}
.header-container .mega-panel li { margin: 0; }
.header-container .mega-panel a {
    display: block;
    padding: 4px 0;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--dark, #1a1a2e);
}
.header-container .mega-panel a:after { display: none; }
.header-container .mega-panel a:hover { color: var(--secondary, #c19a6b); padding-left: 4px; }

.mega-foot {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-light, #e9ecef);
    font-size: 12px;
    color: var(--gray, #6c757d);
}
.mega-foot a { color: var(--secondary, #c19a6b); font-weight: 600; }

/* ---------- Tablet + mobile: use the hamburger menu up to 1024px ---------- */
@media (max-width: 1024px) {
    .mobile-menu-btn { display: block; }

    nav#main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: var(--white, #fff);
        padding: 20px 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s ease;
        z-index: 999;
        visibility: hidden;
        border-top: 1px solid var(--gray-light, #e9ecef);
    }
    nav#main-nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
    nav#main-nav > ul { flex-direction: column; align-items: stretch; }
    nav#main-nav > ul > li { margin: 0 0 14px 0; }
    nav#main-nav a { display: block; padding: 8px 0; font-size: 15px; }

    .nav-dropdown-toggle { width: 100%; justify-content: space-between; font-size: 15px; padding: 8px 0; }

    .mega-panel {
        position: static;
        transform: none;
        width: 100%;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 6px 0 0 10px;
    }
    .nav-dropdown::after { display: none !important; }
    .mega-grid { grid-template-columns: 1fr; gap: 4px; }
    .mega-group h5 { cursor: pointer; margin: 0; padding: 10px 0; font-size: 14px; }
    .mega-group h5 i { display: inline-block; transition: transform 0.25s ease; }
    .mega-group ul { display: none !important; padding: 0 0 8px 8px; }
    .mega-group.open ul { display: block !important; }
    .mega-group.open h5 i { transform: rotate(180deg); }
    .header-container .mega-panel a { font-size: 13.5px; padding: 6px 0; }
    .mega-foot { display: none; }
}

/* ==========================================================
   Landing-page extras
   ========================================================== */
.lp-body p {
    text-align: justify;
    margin-bottom: 16px;
    line-height: 1.8;
}
.lp-body h2.lp-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--primary, #0a2a44);
    margin: 34px 0 14px;
}
.lp-body ul.lp-list {
    margin: 0 0 18px 0;
    padding-left: 0;
    list-style: none;
}
.lp-body ul.lp-list li {
    position: relative;
    padding: 6px 0 6px 26px;
    line-height: 1.6;
}
.lp-body ul.lp-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--secondary, #c19a6b);
}
.lp-body a { color: var(--primary-light, #1a3c5e); border-bottom: 1px dotted var(--secondary, #c19a6b); }
.lp-body a:hover { color: var(--secondary, #c19a6b); }

.lp-figure {
    margin: 10px 0 30px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, 0.08));
}
.lp-figure img { width: 100%; height: auto; display: block; }
.lp-figure figcaption {
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--gray, #6c757d);
    background: #f7f7f5;
}

.lp-note {
    font-size: 12.5px;
    color: var(--gray, #6c757d);
    border-left: 3px solid var(--secondary, #c19a6b);
    padding: 8px 14px;
    background: #f7f7f5;
    margin: 24px 0 0;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.related-links a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--gray-light, #e9ecef);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary, #0a2a44);
    background: var(--white, #fff);
    transition: var(--transition, all 0.3s ease);
}
.related-links a:hover {
    background: var(--primary, #0a2a44);
    color: var(--white, #fff);
    border-color: var(--primary, #0a2a44);
}

/* Footer: keep the three link columns tidy now that every link is real */
.footer-content ul li a { word-break: break-word; }
