:root {
    /* Primary Reds */
    --primary-color: #6a1111;       /* Vibrant Red */
    --primary-light: #FF6659;       /* Lighter Red */
    --primary-dark: #B71C1C;        /* Darker Red */
    
    /* Secondary Greens */
    --secondary-color: #388E3C;     /* Forest Green */
    --secondary-light: #66BB6A;     /* Light Green */
    --secondary-dark: #09370b;      /* Dark Green */
    
    /* Accent Reds */
    --accent-color: #F44336;        /* Bright Red */
    --accent-light: #FF8A80;        /* Soft Red */
    --accent-dark: #C62828;         /* Deep Red */
    
    /* Neutrals (unchanged for contrast and readability) */
    --light-color: #F8F9FA;         /* Off-White */
    --dark-color: #212529;          /* Near Black */
    --gray-light: #E9ECEF;          /* Light Gray */
    --gray-medium: #CED4DA;         /* Medium Gray */
    --gray-dark: #6C757D;           /* Dark Gray */
    
    /* System Colors */
    --success-color: #2E7D32;       /* Dark Green */
    --success-light: #66BB6A;       /* Light Green */
    --success-dark: #1B5E20;        /* Darker Green */
    --warning-color: #FFCA28;       /* Amber for visibility (adjusted slightly for harmony) */
    --danger-color: #D32F2F;        /* Vibrant Red */
    --danger-light: #FF6659;        /* Lighter Red */
    --danger-dark: #B71C1C;         /* Darker Red */
    
    /* Effects (unchanged) */
    --box-shadow: 0 4px 6px rgba(33, 37, 41, 0.1); /* Neutral shadow */
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary, .btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(183, 28, 28, 0.15); /* Adjusted shadow to match red */
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* Header & Navigation */
.main-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(211, 47, 47, 0.15); /* Adjusted shadow to match red */
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    z-index: 1030;
    border-bottom: 2px solid var(--secondary-color);
}

.navbar-brand {
    font-weight: 700;
    color: var(--light-color) !important;
    position: relative;
    padding: 1rem 0;
    margin-left: 120px !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-light) !important;
}

.navbar-brand small.text-success {
    color: var(--success-light) !important;
    font-weight: 400;
    letter-spacing: 1.2px;
    display: block;
    margin-top: 3px;
    font-size: 0.7rem !important;
    text-transform: uppercase;
}

.nav-link {
    color: var(--light-color) !important;
    padding: 1.2rem 1.5rem !important;
    transition: var(--transition);
}

.nav-link:hover, 
.nav-link:focus {
    color: var(--secondary-color) !important;
    background-color: var(--primary-dark);
}

.nav-item.active .nav-link {
    font-weight: 600;
    border-bottom: 3px solid var(--secondary-color);
}

.navbar-toggler {
    border-color: var(--secondary-light);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(248, 249, 250, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    margin-right: 120px;
}

.nav-item {
    margin: 0 5px;
    position: relative;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 1rem 1.2rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.dropdown-toggle::after {
    content: "▾";
    border: none !important;
    vertical-align: middle;
    margin-left: 6px;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.show > .dropdown-toggle::after {
    transform: rotate(-180deg);
}

.nav-link:not(.dropdown-toggle):after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover:not(.dropdown-toggle):after,
.nav-item.active .nav-link:not(.dropdown-toggle):after {
    width: 80%;
    background: var(--accent-color);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 70%;
    left: 50%;
}

.dropdown-menu {
    background-color: white;
    border: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    min-width: 220px;
}

.dropdown-item {
    color: #555 !important;
    padding: 12px 20px !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--secondary-light);
    color: var(--primary-dark) !important;
    padding-left: 25px !important;
    transition: var(--transition);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.75rem;
    margin-right: 1rem;
    background-color: var(--secondary-light);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--accent-light);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23D32F2F' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: 1px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
    background-color: var(--light-color);
}

@media (max-width: 991.98px) {
    .navbar-brand {
        margin-left: 1rem !important;
    }
    
    .navbar-nav {
        margin-right: 0;
        padding: 10px 0;
        background-color: var(--light-color);
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        padding: 12px 20px !important;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        border-left: 4px solid var(--success-light);
        box-shadow: none;
        margin-left: 20px;
        width: calc(100% - 40px);
    }
    
    .dropdown-item {
        padding: 10px 25px !important;
    }
    
    .dropdown-toggle::after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .show > .dropdown-toggle::after {
        transform: translateY(-50%) rotate(-180deg);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-color);
    text-align: center;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(211, 47, 47, 0.7),  /* Vibrant Red with 70% opacity */
        rgba(56, 142, 60, 0.6)  /* Forest Green with 60% opacity */
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.typed-text {
    font-size: 1.8rem;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 400;
}

.typed-cursor {
    font-size: 1.8rem;
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
}

.hero-buttons .btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-color);
    color: var(--light-color);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Quick Links Section */
.quick-links-section {
    padding: 4rem 0;
    background-color: var(--gray-light);
}

.quick-link-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.quick-link-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.quick-link-card p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.quick-link-card a {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.quick-link-card a i {
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.quick-link-card a:hover i {
    transform: translateX(5px);
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-section img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-section img:hover {
    transform: scale(1.02);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-dark);
}

.program-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 1.5rem;
}

.program-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.program-content p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* News Section */
.news-section {
    padding: 5rem 0;
}

.news-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
    z-index: 1;
}

.news-date span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.news-date span:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 1.5rem;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.news-content h4 a {
    color: var(--dark-color);
    transition: var(--transition);
}

.news-content h4 a:hover {
    color: var(--primary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 1rem;
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(211, 47, 47, 0.1); /* Adjusted to match red */
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px !important;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.rating {
    color: var(--accent-color);
    margin-top: 0.3rem;
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    background-color: #fff;
}

.events-section .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.events-section .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.events-section .section-header p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

.events-section .event-card {
    background: #fff;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.events-section .event-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
    border-color: #e0e0e0;
}

.events-section .event-date {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    min-width: 70px;
}

.events-section .event-date span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    line-height: 1;
}

.events-section .event-date span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 500;
}

.events-section .event-content {
    padding: 1.5rem;
    flex: 1;
}

.events-section .event-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.events-section .event-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.events-section .event-content h4 a:hover {
    color: var(--primary-color);
}

.events-section .event-content p {
    margin-bottom: 0.6rem;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.events-section .event-content p i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 16px;
    text-align: center;
}

.events-section .btn-outline-primary {
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border-width: 1px;
    font-weight: 500;
}

.events-section .btn-primary {
    padding: 0.6rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 1.5rem;
}

.events-section .alert-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    border-radius: 6px;
}

@media (max-width: 992px) {
    .events-section {
        padding: 3rem 0;
    }
    
    .events-section .event-date {
        min-width: 60px;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .events-section .section-title {
        font-size: 1.6rem;
    }
    
    .events-section .event-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .events-section .event-card {
        margin-bottom: 1.25rem;
    }
    
    .events-section .event-date span:first-child {
        font-size: 1.3rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.cta-section .btn-outline-light {
    border: 2px solid var(--light-color);
    color: var(--light-color);
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.cta-section .btn-outline-light:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-form h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-control {
    border-radius: 4px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-medium);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.1); /* Adjusted to match red */
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    position: relative;
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--light-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-widget h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.newsletter-form .input-group {
    display: flex;
}

.newsletter-form .form-control {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(--secondary-color);
    color: var(--light-color);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.footer-bottom-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-bottom-links li {
    display: inline-block;
    margin-left: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--light-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aos-animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .typed-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        padding: 8rem 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-widget {
        margin-bottom: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .typed-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .main-navbar .navbar-nav {
        padding-top: 1rem;
    }
    
    .main-navbar .nav-link {
        padding: 0.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .event-date span:first-child {
        margin-right: 1rem;
    }
}

/* Carousel Improvements */
.programs-carousel {
    margin: 2rem 0;
}

.programs-carousel .owl-stage-outer {
    padding: 1rem 0;
}

.program-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 0 10px;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.95);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.program-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.program-content {
    padding: 1.5rem;
    position: relative;
}

.program-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    position: relative;
    z-index: 2;
}

.program-content p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 60px;
}

.program-content .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.owl-prev, 
.owl-next {
    width: 50px;
    height: 50px;
    background: var(--light-color) !important;
    border-radius: 50% !important;
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    line-height: 50px !important;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: all;
    transition: all 0.3s ease;
}

.owl-prev:hover, 
.owl-next:hover {
    background: var(--primary-color) !important;
    color: var(--light-color) !important;
    transform: scale(1.1);
}

.owl-prev {
    margin-left: -25px;
}

.owl-next {
    margin-right: -25px;
}

.owl-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.owl-dot {
    width: 12px;
    height: 12px;
    background: var(--gray-medium) !important;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.owl-dot.active {
    background: var(--primary-color) !important;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .program-image {
        height: 180px;
    }
    
    .program-content {
        padding: 1rem;
    }
    
    .owl-prev, 
    .owl-next {
        width: 40px;
        height: 40px;
        line-height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .owl-prev {
        margin-left: -15px;
    }
    
    .owl-next {
        margin-right: -15px;
    }
}

@media (max-width: 576px) {
    .program-image {
        height: 150px;
    }
    
    .program-content h4 {
        font-size: 1.1rem;
    }
    
    .program-content p {
        font-size: 0.85rem;
        min-height: auto;
        margin-bottom: 1rem;
    }
}

/* Button Styles */
.btn-primary, .bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--light-color);
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(183, 28, 28, 0.15); /* Adjusted shadow to match red */
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--light-color) !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    color: var(--light-color) !important;
}

/* Sidebar Cards */
.sidebar .card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: 0.75rem;
    background-color: var(--light-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sidebar .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.1); /* Adjusted to match red */
}

.sidebar .card-header {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-bottom: none;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.25rem;
    font-weight: 600;
    position: relative;
}

.sidebar .card-header:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 0.75rem;
    border-radius: 3px;
}

.sidebar .card-body {
    padding: 1.5rem;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding-left: 70px;
    margin: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background: var(--gray-medium);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-year {
    position: absolute;
    left: -70px;
    top: 0;
    background: var(--secondary-color);
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
    border-left: 3px solid var(--secondary-color);
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--secondary-color);
}

/* School Facts */
.school-fact {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.fact-icon {
    width: 50px;
    height: 50px;
    background: rgba(211, 47, 47, 0.1); /* Adjusted to match red */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fact-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 1.5rem 0;
}

.gallery-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 1/1;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Values List */
.values-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 50px;
    }
    
    .timeline:before {
        left: 25px;
    }
    
    .timeline-year {
        left: -50px;
        width: 40px;
        height: 40px;
    }
    
    .school-fact {
        flex-direction: column;
    }
    
    .fact-icon {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}