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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Color Variables */
:root {
    --primary-blue: #020289;
    --accent-red: #831b11;
    --light-blue: #4A90E2;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-gray: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 56px;
    --header-footer-bg: #2e3440;
    --soft-blue-start: #e3f2fd;
    --soft-blue-end: #bbdefb;
    --dark-blue-start: #03155f;
    --dark-blue-end: #1a237e;
    --success-green: #28a745;
}

/* Body overflow prevention for mobile menu */
body.menu-open {
    overflow: hidden !important;
    overflow-x: hidden !important;
    position: fixed; /* Prevent iOS bounce scroll */
    width: 100%;
    height: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* Header Styles */
.header {
    background-color: var(--header-footer-bg);
    color: var(--white);
    height: var(--header-height);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 48px;
}

.header-content > .logo-section + .header-right,
.header-right {
    display: flex;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section {
    text-decoration: none;
}

.logo-section:focus,
.logo-section:hover {
    text-decoration: none;
    outline: none;
}

.logo-section:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

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

.brand-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Smaller icons in the fixed, slimmer header */
.header .social-icon svg {
    width: 20px;
    height: 20px;
}

/* Slightly upsize coffee cup for optical match */
.header .social-links a[href*="buymeacoffee"] svg {
    width: 28px;
    height: 28px;
}
.footer .social-links a[href*="buymeacoffee"] svg {
    width: 24px;
    height: 24px;
}

.social-icon {
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Social icon images */
.social-icon img {
    transition: var(--transition);
    opacity: 0.95;
    /* Closer match to var(--primary-blue) #020289 */
    filter: grayscale(100%) sepia(85%) hue-rotate(190deg) saturate(400%) brightness(0.85);
}

.social-icon:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(100%) sepia(85%) hue-rotate(190deg) saturate(400%) brightness(1);
}

/* Remove blue focus outline on social icons while keeping keyboard accessibility reasonable */
.social-icon:focus,
.social-icon:active {
    outline: none;
    box-shadow: none;
}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 48px; /* Increased touch target */
    height: 48px; /* Increased touch target */
    padding: 12px;
    transition: var(--transition);
    position: relative;
    border-radius: 6px; /* Slightly larger rounded corners for better touch feedback */
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
    touch-action: manipulation; /* Optimize for touch */
}

.hamburger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.hamburger:hover { 
    transform: scale(1.1); 
}

.hamburger:active {
    transform: scale(0.95); /* Slight shrink effect when pressed */
    transition: transform 0.1s ease; /* Quick transition for immediate feedback */
}

/* spacing from social icons when inline */
.header-right .hamburger { margin-left: 0; }

.hamburger:focus {
    outline: none; /* Remove white outline box */
    box-shadow: none; /* Ensure no box shadow */
}

/* Default bar positions */
.hamburger span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 6px));
}
.hamburger span:nth-child(2) {
    transform: translate(-50%, -50%);
}
.hamburger span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 6px));
}

/* Active X state - perfectly centered */
.hamburger.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background-color: var(--header-footer-bg);
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start for better mobile positioning */
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto; /* Allow scrolling if menu is too tall */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Increased gap for better touch targets */
    text-align: center;
    padding: 2rem 1rem; /* Increased padding */
    width: 100%;
    max-width: 400px; /* Limit width on larger mobile screens */
    margin-top: 2rem; /* Add top margin since we changed alignment to flex-start */
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.6rem; /* Increased font size for better mobile visibility */
    font-weight: 500;
    transition: var(--transition);
    padding: 1.2rem 1.5rem; /* Increased padding for larger touch targets */
    border-radius: var(--border-radius);
    display: block; /* Ensure full width */
    min-height: 56px; /* Increased minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove blue outline flash on mobile menu links */
.mobile-nav .nav-link:focus,
.mobile-nav .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
}

.mobile-nav .nav-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* Optimize for touch */
}

/* Mobile-specific improvements for hamburger menu */
@media (max-width: 768px) {
    .hamburger {
        width: 60px; /* Much larger touch target on mobile for better responsiveness */
        height: 60px; /* Much larger touch target on mobile for better responsiveness */
        padding: 16px;
        border-radius: 8px; /* Larger border radius for better touch feedback */
        -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
        touch-action: manipulation; /* Optimize for touch */
        cursor: pointer;
    }
    
    .hamburger span {
        width: 28px; /* Slightly larger bars for better visibility */
        height: 3px; /* Slightly thicker bars for better visibility */
    }
    
    .nav-link {
        font-size: 2.2rem; /* Much larger font on mobile for better visibility */
        padding: 1.6rem 1.5rem; /* More padding on mobile */
        min-height: 64px; /* Larger touch target on mobile */
    }
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02); /* Reduced scale for smoother animation */
    color: var(--white) !important; /* Force white color on hover */
    text-decoration: none !important; /* Remove underline on hover */
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Main Content */
main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero {
    padding: 4rem 0 1.5rem 0; /* Further reduced bottom padding */
    background: rgba(3,21,95,255);
    color: var(--white);
}

.video-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cta-section {
    text-align: center;
    max-width: 800px; /* Match video container width */
    margin: 0 auto;
}

.cta-section h1 {
    color: var(--white);
    margin-bottom: 1rem;
}
.hero .cta-section h1 {
    color: var(--primary-blue);
}

.cta-section p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button.primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.cta-button.primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ========================================
   CTA BUTTON VARIANTS - CONSOLIDATED STYLES
   ======================================== */

/* Secondary CTA button variant - white background with blue text */
.cta-button-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

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

/* Specific contexts where secondary buttons are needed */
.hero .cta-section .cta-button.secondary,
.index-page .hero .cta-section .cta-button.secondary,
.index-page .final-cta .cta-buttons .cta-button.secondary,
.method-page .cta-section .cta-button.secondary,
.contact-section .cta-button.secondary,
.faq-page .contact-cta .cta-buttons .cta-button.secondary,
.faq-page .contact-cta .cta-button.secondary,
.contact-cta .cta-buttons .cta-button.secondary,
.contact-cta .cta-button.secondary,
.index-page .cta-section .cta-buttons .cta-button.secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.hero .cta-section .cta-button.secondary:hover,
.index-page .hero .cta-section .cta-button.secondary:hover,
.index-page .final-cta .cta-buttons .cta-button.secondary:hover,
.method-page .cta-section .cta-button.secondary:hover,
.contact-section .cta-button.secondary:hover,
.faq-page .contact-cta .cta-buttons .cta-button.secondary:hover,
.faq-page .contact-cta .cta-button.secondary:hover,
.contact-cta .cta-buttons .cta-button.secondary:hover,
.contact-cta .cta-button.secondary:hover,
.index-page .cta-section .cta-buttons .cta-button.secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Remove focus outline from secondary CTA buttons to prevent double blue outline */
.cta-button.secondary:focus,
.cta-button.secondary:active,
.cta-button-secondary:focus,
.cta-button-secondary:active {
    outline: none;
    border-color: var(--primary-blue);
}

.trial-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.whatsapp-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Page Navigation */
.page-navigation {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.nav-button {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-blue);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-blue);
}

.nav-button:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.nav-button h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.nav-button p {
    color: var(--medium-gray);
    margin: 0;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

/* More reviews link under carousel */
.more-reviews-note {
    text-align: center;
    margin-top: 1rem;
}

.more-reviews-link {
    display: inline-block;
    padding: 6px 10px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.more-reviews-link:hover {
    background-color: #ffffff;
    transform: translateY(-1px);
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 0 80px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 2.5rem;
    background-color: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    margin: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.student-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
}

.student-country {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-content {
    width: 100%;
}

.testimonial-expanded {
    margin-top: 1rem;
}

.testimonial-expanded p {
    font-style: normal;
    line-height: 1.7;
    color: var(--dark-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    margin-bottom: 1rem;
}

.testimonial-expanded p:last-child {
    margin-bottom: 0;
}

.testimonial-text {
    font-style: normal;
    line-height: 1.7;
    color: var(--dark-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    margin: 0;
    padding: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background-color: var(--light-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    display: inline-block;
}

.carousel-btn.prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.carousel-btn.next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Final CTA */
.final-cta {
    padding: 4rem 0;
    background: rgba(3,21,95,255);
    color: var(--white);
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Ensure final-cta looks the same on all pages */
.faq-page .final-cta {
    padding: 4rem 0;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Remove bottom padding from faq-content to eliminate gap */
.faq-page .faq-content {
    padding: 4rem 0 0 0;
}

/* Make final-cta container extend fully horizontally on FAQ page */
.faq-page .final-cta .container {
    max-width: none;
    margin: 0;
    padding: 0 20px;
}

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

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.copy-link {
    color: var(--white);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.copy-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.phone-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--header-footer-bg);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0;
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(3,21,95,255);
    color: var(--white);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
}

/* Links page boxed sections */
.links-page { padding-top: 0; }
.links-page .container { padding-top: 0; }
.links-page .links-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 800px;
}

.links-page .links-section h2 {
    margin: 0 0 1rem 0;
    color: #932016;
    text-align: center;
}

.links-page .links-note {
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
}

/* Links page - button text smaller without affecting other pages */
.links-page .links-button h3 {
    font-size: 1.1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .links-page .links-button h3 {
        font-size: 1.4rem;
    }
}

.links-page .lesson-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-line {
    width: 2px;
    height: 280px;
    background-color: #e0e0e0;
    position: relative;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--scroll-progress, 0%);
    background-color: var(--primary-blue);
    transition: height 0.2s ease;
}

.progress-headers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-header:hover .header-text {
    color: var(--primary-blue);
}

.header-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666666;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

.progress-header.active .header-text {
    color: var(--primary-blue);
    font-weight: 600;
}

.progress-header.active .header-indicator {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* Sub-header styling for indented items */
.progress-header.sub-header {
    margin-left: 1rem;
}

.progress-header.sub-header .header-text {
    font-size: 0.75rem;
    color: #888888;
}

.progress-header.sub-header .header-indicator {
    width: 6px;
    height: 6px;
}

.progress-header.sub-header.active .header-text {
    color: var(--primary-blue) !important;
    font-weight: 500;
}

.progress-header.sub-header.active .header-indicator {
    background-color: var(--primary-blue) !important;
    transform: scale(1.2);
}

/* Lighter blue when parent section is active */
.progress-header.sub-header.parent-active .header-text {
    color: #4a90e2 !important;
    font-weight: 500;
}

.progress-header.sub-header.parent-active .header-indicator {
    background-color: #4a90e2 !important;
    transform: scale(1.1);
}

/* FAQ Styles */
.faq-navigation {
    padding: 3rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
}

.faq-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.nav-category {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-category:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-category h3 {
    margin-bottom: 0.5rem;
    color: inherit;
}

.nav-category p {
    margin: 0;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
}

.faq-content {
    padding: 4rem 0;
    background-color: var(--white);
}

.faq-section {
    background-color: var(--white);
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.faq-section h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-gray);
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background-color: var(--light-gray);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.faq-question:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.faq-question.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--white);
}

.faq-answer.active {
    padding: 1.25rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.contact-cta {
    padding: 3rem 0;
    background: rgba(3,21,95,255);
    color: var(--white);
    text-align: center;
}

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

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* FAQ page: contact info block inside the blue CTA */
.faq-page .faq-contact-info {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    color: #ffffff;
    line-height: 1.6;
}

/* Prices Page Styles */
.prices-page {
    background-color: var(--light-gray);
}

.pricing-section {
    padding: 3rem 0;
    background-color: var(--white);
    margin-bottom: 2rem;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.package-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-grid.single-lessons {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pricing-grid.packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.price-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-gray);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.price-card.featured {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    position: relative;
}

.price-card.featured::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.duration, .lesson-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.description, .per-lesson {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.discount-badge {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.original-price {
    text-decoration: line-through;
    color: var(--medium-gray);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.savings {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.package-category {
    margin-bottom: 3rem;
}

.package-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.contact-section {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--light-gray);
}

/* When contact section is inside booking section, reduce top padding */
.booking-section .contact-section {
    padding: 2rem 0 3rem;
    background-color: transparent;
}

.contact-info {
    margin-top: 2rem;
    color: var(--medium-gray);
}

/* Method Page Styles */
.method-page {
    background-color: var(--white);
}

.method-section {
    padding: 4rem 0;
}

.method-section:nth-child(even) {
    background-color: var(--light-gray);
}

.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.method-content.reverse {
    direction: rtl;
}

.method-content.reverse > * {
    direction: ltr;
}

.method-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.method-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.method-text li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.method-image {
    text-align: center;
}

.method-image img {
    max-width: 80%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Hide method images on mobile */
@media (max-width: 768px) {
    .method-image {
        display: none;
    }
    
    .method-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .method-content.reverse {
        direction: ltr;
    }
}

.correction-examples {
    margin: 2rem 0;
}

.correction-examples h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.correction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.correction-format {
    font-weight: 600;
    font-size: 1rem;
}

.correction-format.bold {
    font-weight: 700;
}

.correction-format.italic {
    font-style: italic;
}

.correction-format.underline {
    text-decoration: underline;
}

.correction-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.symbol-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.symbol {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.symbol.star {
    color: #ffc107;
}

.symbol.target {
    color: var(--primary-blue);
}

.symbol.red-circle {
    color: #ff0000;
    font-size: 2.5rem;
}

.symbol.black-circle {
    color: #000000;
    font-size: 2.5rem;
}

.symbol-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.symbol-item p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

.automation-features {
    margin: 2rem 0;
}

.feature {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.feature h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.feature p {
    color: var(--medium-gray);
    margin: 0;
}

.materials-list {
    margin: 2rem 0;
}

.material-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.material-item h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.material-item p {
    color: var(--medium-gray);
    margin: 0;
}

.getting-started {
    padding: 4rem 0;
    background-color: var(--light-gray);
    text-align: center;
}

.getting-started h2 {
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.step {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.step p {
    color: var(--medium-gray);
    margin: 0;
}

.cta-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.cta-section p {
    margin-bottom: 2rem;
    color: var(--medium-gray);
}

/* Schedule Page Styles */
.schedule-page {
    background-color: var(--light-gray);
}

.timezone-section {
    padding: 2rem 0;
    background-color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}

.timezone-selector {
    margin-bottom: 1rem;
}

.timezone-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.timezone-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--white);
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.timezone-dropdown:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.timezone-note {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.schedule-display {
    padding: 3rem 0;
    background-color: var(--white);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.day-column {
    background-color: var(--white);
    border-right: 1px solid var(--border-gray);
    height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.day-column:last-child {
    border-right: none;
}

.day-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
    color: var(--white);
    padding: 0.75rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
    flex-shrink: 0;
}

.day-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-slots {
    padding: 1rem 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-slot {
    width: 100%;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.time-slot.available {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.time-slot.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.time-slot.unavailable {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--medium-gray);
    opacity: 0.7;
}

/* Special styling for Day Off to center content properly */
.time-slot.unavailable .time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.time-slot.unavailable .time-range {
    font-size: 1rem;
    font-weight: 700;
    color: var(--medium-gray);
    margin-bottom: 0.2rem;
}

.time-slot.unavailable .availability {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--medium-gray);
    margin-top: 0;
}

/* Time display container for consistent layout */
.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.time-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1rem;
}

.time-start {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1rem;
    line-height: 1.2;
}

.time-separator {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.8rem;
    line-height: 1.2;
    margin: 0.1rem 0;
}

.time-end {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1rem;
    line-height: 1.2;
}

.availability {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    line-height: 1.2;
}

.time-slot.available .availability {
    color: #28a745;
}

.time-slot.unavailable .availability {
    color: var(--medium-gray);
}

/* Calendar-style day indicators - alternating gray and blue */
.day-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--medium-gray);
}

.day-column:nth-child(odd)::before { 
    background: #4A90E2; 
}

.day-column:nth-child(even)::before { 
    background: var(--medium-gray); 
}

.schedule-info {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

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

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

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

.info-card p {
    color: var(--medium-gray);
    margin: 0;
}

.schedule-visual {
    padding: 3rem 0;
    background-color: var(--white);
    text-align: center;
}

.schedule-visual h2 {
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.schedule-image-container {
    max-width: 600px;
    margin: 0 auto 1rem;
}

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

.schedule-caption {
    color: var(--medium-gray);
    font-style: italic;
}

.booking-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
    text-align: center;
}

.booking-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.booking-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 2rem;
}

.booking-section .step {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.booking-section .step h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.booking-section .step p {
    color: var(--medium-gray);
    margin: 0;
}

.schedule-notes {
    padding: 3rem 0;
    background-color: var(--white);
}

.schedule-notes h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.notes-list {
    max-width: 800px;
    margin: 0 auto;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.note p {
    margin: 0;
    color: var(--dark-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .header-content {
        padding: 0 15px;
    }

    /* Hide social links in header on mobile, but keep them in footer */
    .header .social-links {
        display: none;
    }

    /* Keep hamburger visible on mobile */
    .header-right .hamburger { 
        display: inline-flex; 
        margin-left: 0;
    }

    .menu-overlay {
        padding: 0; /* Remove padding to use full width */
    }

    .mobile-nav {
        gap: 0.75rem; /* Slightly more gap on mobile */
        padding: 1.5rem 1rem;
    }

    .nav-link {
        font-size: 1.3rem; /* Slightly smaller on mobile */
        padding: 0.9rem 1.2rem;
        min-height: 44px; /* iOS minimum touch target */
    }

    .hero {
        padding: 2rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Add gap between buttons */
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 14px 24px; /* Larger touch targets */
        font-size: 1.1rem; /* Slightly larger font */
    }
    
    /* Reset CTA section width on mobile */
    .cta-section {
        max-width: 600px;
        padding: 0 1rem; /* Add horizontal padding */
    }

    .nav-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem; /* Add horizontal padding */
    }

    .testimonial {
        margin: 0 5px;
        padding: 1.5rem;
    }

    .testimonial-container {
        margin: 0 60px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .pricing-grid.single-lessons {
        grid-template-columns: 1fr;
    }

    .pricing-grid.packages {
        grid-template-columns: 1fr;
    }

    .method-section {
        padding: 2rem 0;
    }

    .symbol-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .day-column {
        height: 220px;
    }
    
    .day-header {
        padding: 0.75rem 0.5rem;
    }
    
    .day-header h3 {
        font-size: 0.8rem;
    }
    
    .time-slots {
        padding: 0.75rem 0.5rem;
    }
    
    .time-slot {
        height: 120px;
        padding: 0.75rem 0.25rem;
    }
    
    .time-slot.unavailable .time-range {
        font-size: 0.9rem;
    }
    
    .time-start,
    .time-end {
        font-size: 0.9rem;
    }
    
    .time-separator {
        font-size: 0.75rem;
    }
    
    .availability {
        font-size: 0.65rem;
    }
    
    .time-range {
        font-size: 0.9rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .booking-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Make footer social links more prominent on mobile */
    .footer .social-links {
        justify-content: center;
        gap: 4px;
        margin-top: 1rem;
    }
    
    .footer .social-icon {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }
    
    /* Mobile testimonial text formatting */
    .testimonial-text,
    .testimonial-expanded p,
    .testimonial .testimonial-content,
    .testimonial .testimonial-content p {
        text-align: justify;
        text-justify: inter-word;
        text-align-last: left;
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    /* Hide specific testimonials and carousel controls on mobile */
    .testimonial:nth-child(2),
    .testimonial:nth-child(4),
    .testimonial-carousel::before,
    .carousel-btn {
        display: none;
    }
    
    /* Mobile testimonial layout */
    .testimonial-container {
        margin: 0;
        padding: 0 10px;
    }
    
    .testimonial-track {
        flex-direction: column;
        transform: none;
    }
    
    .testimonial {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 0 1.5rem 0;
        flex-shrink: 0;
        text-align: justify;
    }
    
    .testimonial:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile testimonial expand functionality */
    .testimonial-expanded {
        display: none;
    }
    
    .testimonial.expanded .testimonial-expanded {
        display: block;
    }
    
    .testimonial.expanded .expand-btn {
        display: none;
    }
    
    .expand-btn {
        background: transparent;
        color: var(--primary-blue);
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: inherit;
        margin: 0;
        margin-left: 0.25rem;
        transition: var(--transition);
        text-decoration: underline;
        font-weight: 500;
        display: inline;
        font-family: inherit;
        min-height: 44px; /* iOS minimum touch target */
        padding: 8px 12px; /* Add padding for better touch target */
    }
    
    .expand-btn:hover {
        color: var(--light-blue);
        text-decoration: none;
    }

    .note {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .correction-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* FAQ Mobile Styles - Enhanced */
    .faq-nav-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 48px; /* Better touch target */
        display: flex;
        align-items: center;
    }

    .faq-answer.active {
        padding: 1rem;
        max-height: 2000px !important;
    }

    .contact-cta {
        padding: 2rem 0;
    }
    
    /* Resources page mobile enhancements */
    .resource-section-header {
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        min-height: 48px; /* Better touch target */
        display: flex;
        align-items: center;
    }
    
    .resource-section-content.active {
        padding: 1.2rem;
    }
    
    .resource-link {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        min-height: 44px; /* iOS minimum touch target */
        display: flex;
        align-items: center;
    }
    
    /* Article page mobile enhancements */
    .article-video {
        margin: 0 -1rem 2rem -1rem;
    }
    
    .article-video .video-container {
        max-width: none;
        border-radius: 0;
        margin: 0;
    }
    
    .article-video .video-container iframe {
        height: 250px;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
        padding: 0 1rem; /* Add horizontal padding */
    }
    
    .article-section h3 {
        font-size: 1.2rem;
        padding: 0 1rem; /* Add horizontal padding */
    }
    
    .article-section p,
    .article-section li {
        font-size: 1rem;
        padding: 0 1rem; /* Add horizontal padding */
    }
    
    .article-sources {
        padding: 1.5rem;
        margin: 0 1rem 1.5rem 1rem; /* Add horizontal margins */
    }
    
    .article-sources h2 {
        font-size: 1.4rem;
    }
    
    .back-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        margin: 0 1rem; /* Add horizontal margins */
    }
    
    .floating-video {
        width: 350px;
        height: 197px;
        bottom: 15px;
        right: 15px;
    }
    
    /* Enhanced container padding for mobile */
    .container {
        padding: 0 1rem; /* Consistent horizontal padding */
    }
    
    /* Page header mobile enhancements */
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem; /* Slightly less padding on very small screens */
    }

    h1 {
        font-size: 1.75rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .video-container {
        margin-bottom: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .nav-button {
        padding: 2rem;
        font-size: 1.1rem;
    }

    .testimonial {
        padding: 1rem;
        text-align: justify;
    }
    
    .testimonial-text,
    .testimonial-expanded p,
    .testimonial .testimonial-content,
    .testimonial .testimonial-content p {
        text-align: justify;
        text-justify: inter-word;
        text-align-last: left;
        word-spacing: normal;
        letter-spacing: normal;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .price-card {
        padding: 1.5rem;
    }

    .package-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .symbol-grid {
        grid-template-columns: 1fr;
    }

    .symbol-item {
        padding: 1rem;
    }

    .step {
        padding: 1.5rem;
    }

    .method-section {
        padding: 1.5rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

    .pricing-section {
        padding: 2rem 0;
    }

    .timezone-dropdown {
        width: 100%;
        max-width: 300px;
    }

    .schedule-visual {
        padding: 2rem 0;
    }

    .booking-section {
        padding: 2rem 0;
    }

    .schedule-notes {
        padding: 2rem 0;
    }

    /* FAQ Small Mobile Styles */
    .faq-content {
        padding: 2rem 0;
    }

    .faq-section {
        padding: 1rem;
    }
    
    .faq-answer.active {
        max-height: 3000px;
    }
    
    /* Smaller screen navigation adjustments */
    .mobile-nav {
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }

    .article-video {
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }
    
    .article-video .video-container iframe {
        height: 200px;
    }
    
    .article-section h2 {
        font-size: 1.3rem;
    }
    
    .article-section h3 {
        font-size: 1.1rem;
    }
    
    .article-sources {
        padding: 1rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .article-sources h2 {
        font-size: 1.2rem;
    }
    
    .back-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        margin: 0 0.5rem;
    }
    
    .floating-video {
        width: 280px;
        height: 157px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Resources page small mobile enhancements */
    .resource-section-header {
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }
    
    .resource-section-content.active {
        padding: 1rem 0.75rem;
    }
    
    .resource-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Desktop Menu Overlay for larger screens */
@media (min-width: 1025px) {
    .menu-overlay {
        width: 400px;
        left: auto;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .menu-overlay.active {
        transform: translateX(0);
    }
}

/* Ensure mobile menu works properly on all mobile devices */
@media (max-width: 1024px) {
    .menu-overlay {
        width: 100vw;
        left: 0;
        right: 0;
        transform: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .menu-overlay.active {
        transform: none;
    }
}



/* Desktop layout refinements */
@media (min-width: 992px) {
    .schedule-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Make CTA section wider on desktop to match video width */
    .cta-section {
        max-width: 800px !important;
    }
    
    /* Hide expand functionality on desktop */
    .expand-btn {
        display: none !important;
    }
    
    .testimonial-expanded {
        display: block !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hamburger,
    .menu-overlay,
    .cta-buttons,
    .carousel-btn {
        display: none !important;
    }

    main {
        margin-top: 0;
    }

    .hero {
        background: none;
        color: var(--dark-gray);
    }

    .hero h1,
    .hero p {
        color: var(--dark-gray);
    }

    .page-header {
        background: none;
        color: var(--dark-gray);
    }

    .page-header h1,
    .page-header p {
        color: var(--dark-gray);
    }

    .final-cta {
        background: none;
        color: var(--dark-gray);
    }

    .final-cta h2,
    .final-cta p {
        color: var(--dark-gray);
    }
    
    /* Terms and Conditions Print Styles */
    .back-to-top,
    .print-btn {
        display: none !important;
    }
    
    .section-content {
        max-height: none !important;
        padding: 1rem !important;
    }
    
    .section-header {
        background-color: transparent !important;
        color: var(--primary-blue) !important;
    }
    
    .terms-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Terms and Conditions Styles */
.terms-content {
    padding: 0;
    background-color: var(--white);
    min-height: calc(100vh - var(--header-height));
}

/* Terms content background */
.terms-content {
    background-color: var(--white);
    min-height: 100vh;
    margin-bottom: 0;
    padding-bottom: 2rem;
}



.terms-sections {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terms-section {
    border-bottom: 1px solid var(--border-gray);
}

.terms-section:last-child {
    border-bottom: none;
}

/* General section header for pages like index.html */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

/* Terms and Conditions specific section headers */
.terms-content .section-header {
    background-color: var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.terms-content .section-header:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.terms-content .section-header.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* FAQ section headers for pricesandpayment.html */
.faq-section .section-header {
    background-color: rgba(3,21,95,255);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-section .section-header h2 {
    color: var(--white);
    margin-bottom: 0;
}

.section-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.section-header.active .section-icon {
    transform: rotate(180deg);
}

/* Terms and Conditions specific section content */
.terms-content .section-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background-color: var(--white);
}

/* Removed conflicting rule - using specific terms-section-content.active instead */

/* Terms and Conditions specific section headers with unique classes */
.terms-content .terms-section-header {
    background-color: var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.terms-content .terms-section-header:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.terms-content .terms-section-header.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.terms-content .terms-section-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s ease;
    background-color: var(--white);
    opacity: 0;
}

.terms-content .terms-section-content.active {
    padding: 1.5rem;
    max-height: 5000px;
    opacity: 1;
}

/* Mobile-specific max-height for terms content */
@media (max-width: 768px) {
    .terms-content .terms-section-content.active {
        max-height: 10000px;
    }
}

@media (max-width: 480px) {
    .terms-content .terms-section-content.active {
        max-height: 15000px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 85%;
        margin: 0 auto;
    }
    
    .day-column {
        height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .day-column:last-child {
        border-bottom: none;
    }
    
    .day-header {
        padding: 0.5rem;
    }
    
    .day-header h3 {
        font-size: 0.75rem;
    }
    
    .time-slots {
        padding: 0.5rem;
    }
    
    .time-slot {
        height: 100px;
        padding: 0.5rem 0.25rem;
    }
    
    .time-slot.unavailable .time-range {
        font-size: 0.85rem;
    }
    
    .time-start,
    .time-end {
        font-size: 0.85rem;
    }
    
    .time-separator {
        font-size: 0.7rem;
    }
    
    .availability {
        font-size: 0.6rem;
    }
    
    .time-range {
        font-size: 0.85rem;
    }
}

.subsection {
    margin-bottom: 2rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.subsection p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.subsection ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.subsection li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.important-note {
    background-color: #e3f2fd;
    padding: 1rem;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    background-color: var(--light-blue);
    transform: scale(1.1);
}

.effective-date {
    text-align: center;
    margin: 2rem 0 0 0;
    font-style: italic;
    color: var(--medium-gray);
}

.highlight-search {
    background-color: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

.print-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.print-btn:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

/* Terms and Conditions Mobile Styles */
@media (max-width: 768px) {
    .section-header {
        padding: 1rem;
        font-size: 1.5rem;
    }

    /* General section-content.active rule for non-terms pages */
    .section-content.active {
        padding: 1rem;
        max-height: none;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .print-btn {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 0.75rem;
        font-size: 1.5rem;
    }

    /* General section-content.active rule for non-terms pages */
    .section-content.active {
        padding: 0.75rem;
        max-height: none;
    }
}

/* Resources Page Styles */
.resources-page {
    background-color: var(--light-gray);
}

.disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    color: #856404;
}

.resources-sections {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.resource-section {
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-section:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.resource-section-header {
    width: 100%;
    background-color: var(--light-gray);
    color: var(--primary-blue);
    border: none;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
}

.resource-section-header:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.resource-section-header:focus {
    outline: none;
}

/* Resource section header border consistency */
.resource-section-header:hover,
.resource-section-header:focus,
.resource-section-header:active {
    border-color: var(--primary-blue);
    outline-color: var(--primary-blue);
}

.resource-section-header.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-bottom: none;
}

.resource-section-header .section-icon {
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.resource-section-header.active .section-icon {
    transform: rotate(180deg);
}

.resource-section-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s ease;
    background-color: var(--light-gray);
    opacity: 0;
}

.resource-section-content.active {
    max-height: 2000px;
    padding: 1.5rem;
    opacity: 1;
}

.resource-subsection {
    margin-bottom: 2rem;
}

.resource-subsection:last-child {
    margin-bottom: 0;
}

.resource-subsection h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tools container - horizontal on desktop, vertical on mobile */
.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .tools-container {
        flex-direction: column;
    }
}

.resource-link {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
    font-weight: 500;
    box-shadow: var(--shadow);
}

.resource-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.resource-link.coming-soon {
    color: #28a745;
    font-style: italic;
    cursor: default;
}

.resource-link.coming-soon:hover {
    background-color: var(--white);
    color: #28a745;
    transform: none;
    box-shadow: none;
}

/* Mobile styles for resources page */
@media (max-width: 768px) {
    .resources-content {
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .resource-section-header {
        padding: 1.5rem 1rem; /* Increased padding for better touch targets */
        font-size: 1.2rem; /* Slightly larger font for mobile */
        min-height: 56px; /* Increased touch target */
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
        touch-action: manipulation; /* Optimize for touch */
    }
    
    .resource-section-content.active {
        padding: 1.2rem;
        max-height: 3000px; /* Increased max-height for mobile */
    }
    
    .resource-subsection h4 {
        font-size: 1rem;
    }
    
    .resource-link {
        padding: 1rem 1.2rem; /* Increased padding for better touch targets */
        font-size: 1rem; /* Slightly larger font for mobile */
        min-height: 48px; /* Increased minimum touch target */
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
        touch-action: manipulation; /* Optimize for touch */
    }
    
    /* Ensure smooth scrolling on mobile */
    .resource-section-content {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .resource-section-header {
        padding: 1.3rem 0.75rem; /* Increased padding for better touch targets */
        font-size: 1.1rem; /* Slightly larger font for very small screens */
        min-height: 56px; /* Ensure consistent touch target */
    }
    
    .resource-section-content.active {
        padding: 1rem 0.75rem;
        max-height: 4000px; /* Even larger max-height for very small screens */
    }
    
    .resource-link {
        padding: 0.9rem 1rem; /* Increased padding for better touch targets */
        font-size: 0.95rem; /* Slightly larger font for very small screens */
        min-height: 48px; /* Ensure consistent touch target */
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity; /* Optimize for GPU acceleration */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.slide-in-up {
    opacity: 0;
    transform: translateY(15px); /* Smaller distance for smoother animation */
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity, transform; /* Optimize for GPU acceleration */
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    opacity: 0;
    transform: scale(0.98); /* Smaller scale for smoother animation */
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity, transform; /* Optimize for GPU acceleration */
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile-optimized animations */
@media (max-width: 768px) {
    .fade-in {
        animation-duration: 0.5s; /* Faster on mobile for better responsiveness */
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Consistent easing */
    }
    
    .slide-in-up {
        animation-duration: 0.5s; /* Faster on mobile for better responsiveness */
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Consistent easing */
        transform: translateY(10px); /* Even smaller distance on mobile */
    }
    
    .scale-in {
        animation-duration: 0.5s; /* Faster on mobile for better responsiveness */
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Consistent easing */
        transform: scale(0.99); /* Even smaller scale on mobile */
    }
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

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

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus,
.cta-button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.nav-button:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .price-card,
    .testimonial,
    .nav-button,
    .info-card {
        border: 2px solid var(--dark-gray);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .testimonial-track {
        transition: none;
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%);
    }
}

/* Performance optimizations for all devices */
/* Optimize GPU acceleration for animated elements */
.fade-in,
.slide-in-up,
.scale-in,
.nav-button,
.testimonial,
.price-card,
.method-section,
.info-card,
.step {
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    perspective: 1000px; /* Improve 3D rendering */
}

/* Language Toggle Button Styles */
.language-toggle {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3a7bd5 100%);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    margin-right: 15px;
    box-shadow: var(--shadow);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #3a7bd5 0%, var(--primary-blue) 100%);
}

.language-toggle:active {
    transform: translateY(0);
}

/* Responsive adjustments for language toggle */
@media (max-width: 768px) {
    .language-toggle {
        font-size: 12px;
        padding: 6px 12px;
        margin-right: 10px;
    }
    
    /* Center the language toggle button container on mobile */
    .language-toggle {
        display: block;
        margin: 0 auto;
    }
}

/* Ensure smooth initial state for all devices */
.nav-button,
.testimonial,
.price-card,
.method-section,
.info-card,
.step {
    opacity: 0; /* Start invisible to prevent flash */
    transition: opacity 0.1s ease-out; /* Smooth transition when class is added */
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile devices */
    @media (max-width: 480px) {
        .slide-in-up {
            transform: translateY(10px); /* Even smaller distance on very small screens */
        }
        
        .scale-in {
            transform: scale(0.99); /* Even smaller scale on very small screens */
        }
    }
}

/* ========================================
   PRICES AND PAYMENT PAGE STYLES
   ======================================== */

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(3,21,95,255);
    color: var(--white);
}

/* Ensure proper spacing for prices and payment page */
.pricesandpayment .page-header {
    margin-bottom: 0;
}

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

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

/* Main Content */
.main-content {
    padding: 4rem 0;
    background-color: var(--white);
}

/* Ensure proper spacing for pages with headers */
.pricesandpayment .main-content {
    padding-top: 4rem;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: visible;
    position: relative;
    padding-bottom: 2rem;
}

/* Pricing section headers for pricesandpayment.html */
.pricing-section-header {
    background-color: rgba(3,21,95,255);
    color: var(--white);
    padding: 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: default;
}

.pricing-section-header h2 {
    color: var(--white);
    margin-bottom: 0;
}



.section-header h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.discount-tag {
    font-size: 0.85rem;
    font-weight: 400;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-left: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.section-content {
    padding: 2rem;
    overflow: visible;
    min-height: 400px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.single-lessons-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Price Cards */
.price-card {
    background-color: var(--light-gray);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
    .price-card:hover {
        transform: none;
        box-shadow: none;
    }
}

.price-card.featured {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    background-color: var(--white);
}

.price-card.featured::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.duration-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.lesson-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
    position: relative;
}

.original-price {
    text-decoration: line-through;
    color: var(--medium-gray);
    font-size: 0.9rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.5rem;
}

.discount-badge {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pay-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.pay-button:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

/* Disable pay button hover effects on mobile */
@media (max-width: 768px) {
    .pay-button:hover {
        transform: none;
    }
}

/* Discount Section */
.discount-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.discount-toggle {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius);
    margin-bottom: 0;
}

.discount-toggle:hover {
    background-color: #ffc107;
    color: var(--white);
}

/* Disable discount toggle hover effects on mobile */
@media (max-width: 768px) {
    .discount-toggle:hover {
        background-color: #fff3cd;
        color: inherit;
    }
}

.discount-toggle.active {
    background-color: #ffc107;
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.discount-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.discount-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    background-color: var(--white);
    border: 2px solid #ffc107;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
}

.discount-content.active {
    max-height: 2000px;
    padding: 2rem;
    opacity: 1;
}

.eligibility-info {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

/* Referral Section */
.referral-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--success-green);
}

.referral-section h3 {
    color: var(--success-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Payment Methods */
.payment-methods {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.payment-option {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-align: center;
}

.bank-details {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-gray);
}

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

.faq-question {
    background-color: var(--light-gray);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.faq-question:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.faq-question.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--white);
}

.faq-answer.active {
    padding: 1.25rem;
    max-height: 500px;
}

.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-button {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.contact-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

.contact-button.whatsapp {
    background-color: var(--white);
    color: #25D366;
    border: 2px solid #25D366;
}

.contact-button.whatsapp:hover {
    background-color: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.contact-button.email {
    background-color: var(--white);
    color: var(--medium-gray);
    border: 2px solid var(--medium-gray);
}

.contact-button.email:hover {
    background-color: var(--medium-gray);
    color: var(--white);
    border-color: var(--medium-gray);
}



/* CTA Section */
.cta-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--success-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.cta-button:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}



/* Terms Notice */
.terms-notice {
    background-color: #fff3cd;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid #ffc107;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.terms-notice a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.terms-notice a:hover {
    text-decoration: underline;
}

.terms-notice p {
    margin: 0;
}

/* Schedule Sticky Note */
.schedule-sticky-note {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 0.75rem 1rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(-1deg);
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid #f0f0f0;
    max-width: 300px;
    z-index: 10;
}

.schedule-sticky-note p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.4;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Terms and Conditions Popup */
.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.terms-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-popup {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.terms-popup-overlay.active .terms-popup {
    transform: scale(1);
}

.terms-popup h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.terms-popup p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.terms-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.terms-popup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.terms-popup-btn.primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.terms-popup-btn.primary:hover {
    background-color: var(--light-blue);
}

.terms-popup-btn.secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
}

.terms-popup-btn.secondary:hover {
    background-color: var(--border-gray);
}

.terms-popup-btn.review {
    background-color: var(--accent-red);
    color: var(--white);
}

.terms-popup-btn.review:hover {
    background-color: #6b1a12;
}

/* Mobile Styles for Prices and Payment */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .main-content {
        padding: 2rem 0;
    }

    .section-content {
        padding: 1.5rem;
    }

    .pricing-grid {
        gap: 1rem;
    }

    .single-lessons-grid,
    .packages-grid,
    .pricing-grid.single-lessons {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .price-card {
        padding: 1rem;
    }

    .payment-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .discount-toggle {
        padding: 1rem;
    }

    .discount-content.active {
        max-height: none;
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer.active {
        padding: 1rem;
    }
    
    .discount-tag {
        font-size: 0.75rem;
        margin-left: 0.5rem;
        display: block;
        margin-top: 0.5rem;
    }
    
    /* Final CTA mobile styles */
    .final-cta {
        padding: 2rem 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .final-cta h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .final-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .final-cta .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .final-cta .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Terms Popup Mobile Styles */
    .terms-popup {
        padding: 1.5rem;
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .terms-popup h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .terms-popup p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .terms-popup-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .terms-popup-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .price-card {
        padding: 0.75rem;
    }

    .price {
        font-size: 1.5rem;
        color: var(--primary-blue);
    }

    .pay-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* New cohesive pricing section structure */
.single-lessons-section,
.regular-packages-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}

.single-lessons-section .pricing-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: center;
    min-height: 180px;
}

.regular-packages-section .package-category {
    padding: 0 2rem 0.5rem 2rem;
    margin-top: 1rem;
}

.regular-packages-section .package-category:first-child {
    padding-top: 0.5rem;
    margin-top: 0;
}

/* Package info section styling */
.package-info-section {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    background-color: var(--light-gray);
    margin: 0 2rem;
    border-radius: var(--border-radius);
}

.package-intro-text {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.regular-packages-section .package-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    text-align: center;
}

.regular-packages-section .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.regular-packages-section .package-category:last-child .pricing-grid {
    margin-bottom: 0;
}

/* Price card styling within cohesive sections */
.single-lessons-section .price-card,
.regular-packages-section .price-card {
    background-color: var(--light-gray);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-lessons-section .price-card:hover,
.regular-packages-section .price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

/* Disable hover effects on mobile for all price cards */
@media (max-width: 768px) {
    .price-card:hover,
    .single-lessons-section .price-card:hover,
    .regular-packages-section .price-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .single-lessons-section .pricing-grid,
    .regular-packages-section .pricing-grid {
        max-width: 350px;
        margin: 0 auto;
        grid-template-columns: 1fr;
    }
    
    /* Specific styles for prices.html only */
    .pricing-section:not(.single-lessons-section):not(.regular-packages-section) .pricing-grid {
        max-width: 350px;
        margin: 0 auto;
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .pricing-section:not(.single-lessons-section):not(.regular-packages-section) {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .package-category {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Mobile spacing for lesson amount and discount tag */
    .package-card .lesson-count {
        margin-right: 3rem;
    }
    
    .package-card .package-header {
        gap: 2rem;
    }
    
    /* Move header closer to content on mobile */
    .regular-packages-section .package-category:first-child {
        padding-top: 1rem;
    }
}

.single-lessons-section .price-card.featured,
.regular-packages-section .price-card.featured {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    background-color: var(--white);
    transform: scale(1.05);
    z-index: 3;
}

/* Animation Classes */

/* Article Page Styles */
.article-page {
    background-color: var(--light-gray);
}

.article-content {
    min-height: 100vh;
    background-color: var(--white);
    padding-bottom: 0;
}

/* Floating Video Styles */
.floating-video {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 600px;
    height: 338px;
    z-index: 1000;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: move;
    resize: none;
    min-width: 300px;
    min-height: 169px;
}

.floating-video.dragging {
    transition: none;
    cursor: grabbing;
}

.floating-video .control-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 1001;
}

.floating-video .control-btn {
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.floating-video .control-btn:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.floating-video .control-btn:active {
    transform: scale(0.95);
}

/* Simple drag handle */
.floating-video .drag-handle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    cursor: move;
    z-index: 1001;
}

/* Simple resize handle - HIDDEN */
.floating-video .resize-handle {
    display: none;
}

.floating-video.active {
    transform: translateY(0);
    opacity: 1;
}

.floating-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.floating-video .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

.pin-video-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.pin-video-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.pin-video-btn.pinned {
    background-color: var(--primary-blue);
}

.pin-video-btn.pinned:hover {
    background-color: #1a237e;
}

.article-video {
    margin-bottom: 3rem;
}

.article-video .video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-video .video-instruction {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-video .video-instruction i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.article-video .video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.article-body {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section:last-child {
    margin-bottom: 0;
}

.article-section h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.article-section h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.article-section p {
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.article-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-section li {
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.article-sources {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.article-sources h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.source-item h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.source-item p {
    margin-bottom: 0.5rem;
}

.source-item ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.source-item li {
    margin-bottom: 0.5rem;
}

.source-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.source-item a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

.back-to-resources {
    max-width: 800px;
    margin: 0 auto 0 auto;
    text-align: center;
    padding-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-link:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--white);
}

.back-link i {
    font-size: 0.9rem;
}

/* Mobile styles for article page */
@media (max-width: 768px) {
    /* Mobile navigation adjustments */
    .mobile-nav {
        gap: 0.5rem;
        padding: 0.6rem 0;
    }

    .nav-link {
        font-size: 1.3rem !important; /* Force larger font size for mobile hamburger menu */
        padding: 0.2rem 1rem !important; /* Force larger padding for mobile hamburger menu */
        min-height: 64px !important; /* Force larger touch target for mobile hamburger menu */
    }

    .article-content {
        padding-top: 0;
    }
    
    .article-video {
        margin: 0 -1rem 2rem -1rem;
    }
    
    .article-video .video-container {
        max-width: none;
        border-radius: 0;
        margin: 0;
    }
    
    .article-video .video-container iframe {
        height: 250px;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .article-section h3 {
        font-size: 1.2rem;
    }
    
    .article-section p,
    .article-section li {
        font-size: 1rem;
    }
    
    .article-sources {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .article-sources h2 {
        font-size: 1.4rem;
    }
    
    .back-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .floating-video {
        width: 350px;
        height: 197px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    /* Smaller screen navigation adjustments */
    .mobile-nav {
        gap: 0.3rem;
        padding: 0.4rem 0;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    .article-video {
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }
    
    .article-video .video-container iframe {
        height: 200px;
    }
    
    .article-section h2 {
        font-size: 1.3rem;
    }
    
    .article-section h3 {
        font-size: 1.1rem;
    }
    
    .article-sources {
        padding: 1rem;
    }
    
    .article-sources h2 {
        font-size: 1.2rem;
    }
    
    .back-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .floating-video {
        width: 280px;
        height: 157px;
        bottom: 10px;
        right: 10px;
    }
}

/* ========================================
   COLLAPSIBLE SECTION STYLES - CLEANED UP
   ======================================== */

/* Collapsible section headers - active state */
.faq-question.active,
.terms-section-header.active,
.resource-section-header.active {
    border-bottom: none;
}

/* Collapsible section headers - focus state */
.faq-question:focus,
.terms-section-header:focus,
.resource-section-header:focus {
    outline: none;
}

/* Collapsible section headers - inactive focus state */
.faq-question:not(.active):focus,
.terms-section-header:not(.active):focus,
.resource-section-header:not(.active):focus {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

/* FAQ final item border fix */
.faq-item:last-child {
    border-bottom: 1px solid var(--border-gray);
}

/* ========================================
   LAYOUT BORDER FIXES - CLEANED UP
   ======================================== */

/* Header styling */
.header {
    border-bottom: none;
    box-shadow: none;
}

/* Logo section focus */
.logo-section:focus-visible {
    outline: none;
}

/* Base layout elements */
body, html {
    border: none;
    outline: none;
}

main, .container, .page-header {
    border: none;
    outline: none;
}

/* First child elements that might have top borders */
main > *:first-child,
.container > *:first-child,
.page-header,
.hero,
.faq-navigation {
    border-top: none;
    outline: none;
}

/* ========================================
   SCHEDULING PAGE STYLES
   ======================================== */

.scheduling-page {
    background-color: var(--light-gray);
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 2rem;
}

.scheduling-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.scheduling-header h1 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.scheduling-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.lesson-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Override scheduling defaults specifically for links page to remove extra top gap */
.links-page.scheduling-page {
    padding-top: 0;
    background-color: transparent;
}

/* Specific lesson button styles with proper specificity */
.scheduling-page .lesson-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-blue);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-height: 80px;
    width: 100%;
}

.scheduling-page .lesson-button:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Override global button focus styles with higher specificity */
.scheduling-page .lesson-button:focus,
.scheduling-page .lesson-button:active {
    outline: none;
    border-color: var(--primary-blue);
}

.scheduling-page .lesson-button h3 {
    margin: 0;
    color: var(--primary-blue);
}

.scheduling-page .lesson-button p {
    color: var(--medium-gray);
    margin: 0;
    font-size: 0.9rem;
}

.scheduling-page .back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.scheduling-page .back-link:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

/* Responsive adjustments for scheduling page */
@media (max-width: 768px) {
    .scheduling-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .scheduling-header h1 {
        font-size: 1.75rem;
    }
    
    .scheduling-page .lesson-button {
        padding: 1.5rem;
    }
}

/* ========================================
   REDESIGNED PACKAGE CARDS - CLEAN LAYOUT
   ======================================== */

/* Package card specific styles */
.package-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
}

/* Package header with lesson count and discount badge */
.package-card .package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    gap: 1.5rem;
    flex-wrap: nowrap;
    position: relative;
}

.package-card .lesson-count {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.package-card .discount-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-red), #e74c3c);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Price section with original and final prices */
.package-card .price-section {
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.package-card .original-price {
    text-decoration: line-through;
    color: var(--medium-gray);
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.7;
    margin: 0;
    line-height: 1;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding-left: 0.8rem;
}

.package-card .final-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Hover effects for package cards */
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-blue);
}

.package-card:hover .final-price {
    color: var(--light-blue);
}

.package-card:hover .discount-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

/* Disable package card hover effects on mobile */
@media (max-width: 768px) {
    .package-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border-gray);
    }
    
    .package-card:hover .final-price {
        color: var(--primary-blue);
    }
    
    .package-card:hover .discount-badge {
        transform: none;
        box-shadow: none;
    }
}

/* Responsive adjustments for package cards */
@media (max-width: 768px) {
    .package-card {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .package-card .lesson-count {
        font-size: 1.4rem;
    }
    
    .package-card .final-price {
        font-size: 2rem;
        color: var(--primary-blue);
    }
    
    .package-card .discount-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Mobile package header - completely redesigned */
    .package-card .package-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
        width: 100%;
        min-width: 0;
        position: relative;
    }
    
    .package-card .lesson-count {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--primary-blue);
        margin: 0;
        flex-shrink: 0;
        white-space: nowrap;
        margin-right: 2rem;
    }
    
    .package-card .discount-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        flex-shrink: 0;
        white-space: nowrap;
        position: absolute;
        right: 1rem;
        margin-left: 1rem;
    }
    
    .package-card .original-price {
        padding-left: 0.4rem;
    }
}

@media (max-width: 480px) {
    .package-card {
        min-height: 160px;
        padding: 1.25rem;
    }
    
    .package-card .lesson-count {
        font-size: 1.3rem;
    }
    
    .package-card .final-price {
        font-size: 1.8rem;
        color: var(--primary-blue);
    }
    
    /* Smaller mobile package header */
    .package-card .package-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-bottom: 0.3rem;
        padding: 0.6rem 0.8rem;
        width: 100%;
        min-width: 0;
        position: relative;
    }
    
    .package-card .lesson-count {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary-blue);
        margin: 0;
        flex-shrink: 0;
        white-space: nowrap;
        margin-right: auto;
    }
    
    .package-card .discount-badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
        flex-shrink: 0;
        white-space: nowrap;
        position: absolute;
        right: 0.8rem;
    }
    
    .package-card .original-price {
        padding-left: 0.5rem;
    }
}

/* Package cards with Pay Now buttons */
.package-card .pay-button {
    margin-top: auto;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.package-card .pay-button:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-hover);
}

/* Ensure package cards with buttons have proper spacing */
.package-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}



/* ========================================
   SCROLL-TRIGGERED PACKAGE CARD ANIMATIONS
   ======================================== */

/* Package cards are always visible, only highlight on scroll */
.package-card {
    opacity: 1;
    transform: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Ensure single lesson cards are visible */
.price-card:not(.package-card) {
    opacity: 1;
    transform: none;
}

/* Highlighted state for scroll animations - MOBILE ONLY */
@media (max-width: 768px) {
    .package-card.scroll-highlight {
        transform: none;
        box-shadow: none;
    }

    .package-card.scroll-highlight .final-price {
        color: var(--primary-blue);
    }

    .package-card.scroll-highlight .discount-badge {
        transform: none;
        box-shadow: none;
    }
}

/* Desktop hover effects - ensure they work properly */
@media (min-width: 769px) {
    .price-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
        border-color: var(--border-gray) !important;
    }
    
    .package-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
        border-color: var(--border-gray) !important;
    }
    
    /* Override scroll-highlight on desktop */
    .package-card.scroll-highlight {
        transform: none;
        box-shadow: none;
        border-color: var(--border-gray) !important;
    }
    
    .package-card.scroll-highlight:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
        border-color: var(--border-gray) !important;
    }
    
    /* Override any section-specific hover styles */
    .single-lessons-section .price-card:hover,
    .regular-packages-section .price-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
        border-color: var(--border-gray) !important;
    }
}

/* ========================================
   TRIAL PAGE STYLES
   ======================================== */

.trial-page .hero {
    background: rgba(3,21,95,255);
    color: var(--white);
    padding: 4rem 0 3rem 0;
}

.trial-page .hero .cta-section h1 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.trial-page .hero .cta-section p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trial Information Section */
.trial-info-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.trial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trial-content h2 {
    color: var(--primary-blue);
    margin-bottom: 3rem;
}

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

.trial-feature {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.trial-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-blue);
}

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

.feature-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--medium-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Schedule Section */
.schedule-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
    text-align: center;
}

.schedule-content {
    max-width: 600px;
    margin: 0 auto;
}

.schedule-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.schedule-content p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.schedule-button-container {
    margin-top: 2rem;
}

.schedule-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.schedule-button:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
    text-decoration: none;
}

.schedule-button:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.schedule-button:active {
    outline: none;
    border-color: var(--primary-blue);
}

.schedule-button i {
    font-size: 1.2rem;
}

/* Trial Schedule Button - Unique styles for trial page */
.trial-schedule-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: transparent;
    color: var(--primary-blue);
    padding: 1.5rem 3rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.35rem;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.trial-schedule-button:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
    text-decoration: none;
}

.trial-schedule-button:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.trial-schedule-button:active {
    outline: none;
    border-color: var(--primary-blue);
}

.trial-schedule-button i {
    font-size: 1.4rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trial-page .contact-buttons .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.trial-page .contact-buttons .cta-button i {
    font-size: 1.1rem;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--dark-gray);
    font-size: 1rem;
}

.contact-info p:first-child {
    margin-top: 0;
}

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

/* Index page contact info - simple text styling */
.contact-info-index {
    margin: 0 0 1rem 0;
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile responsiveness for index page */
@media (max-width: 768px) {
    .final-cta p {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive adjustments for trial page */
@media (max-width: 768px) {
    .trial-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trial-feature {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .schedule-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .trial-schedule-button {
        padding: 1.1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .trial-schedule-button i {
        font-size: 1.2rem;
    }
    
    .trial-page .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .trial-page .contact-buttons .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .trial-page .hero .cta-section h1 {
        font-size: 2rem;
    }
    
    .trial-page .hero .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .trial-feature {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .schedule-button {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .trial-schedule-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .trial-schedule-button i {
        font-size: 1.1rem;
    }
    
    .contact-info {
        padding: 1.25rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* ========================================
   INFOBOARD PAGE STYLES
   ======================================== */

.infoboard-page {
    background-color: var(--white);
}

.infoboard-page main {
    margin-top: 1.9rem;
}

.infoboard-page .page-header {
    padding: calc(var(--header-height) + 1.5rem) 0 3rem 0;
    text-align: center;
}

.infoboard-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.info-section {
    background-color: var(--white);
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid var(--border-gray);
    position: relative;
}

.info-section h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Contact Card */
.contact-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 3rem;
    border: 1px solid var(--border-gray);
}

.contact-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

/* Sticky Notes */
.sticky-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sticky-note {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 1.5rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(-1deg);
    position: relative;
    border: 1px solid #f0f0f0;
}

.sticky-note:nth-child(even) {
    transform: rotate(1deg);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.sticky-note:nth-child(3n) {
    transform: rotate(-0.5deg);
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.sticky-note:nth-child(4n) {
    transform: rotate(0.5deg);
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.sticky-note h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.sticky-note p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* Schedule Notice */
.schedule-notice {
    padding: 1.5rem;
    background-color: #fff3cd;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
    margin-bottom: 1.5rem;
}

/* No Teaching Notice */
.no-teaching-notice {
    padding: 1.5rem;
    background-color: #e3f2fd;
    border-radius: var(--border-radius);
    border: 1px solid #bbdefb;
    border-left: 4px solid #6c757d;
    margin-bottom: 1rem;
}

.no-teaching-notice:nth-child(even) {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-left: 4px solid #1976d2;
}

.no-teaching-notice h4,
.no-teaching-notice p {
    color: #000000;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schedule-header h4 {
    color: #856404;
    margin: 0;
    font-size: 1.1rem;
}

.location-tag {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.schedule-notice p {
    margin: 0.5rem 0;
    color: #856404;
}

.schedule-notice p:last-child {
    margin-bottom: 0;
}

.schedule-notice .schedule-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.schedule-notice .schedule-link:hover {
    text-decoration: underline;
}

/* Schedule Table */
.schedule-table {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Schedule Note for Midnight Crossing */
.schedule-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.schedule-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

.schedule-note strong {
    color: #dc3545;
    font-weight: 700;
}

/* Schedule Page Specific Styles */
.schedule-page-table {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-page-announcement {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.schedule-page-announcement h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.schedule-page-time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.schedule-announcement {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.schedule-announcement.permanent {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
    margin-top: 2rem;
}

.schedule-announcement h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.schedule-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-box {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.detail-box:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.detail-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
}

.schedule-footer {
    background-color: var(--light-gray);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.schedule-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.schedule-button:hover {
    background-color: transparent;
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.time-slot {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.infoboard-time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
    text-align: center;
    padding: 0.25rem 0.5rem 0 0;
}

.no-changes-note {
    color: var(--dark-gray);
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

.schedule-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.schedule-table th,
.schedule-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid var(--border-gray);
    position: relative;
    vertical-align: middle;
}

.schedule-table th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.5rem 1rem;
}

.schedule-table th:first-child {
    border-top-left-radius: 8px;
}

.schedule-table th:last-child {
    border-top-right-radius: 8px;
}

.schedule-table td {
    font-size: 1rem;
    color: var(--dark-gray);
    background-color: var(--white);
    transition: background-color 0.2s ease;
}

.schedule-table td:first-child {
    font-weight: 600;
    color: var(--primary-blue);
    background-color: var(--light-gray);
    border-left: 2px solid var(--primary-blue);
    font-size: 1.1rem;
}

.schedule-table td:not(:first-child) {
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    border: 1px solid #bbdefb;
}

.schedule-table tr:hover td:not(:first-child) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.schedule-table td[colspan] {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border: 1px solid #e0e0e0;
    color: #666666;
    font-weight: 600;
}

.schedule-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.schedule-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* No Teaching Notice */
.no-teaching-notice {
    padding: 1.5rem;
    background-color: #e3f2fd;
    border-radius: var(--border-radius);
    border: 1px solid #bbdefb;
    border-left: 4px solid #6c757d;
}

.no-teaching-notice h4 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.no-teaching-notice p {
    margin: 0;
    color: #000000;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-year {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.timeline-year h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a237e 100%);
    padding: 0.75rem 2rem;
    border-radius: 0;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
    min-width: 120px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

.timeline-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments for infoboard */
@media (max-width: 768px) {
    .scroll-progress {
        display: none;
    }
    
    .infoboard-content {
        padding: 2rem 0;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .info-section h3 {
        font-size: 1.2rem;
    }
    
    .sticky-notes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sticky-note {
        padding: 1.25rem;
    }
    
    .schedule-notice,
    .no-teaching-notice {
        padding: 1.25rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .schedule-table th {
        padding: 1rem 0.5rem;
    }
    
    .schedule-table td:first-child {
        font-size: 1rem;
    }
    
    .infoboard-time-slot {
        font-size: 1rem;
        gap: 0.3rem;
        padding: 0.2rem 0.4rem 0 0;
        justify-content: center;
        text-align: center;
    }
    
    .schedule-page-time-slot {
        font-size: 1rem;
        gap: 0.3rem;
        justify-content: center;
        text-align: center;
    }
    
    .schedule-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detail-box {
        padding: 0.6rem 1rem;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline-item {
        padding-left: 0;
        padding: 0.75rem;
    }
    
    .timeline-year {
        padding-left: 0;
    }
    
    .timeline-year h4 {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .schedule-sticky-note {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
        max-width: 100%;
        transform: rotate(0deg);
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 1.25rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    .sticky-note {
        padding: 1rem;
    }
    
    .schedule-notice,
    .no-teaching-notice {
        padding: 1rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.4rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .schedule-table th {
        padding: 0.75rem 0.25rem;
    }
    
    .schedule-table td:first-child {
        font-size: 0.9rem;
    }
    
    .infoboard-time-slot {
        font-size: 0.9rem;
        gap: 0.2rem;
        padding: 0.3rem 0.2rem 0 0;
        justify-content: center;
        text-align: center;
    }
    
    .schedule-page-time-slot {
        font-size: 0.9rem;
        gap: 0.2rem;
        justify-content: center;
        text-align: center;
    }
    
    .schedule-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-box {
        padding: 0.5rem 0.75rem;
    }
    
    .detail-text {
        font-size: 0.85rem;
    }
    
    .schedule-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .time-slot {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline-item {
        padding-left: 0;
        padding: 0.5rem;
    }
    
    .timeline-year {
        padding-left: 0;
    }
    
    .timeline-year h4 {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .timeline-item::before {
        left: -0.25rem;
        width: 0.75rem;
        height: 0.75rem;
    }
}

