/* ============================================
   Roam Anguilla · style.css
   Color scheme: Blue (#1E6F9F), Orange (#FF8C42), White, Light tones
   ============================================ */

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

body {
    background-color: #f5f5f5;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* Main app container — white body */
.app {
    max-width: 1400px;
    width: 100%;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.12);
    padding: 2rem 2.2rem;
}

/* CSS Variables (consistent palette) */
:root {
    --blue: #1E6F9F;
    --orange: #FF8C42;
    --light-orange: #fff0e5;
    --light-blue: #eef5fa;
}

/* ---- Header + Logo ---- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.2rem 0.5rem 1.2rem;
    background: #c8d6e4;
    border-radius: 16px;
    border-bottom: 2px solid var(--light-orange);
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 38px;
    width: auto;
}
.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #389BD2 0%, #FFA15C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
}
.logo h1 span {
    font-weight: 700;
    background: none;
    color: #ffffff;
    -webkit-text-fill-color: initial;
}

/* Header navigation links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.nav-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--light-blue);
}

.nav-link.active {
    background: var(--blue);
    color: white;
}

/* Get App Button */
.get-app-link {
    background: var(--blue);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.get-app-link:hover {
    background: #0f537c;
    transform: translateY(-2px);
}

/* ── Events dropdown (Events ▾ → Events / Artists) ── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    flex-direction: column;
}
.nav-dropdown .caret {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 0.25rem;
    transition: transform 0.18s ease;
}
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem;
    background: #fff;
    border: 1px solid rgba(30,111,159,0.15);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10,30,50,0.18);
    padding: 0.4rem;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
}
.nav-dropdown:hover .caret,
.nav-dropdown.open .caret {
    transform: rotate(180deg);
}
.dropdown-link {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
}
.dropdown-link:hover {
    background: var(--light-blue);
}
.dropdown-link.active {
    background: var(--blue);
    color: #fff;
}
@media (max-width: 768px) {
    .dropdown-panel {
        position: static;
        display: none; /* only takes up space while open */
        box-shadow: none;
        margin-top: 0.3rem;
        border: 1px dashed rgba(30,111,159,0.25);
    }
}

/* ── Site-wide search (header) ── */
.header-search-btn {
    background: var(--blue);
    color: #fff;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease;
    flex: 0 0 auto;
}
.header-search-btn:hover {
    transform: scale(1.06);
    background: #0f537c;
}
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,25,40,0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
}
.search-overlay.open {
    display: flex;
}
.search-panel {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 76vh;
}
.search-input-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e6edf4;
}
.search-input-row > i {
    color: var(--blue);
}
#siteSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    color: #1a2c3e;
    background: transparent;
    font-family: inherit;
    min-width: 0;
}
.search-results {
    overflow-y: auto;
    padding: 0.5rem 0.9rem 0.9rem;
}
.search-group-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8a9c;
    margin: 0.9rem 0.2rem 0.35rem;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.search-item:hover,
.search-item.focused {
    background: var(--light-blue);
}
.search-item .si-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--light-blue);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.85rem;
}
.search-item .si-body {
    min-width: 0;
}
.search-item .si-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a2c3e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item .si-sub {
    font-size: 0.78rem;
    color: #5a6a7c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-empty {
    text-align: center;
    color: #7a8a9c;
    padding: 1.5rem 0;
}
.search-hint {
    text-align: center;
    font-size: 0.72rem;
    color: #9aaabc;
    padding: 0.5rem 0.9rem 0.9rem;
    border-top: 1px solid #eef3f8;
    flex: 0 0 auto;
}
@media (max-width: 768px) {
    .search-overlay {
        padding: 6vh 0.6rem 1rem;
    }
    .search-panel {
        max-height: 84vh;
    }
}

/* Blog site-wide header (matches blog/index.html) */
.blog-header {
    background: #c8d6e4;
    border-bottom: 2px solid var(--light-orange);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 1rem 0; margin-bottom: 2rem;
    width: 100%;
}
.blog-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 768px) {
    .blog-header-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
    .blog-header-inner .header-nav { justify-content: center; }
}

/* ---- Section Titles ---- */
.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 2rem 0 1.2rem 0;
    color: #1a2c3e;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* Homepage section wrapper — adds breathing room */
.home-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(30, 111, 159, 0.08);
}
.home-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title i {
    color: var(--orange);
    font-size: 1.8rem;
}

/* ---- Horizontal scroll containers (stories & events) ---- */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0.5rem 0.2rem 1.8rem 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) #e2e8f0;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 12px;
}

/* ---- Story Card (Latest in Anguilla) ---- */
.story-card {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.4rem;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 111, 159, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Featured card: side-by-side on wide viewports */
.story-card.featured {
    flex: 0 0 620px;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
}
.story-card.featured .story-image {
    width: 280px;
    min-width: 280px;
    height: auto;
    min-height: 200px;
    margin-bottom: 0;
    border-radius: 28px 0 0 28px;
    overflow: hidden;
}
.story-card.featured .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-card.featured .story-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 1.4rem 1.4rem 0;
    flex: 1;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 22px 30px -12px rgba(30, 111, 159, 0.15);
}

.story-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 1rem;
    background-color: var(--light-blue);
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-tag {
    display: inline-block;
    background: var(--light-orange);
    color: var(--orange);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

.story-featured {
    display: inline-block;
    background: #fbbf24;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
    margin-right: 0.3rem;
}

.story-date {
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.story-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #1a2c3e;
}

.story-excerpt {
    font-size: 0.85rem;
    color: #4a5568;
    flex: 1;
    line-height: 1.5;
}

.story-read-link {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.story-read-link:hover {
    color: var(--orange);
}

/* ---- View All link ---- */
.view-all-link {
    display: inline-block;
    margin: 0.5rem 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

.view-all-link:hover { color: var(--orange); }

/* ---- Event Card ---- */
.event-card {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.4rem;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 140, 66, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

.event-day-badge {
    background: var(--blue);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-name {
    font-size: 1.35rem;
    font-weight: 800;
}

.event-place {
    color: var(--blue);
    font-weight: 500;
    margin: 0.5rem 0 0.8rem;
    font-size: 0.9rem;
}

.event-time {
    background: var(--light-orange);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
}

.event-status {
    font-size: 0.8rem;
    margin-top: 0.8rem;
    background: var(--light-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
}

/* ---- Places scroll container (horizontal scrolling cards) ---- */
.places-scroll-container {
    overflow: hidden;
    margin: 1.5rem 0 2rem 0;
}

.places-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0.5rem 0.2rem 1.8rem 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) #e2e8f0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.places-grid::-webkit-scrollbar {
    height: 6px;
}

.places-grid::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 12px;
}

.places-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.place-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 111, 159, 0.15);
    transition: all 0.25s;
    cursor: pointer;
    overflow: hidden;
}

.place-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
    box-shadow: 0 24px 32px -12px rgba(30, 111, 159, 0.2);
}

.place-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #eef2f5;
    border-radius: 0;
}

.place-info {
    padding: 1.2rem 1.2rem 1.3rem;
}

.place-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a2c3e;
    line-height: 1.25;
}

.place-category {
    background: var(--orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0.6rem 0 0.5rem;
}

.place-category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin: 0.6rem 0 0.5rem;
}

.place-category-row .place-category {
    margin: 0;
}

.place-distance {
    flex: 0 0 auto;
    font-size: 0.7rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.place-rating {
    margin-bottom: 0.6rem;
    min-height: 1.2rem;
}

.place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
}

.place-phone a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 500;
    font-size: 0.85rem;
}

.place-link {
    background: var(--blue);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.2s;
}

.place-link:hover {
    background: var(--orange);
}

/* ---- Modal Overlay ---- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 560px;
    width: 90%;
    border-radius: 42px;
    padding: 2rem 1.8rem;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    border-top: 6px solid var(--orange);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--orange); }

.modal h2 {
    font-size: 1.8rem;
    color: var(--blue);
    line-height: 1.2;
    padding-right: 2rem;
}

.detail-row {
    margin: 1.2rem 0;
    padding-left: 0.8rem;
    border-left: 4px solid var(--light-orange);
}

.detail-row p {
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.6;
}

.event-list {
    list-style: none;
    padding-left: 0;
}

.event-list li {
    background: #f8f9fa;
    margin: 0.5rem 0;
    padding: 0.7rem 1rem;
    border-radius: 28px;
}

/* ---- Panel Card (used by events.js) ---- */
.panelCard {
    background: white;
    border-radius: 28px;
    padding: 1.5rem 1.8rem;
    margin: 1.5rem 0;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0ede8;
    border-top: 4px solid var(--orange);
    position: relative;
    color: #1a2c3e;
}

.panelCard h3 { color: #1a2c3e; }
.panelCard p { color: #2d3748; font-size: 0.9rem; }
.panelCard a { color: var(--blue); }

.closeButton {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.closeButton:hover { background: var(--light-orange); }

.pageButton {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.pageButton:hover { background: var(--orange); }

/* ---- Amenities (places modal) ---- */
.amenitiesBlock {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--light-orange);
}

.amenitiesLabel {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.amenitiesIcons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.amenity-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #1a2c3e;
}

.amenity-icon span {
    font-size: 0.55rem;
    line-height: 1.1;
    letter-spacing: 0.3px;
    max-width: 48px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4a5568;
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    margin-top: 1rem;
    padding: 1.8rem 0 0.5rem;
    border-top: 2px solid var(--light-orange);
    font-weight: 500;
    color: #3b4b5e;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .app {
        padding: 1.2rem;
        border-radius: 1.2rem;
    }
    .logo img { height: 30px; }
    .logo h1 { font-size: 1.6rem; }
    .section-title {
        font-size: 1.5rem;
    }
    /* Collapse featured card to vertical on tablets */
    .story-card.featured {
        flex: 0 0 300px;
        flex-direction: column;
        gap: 0;
        padding: 1.4rem;
    }
    .story-card.featured .story-image {
        width: 100%;
        min-width: unset;
        height: 150px;
        min-height: unset;
        border-radius: 20px;
        margin-bottom: 1rem;
    }
    .story-card.featured .story-card-body {
        padding: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.8rem 0.4rem;
    }
    .app {
        padding: 1rem;
        border-radius: 1rem;
    }
    .header {
        gap: 0.6rem;
    }
    .logo img { height: 26px; }
    .logo h1 { font-size: 1.4rem; }
    .header-nav {
        gap: 0.15rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
    .get-app-link {
        font-size: 0.85rem;
        padding: 0.55rem 1.1rem;
    }
    .story-card {
        flex: 0 0 260px;
    }
    .modal-content {
        border-radius: 28px;
        padding: 1.5rem 1.2rem;
    }
    .modal h2 {
        font-size: 1.4rem;
    }
}

/* ── Mobile header (≤600px): single tidy row + hamburger menu ── */
.nav-toggle {
    display: none;
}
@media (max-width: 600px) {
    .header {
        position: relative; /* anchor for the floating burger menu */
        gap: 0.5rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 1.5rem;
    }
    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }
    .logo img {
        height: 30px !important; /* overrides inline style on the img tag */
    }
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /* Get the App → icon-only pill (text hidden but still in DOM) */
    .get-app-link {
        font-size: 0;
        gap: 0;
        padding: 0.55rem 0.9rem;
    }
    .get-app-link i {
        font-size: 0.95rem;
    }
    .header-search-btn {
        width: 38px;
        height: 38px;
    }

    /* Hamburger button (injected by search.js) */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: var(--blue);
        color: #fff;
        font-size: 1rem;
        cursor: pointer;
        flex: 0 0 auto;
    }
    .nav-toggle:active {
        background: #0f537c;
    }

    /* Collapse the nav into the hamburger only when JS injected the toggle */
    .header.js-nav .header-nav {
        display: none;
    }
    .header.js-nav.nav-open .header-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        position: absolute;
        top: calc(100% + 8px);
        right: 0.6rem;
        min-width: 220px;
        background: #fff;
        border: 1px solid rgba(30,111,159,0.15);
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(10,30,50,0.22);
        padding: 0.5rem;
        z-index: 80;
        animation: navSlideDown 0.2s ease;
    }
    .header.js-nav.nav-open .header-nav .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    .header.js-nav.nav-open .nav-dropdown {
        flex-direction: column;
    }
    .header.js-nav.nav-open .nav-toggle {
        background: #0f537c;
    }
    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: none; }
    }
}

/* ═══════════════════════════════════════════════════════════════
   BLOG ARTICLE STYLES — unified across all articles
   ═══════════════════════════════════════════════════════════════ */

/* Breadcrumb nav */
.breadcrumb-nav {
    width: 100%; max-width: 800px; margin: 0 auto 0.5rem;
    padding: 0.5rem 0; font-size: 0.82rem; color: #888;
    align-self: center;
}
.breadcrumb-nav a { color: var(--blue); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--orange); }

.back-link {
    display: inline-block; width: 100%; max-width: 800px;
    margin: 0 auto 1.5rem; align-self: center;
    color: var(--blue); text-decoration: none; font-size: 0.85rem; font-weight: 500;
}
.back-link:hover { color: var(--orange); }

/* Article container */
article, .article {
    width: 100%; max-width: 800px; margin: 0 auto;
    background: white; border-radius: 16px; padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin-bottom: 2rem;
    align-self: center;
}

.article-header { margin-bottom: 1.5rem; }
.article-title {
    font-size: 2rem; font-weight: 800; color: #1a2c3e; line-height: 1.2;
    margin-bottom: 0.5rem;
}
.article-meta { font-size: 0.82rem; color: #888; }
.article-meta .tag {
    background: var(--orange); color: white; padding: 0.15rem 0.6rem;
    border-radius: 10px; font-size: 0.72rem; font-weight: 600;
}

/* Hero image */
.hero-image {
    width: 100%; max-height: 400px; object-fit: cover;
    border-radius: 12px; margin-bottom: 1.5rem;
}

/* Article body content */
.article-content {
    font-size: 1rem; line-height: 1.85; color: #2d3748;
}
.article-content p { margin-bottom: 1.2em; }
.article-content h1 {
    font-size: 1.6rem; font-weight: 700; color: #1a2c3e;
    margin: 1.5em 0 0.5em; line-height: 1.3;
}
.article-content h2 {
    font-size: 1.3rem; font-weight: 700; color: var(--blue);
    margin: 1.5em 0 0.5em; line-height: 1.3;
}
.article-content ul, .article-content ol {
    margin: 0.5em 0 1.2em 1.5em;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
    border: 2px solid var(--blue);
    border-radius: 12px; padding: 18px 22px; margin: 1.4em 0;
    font-size: 0.92rem; line-height: 1.7; color: #2d3748;
}

/* In-article jump links */
.article-jump {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem;
}
.article-jump a {
    display: inline-block; padding: 7px 14px; border-radius: 999px;
    background: var(--light-blue); border: 1px solid #cfe3f2;
    color: var(--blue); font-size: 0.85rem; font-weight: 600;
    text-decoration: none; transition: background 0.2s, color 0.2s;
}
.article-jump a:hover,
.article-jump a:focus-visible { background: var(--blue); color: #fff; }
.article-jump a.jump-highlight { background: var(--light-orange); border-color: #f6c9a4; }
.article-jump a.jump-highlight:hover,
.article-jump a.jump-highlight:focus-visible { background: var(--orange); color: #fff; }

/* Competition steps inside a CTA box */
.cta-box ol { margin: 0.8em 0 0.8em 1.4em; }
.cta-box ol li { margin-bottom: 0.35em; }
.cta-box .competition-terms { margin: 0; }
.cta-box .competition-more { margin: 0.9em 0 0; font-weight: 600; }

/* Video embeds inside articles */
.article-content blockquote.tiktok-embed {
    margin: 1.6em auto; padding: 0; border: 0;
    display: flex; justify-content: center;
}
.article-content blockquote.tiktok-embed iframe { max-width: 100%; border-radius: 12px; }
.tiktok-link { font-size: 0.85rem; color: #667085; text-align: center; }

/* Step list for how-to / rules sections */
.article-content ol.article-steps {
    list-style: none; counter-reset: step;
    margin: 1.4em 0 1.2em; padding: 0;
}
.article-content ol.article-steps > li {
    counter-increment: step; position: relative;
    padding-left: 2.7rem; margin-bottom: 1rem; line-height: 1.7;
}
.article-content ol.article-steps > li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0.15em;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--blue); color: #fff;
    font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.article-content ol.article-steps > li strong { color: #1a2c3e; }

/* Fine print under rules */
.fine-print {
    font-size: 0.85rem; color: #667085; line-height: 1.75;
    border-left: 3px solid #cfe3f2; padding-left: 0.9rem;
    margin: 1.2em 0 1.6em;
}

/* Image blocks */
.article-image {
    text-align: center; margin: 1.5em 0;
}
.article-image img {
    max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto;
}
.article-image figcaption,
.image-caption {
    display: block; font-weight: 600; font-size: 0.85rem;
    color: #888; margin-top: 0.5rem; text-align: center;
}

/* Place cards inside articles — scoped to avoid conflict with home page */
.article-content .place-card,
article .place-card {
    background: #f0f7ff; border: 1px solid var(--blue);
    border-radius: 10px; padding: 14px 18px; margin: 1em 0;
    display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem;
    box-shadow: none;
    flex: auto;
    scroll-snap-align: none;
}
.article-content .place-card a,
article .place-card a {
    background: var(--blue); color: white; padding: 8px 16px;
    border-radius: 8px; text-decoration: none; font-size: 0.82rem;
    font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.article-content .place-card a:hover,
article .place-card a:hover { background: var(--orange); }

/* Comments section */
.comments-section {
    width: 100%; max-width: 800px; margin: 0 auto 2rem;
    background: white; padding: 2rem; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    align-self: center;
}
.comments-section h3 {
    color: var(--blue); margin-bottom: 1.5rem; font-size: 1.3rem;
}

/* Mobile: article & comments full-width */
@media (max-width: 768px) {
    article { padding: 1.25rem; border-radius: 12px; }
    .article-title { font-size: 1.5rem; }
    .article-content { font-size: 0.95rem; }
    .article-content h1 { font-size: 1.3rem; }
    .article-content h2 { font-size: 1.15rem; }
    .comments-section { padding: 1.25rem; }
    .cta-box { padding: 14px 16px; }
    .article-content .place-card,
    article .place-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .article-content .place-card a,
    article .place-card a { align-self: stretch; text-align: center; }
}
