:root {
    --jocra-green: #2D5A3D;
    --jocra-green-light: #4A7C59;
    --jocra-green-dark: #1E3D2F;
    --jocra-red: #E63946;
    --jocra-red-dark: #C1121F;
    --jocra-dark: #0A0E13;
    --jocra-slate: #1A1F2E;
    --jocra-gray: #6B7280;
    --jocra-light: #F3F4F6;
    --jocra-white: #FFFFFF;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.areas-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.container-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero */
.areas-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--jocra-dark);
    overflow: hidden;
}

.areas-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(45,90,61,0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(230,57,70,0.1) 0%, transparent 40%);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,14,19,0.88);
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10,14,19,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 100px 0 40px;
    text-align: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 100px;
    color: var(--jocra-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--jocra-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100%{opacity:1;transform:scale(1);}
    50%{opacity:0.7;transform:scale(1.3);}
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title .highlight {
    color: var(--jocra-red);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-stats-bar {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-bar .stat {
    padding: 24px 16px;
    text-align: center;
    background: rgba(10,14,19,0.5);
    backdrop-filter: blur(10px);
}

.hero-stats-bar .num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--jocra-red);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stats-bar .label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Region Sections */
.region-section {
    padding: 60px 0;
    background: white;
}

.region-section.alt {
    background: var(--jocra-light);
}

.region-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.region-flag {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.region-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--jocra-dark);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.region-header p {
    font-size: 15px;
    color: var(--jocra-gray);
    line-height: 1.6;
    margin: 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.city-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

a.city-card:hover, h2 a:hover {
    color: var(--jocra-red);
}

.region-section.alt .city-card {
    background: white;
    border-color: rgba(0,0,0,0.04);
}

.city-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--jocra-dark);
}

.city-tag {
    padding: 4px 10px;
    background: rgba(230,57,70,0.08);
    color: var(--jocra-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    flex-shrink: 0;
}

/* CTA Banner */
.cta-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--jocra-green-dark), var(--jocra-green));
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.cta-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-content h2 .highlight {
    color: var(--jocra-red);
}

.cta-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--jocra-red);
    color: white;
    box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: white;
}

/* Responsive */
@media (min-width: 640px) {
    .container-xl { padding: 0 24px; }
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 18px; }
    .hero-stats-bar { grid-template-columns: repeat(4, 1fr); }
    .hero-stats-bar .stat { padding: 32px 24px; }
    .hero-stats-bar .num { font-size: 36px; }
    .region-section { padding: 80px 0; }
    .region-header h2 { font-size: 32px; }
    .cities-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .city-card { padding: 20px 24px; }
    .city-name { font-size: 16px; }
    .cta-banner { padding: 80px 0; }
    .cta-content h2 { font-size: 32px; }
    .cta-actions { flex-direction: row; justify-content: center; }
    .btn-primary, .btn-outline { width: auto; min-width: 240px; }
}

@media (min-width: 1024px) {
    .container-xl { padding: 0 32px; }
    .hero-title { font-size: 64px; }
    .hero-stats-bar .stat { padding: 40px 24px; }
    .hero-stats-bar .num { font-size: 48px; }
    .region-section { padding: 100px 0; }
    .region-header { margin-bottom: 48px; }
    .cities-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .city-card { padding: 24px 28px; }
    .city-card:hover {
        transform: translateY(-4px);
        border-color: rgba(45,90,61,0.15);
        box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    }
    .cta-banner { padding: 100px 0; }
    .cta-content h2 { font-size: 40px; }
    .btn-primary:hover { background: var(--jocra-red-dark); transform: translateY(-2px); }
    .btn-outline:hover { background: white; color: var(--jocra-green); border-color: white; }
}

@media (prefers-reduced-motion: reduce) {
    .pulse { animation: none; }
}

/* ==============================================================================
   LOCATION HUB CARDS & RESPONSIVE TABS - MOBILE & DESKTOP OPTIMIZED
   ============================================================================== */

/* Tab navigation bar */
.markets-tabs-nav-section {
    padding: 36px 0 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.market-tabs-intro {
    text-align: center;
    margin-bottom: 24px;
}

.market-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.market-tabs-heading {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}

.market-tabs-subheading {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.market-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
}

.market-tab-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px 12px 0 0;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    min-height: 52px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    box-shadow: none;
    border-top: 3px solid transparent;
}

.market-tab-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.market-tab-btn.active {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    border-top: 3px solid #ef4444;
}

.tab-count-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.2s ease;
}

.market-tab-btn.active .tab-count-tag {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

@media (max-width: 575px) {
    .markets-tabs-nav-section {
        padding: 24px 0 0;
    }
    .market-tabs-heading {
        font-size: 20px;
    }
    .market-tabs-subheading {
        font-size: 13px;
    }
    .market-tabs-wrapper {
        gap: 6px;
        padding: 0 4px;
        margin-top: 16px;
    }
    .market-tab-btn {
        padding: 12px 8px;
        font-size: 13px;
        gap: 6px;
        min-height: 48px;
    }
    .tab-count-tag {
        display: none;
    }
}

/* Tab Panels */
.market-panel-section {
    padding: 60px 0;
    background: #f8fafc;
}

@media (max-width: 767px) {
    .market-panel-section {
        padding: 36px 0;
    }
}

.panel-header {
    margin-bottom: 36px;
    text-align: left;
}

.panel-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.panel-tag-africa {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.panel-tag-intl {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.panel-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.25;
}

.panel-subtext {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 820px;
    line-height: 1.6;
}

@media (max-width: 575px) {
    .panel-header {
        margin-bottom: 24px;
    }
    .panel-title {
        font-size: 22px;
    }
    .panel-subtext {
        font-size: 13.5px;
    }
}

/* Hub Location Cards Grid */
.hubs-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .hubs-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* Hub Location Card */
.hub-location-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
    position: relative;
}

.hub-location-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 90, 61, 0.35);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

.hub-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0f172a;
}

.hub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.hub-location-card:hover .hub-img {
    transform: scale(1.06);
}

.hub-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
    pointer-events: none;
}

.hub-top-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.hub-country-pill {
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hub-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hub-card-content {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (max-width: 575px) {
    .hub-card-content {
        padding: 18px 18px 16px;
    }
}

.hub-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.hub-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hub-title a:hover {
    color: #ef4444;
}

.hub-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 18px;
    flex: 1;
}

.hub-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.hub-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hub-action-btn:hover {
    background: #0f172a;
    color: #FFFFFF !important;
    border-color: #0f172a;
}

.hub-action-btn i {
    font-size: 12px;
    color: #ef4444;
    transition: transform 0.25s ease, color 0.25s ease;
}

.hub-action-btn:hover i {
    color: #FFFFFF;
    transform: translateX(4px);
}

/* Secondary City Pills Directory */
.secondary-cities-block {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

@media (max-width: 575px) {
    .secondary-cities-block {
        padding: 18px 14px;
        border-radius: 12px;
    }
}

.sec-cities-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}

@media (max-width: 575px) {
    .sec-cities-title {
        font-size: 12.5px;
    }
}

.sec-cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 575px) {
    .sec-cities-grid {
        gap: 8px;
    }
}

.city-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 575px) {
    .city-pill-badge {
        font-size: 12px;
        padding: 7px 12px;
        gap: 6px;
    }
}

.city-pill-badge:hover {
    background: #0f172a;
    color: #FFFFFF !important;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.city-pill-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.city-pill-badge:hover .city-pill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* International Regional Groups Grid */
.intl-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

@media (max-width: 640px) {
    .intl-regions-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 24px;
    }
}

/* ==============================================================================
   REGIONAL AFRICAN HUBS STRUCTURAL BLOCKS & SCROLL OFFSETS
   ============================================================================== */
.hub-region-block {
    margin-bottom: 56px;
    padding-bottom: 44px;
    border-bottom: 1px solid #E5E7EB;
    scroll-margin-top: 115px;
}

.hub-region-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#west-african-hub,
#east-african-hub,
#south-african-hub,
#north-african-hub,
#international-markets,
#market-panel-intl {
    scroll-margin-top: 115px;
}