/* General Body and Container Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Professional Featured Programs Styling */

/* Background Gradient */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-header h6 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h1 {
    font-weight: 800;
    line-height: 1.2;
}

.section-header .text-primary {
    color: #667eea !important;
}

.section-header .text-secondary {
    color: #764ba2 !important;
}

.letter-spacing-3 {
    letter-spacing: 3px;
}

/* Featured: STEM Enrichment eyebrow — matches “Our Story” / site section headers */
.featured-section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-section-eyebrow__line {
    display: block;
    width: 2.5rem;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0d6efd, #ffc107);
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .featured-section-eyebrow__line {
        width: 3.25rem;
    }
}

.featured-section-eyebrow__text {
    font-family: "Jost", "Segoe UI", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0d6efd;
    margin: 0;
}

/* Featured programs: section title (replaces oversized display-4) */
.featured-programs-headline {
    font-family: "Jost", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.2rem, 2.8vw, 1.65rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #1e293b;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.featured-programs-headline__label {
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.featured-programs-headline__colon {
    font-weight: 600;
    color: #94a3b8;
    margin-right: 0.2em;
}

.featured-programs-headline__line {
    display: inline;
    font-weight: 800;
    color: #0f172a;
}

.featured-programs-headline__brand {
    font-weight: 800;
}

.featured-programs-headline__vex {
    color: #0a5c38;
}

.featured-programs-headline__dot {
    display: inline;
    color: #cbd5e1;
    font-weight: 600;
    margin: 0 0.35em;
    font-size: 0.9em;
}

.featured-programs-headline__more {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.92em;
    margin-left: 0.2em;
}

.featured-programs-sublead {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .featured-programs-sublead {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .featured-programs-headline__line {
        display: block;
        margin-top: 0.35rem;
    }
}

/* STEM Enrichment hero: same horizontal “bleed” and side insets as .modern-carousel-container */
.stem-enrichment-hero {
    position: relative;
    margin: 0 -15px;
    padding: 0 80px;
    margin-bottom: 1.25rem;
}
.stem-enrichment-hero__inner {
    border-radius: 15px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    line-height: 0;
}
.stem-enrichment-hero__img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
@media (max-width: 768px) {
    .stem-enrichment-hero {
        margin: 0 -10px;
        padding: 0 60px;
    }
}
@media (max-width: 576px) {
    .stem-enrichment-hero {
        margin: 0 -5px;
        padding: 0 50px;
    }
}
@media (max-width: 480px) {
    .stem-enrichment-hero {
        margin: 0;
        padding: 0 10px;
    }
}

/* Modern Carousel Container */
.modern-carousel-container {
    position: relative;
    margin: 0 -15px;
    padding: 0 80px; /* Increased space for side navigation buttons */
    overflow: hidden;
    min-height: 450px; /* Ensure minimum height for proper button alignment */
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    min-height: 400px; /* Ensure minimum height for proper button alignment */
}

/* Ensure proper positioning context for navigation buttons */
.modern-carousel-container {
    position: relative !important;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    transition: transform 0.85s cubic-bezier(0.33, 0.0, 0.2, 1);
    gap: 25px;
    padding: 20px 0;
    position: relative;
    min-height: 400px; /* Ensure minimum height for proper button alignment */
    will-change: transform;
}

.carousel-track .program-card,
.carousel-track .league-card {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: calc(100% - 20px);
    max-width: 450px;
    margin: 0;
}

/* Enhanced Carousel Navigation */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 10;
    opacity: 0.9;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 0;
}

.carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    opacity: 1;
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-nav-left {
    left: 15px;
}

.carousel-nav-right {
    right: 15px;
}

/* Ensure proper alignment for leagues carousel specifically */
.modern-carousel-container .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Fix for leagues carousel button alignment */
#leaguesPrevBtn,
#leaguesNextBtn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Additional alignment fixes for leagues carousel */
.modern-carousel-container:has(#leaguesCarousel) {
    position: relative;
}

.modern-carousel-container:has(#leaguesCarousel) .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Specific fix for leagues carousel button alignment */
.modern-carousel-container:has(#leaguesCarousel) #leaguesPrevBtn,
.modern-carousel-container:has(#leaguesCarousel) #leaguesNextBtn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fallback for browsers that don't support :has() */
.modern-carousel-container .carousel-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Universal fix for all carousel navigation buttons */
.carousel-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure perfect alignment for all carousel navigation buttons */
.carousel-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Specific alignment for left and right buttons */
.carousel-nav-left {
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.carousel-nav-right {
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Bottom Dots Container */
.carousel-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Legacy Carousel Navigation (for backward compatibility) */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

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

.carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

/* Responsive Design */
@media (min-width: 576px) {
    .carousel-track .program-card,
    .carousel-track .league-card {
        width: calc(50% - 20px);
    }
}

@media (min-width: 768px) {
    .carousel-track .program-card,
    .carousel-track .league-card {
        width: calc(33.333% - 15px);
    }
}

@media (min-width: 992px) {
    .carousel-track .program-card,
    .carousel-track .league-card {
        width: calc(33.333% - 15px);
    }
}

@media (min-width: 1200px) {
    .carousel-track .program-card,
    .carousel-track .league-card {
        width: calc(33.333% - 15px);
    }
}

/* Touch/Swipe Support — allow horizontal pan for our JS swipe handler */
.carousel-track {
    touch-action: pan-x pinch-zoom;
}

/* Animation for smooth transitions */
.carousel-track {
    will-change: transform;
}

/* Loading state */
.carousel-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility */
.carousel-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.carousel-dot:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mobile optimizations for modern carousel */
@media (max-width: 768px) {
    .modern-carousel-container {
        margin: 0 -10px;
        padding: 0 60px; /* Space for navigation buttons on mobile */
    }
    
    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .carousel-nav-left {
        left: 10px !important;
    }
    
    .carousel-nav-right {
        right: 10px !important;
    }
    
    .carousel-track {
        gap: 18px;
    }
    
    .carousel-track .program-card,
    .carousel-track .league-card {
        min-height: 500px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .modern-carousel-container {
        margin: 0 -5px;
        padding: 0 50px; /* Space for smaller navigation buttons */
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .carousel-nav-left {
        left: 5px !important;
    }
    
    .carousel-nav-right {
        right: 5px !important;
    }
    
    .carousel-track {
        gap: 12px;
    }
    
    .carousel-track .program-card,
    .carousel-track .league-card {
        min-height: 480px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modern-carousel-container {
        margin: 0;
        padding: 0 10px;
    }
    
    .carousel-track .program-card,
    .carousel-track .league-card {
        min-height: 450px;
    }
    
    .program-image,
    .league-image {
        height: 180px;
    }
    
    .program-content,
    .league-content {
        padding: 15px;
    }
    
    .program-title,
    .league-title {
        font-size: 1.1rem;
    }
    
    .program-subtitle,
    .league-subtitle {
        font-size: 0.9rem;
    }
}

/* Modern carousel container handles both programs and leagues */

/* Modern carousel handles all card layouts */

/* Program Cards */
.program-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    min-height: 550px;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Program Image */
.program-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-image picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

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

/* Wide marketing banners (e.g. FLL Explore): show full image without cropping */
.program-image.program-image--contain {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
}

.program-image.program-image--contain img,
.program-image.program-image--contain picture > img {
    object-fit: contain;
    object-position: center;
    /* img-fluid uses height:auto and fights object-fit; keep explicit box fill */
    height: 100%;
    width: 100%;
    max-height: 100%;
}

.program-card:hover .program-image.program-image--contain img,
.program-card:hover .program-image.program-image--contain picture > img {
    transform: none;
}

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

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.program-actions {
    align-self: center;
}

/* Program Content */
.program-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-header {
    margin-bottom: 20px;
}

.program-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.program-subtitle {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Program Details */
.program-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #4a5568;
    flex: 1;
}

.detail-item i {
    width: 20px;
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Program Description */
.program-description {
    margin-bottom: 15px;
    flex-grow: 1;
}

.program-description p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Program Features */
.program-features {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* Program Footer */
.program-footer {
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.program-footer .btn {
    padding: 18px 30px;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 100%;
    max-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* League Cards */
.league-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
    min-height: 550px;
}

.league-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* League Image */
.league-image {
        position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.league-overlay {
    position: absolute;
    top: 0;
        left: 0;
        right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
        opacity: 0;
    transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.league-card:hover .league-overlay {
    opacity: 1;
}

.league-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.league-actions {
    align-self: center;
}

/* League Content */
.league-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.league-header {
    margin-bottom: 20px;
}

.league-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.league-subtitle {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* League Details */
.league-details {
    margin-bottom: 20px;
}

/* League Description */
.league-description {
    margin-bottom: 15px;
    flex-grow: 1;
}

.league-description p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* League Features */
.league-features {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* League Footer */
.league-footer {
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.league-footer .btn {
    padding: 18px 30px;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 100%;
    max-width: 200px;
}

/* Owl Carousel Navigation */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.owl-prev, .owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #667eea !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
    pointer-events: auto;
}

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

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

.owl-prev:hover, .owl-next:hover {
    background: #667eea !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Owl Carousel Dots */
.owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 30px;
}

.owl-dot {
    width: 12px;
    height: 12px;
    background: #e2e8f0;
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.owl-dot.active {
    background: #667eea;
    transform: scale(1.2);
    border-color: #667eea;
}

.owl-dot:hover {
    background: #667eea;
    transform: scale(1.1);
}

/* Responsive Design for Carousels */
@media (max-width: 991.98px) {
    .program-card, .league-card {
        min-height: 500px;
    }
    
    .program-content, .league-content {
        padding: 18px;
    }
    
    .program-title, .league-title {
        font-size: 1.6rem;
    }
    
    .program-image, .league-image {
        height: 200px;
    }
    
    .program-description p, .league-description p {
        font-size: 0.9rem;
    }
    
    .owl-prev, .owl-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .owl-prev {
        left: -20px;
    }
    
    .owl-next {
        right: -20px;
    }
}

@media (max-width: 767.98px) {
    .program-card, .league-card {
        min-height: 450px;
    }
    
    .program-content, .league-content {
        padding: 15px;
    }
    
    .program-title, .league-title {
        font-size: 1.4rem;
    }
    
    .program-image, .league-image {
        height: 180px;
    }
    
    .program-description p, .league-description p {
        font-size: 0.85rem;
    }
    
    .owl-prev, .owl-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .owl-prev {
        left: -15px;
    }
    
    .owl-next {
        right: -15px;
    }
}

@media (max-width: 575.98px) {
    .program-card, .league-card {
        min-height: 400px;
    }
    
    .program-image, .league-image {
        height: 160px;
    }
    
    .program-content, .league-content {
        padding: 12px;
    }
    
    .program-title, .league-title {
        font-size: 1.2rem;
    }
    
    .program-description p, .league-description p {
        font-size: 0.8rem;
    }
    
    .program-footer, .league-footer {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 10px;
    }
    
    .program-footer .btn, .league-footer .btn {
        width: 100%;
        max-width: 180px;
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    .owl-prev, .owl-next {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .owl-prev {
        left: -10px;
    }
    
    .owl-next {
        right: -10px;
    }
}

/* Additional responsive styling for very small screens */
@media (max-width: 480px) {
    .program-footer, .league-footer {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5px;
    }
    
    .program-footer .btn, .league-footer .btn {
        width: 100%;
        max-width: 160px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/*
 * FLL Explore wide PNG: load after all .program-image height rules so it wins in the cascade.
 * object-fit: contain shows the full artwork; slightly taller strip on narrow viewports.
 */
.program-image.program-image--contain {
    height: 220px;
}
@media (max-width: 991.98px) {
    .program-image.program-image--contain {
        height: 235px;
    }
}
@media (max-width: 767.98px) {
    .program-image.program-image--contain {
        height: 215px;
    }
}
@media (max-width: 575.98px) {
    .program-image.program-image--contain {
        height: 195px;
    }
}
@media (max-width: 480px) {
    .program-image.program-image--contain {
        height: 195px;
    }
}

/* Top Bar */
.top-bar {
    background-color: #2c3e50; /* Dark blue */
    color: #ecf0f1; /* Light grey */
    padding: 15px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Topbar Container Styles */
#topbar-placeholder {
    background-color: #2c3e50;
    overflow: hidden;
}

#topbar-placeholder .row {
    margin: 0;
    align-items: center;
}

#topbar-placeholder .col-lg-6,
#topbar-placeholder .col-md-6,
#topbar-placeholder .col-sm-12 {
    padding: 0;
    margin: 0;
}

#topbar-placeholder .d-inline-flex {
    flex-wrap: nowrap;
    overflow: hidden;
}

#topbar-placeholder small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#topbar-placeholder a {
    white-space: nowrap;
    text-decoration: none;
}

#topbar-placeholder .d-inline-flex.align-items-center {
    flex-wrap: nowrap;
    min-width: 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-left: 5px;
}

.top-bar .contact-info span {
    margin-right: 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar .contact-info i {
    margin-right: 5px;
    color: #f39c12 !important; /* Yellow accent */
}

.top-bar .social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.top-bar .social-icons a {
    color: #ecf0f1;
    margin-left: 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .social-icons a:hover {
    color: #3498db;
}

/* Mobile responsiveness for topbar */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        padding: 15px 5px;
    }
    
    .top-bar .contact-info {
        margin-bottom: 10px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-left: 5px;
    }
    
    .top-bar .contact-info span {
        margin-right: 15px;
        font-size: 0.8em;
        white-space: nowrap;
    }
    
    .top-bar .social-icons a {
        margin-left: 10px;
        font-size: 1em;
    }
    
    /* Topbar specific mobile styles */
    #topbar-placeholder .row {
        flex-direction: row;
        align-items: center;
    }
    
    #topbar-placeholder .col-sm-12 {
        flex: 0 0 auto;
        max-width: 50%;
    }
    
    #topbar-placeholder .d-inline-flex {
        font-size: 0.9em;
    }
    
    #topbar-placeholder small {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .top-bar .contact-info {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-left: 5px;
    }
    
    .top-bar .contact-info span {
        font-size: 0.75em;
        margin-right: 10px;
    }
    
    /* Topbar specific small screen styles */
    #topbar-placeholder .row {
        flex-direction: row;
        align-items: center;
    }
    
    #topbar-placeholder .col-sm-12 {
        flex: 0 0 auto;
        max-width: 50%;
    }
    
    #topbar-placeholder .d-inline-flex {
        font-size: 0.85em;
    }
    
    #topbar-placeholder small {
        font-size: 0.8em;
    }
    
    #topbar-placeholder .px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    #topbar-placeholder .px-2 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    #topbar-placeholder .pl-2 {
        padding-left: 0.25rem !important;
    }
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar styles moved to navbar.css */

/* Global Header Image Styles */
.global-header-image {
    position: relative;
    margin-bottom: 5px;
}

.global-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.header-content {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: titleFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    opacity: 0;
    transform: translateY(30px);
}

/* Header Title Animations */
@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-title font {
    display: inline-block;
    animation: wordGlow 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-title font:nth-child(1) {
    animation-delay: 0s;
}

.header-title font:nth-child(2) {
    animation-delay: 0.5s;
}

.header-title font:nth-child(3) {
    animation-delay: 1s;
}

/* Typing effect for the entire title */
.header-title {
    position: relative;
    overflow: hidden;
}

.header-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: typingShine 2s ease-in-out infinite;
}

@keyframes typingShine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes wordGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255,255,255,0.8), 2px 2px 4px rgba(0,0,0,0.5);
        transform: scale(1.05);
    }
}

.header-title:hover font {
    animation: wordBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wordBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Global Header Enroll Button Styles - Positioned at top right */
.header-enroll-section {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    margin: 0;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-enroll-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-decoration: none;
    color: white;
    display: inline-block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 200px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: buttonPulse 2s ease-in-out infinite;
    transform: translateY(0);
}

/* Professional Button Animations */
@keyframes buttonPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }
}

.header-enroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.header-enroll-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.header-enroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.header-enroll-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
    text-decoration: none;
    color: white;
    animation: none;
}

.header-enroll-btn:hover::before {
    left: 0;
}

.header-enroll-btn:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.header-enroll-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-enroll-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 8px 25px rgba(102, 126, 234, 0.4);
}

.header-enroll-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-enroll-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

.header-enroll-btn span {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-enroll-btn:hover span {
    transform: translateX(2px);
}

/* Responsive adjustments for header button - Consistent size */
@media (max-width: 767.98px) {
    .header-title {
        font-size: 2.5rem;
        animation: titleFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
        margin-bottom: 80px; /* Add space for button */
    }
    
    .header-title font {
        animation: wordGlow 2.5s ease-in-out infinite;
    }
    
    .header-content {
        top: 15px;
    }
    
    .header-enroll-section {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 575.98px) {
    .header-title {
        font-size: 2rem;
        animation: titleFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
        margin-bottom: 70px; /* Add space for button */
    }
    
    .header-title font {
        animation: wordGlow 2s ease-in-out infinite;
    }
    
    .header-content {
        top: 10px;
    }
    
    .header-enroll-section {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.8rem;
        margin-bottom: 60px; /* Add space for button */
    }
    
    .header-content {
        top: 8px;
    }
    
    .header-enroll-section {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 400px) {
    .header-title {
        font-size: 1.6rem;
        margin-bottom: 50px; /* Add space for button */
    }
    
    .header-content {
        top: 5px;
    }
    
    .header-enroll-section {
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 350px) {
    .header-title {
        font-size: 1.4rem;
        margin-bottom: 45px; /* Add space for button */
    }
    
    .header-content {
        top: 3px;
    }
    
    .header-enroll-section {
        top: 3px;
        right: 3px;
    }
}

/* Hero Enroll Button Styles - For index page specific styling */
.hero-enroll-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-enroll-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-decoration: none;
    color: white;
    display: inline-block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
}

.hero-enroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    text-decoration: none;
    color: white;
}

.hero-enroll-btn:hover::before {
    left: 0;
}

.hero-enroll-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive adjustments for hero button */
@media (max-width: 1200px) {
    .hero-enroll-btn {
        padding: 14px 35px;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

@media (max-width: 991.98px) {
    .hero-enroll-btn {
        padding: 13px 32px;
        font-size: 1rem;
        min-width: 160px;
    }
}

@media (max-width: 767.98px) {
    .hero-enroll-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        min-width: 150px;
    }
    
    .hero-enroll-section {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-enroll-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-enroll-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .hero-enroll-btn i {
        font-size: 1rem;
        margin-right: 6px;
    }
}

/* Accordion Styles */
.accordion-body {
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accordion-body:hover {
    background-color: #e9ecef;
}

.accordion-body.accordian-active {
    background-color: #667eea;
    color: white;
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-radius: 0 0 8px 8px;
    margin-bottom: 10px;
}

.panel.show {
    max-height: 500px;
    padding: 18px;
    border: 1px solid #e9ecef;
    border-top: none;
}

/* Course Details Page Specific Styles */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.display-6 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.display-6:last-child {
    margin-bottom: 0;
}

/* Index Page Specific Styles */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.img-container-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
        text-align: center;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 2;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About CTA: light card on white column (no blue bar — clear primary + outline) */
#about-section .about-cta {
    margin-top: 0.25rem;
    padding: 1.35rem 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

#about-section .about-cta__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.9rem;
}

#about-section .about-cta__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem 0.65rem;
}

/* !important: Bootstrap loads after style.css and would otherwise force stacked / oversized .btn-lg */
#about-section .about-cta__actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1.25 !important;
    font-size: clamp(0.8rem, 2.5vw, 1.05rem) !important;
    padding: 0.5rem 0.6rem !important;
    white-space: normal;
}

#about-section .about-cta .btn.btn-primary {
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.28);
}

#about-section .about-cta .btn.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

#about-section .about-cta .btn.btn-outline-primary {
    font-weight: 600;
    border-width: 2px;
}

/* About Section Styles */
.about-image-container {
    position: relative;
    overflow: visible;
    border-radius: 12px;
}

/* Home: why-chose image — full width, natural 3:2 aspect (no fixed height crop) */
#about-section .about-hero-picture-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    line-height: 0;
}

#about-section .about-hero-picture-wrap picture,
#about-section .about-hero-picture-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: top;
    transition: transform 0.35s ease;
}

#about-section .about-hero-picture-wrap:hover img {
    transform: scale(1.02);
}

#about-section .about-hero-picture-wrap .image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 20px;
}

.about-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.about-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.about-content {
    padding: 20px 0;
}

.about-description {
    margin-bottom: 30px;
}

.about-links-section {
    margin-top: 30px;
}

.about-link-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.about-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    text-decoration: none;
    color: #333;
}

.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

.link-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.link-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.link-arrow {
    color: #667eea;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.about-link-card:hover .link-arrow {
    transform: translateX(5px);
}

/* Responsive fixes for index page */
@media (max-width: 768px) {
    .img-container-txt {
        font-size: 2rem;
    }
    
    .about-link-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .link-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .link-arrow {
        margin-top: 10px;
    }
}

/* Additional fixes for carousel and layout */
.programs-carousel,
.leagues-carousel {
    display: block !important;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    float: none;
    display: flex;
}

/* Ensure proper spacing */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix for Bootstrap 4 compatibility */
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Professional Footer Styling */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
    z-index: 2;
}

.footer-section h4,
.footer-section h5,
.footer-section h6 {
    color: white !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after,
.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

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

.footer-links a {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #667eea !important;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-links i {
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: scale(1.1);
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    margin-top: 2px;
    font-size: 1rem;
    min-width: 20px;
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    transition: all 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

/* Copyright Section */
.footer hr {
    border-color: rgba(255,255,255,0.1) !important;
}

.footer-bottom-links a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-section h4 {
        font-size: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        gap: 10px;
    }
    
    .contact-item {
        padding: 6px 0;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 3rem 0 !important;
    }
    
    .footer-section h4 {
        font-size: 1.3rem;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-item span {
        font-size: 0.85rem;
    }
    
    .map-container iframe {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-item span {
        font-size: 0.8rem;
    }
    
    .map-container iframe {
        height: 160px;
    }
}

/* Animation for footer elements */
.footer-section {
    animation: fadeInUp 0.8s ease;
}

.footer-links li {
    animation: slideInLeft 0.6s ease;
}

.social-link {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced accessibility */
.social-link:focus,
.footer-links a:focus,
.contact-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* User Welcome Bar Styles */
.user-welcome-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-welcome-bar small {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.user-welcome-bar i {
    font-size: 1rem;
    opacity: 0.9;
}

.user-welcome-bar .opacity-75 {
    opacity: 0.75 !important;
}

/* Responsive adjustments for welcome bar */
@media (max-width: 768px) {
    .user-welcome-bar small {
        font-size: 0.8rem;
    }
    
    .user-welcome-bar i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .user-welcome-bar small {
        font-size: 0.75rem;
    }
    
    .user-welcome-bar i {
        font-size: 0.8rem;
    }
}

/* Course Cards Styling */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.course-card .card-text {
    line-height: 1.5;
    color: #6c757d;
}

.course-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.course-card .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ensure images load properly */
.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
}

/* Fallback for missing images */
.course-card img[src*="default.png"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}