* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', Georgia, serif;
}

:root {
    --primary-color: #0a1a3f;  
    --secondary-color: #b63806;
    --orange: #b63806;
    --dark-blue: #0a1a3f; 
    --text-color: #333;
    --bg-color: #fff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 0;
}
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container {
    max-width: none;
    margin: 0;
    padding: 0 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-brand img {
    height: 40px;
}
.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-blue);
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}
.register-btn {
    padding: 10px 25px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.register-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white !important;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.menu-icon {
    width: 30px;
    height: 20px;
    position: relative;
}
.menu-icon .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark-blue);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.menu-icon .bar:first-child {
    top: 0;
}
.menu-icon .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.menu-icon .bar:last-child {
    bottom: 0;
}
.theme-toggle {
    background: none;
    border: none;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
        align-items: flex-start;
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 10px 0;
    }
}
/* Hero Section */
.hero-section {
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 20px; /* top accounts for fixed navbar height */
    background: 
        linear-gradient(rgba(10, 31, 68, 0.75), rgba(10, 31, 68, 0.75)),
        url('images/scholars-wall.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content01 {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-text h2,
.hero-text h3,
.hero-text p {
    position: relative;
    display: inline-block;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 1rem;
}

/* "Our Programs" - small uppercase label */
.hero-text h2:first-child {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0a1a3f;
    padding: 6px 18px;
    border-radius: 4px;
}

/* "Empowering African students" - heading, now much smaller */
.hero-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a1a3f;
    line-height: 1.3;
    padding: 10px 22px;
    border-radius: 6px;
}

/* Paragraph text */
.hero-text p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #333;
    line-height: 1.5;
    padding: 8px 18px;
    border-radius: 4px;
}

/* Sliding background bar for each */
.hero-text h2:first-child::before,
.hero-text h3::before,
.hero-text p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: slideInBg 1.2s ease forwards;
}

.hero-text h2:first-child::before {
    animation-delay: 0.3s;
}
.hero-text h3::before {
    animation-delay: 1s;
}
.hero-text p::before {
    animation-delay: 1.8s;
}

@keyframes slideInBg {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}


/* Programs Section */
.programs-section {
    padding: 100px 0;
    background: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 50px;
    align-items: stretch;
}
.program-card {
    background: white;
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.program-card:hover::before {
    transform: scaleX(1);
}

.program-card h3 {
    font-size: 1.15rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    line-height: 1.3;
}
.program-card>p {
    color: #666;
    line-height: 1.55;
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.program-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}
.program-features::-webkit-scrollbar {
    width: 4px;
}
.program-features::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.program-features li {
    padding: 6px 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
}
.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
    font-size: 0.8rem;
}
.cta-button {
    display: inline-block;
    padding: 10px 22px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
}
.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .program-card {
        height: auto;
        max-height: 520px;
    }
}

.afsn-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.afsn-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.afsn-logo-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}