/* ==========================================================================
   DESIGN TOKENS & CORE PROPERTIES
   ========================================================================== */
:root {
    --primary: #e11d48; 
    --primary-gradient: linear-gradient(135deg, #e11d48, #be123c);
    --dark: #0f172a;
    --light-bg: #0b0f19; /* Deep fallback base tone while the image is fetching */
    --card-bg: rgba(255, 255, 255, 0.88); /* Glossy frosted card styling with strong text visibility */
    --card-stroke: rgba(255, 255, 255, 0.5);
    --text-main: #0f172a;
    --text-muted: #475569;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    --blur: blur(20px);
    --radius-lg: 24px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Page Background Setup — Covers the entire window frame fixed while content scrolls over it */
body {
    background-color: var(--light-bg);
    background-image: 
        linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.98) 100%),
        url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=1600&q=80');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   NAVIGATION & HEADER MODULES
   ========================================================================== */
header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 2rem 2rem 1.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.brand-logo {
    width: 140px; 
    height: auto;
    object-fit: contain;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Pill Navigation Block Container */
nav {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px;
    border-radius: 20px;
    gap: 2px;
    max-width: 100%;
    overflow-x: auto;
}

nav::-webkit-scrollbar {
    display: none; /* Hide default native track bars during overflow shifts */
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

nav a.active {
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* ==========================================================================
   LAYOUT CANVAS CORE FRAMEWORK
   ========================================================================== */
main {
    flex: 1;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto 2.5rem auto;
    padding: 0 5rem;
}

/* Standard Base Glass Card Container */
.card {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-stroke);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
}

/* Layout Component Columns */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Nested Subcards (Value Display Blocks) inside White Card Layouts */
.card .value-card {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    margin-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.card .value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card .value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card .value-card:hover {
    transform: translateY(-4px);
    background: rgba(225, 29, 72, 0.05);
    border-color: rgba(225, 29, 72, 0.2);
}

/* Fully Transparent Hero Layout Content Block Layer */
.hero-banner {
    position: relative;
    background: transparent;
    width: 100%;
    height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 2rem 2rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.hero-banner h2 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.61);
}

.hero-banner p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 640px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.btn {
    margin-top: 2rem;
    background: #ffffff;
    color: var(--dark);
    padding: 0.95rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
}

/* App Download Channels Styling */
.download-subtitle {
    margin-bottom: 1.5rem !important;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark);
    border: 1px solid var(--dark);
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex-shrink: 0;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-btn-text span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.app-btn-text strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-btn:hover {
    background: #ffffff;
    color: var(--dark);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-btn:hover .app-btn-text span {
    color: var(--text-muted);
}

/* ==========================================================================
   COMPONENT: ZAMBIA TOURISM DESTINATIONS & TRAVEL NEWS HUB STYLING
   ========================================================================== */

/* Dark Premium Container Shift for Hub Portal Overlays */
.corporate-hub-card {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff;
}

/* Solid White Hub Variant handling for explicit light card integrations */
.corporate-hub-card.solid-white-hub {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-stroke) !important;
    color: var(--text-main) !important;
}

.corporate-hub-card.solid-white-hub h3 {
    color: var(--text-main) !important;
}

.corporate-hub-card.solid-white-hub p {
    color: var(--text-muted) !important;
}

.corporate-hub-card .hub-header {
    margin-bottom: 2.25rem;
}

.corporate-hub-card .hub-badge {
    display: inline-block;
    background: rgba(225, 29, 72, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(225, 29, 72, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.corporate-hub-card h3 {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.corporate-hub-card p {
    color: #94a3b8 !important;
    font-size: 1rem;
    max-width: 780px;
}

/* Hub Metric Row Setup */
.hub-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 1.5rem;
}

.corporate-hub-card:not(.solid-white-hub) .hub-meta-grid {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.meta-metric-box {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.corporate-hub-card:not(.solid-white-hub) .meta-metric-box {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.meta-metric-box .metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-metric-box .metric-value {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
}

.corporate-hub-card:not(.solid-white-hub) .meta-metric-box .metric-value {
    color: #f1f5f9;
}

/* Stacked Item Matrix Streams */
.nav-matrix-stream {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.matrix-stream-item {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 1.25rem;
}

.corporate-hub-card:not(.solid-white-hub) .matrix-stream-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

a.matrix-stream-item:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(225, 29, 72, 0.3);
    transform: translateX(4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.corporate-hub-card:not(.solid-white-hub) a.matrix-stream-item:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Numeric Icon Frameworks */
.item-icon-wrapper {
    width: 42px;
    height: 42px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.corporate-hub-card:not(.solid-white-hub) .item-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.item-index {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.item-description-block {
    flex: 1;
}

.item-description-block h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    letter-spacing: -0.3px;
}

.corporate-hub-card:not(.solid-white-hub) .item-description-block h4 {
    color: #f8fafc;
}

.item-description-block p {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    line-height: 1.42;
}

.corporate-hub-card:not(.solid-white-hub) .item-description-block p {
    color: #94a3b8 !important;
}

/* Inline Thumbnails for Destinations */
.item-image-thumbnail {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

.corporate-hub-card:not(.solid-white-hub) .item-image-thumbnail {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.item-image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.matrix-stream-item:hover .item-image-thumbnail img {
    transform: scale(1.08);
}

/* Vector Art Bulletins Elements */
.item-illustration-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.item-illustration-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    opacity: 0.55;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.corporate-hub-card:not(.solid-white-hub) .item-illustration-icon svg {
    opacity: 0.45;
}

a.matrix-stream-item:hover .item-illustration-icon svg {
    opacity: 1;
    color: var(--primary);
}

.item-arrow-action {
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
    font-weight: 400;
}

a.matrix-stream-item:hover .item-arrow-action {
    transform: translateX(3px);
    color: var(--primary);
}

/* Legacy Matrix Grid Blocks */
.nav-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.matrix-item {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matrix-item:hover {
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--primary);
}

.matrix-item::after {
    content: '→';
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.matrix-item:hover::after {
    transform: translateX(4px);
    opacity: 1;
}

/* ==========================================================================
   FOOTER CHANNEL OVERRIDES
   ========================================================================== */
footer {
    padding: 2.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.9);
    margin-top: auto;
}

/* ==========================================================================
   RESPONSIVE LAYOUT SYSTEM MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
    header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    nav {
        width: 100%;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .hero-banner {
        height: 460px;
        padding-top: 9rem;
    }
    .hero-banner h2 {
        font-size: 2.25rem;
    }
    main {
        margin: 0 auto 1.5rem auto;
        padding: 0 1rem;
    }
    .card {
        padding: 1.5rem;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .download-grid {
        grid-template-columns: 1fr;
    }
    .corporate-hub-card {
        padding: 1.5rem 1.25rem !important;
    }
    .item-image-thumbnail {
        width: 70px;
        height: 50px;
    }
}