/* ========================================
   WiLDAF Zambia - Main Stylesheet (FIXED)
   ======================================== */

:root {
    --primary-purple: #6B3FA0;
    --primary-purple-dark: #4A2A6E;
    --secondary-blue: #2A7FAA;
    --secondary-blue-dark: #1E5E7E;
    --pure-white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #2C3E50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    color: var(--dark-gray);
    background-color: var(--pure-white);
    line-height: 1.6;
    padding-top: 80px;
}

/* Typography - Ensure all text is visible */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
.lead { font-size: 1.2rem; font-weight: 400; }

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-purple) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-purple) !important;
}

/* Hero Section - FIXED */
.hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 63, 160, 0.7), rgba(42, 127, 170, 0.7));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    max-width: 700px;
    margin: 0 auto;
}

/* Page Hero - FIXED */
.page-hero {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 63, 160, 0.8), rgba(42, 127, 170, 0.8));
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.1rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-blue));
    border-radius: 3px;
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.service-card, .program-card, .blog-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.service-card:hover, .program-card:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(107,63,160,0.1);
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-purple);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-custom:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-blue));
    color: white;
    padding: 4rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #eee;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    color: white;
}

.social-icons a:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    body { padding-top: 70px; }
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    h1 { font-size: 1.8rem; }
    .hero { min-height: 60vh; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .page-hero { padding: 3rem 0; }
    .page-hero h1 { font-size: 1.6rem; }
}

/* Utility Classes */
.text-purple { color: var(--primary-purple); }
.bg-purple-light { background: #F3E8FF; }
.bg-blue-light { background: #E8F0FE; }