/**
 * F.A.C.T.S - Future Accountant Coaching and Training Services 
 * Main Stylesheet - Optimized for performance and maintainability
 */

/* ==================== 
   CSS Variables - Theme Colors & Common Settings
   ==================== */
:root {
    /* Brand Colors */
    --primary-color: #007ACC;
    --primary-dark: #0062a3;
    --primary-darker: #005fa3;
    --primary-light: rgba(0, 122, 204, 0.1);
    --primary-lighter: rgba(0, 122, 204, 0.05);

    --secondary-color: #2ECC71;
    --secondary-dark: #27ae60;
    --secondary-light: rgba(46, 204, 113, 0.1);

    /* Neutral Colors */
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;

    /* Common UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --box-shadow-btn: 0 4px 8px rgba(0, 122, 204, 0.3);


    /* Typography */
    --font-family: 'Poppins', sans-serif;
}

/* ==================== 
   Accessibility Elements
   ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 var(--border-radius) 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--white-color);
    outline-offset: 2px;
}



/* ==================== 
   Base Styles - Core Typography & Elements
   ==================== */
body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

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

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

/* ==================== 
   Button Styles - Consistent UI Components
   ==================== */
.btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 500;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--box-shadow-btn);
}

.btn-primary.active {
    background-color: var(--primary-darker);
    border-color: var(--primary-darker);
    box-shadow: var(--box-shadow-btn);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

/* ==================== 
   Section Styling - Common Pattern Elements
   ==================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    font-weight: 700;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto 2rem;
}

/* ==================== 
   Navigation
   ==================== */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

/* Applied when scrolled down, via JavaScript */
.navbar.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    transition: transform 0.3s ease;
    padding: 5px 0;
    display: block;
    object-fit: contain;
}

.footer-logo-img {
    max-height: 70px;
    max-width: 220px;
    width: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

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

.footer-logo {
    text-align: center;
}

.brand-text {
    color: var(--primary-color);
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 122, 204, 0.1);
}

.navbar-phone {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.navbar-phone:hover {
    color: var(--primary-darker);
    transform: translateY(-1px);
}

.phone-number-container {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: var(--primary-lighter);
}

.apply-now-btn, .book-now-btn {
    margin-left: 10px;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: var(--box-shadow-btn);
    letter-spacing: 0.3px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    border: none;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.apply-now-btn:hover, .book-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 122, 204, 0.4);
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
}

/* Additional button styling for better visibility */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 122, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-btn {
    margin-left: 10px;
    padding: 8px 20px;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white-color);
        padding: 15px;
        border-radius: var(--border-radius);
        margin-top: 10px;
        box-shadow: var(--box-shadow);
    }

    .nav-link {
        margin: 5px 0;
    }

    .contact-btn, .book-now-btn, .apply-now-btn {
        margin: 10px 0 0;
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .phone-number-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ==================== 
   Hero Section
   ==================== */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    margin-top: 80px; /* Account for fixed navbar */
    background-color: #f9f9f9;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(0, 122, 204, 0.1) 100%);
    overflow: hidden;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.session-info {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding: 8px 16px;
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: inline-block;
}

.class-size-note {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 6px 12px;
    background-color: rgba(0, 122, 204, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: inline-block;
}

.class-size-note i {
    margin-right: 8px;
    color: var(--primary-color);
}

.hero-cta {
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0, 122, 204, 0.3);
}

.hero-image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 70px;
        margin-top: 70px; /* Smaller margin for mobile */
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        margin-top: 40px;
    }
}

/* ==================== 
   About Section & About Page
   ==================== */
.about-section {
    background-color: var(--white-color);
    padding: 100px 0;
}

.trainer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.trainer-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 122, 204, 0.2);
    border: 4px solid var(--primary-color);
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.trainer-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 5px;
}

.trainer-credentials {
    font-size: 1rem;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 0;
}

.trainer-details {
    text-align: left;
    width: 100%;
    margin-top: 15px;
}

.trainer-qualifications {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.trainer-qualifications li {
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--light-gray-color);
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 0.9rem;
}

.trainer-qualifications li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

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

.about-content .btn {
    margin-bottom: 1rem;
    margin-right: 0.5rem;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.feature-item span {
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .trainer-card {
        margin-bottom: 40px;
    }

    .about-content {
        padding: 0;
    }
}

/* ==================== 
   Program Highlights
   ==================== */
.program-highlights {
    background-color: var(--light-color);
}

.highlight-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

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

.highlight-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 122, 204, 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.highlight-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ==================== 
   CTA Section
   ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: none !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 16px 40px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

.cta-section .btn-primary:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 
        0 12px 40px rgba(46, 204, 113, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    letter-spacing: 1px !important;
}

.cta-section .btn-primary:focus {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #1a1a1a !important;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.12) !important;
    outline: none !important;
    transform: translateY(-2px) !important;
}

.cta-section .btn-primary:active {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: #1a1a1a !important;
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.1s ease !important;
}

/* Modern button animation effects */
.cta-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.cta-section .btn-primary:hover::before {
    left: 100%;
}

/* Modern glassmorphism effect */
.cta-section .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50px;
    z-index: -1;
}

/* Enhanced focus ring for accessibility */
.cta-section .btn-primary:focus-visible {
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Add modern typography enhancement */
.cta-section .btn-primary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Additional CTA button override for maximum visibility with modern styling */
section.cta-section .btn.btn-primary,
.cta-section .btn-primary.btn-lg {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: none !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

section.cta-section .btn.btn-primary:hover,
section.cta-section .btn.btn-primary:focus,
.cta-section .btn-primary.btn-lg:hover,
.cta-section .btn-primary.btn-lg:focus {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    color: #ffffff !important;
    box-shadow: 
        0 12px 40px rgba(46, 204, 113, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-4px) scale(1.02) !important;
    letter-spacing: 1px !important;
}

/* Pulse animation for attention */
@keyframes modernPulse {
    0% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 4px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.15),
            0 6px 20px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 4px 16px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.cta-section .btn-primary {
    animation: modernPulse 3s infinite;
}

/* ==================== 
   Footer
   ==================== */
.footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 70px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-title {
    color: var(--white-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info li i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

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

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 20px;
}

hr {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* ==================== 
   Page Header & About Header
   ==================== */
.page-header {
    background-color: var(--primary-color);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white-color);
}

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

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ==================== 
   Program Page Styles
   ==================== */
.program-overview {
    padding-bottom: 40px;
}

.overview-box {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.class-schedule-info {
    background-color: rgba(0, 122, 204, 0.05);
    border-left-color: var(--primary-color);
    font-size: 0.95rem;
}

.class-schedule-info h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.class-schedule-info p {
    margin-bottom: 0.5rem;
}

.class-schedule-info i {
    color: var(--primary-color);
}

.program-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 0 0 33.333%;
    padding: 15px;
}

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

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--gray-color);
}

.week-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

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

.week-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    position: relative;
}

.week-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.week-header h3 {
    color: var(--white-color);
    margin-bottom: 0;
    font-size: 1.3rem;
    padding-right: 70px;
}

.week-content {
    padding: 20px;
}

.week-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.week-content li {
    margin-bottom: 10px;
}

.week-footer {
    padding: 10px 20px;
    background-color: var(--light-gray-color);
    border-top: 1px solid #e5e5e5;
}

.session-count {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

.feature-box {
    text-align: center;
    padding: 30px 15px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 122, 204, 0.1);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.pricing-section {
    background-color: var(--light-color);
}

.pricing-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.pricing-option {
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray-color);
    position: relative;
    height: 100%;
}

.pricing-option.featured {
    background-color: rgba(0, 122, 204, 0.1);
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-option h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-color);
}

.pricing-deadline {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.pricing-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.pricing-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.enrollment-note {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* ==================== 
   Contact Page Styles
   ==================== */
.contact-section {
    padding: 80px 0;
}

.contact-info-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

/* ==================== 
   Enrollment Page Styles
   ==================== */
.enrollment-section {
    padding: 60px 0;
}

.enrollment-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.payment-options {
    margin: 20px 0;
}

.payment-option-card {
    background-color: var(--light-gray-color);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.payment-option-card.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 122, 204, 0.05);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.2);
    transform: translateY(-5px);
}

.payment-option-card.active::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.payment-option-card:hover {
    background-color: rgba(0, 122, 204, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ribbon {
    position: absolute;
    top: 12px;
    right: -10px;
    z-index: 1;
    overflow: hidden;
    width: 120px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background-color: var(--secondary-color);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg);
}

.payment-option-card .form-check {
    margin-bottom: 0;
}

.payment-option-card h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.payment-option-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.payment-option-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.payment-option-card ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.payment-option-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.info-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.info-card .card-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: rgba(0, 122, 204, 0.1);
    color: var(--primary-color);
    font-size: 1.6rem;
    border-radius: 50%;
    margin: 0 auto;
}

.info-card h4 {
    color: var(--primary-color);
    margin: 15px 0 10px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: var(--primary-lighter);
    transform: translateY(-2px);
}

.icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0, 122, 204, 0.1);
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.contact-text a {
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.contact-text a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    text-decoration: none;
}

.business-hours h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.business-hours p {
    color: var(--gray-color);
    margin-bottom: 5px;
}

.contact-form-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-form .form-control {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    border: 1px solid #e5e5e5;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

.faq-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-button {
    padding: 20px 25px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(0, 122, 204, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 122, 204, 0.25);
}

.accordion-button::after {
    background-size: 16px;
    width: 16px;
    height: 16px;
}

.accordion-body {
    padding: 20px 25px;
    background-color: var(--white-color);
}

/* ==================== 
   Payment Pages
   ==================== */
.success-card, .cancel-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.success-icon {
    color: var(--secondary-color);
}

.enrollment-details {
    margin: 30px 0;
}

.next-steps {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.option-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.additional-info {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

/* ==================== 
   About Page Specific Styles
   ==================== */
.about-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 122, 204, 0.8) 100%);
}

.our-story {
    background-color: var(--light-color);
    padding: 80px 0;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.why-choose-us {
    background-color: var(--white-color);
    padding: 80px 0;
}

.trainer-details {
    text-align: left;
    width: 100%;
    margin-top: 15px;
}

.trainer-qualifications {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.trainer-qualifications li {
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--light-gray-color);
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 0.9rem;
}

.trainer-qualifications li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* ==================== 
   Flash Messages
   ==================== */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

.alert {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 15px 20px;
}

/* ==================== 
   Responsive Adjustments
   ==================== */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .overview-box {
        margin-top: -60px;
        padding: 30px;
    }

    .pricing-card {
        padding: 30px;
    }

    .pricing-option {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .page-header {
        padding: 120px 0 40px;
        margin-top: 70px; /* Account for fixed navbar */
    }

    .page-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .overview-box {
        margin-top: -40px;
        padding: 20px;
    }

    .contact-info-card, .contact-form-card {
        padding: 25px;
        margin-bottom: 30px;
    }

    .pricing-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .week-card {
        margin-bottom: 20px;
    }

    /* Feature boxes mobile layout */
    .feature-box {
        padding: 25px 15px;
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.4rem;
    }

    /* Navigation mobile improvements */
    .navbar-collapse {
        text-align: center;
        padding: 15px;
    }

    /* Video container responsive */
    .video-container {
        margin: 20px 0;
    }

    /* Form improvements */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* About section mobile */
    .about-content {
        padding: 0 15px;
    }

    /* Stat items mobile layout */
    .program-stats {
        justify-content: center;
    }

    .stat-item {
        flex: 0 0 50%;
        padding: 10px;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .session-info {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .class-size-note {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .week-header {
        padding: 15px;
    }

    .week-number {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }

    .week-header h3 {
        padding-right: 0;
        font-size: 1.2rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 15px;
    }

    /* Improved button spacing on mobile */
    .btn {
        margin-bottom: 10px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn + .btn {
        margin-left: 0;
        margin-top: 10px;
    }

    /* Trainer card mobile adjustments */
    .trainer-img {
        width: 180px;
        height: 180px;
    }

    .trainer-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Program stats mobile layout */
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Contact form mobile */
    .contact-info-card, .contact-form-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Table responsiveness */
    .table-responsive {
        font-size: 0.8rem;
    }

    /* Pricing cards mobile */
    .pricing-card {
        margin-bottom: 20px;
    }

    .pricing-option {
        padding: 15px;
        margin-bottom: 15px;
    }
    }
}

/* Early Bird Banner and Countdown Timer */
.early-bird-banner {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Removed conflicting countdown styles - using countdown-timer.css instead */

/* Early Bird Offer Styles */
.early-bird-section {
    position: relative;
}

.early-bird-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Removed conflicting countdown-container styles - using countdown-timer.css instead */

.price-comparison .price-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    height: 100%;
    transition: all 0.3s ease;
}

.price-comparison .price-special {
    background-color: var(--primary-light);
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.price-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-card .price-period {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.ribbon {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    width: 150px;
    height: 150px;
    text-align: center;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid var(--secondary-dark);
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.ribbon-top-right {
    top: -10px;
    right: -10px;
}

.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}

.ribbon-top-right::before {
    top: 0;
    left: 30px;
}

.ribbon-top-right::after {
    bottom: 30px;
    right: 0;
}

.ribbon-top-right span {
    transform: rotate(45deg);
    right: -25px;
    top: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Ultra-Compatible Cross-Platform Video Player Styles */

/* Main container for the video player */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #000;
    margin-bottom: 20px;
}

/* The custom video player wrapper */
.custom-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Video wrapper needed for proper positioning */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Poster container and styling */
.poster-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    transition: opacity 0.3s ease;
}

/* When the poster should be hidden */
.poster-container.hidden {
    opacity: 0;
    pointer-events: none;
}

/* The poster image itself */
.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Big play button in the middle of the poster */
.play-icon-large {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 122, 204, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.poster-container:hover .play-icon-large {
    transform: scale(1.1);
    background-color: rgba(0, 122, 204, 1);
}

/* The actual video element */
.mentor-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background-color: #000;
}

/* Controls container that appears on hover */
.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

/* Individual control buttons */
.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 122, 204, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.control-btn:hover {
    background-color: rgba(0, 122, 204, 1);
    transform: scale(1.1);
}

/* Active state for buttons */
.control-btn.active {
    background-color: #2ECC71;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .video-container {
        margin-bottom: 15px;
    }

    .play-icon-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .play-icon-large {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Intro and Why Choose Section Specific Styles */
.intro-and-why-section {
    padding: 60px 0;
    background-color: #fff;
}

.intro-and-why-section .section-title {
    margin-bottom: 15px;
}

.intro-and-why-section .about-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .intro-and-why-section .col-lg-6:first-child {
        margin-bottom: 40px;
    }

    .responsive-video-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .responsive-video-wrapper {
        padding-top: 75%; /* Adjust aspect ratio for mobile */
    }

    .intro-and-why-section {
        padding: 40px 0;
    }

    .intro-and-why-section .section-title {
        font-size: 1.75rem;
    }
}

.tiktok-embed-container {
    min-height: 500px;
    display: flex;
    justify-content: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
}

.testimonial-card {
    background-color: var(--white-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--gray-color);
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-avatar img {
    border: 2px solid var(--primary-color);
    padding: 2px;
}

/* Enhanced Icons */
.feature-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Make phone number and email clickable */
.contact-link {
    color: inherit;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Social media links in new tab */
.social-link {
    display: inline-block;
    margin-right: 10px;
}

/* Social proof elements */
.stats-section {
    padding: 30px 0;
    background-color: var(--light-color);
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Coming Soon Container */
.coming-soon-container {
    background-color: white;
    border: 1px solid var(--primary-lighter);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.coming-soon-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.coming-soon-container i {
    color: var(--primary-color);
}

/* =====================
   Enhanced Video Player Styles
   ===================== */

/* Video loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Video error state */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    text-align: center;
    border-radius: 12px;
}

.video-error .error-content {
    padding: 2rem;
    max-width: 300px;
}

.video-error .error-content i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.video-error .error-content h5 {
    margin-bottom: 1rem;
    color: white;
}

.video-error .error-content p {
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.video-error .retry-btn {
    color: white;
    border-color: white;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-error .retry-btn:hover {
    background-color: white;
    color: #000;
}

/* Video fallback content */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007ACC 0%, #0056b3 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
    border-radius: 12px;
}

.video-fallback h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

.video-fallback p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.video-fallback a {
    color: white;
    text-decoration: underline;
}

.video-fallback a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Improved video player focus states for accessibility */
.custom-video-player:focus-visible {
    outline: 3px solid #007ACC;
    outline-offset: 2px;
    border-radius: 12px;
}

.poster-container:focus-visible {
    outline: 3px solid #007ACC;
    outline-offset: 2px;
    border-radius: 12px;
}

.control-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.5);
}

/* Enhanced video controls for better visibility */
.video-controls {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.5) 100%);
    padding: 10px 15px;
    border-radius: 8px 0 0 8px;
}

/* Improved poster container hover effects */
.poster-container {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.poster-container:active {
    transform: scale(0.98);
}

/* Loading state for poster image */
.video-poster {
    transition: opacity 0.3s ease;
}

.video-poster[src=""] {
    opacity: 0;
}

/* Enhanced play button with better accessibility */
.play-icon-large {
    transition: all 0.3s ease;
}

.play-icon-large:focus {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* Better video element styling */
.mentor-video {
    border-radius: 12px;
    background: #000;
}

/* Enhanced responsive design for video */
@media (max-width: 575.98px) {
    .video-loading .spinner-border {
        width: 2rem;
        height: 2rem;
    }

    .video-error .error-content {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .video-error .error-content i {
        font-size: 2rem;
    }

    .video-fallback {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .video-fallback h4 {
        font-size: 1rem;
    }

    .play-icon-large {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .video-controls {
        padding: 8px 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .control-btn {
        border-width: 3px;
        font-weight: bold;
    }

    .play-icon-large {
        border-width: 4px;
        font-weight: bold;
    }

    .video-error {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .poster-container,
    .control-btn,
    .play-icon-large,
    .video-poster {
        transition: none;
    }

    .poster-container:hover {
        transform: none;
    }

    .control-btn:hover {
        transform: none;
    }
}

/* Dark mode video player support */
@media (prefers-color-scheme: dark) {
    .video-error .error-content {
        background: rgba(0, 0, 0, 0.95);
    }

    .video-fallback {
        background: linear-gradient(135deg, #004080 0%, #003366 100%);
    }
}

/* ==================== 
   Additional Comprehensive Responsive Breakpoints
   ==================== */

/* Extra small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .stat-item {
        flex: 0 0 33.333%;
    }

    .trainer-img {
        width: 200px;
        height: 200px;
    }

    .feature-box {
        padding: 30px 20px;
    }

    .pricing-card {
        padding: 25px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding: 140px 0 100px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .feature-box {
        padding: 35px 20px;
    }

    .trainer-img {
        width: 200px;
        height: 200px;
    }

    .pricing-card {
        padding: 35px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 160px 0 120px;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .feature-box {
        padding: 40px 25px;
    }

    .trainer-img {
        width: 240px;
        height: 240px;
    }

    .pricing-card {
        padding: 40px;
    }

    .week-card {
        padding: 25px;
    }

    .contact-info-card, .contact-form-card {
        padding: 35px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .hero-section {
        padding: 180px 0 140px;
    }

    .feature-box {
        padding: 45px 30px;
    }

    .pricing-card {
        padding: 45px;
    }
}

/* Landscape orientation adjustments for tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        padding: 120px 0 80px;
        margin-top: 80px;
    }

    .page-header {
        padding: 100px 0 30px;
        margin-top: 80px;
    }

    .feature-box {
        padding: 30px 15px;
    }

    .week-card {
        margin-bottom: 15px;
    }

    .navbar-collapse {
        padding: 10px;
    }

    .form-control {
        padding: 10px;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img, .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .trainer-img img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles for better printing experience */
@media print {
    .navbar, .footer, .flash-messages, .btn, .video-container, .chatbot, .countdown-container {
        display: none !important;
    }

    .hero-section, .page-header {
        margin-top: 0 !important;
        padding-top: 40px !important;
        break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: #fff !important;
    }

    .section-title {
        font-size: 18pt;
        color: #000 !important;
        page-break-after: avoid;
    }

    .feature-box, .week-card, .pricing-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 10pt;
    }

    .trainer-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    .container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Enhanced accessibility for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-section, .feature-box, .week-card, .pricing-card, .trainer-card {
        transform: none !important;
    }

    .control-btn:hover, .poster-container:hover, .play-icon-large:hover {
        transform: none !important;
    }

    @keyframes pulse {
        0%, 100% {
            box-shadow: none;
        }
    }
}

/* Dark mode comprehensive support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4A9EFF;
        --primary-dark: #3A8EEF;
        --primary-darker: #2A7EDF;
        --secondary-color: #52D86A;
        --secondary-dark: #42C85A;
        --dark-color: #E0E0E0;
        --gray-color: #B0B0B0;
        --light-color: #2A2A2A;
        --light-gray-color: #3A3A3A;
        --white-color: #1A1A1A;
        --box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
        --box-shadow-btn: 0 8px 15px rgba(74, 158, 255, 0.4);
    }

    body {
        background-color: var(--white-color);
        color: var(--dark-color);
    }

    .navbar {
        background-color: rgba(26, 26, 26, 0.95);
        box-shadow: 0 2px 15px rgba(255, 255, 255, 0.1);
    }

    .hero-section {
        background-color: #1F1F1F;
        background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(74, 158, 255, 0.1) 100%);
    }

    .feature-box, .week-card, .pricing-card, .trainer-card {
        background-color: var(--light-color);
        border: 1px solid var(--light-gray-color);
    }

    .form-control {
        background-color: var(--light-color);
        border-color: var(--light-gray-color);
        color: var(--dark-color);
    }

    .form-control:focus {
        background-color: var(--light-color);
        border-color: var(--primary-color);
        color: var(--dark-color);
        box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
    }
}
