/* ==========================================================================
   Excellence Bridge Charter School - Main Stylesheet
   Modern, responsive design with school-friendly color palette
   ========================================================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
}

/* CSS Custom Properties (Variables) */
:root {
    /* Wine & Cream Color Palette */
    --wine: #722F37;
    --wine-dark: #5a252c;
    --wine-light: #8a3a44;
    --cream: #F5F5DC;
    --cream-dark: #e8e8d0;
    --accent-gold: #D4AF37;
    --accent-gold-dark: #b5942f;

    /* Neutral Colors */
    --white: #ffffff;
    --light-cream: #fafaf0;
    --medium-gray: #8b8b83;
    --dark-gray: #343a40;
    --text-dark: #2c2c24;
    --text-light: #5a5a4a;
    --border-light: #e0e0d8;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-blue-dark);
}

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Button Base Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Button Sizes */
.btn-sm {
    padding: 0.4rem 1.25rem;
    font-size: 0.8rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: var(--font-size-base);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    background-color: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Bootstrap Navbar Custom Styles */
.navbar-brand .logo {
    transition: var(--transition-fast);
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

/* Bootstrap Dropdown Custom Styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius-lg);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Bootstrap Button Custom Styles */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Bootstrap Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 180px 0 120px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px; /* Height of the fixed navbar */
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features-section {
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

/* Welcome Section */
.welcome-section {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-gold);
}

/* Programs Section */
.programs-section {
    background: #f8f9fa;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.program-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.program-card:hover .program-icon {
    background: var(--secondary-gold);
    transform: rotateY(180deg);
}

.program-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .feature-card, .program-card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .carousel-slide {
        height: 70vh;
    }
}

@media (max-width: 767.98px) {
    .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-slide {
        height: 60vh;
        min-height: 400px;
    }
}

/* Fixed top navbar spacing - removed body padding to eliminate space between header and hero */

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.school-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-blue);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    color: var(--white);
    padding: 8rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About Hero Section */
.about-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.about-hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* About Hero Section */
.about-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.about-hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.about-hero-section .hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--wine);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.quick-info {

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Content Sections */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-text h2 {
    margin-bottom: 1.5rem;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

/* Cards and Grid Layouts */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Stats and Numbers */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Programs and Features */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-normal);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.program-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* News and Articles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
}

.news-content h3 {
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Faculty and Staff */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faculty-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-normal);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.faculty-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--light-gray);
}

.faculty-subject {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.faculty-credentials {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.photo-grid img:hover {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--text-dark);
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    top: -10px;
    left: -20px;
    opacity: 0.3;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.testimonial-author p {
    margin: 0;
    color: var(--text-light);
}

/* Virtual Tour Section */
.virtual-tour {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    color: var(--white);
}

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tour-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.tour-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
}

.tour-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tour-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.tour-feature i {
    color: var(--secondary-gold);
}

.tour-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

/* Enhanced Info Cards */
.info-card.enhanced {
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-gold);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.quick-stat {
    text-align: center;
}

.quick-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.quick-stat .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* Enhanced Program Cards */
.program-features,
.program-benefits {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.program-features,
.program-benefits,
.enrollment-info {
    display: grid;
    gap: 0.75rem;
}

.program-feature,
.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
}

.program-feature i,
.benefit-item i {
    color: var(--primary-blue);
    width: 16px;
}

.enrollment-info p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* Enhanced News Section */
.featured-news {
    margin-bottom: 3rem;
}

.featured-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
}

.featured-story img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    background-color: var(--secondary-gold);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    width: fit-content;

.featured-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.featured-date {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.news-cta {
    text-align: center;
    margin-top: 2rem;
}

/* =================================
   Footer Styles
   ================================= */
.footer {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c2a 50%, #722F37 100%) !important;
    color: #f5f1e8 !important;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 3.5rem 0 0 !important;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.3);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #722F37, #D4AF37, #722F37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.footer a {
    color: #b3b9c5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer Headings */
.footer-heading {
    color: #e8dcc0;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e8dcc0, #d4c4a8);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(232, 220, 192, 0.4);
}

/* About Section */
.footer-logo img {
    transition: all 0.3s ease;
    max-height: 60px;
    margin-bottom: 1rem;
}

.footer-logo img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer, 
.footer p,
.footer .text-white,
.footer h4,
.footer h5,
.footer .footer-heading {
    color: #f5f1e8 !important;  /* Lighter cream for better visibility */
}

.footer p {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #f5f1e8;
    margin-bottom: 1.5rem;
    opacity: 0.95;  /* Slight transparency for depth */
}

/* Enhance contrast for better readability */
.footer a:not(.btn) {
    color: #f5f1e8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:not(.btn):hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(245, 241, 232, 0.5);
}

/* Improve contact info visibility */
.contact-info a,
.contact-info span {
    color: #f5f1e8 !important;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Footer bottom text */
.footer-bottom,
.footer-bottom p,
.footer-bottom a {
    color: #f5f1e8 !important;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: #e8dcc0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.35rem 0;
    position: relative;
}

.footer-links a:hover {
    color: #e8dcc0;
    transform: translateX(8px);
    text-shadow: 0 0 8px rgba(232, 220, 192, 0.4);
}

.footer-links i {
    font-size: 0.65rem;
    color: #d4c4a8;
    margin-right: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 0.8rem;
    text-align: center;
}

.footer-links a:hover i {
    color: #e8dcc0;
    transform: translateX(3px) scale(1.1);
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Ensure all contact text is cream */
.contact-info a[href^="tel:"],
.contact-info a[href^="mailto:"],
.contact-info a,
.contact-info span {
    color: #f5f1e8 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.contact-info li {
    position: relative;
    padding-left: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.contact-info li:last-child {
    margin-bottom: 0;
}

.contact-info i {
    color: #d4c4a8;
    font-size: 1rem;
    margin-top: 0.25rem;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info li:hover i {
    color: #e8dcc0;
    transform: scale(1.15) rotate(5deg);
}

.contact-info .fw-medium {
    color: #e8dcc0;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Newsletter Form */
.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 46px;
    border-radius: 4px 0 0 4px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.newsletter-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-1px);
}

/* App Download */
.app-download a {
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.app-download a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(232, 220, 192, 0.15);
    border-radius: 12px;
    color: #d4c4a8;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(232, 220, 192, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #722F37, #e8dcc0);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 12px;
}

.social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.4);
    border-color: #722F37;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #f5f1e8;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(232, 220, 192, 0.2) !important;
    padding: 1.25rem 0 !important;
    margin-top: 2.5rem !important;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(74, 44, 42, 0.7)) !important;
    backdrop-filter: blur(10px);
}

.footer-bottom p {
    color: #e8dcc0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 500;
}

.footer-bottom-links {
    margin: 0;
    padding: 0;
    text-align: right;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-bottom-links a {
    color: #e8dcc0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom-links a::after {
    content: '•';
    position: absolute;
    right: -0.9rem;
    color: #d4c4a8;
    pointer-events: none;
    font-weight: bold;
}

.footer-bottom-links a:last-child::after {
    display: none;
}

.footer-bottom-links a:hover {
    color: #d4c4a8;
    text-decoration: none;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(212, 196, 168, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .footer {
        text-align: center;
        padding: 2.5rem 0 0;
    }
    
    .footer-heading {
        margin-top: 1.5rem;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem !important;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .footer p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }
    
    .social-icons {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 1rem 0;
    }
    
    .footer-bottom .row > div {
        text-align: center !important;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin: 0.75rem 0 0;
    }
    
    .footer-bottom p {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        justify-content: center;
    }
    
    .footer-bottom-links a {
        padding: 0.25rem 0.5rem;
    }
    
    .footer-bottom-links a::after {
        display: none;
    }
    
    .footer-links {
        margin-bottom: 0.5rem;
    }
    
    .contact-info li {
        margin-bottom: 0.75rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: #fff;
    text-align: center;
    border-radius: 50%;
    font-size: 18px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
    .footer {
        text-align: center;
        padding: 3rem 0 0;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .app-download {
        text-align: center;
    }
    
    .newsletter-form .input-group {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .footer-bottom .row > div:first-child {
        margin-bottom: 1rem;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .footer-bottom-links li:not(:last-child)::after {
        display: none;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Loading and Animation States */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Header and Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--wine);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: var(--cream) !important;
    font-weight: 500;
}

.navbar-brand {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--accent-gold) !important;
}

.navbar-toggler {
    border-color: var(--cream);
    padding: 0.5rem 0.75rem;
}

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

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Hero Carousel Section */
.hero-carousel {
    margin-top: 80px; /* Height of the fixed navbar */
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Carousel Container */
#headerCarousels {
    width: 100%;
    overflow: hidden;
}

/* Adjust body padding to account for fixed header */
body {
    padding-top: 0;
}

.header-carousel-item {
    height: calc(100vh - 80px); /* Full viewport height minus navbar */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.carousel-caption {
    text-align: left;
    position: relative;
    bottom: auto;
    left: 0;
    right: 0;
    padding: 2rem;
    max-width: 600px;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .header-carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .header-carousel-item {
        height: 50vh;
        min-height: 350px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .btn,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .page-header {
        background: none;
        color: black;
        padding: 1rem 0;
    }
}
