/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #fd7e14;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    --gradient-hero: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
}

/* ... existing code ... */



/* ... rest of the media query ... */

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: white;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Overlay gradient for text readability */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: heroRotate 20s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-slide:nth-child(4) {
    animation-delay: 15s;
}

@keyframes heroRotate {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
        transform: scale(1.05);
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}


.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Features/Stats Section */
.stats-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Programs Section */
.program-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

/* News Cards */
#news .card {
    transition: all 0.3s ease;
}

#news .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#news .card-img-top {
    transition: transform 0.5s ease;
}

#news .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Call to Action */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Footer */
footer {
    background-color: #1a1d20;
    color: #adb5bd;
    padding-top: 4rem;
}

.footer-brand {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .stats-section {
        margin-top: 3rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Resize Hero Text */
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Hero Buttons */
    .hero-content .d-flex {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-content .btn {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Stats Section */
    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* Navbar Adjustments */
    .navbar-brand img {
        height: 35px !important;
        margin-right: 8px !important;
    }

    .navbar-brand .d-flex span:first-child {
        font-size: 0.8rem !important;
    }

    .navbar-brand .d-flex span:last-child {
        font-size: 0.65rem !important;
    }

    /* Adjust section titles */
    h2.display-5,
    h2.display-4 {
        font-size: 1.75rem;
    }
}

@media (max-width: 450px) {
    .navbar {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .navbar>.container {
        padding-left: 12px;
        padding-right: 12px;
        flex-wrap: nowrap !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Disable AOS offset on mobile to prevent horizontal scroll */
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    /* Logo link container */
    .navbar-brand {
        margin-right: 0;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
        max-width: 70%;
    }

    .navbar-brand img {
        height: 30px !important;
        width: auto;
        margin-right: 6px !important;
        flex-shrink: 0;
    }

    .navbar-brand .d-flex {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        flex: 1;
        min-width: 0;
    }

    .navbar-brand .d-flex span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }

    .navbar-brand .d-flex span:first-child {
        font-size: 0.72rem !important;
        font-weight: 700;
        letter-spacing: -0.2px;
        line-height: 1.1;
    }

    .navbar-brand .d-flex span:last-child {
        font-size: 0.6rem !important;
        line-height: 1.1;
        opacity: 0.9;
    }

    .navbar-toggler {
        padding: 4px 8px;
        font-size: 0.9rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        margin-left: auto;
        max-width: 25%;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 375px) {
    .navbar-brand {
        max-width: 70%;
    }

    .navbar-brand img {
        height: 26px !important;
        margin-right: 4px !important;
    }

    .navbar-brand .d-flex span:first-child {
        font-size: 0.65rem !important;
    }

    .navbar-brand .d-flex span:last-child {
        font-size: 0.5rem !important;
    }

    .navbar>.container {
        padding-left: 6px;
        padding-right: 6px;
    }
}