/* ==========================================================================
   EFE SECURITIES - MODERN STYLE SYSTEM
   Corporate Navy Blue & Burgundy African-Centric Layout Rules
   ========================================================================== */

:root {
    --primary-navy: #1D2A6B;
    --primary-navy-dark: #0E1643;
    --branding-burgundy: #7D1224;
    --accent-burgundy-light: #9B1C31;
    --slate-gray: #4A5568;
    --silver-light: #F3F4F6;
    --border-glow: rgba(125, 18, 36, 0.15);
    --card-shadow: 0 15px 35px -10px rgba(29, 42, 107, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --positive-green: #10B981;
    --negative-red: #EF4444;
    --background-warm: #FAF9F6;
    --gold-gradient: linear-gradient(135deg, #FBBF24 0%, #D4AF37 100%);
    --burgundy-gradient: linear-gradient(135deg, #7D1224 0%, #9B1C31 100%);
    --navy-gradient: linear-gradient(135deg, #1D2A6B 0%, #0E1643 100%);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background-warm);
    color: #2D3748;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- INDEX TICKER --- */
.ticker-wrap {
    width: 100%;
    background-color: var(--primary-navy);
    color: #FFFFFF;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 3px solid var(--branding-burgundy);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2.5rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.ticker-item i {
    margin-right: 8px;
}

.ticker-item span.up { color: var(--positive-green); }
.ticker-item span.down { color: var(--negative-red); }

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(29, 42, 107, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
}

.logo-wrap img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--slate-gray);
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2D3748;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--branding-burgundy);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--branding-burgundy);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--branding-burgundy);
    color: #FFFFFF !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(125, 18, 36, 0.2);
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background-color: var(--primary-navy) !important;
    box-shadow: 0 4px 15px rgba(29, 42, 107, 0.25) !important;
    transform: translateY(-2px);
}

/* --- CORE BUTTONS --- */
.btn-primary {
    background-color: var(--branding-burgundy);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--branding-burgundy);
    box-shadow: 0 4px 15px rgba(125, 18, 36, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    transform: translateY(-3px);
    border-color: #FFFFFF;
    box-shadow: none;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: #FFFFFF;
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-3px);
}

/* --- PAGE BANNER --- */
.page-banner {
    background: linear-gradient(135deg, #090E2D 0%, #35080E 100%);
    color: #FFFFFF;
    padding: 70px 20px;
    border-bottom: 3.5px solid var(--branding-burgundy);
    position: relative;
    overflow: hidden;
}

.page-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 700px;
}

/* --- FOOTER --- */
footer {
    background-color: #0E142F;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 35px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--branding-burgundy);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--branding-burgundy);
}

.footer-logo img {
    height: 48px;
    margin-bottom: 18px;
}

.footer-logo p {
    margin-bottom: 22px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: #FFFFFF;
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #FFFFFF;
    background: rgba(255,255,255,0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--branding-burgundy);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 25px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* --- STATS COUNTERS --- */
.stats-strip {
    display: flex;
    gap: 30px;
}

.stats-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(29, 42, 107, 0.03);
    display: flex;
    align-items: center;
    gap: 18px;
}

.stats-box i {
    width: 48px;
    height: 48px;
    background-color: var(--silver-light);
    color: var(--branding-burgundy);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.stats-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.1;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--slate-gray);
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* --- HERO BANNER & SHIELD CARD STYLING --- */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #090E2D 0%, #35080E 100%);
    color: #FFFFFF;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(217deg, rgba(125,18,36,0.2), rgba(0,0,0,0) 70%),
        linear-gradient(127deg, rgba(29,42,107,0.25), rgba(0,0,0,0) 70%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content h1 span.highlight {
    color: #FBBF24;
    background: linear-gradient(to right, #FBBF24, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    max-width: 620px;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--branding-burgundy);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--branding-burgundy);
    box-shadow: 0 4px 15px rgba(125, 18, 36, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    transform: translateY(-3px);
    border-color: #FFFFFF;
    box-shadow: none;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: #FFFFFF;
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-3px);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    position: relative;
}

.shield-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    text-align: center;
    transition: var(--transition-smooth);
}

.shield-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.shield-card i.shield-icon {
    font-size: 4rem;
    color: #FBBF24;
    margin-bottom: 22px;
    animation: pulse-glow-shield 2s infinite ease-in-out;
}

@keyframes pulse-glow-shield {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(251,191,36,0.3)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(251,191,36,0.6)); }
}

/* ==========================================================================
   BESPOKE AFRICAN PAGE BANNERS & INTERACTIVE HERO CAROUSEL
   ========================================================================== */

.page-banner {
    position: relative;
    background-color: var(--primary-navy);
    background-image: linear-gradient(135deg, rgba(14, 22, 67, 0.88) 0%, rgba(29, 42, 107, 0.82) 50%, rgba(125, 18, 36, 0.85) 100%), url('../img/african/hero_sunset_savanna.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FBBF24 0%, #D4AF37 35%, #7D1224 70%, #1D2A6B 100%);
    z-index: 2;
}

.page-banner-vfex {
    background-image: linear-gradient(135deg, rgba(14, 22, 67, 0.88) 0%, rgba(29, 42, 107, 0.82) 50%, rgba(125, 18, 36, 0.85) 100%), url('../img/african/banner_victoria_falls.jpg');
}

.page-banner-research {
    background-image: linear-gradient(135deg, rgba(14, 22, 67, 0.88) 0%, rgba(29, 42, 107, 0.82) 50%, rgba(125, 18, 36, 0.85) 100%), url('../img/financial/financial_research_banner.jpg');
}

.page-banner-pricesheet {
    background-image: linear-gradient(135deg, rgba(14, 22, 67, 0.88) 0%, rgba(29, 42, 107, 0.82) 50%, rgba(125, 18, 36, 0.85) 100%), url('../img/financial/financial_market_monthly.jpg');
}

.page-banner-harare {
    background-image: linear-gradient(135deg, rgba(14, 22, 67, 0.88) 0%, rgba(29, 42, 107, 0.82) 50%, rgba(125, 18, 36, 0.85) 100%), url('../img/african/banner_harare_jacaranda.jpg');
}

.page-banner-lion {
    background-image: linear-gradient(135deg, rgba(14, 22, 67, 0.88) 0%, rgba(29, 42, 107, 0.82) 50%, rgba(125, 18, 36, 0.85) 100%), url('../img/african/hero_lion_savanna.jpg');
}

/* --- DYNAMIC INTERACTIVE AFRICAN HERO CAROUSEL --- */
.hero-slider-wrap {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-slide-item {
    display: none;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.75s ease-in-out, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide-item.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.hero-glass-card {
    background: rgba(14, 22, 67, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-nav-pill {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-nav-pill.active {
    background: rgba(255, 255, 255, 0.22);
    border-color: #FBBF24;
    color: #FFFFFF;
}

.hero-nav-pill .progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #FBBF24;
    width: 0%;
}

.hero-nav-pill.active .progress-fill {
    animation: slideProgress 7s linear forwards;
}

@keyframes slideProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.badge-pulse {
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}


