﻿html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll on html */
    width: 100%;
    max-width: 100%;
    /* Prevent nested scroll chaining on mobile */
    overscroll-behavior-y: none;
}

/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw;
    position: relative;
    overscroll-behavior-y: contain; /* keep scroll with main page */
}

*, *::before, *::after {
    box-sizing: border-box; /* Ensure padding and borders don't add to width */
    max-width: 100%; /* Prevent any element from being wider than viewport */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 0 15px; /* Add padding for mobile */
    box-sizing: border-box;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #476f95;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: white; /* Changed to white for visibility on blue navbar */
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative; /* Needed for canvas positioning */
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #194a7a 0%, #476f95 25%, #7593af 50%, #476f95 75%, #194a7a 100%);
    overflow: hidden; /* Hide anything that goes outside the hero section */
    padding-top: 60px; /* For fixed navbar */
    width: 100%;
    max-width: 100vw;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place canvas behind content */
    max-width: 100vw;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2; /* Ensure content is above canvas */
    width: 100%;
    max-width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out, subtlePulse 4s ease-in-out infinite 2s;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.hero-title-line {
    display: block;
}

@media (min-width: 769px) {
    .hero-title-line {
        display: inline;
    }
    
    .hero-title-line:first-child::after {
        content: " ";
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero CTA Buttons */
.cta-buttons {
    display: flex !important;
    gap: 16px;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 999 !important;
    pointer-events: auto;
    visibility: visible !important;
}

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #194a7a;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1000 !important;
    pointer-events: auto;
    visibility: visible !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000 !important;
    pointer-events: auto;
    visibility: visible !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.faq h2 {
    text-align: center;
    color: #194a7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.faq h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item:hover {
    background: rgba(74, 144, 226, 0.02);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.05);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #4a90e2;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(248, 249, 252, 0.5);
}

.accordion-body.active {
    max-height: none !important;
    padding: 1.5rem 2rem 2rem 2rem;
}

.accordion-body p {
    margin: 0.5rem 0;
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 1rem;
    padding: 0 0.5rem;
}

/* Animation for smooth reveal */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-body.active p {
    animation: fadeInDown 0.3s ease 0.1s both;
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq {
        padding: 3rem 0;
    }
    
    .faq h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .accordion {
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .accordion-header {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body.active {
        max-height: none !important;
        padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    }
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
    background: #f9f9f9;
}

.reviews h2 {
    text-align: center;
    color: #194a7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.reviews h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
}

.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.review-slide {
    display: none;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.review-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.review-slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-slide span {
    font-weight: bold;
    color: rgba(71, 111, 149, 0.85); /* slightly lighter blue */
    font-size: 1rem;
}

/* Subtle blue course label at top-right of review */
.review-slide .course-label {
    font-size: 0.75rem;
    color: rgba(71, 111, 149, 0.75);
    background: rgba(71, 111, 149, 0.06);
    border: 1px solid rgba(71, 111, 149, 0.15);
    border-radius: 5px;
    padding: 2px 6px;
    position: absolute;
    top: 12px;
    right: 12px;
    font-weight: 600;
    font-family: inherit;
}

/* Submit review button styling */
.submit-review-btn {
    display: inline-block;
    font-size: 0.9rem;
    color: #476f95;
    background: rgba(71, 111, 149, 0.05);
    border: 1px solid rgba(71, 111, 149, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-review-btn:hover {
    background: rgba(71, 111, 149, 0.1);
    border-color: rgba(71, 111, 149, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 111, 149, 0.15);
}

.reviews-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.review-prev, .review-next {
    background: #476f95;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-prev:hover, .review-next:hover {
    background: #194a7a;
    transform: scale(1.1);
}

.review-dots {
    display: flex;
    gap: 0.5rem;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: #476f95;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive adjustments for reviews */
@media (max-width: 768px) {
    .reviews-slider {
        margin: 0 1rem;
    }
    
    .review-slide {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .review-slide p {
        font-size: 1rem;
    }
    
    .reviews-navigation {
        margin-top: 1.5rem;
    }
    
    .review-prev, .review-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .review-slide {
        padding: 1.25rem;
        margin: 0;
    }
    
    .review-slide p {
        font-size: 0.95rem;
    }
}

.reviews .swiper-container {
    width: 100%;
    padding: 2rem 0;
    overflow: visible;
    margin: 0 auto;
}

/* About the Course Section */
.about {
    padding: 4rem 0;
    background: #fff;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about h2 {
    text-align: center;
    color: #194a7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
}

.about-subheading {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-video {
    flex: none;
    max-width: 400px;
    position: relative;
    margin: 0 auto;
}

.course-details {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.course-week {
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
}

.course-week-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}

.course-week-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #476f95;
    transition: transform 0.3s ease;
}

.course-week-header.active .toggle-icon {
    transform: rotate(45deg);
}

.course-week-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.course-week-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.7;
    color: #555;
}

.about-text {
    flex: 1;
}

.about-video {
    flex: 1;
    max-width: 400px; /* Adjust as needed */
    position: relative;
}

.video-wrapper video {
    width: 100%;
    border-radius: 15px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 40%, transparent 100%);
    transition: transform 0.4s ease;
}

.video-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    max-width: 300px; /* Making videos smaller */
    margin: 0 auto; /* Centering the smaller videos */
}

.video-wrapper:hover video {
    transform: scale(1.05);
}

.video-wrapper video {
    display: block;
    width: 100%;
}

/* Video thumbnail image styles */
.video-wrapper .video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.video-wrapper:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
}

.play-button-svg {
    width: 80px;
    height: 80px;
    fill: white;
    transition: transform 0.3s ease;
}

.play-button-container:hover .play-button-svg {
    transform: scale(1.1);
}

.play-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.play-button-svg .stroke-solid {
    stroke-dashoffset: 0;
    stroke-dasharray: 300;
    stroke-width: 4px;
    transition: stroke-dashoffset 1s ease, opacity 1s ease;
    stroke: #E2E8F0; /* Lighter gray for better visibility */
}

.play-button-svg .stroke-dotted {
    opacity: 0;
    stroke-dasharray: 4, 5;
    stroke-width: 1px;
    transform-origin: 50% 50%;
    animation: spin 4s infinite linear;
    transition: opacity 1s ease, stroke-width 1s ease;
    stroke: #E2E8F0; /* Lighter gray for better visibility */
}

.play-button-svg .icon {
    transform-origin: 50% 50%;
    transition: transform 200ms ease-out;
    fill: #E2E8F0; /* Lighter gray for better visibility */
}

.play-button-container:hover .stroke-solid {
    opacity: 0;
    stroke-dashoffset: 300;
}

.play-button-container:hover .stroke-dotted {
    stroke-width: 4px;
    opacity: 1;
}

.play-button-container:hover .icon {
    transform: scale(1.05);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Modal Styles */
.video-modal-container {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.video-modal-content {
    position: relative;
    width: 45%; /* 50% smaller than before */
    max-width: 300px; /* 50% of previous 600px */
    animation: zoomIn 0.5s;
}

#modal-video {
    width: 100%;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -45px;
    right: -10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    line-height: 1;
    text-align: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.about-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* My Story Section */
.story {
    padding: 4rem 0;
    background: #f9f9f9;
}

.story .container {
    max-width: 800px;
}

.story h2 {
    text-align: center;
    color: #194a7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.story h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.story-text {
    flex: 1;
    text-align: left;
}

.story-video {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.story-video video {
    width: 100%;
    border-radius: 10px;
}

.story p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.video-container {
    margin-top: 2rem;
    position: relative;
}

.video-container video {
    width: 100%;
    max-width: 400px; /* Adjust as needed for portrait video */
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Available Courses Section */
.courses {
    padding: 4rem 0;
    background: #fff;
}

.courses h2 {
    text-align: center;
    color: #194a7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.courses h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.group-course {
    background: #fff;
    border: 2px solid #f0f0f0;
    order: 1; /* Show first */
}

.other-courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    order: 2; /* Show after group course */
    margin-top: 1rem;
}

.course-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #476f95, #5a7fa8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.course-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.course-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.course-card .course-subtitle {
    font-style: italic;
    color: #476f95;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    border-left: 3px solid #476f95;
    padding-left: 12px;
}

.course-card .course-description {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.course-card .course-description:last-of-type {
    margin-bottom: 2rem;
}

/* Course card layout improvements */
.course-card {
    display: flex;
    flex-direction: column;
}

.course-content {
    flex-grow: 1;
}

.course-price {
    color: #476f95;
    font-weight: 700;
    float: right;
    font-size: 1.1rem;
}

.group-course {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.group-course:hover {
    border-color: #476f95;
    box-shadow: 0 12px 40px rgba(71, 111, 149, 0.1);
}

/* Calendar Styles */
.calendar-container {
    margin: 1.5rem 0;
    position: relative;
}

/* Ensure navigation buttons are hidden on desktop */
.calendar-nav {
    display: none !important;
}

.calendar-header h4 {
    text-align: center;
    color: #476f95;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.calendar-months {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 1rem;
    justify-content: center;
}

.calendar-months::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.month-calendar {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    flex: 0 0 280px; /* Fixed width, no shrinking */
    min-width: 280px;
    max-width: 280px;
}

/* Calendar Navigation Buttons */
.calendar-nav {
    display: none; /* Hidden on desktop by default */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(71, 111, 149, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide navigation buttons on desktop screens */
@media (min-width: 769px) {
    .calendar-nav {
        display: none !important;
    }
}

.calendar-nav:hover {
    background: rgba(71, 111, 149, 1);
    transform: translateY(-50%) scale(1.1);
}

.calendar-nav.prev {
    left: -20px;
}

.calendar-nav.next {
    right: -20px;
}

.calendar-nav svg {
    width: 20px;
    height: 20px;
}

.month-header {
    background: #476f95;
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: bold;
    font-size: 1rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f5f5f5;
    padding: 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 0.85rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 35px;
}

.calendar-day.header {
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    cursor: default;
    font-size: 0.75rem;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.past-date {
    color: #ccc;
    background: #f9f9f9;
}

.calendar-day.course-date {
    background: #476f95;
    color: white;
    font-weight: bold;
    border: 2px solid transparent;
}

.calendar-day.course-date.blue {
    background: #7db3d3;
}

.calendar-day.course-date.red {
    background: #e29b9b;
}

.calendar-day.course-date.green {
    background: #90c695;
}

.calendar-day.course-date.orange {
    background: #f4c2a1;
}

.calendar-day.course-date.purple {
    background: #b8a9d9;
}

.calendar-day.course-date.teal {
    background: #8fd3d3;
}

.calendar-day:hover:not(.header):not(.past-date) {
    background: #f0f8ff;
}

/* Course Schedule */
.course-schedule {
    padding: 1rem 0;
}

/* Compact Course Group Styles */
.course-group-compact {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #476f95;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.course-group-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-header-compact {
    flex: 1;
}

.course-header-compact h5 {
    margin: 0 0 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.course-summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-count {
    font-weight: 600;
    color: #476f95;
    font-size: 0.9rem;
}

.date-range {
    color: #333;
    font-size: 0.9rem;
}

.schedule-info {
    color: #666;
    font-size: 0.85rem;
}

.course-btn-compact {
    padding: 10px 20px;
    border: 2px solid #476f95;
    background: transparent;
    color: #476f95;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.course-btn-compact:hover:not(:disabled) {
    /* Hover effects handled by JavaScript for dynamic colors */
    transform: translateY(-2px);
}

.course-btn-compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Legacy course group styles - kept for backward compatibility */
.course-group {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #476f95;
}

.course-group h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.color-indicator {
    width: 10px; /* Reduced from 12px */
    height: 10px; /* Reduced from 12px */
    border-radius: 50%;
    display: inline-block;
}

.session-list {
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0; /* Reduced from 0.5rem */
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem; /* Slightly smaller text */
}

.session-item:last-child {
    border-bottom: none;
}

.session-date {
    font-weight: 500;
    color: #333;
}

.session-time {
    color: #666;
    font-size: 0.85rem; /* Slightly smaller */
}

/* Course Features */
.course-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.course-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.course-features li::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Course Buttons */
.course-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #476f95;
    background: transparent;
    color: #476f95;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.course-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.course-btn:hover::before {
    left: 100%;
}

.course-btn:hover {
    background: #476f95;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(71, 111, 149, 0.3);
}

.course-btn.primary {
    background: #476f95;
    color: white;
    font-weight: 700;
}

.course-btn.primary:hover {
    background: #194a7a;
    box-shadow: 0 10px 30px rgba(25, 74, 122, 0.4);
}

/* Course Buttons Container */
.course-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
    align-items: center; /* center children when they have fixed width */
}

/* Info Button */
.info-btn {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    background: rgba(71, 111, 149, 0.05);
    color: #476f95;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.info-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* Info circle icon (stroke #476f95) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23476f95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

.info-btn:hover::before {
    /* Darker on hover (stroke #194a7a) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23194a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

.info-btn:hover {
    background: rgba(71, 111, 149, 0.1);
    border-color: #476f95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 111, 149, 0.15);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(71, 111, 149, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact h2 {
    color: #194a7a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7bb3f0);
    border-radius: 2px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #476f95;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #476f95, #5a7fb8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.contact-details a {
    color: #476f95;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #194a7a;
    text-decoration: underline;
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #476f95, #5a7fb8);
    border-radius: 16px 16px 0 0;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #476f95;
    box-shadow: 0 0 0 3px rgba(71, 111, 149, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #476f95 0%, #5a7fb8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(71, 111, 149, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(71, 111, 149, 0.4);
    background: linear-gradient(135deg, #194a7a 0%, #476f95 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* Form Confirmation */
.form-confirmation {
    display: none;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
    animation: slideInUp 0.5s ease;
}

.form-confirmation.show {
    display: block;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.form-confirmation h3 {
    color: #166534;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.form-confirmation p {
    color: #166534;
    margin: 0;
    line-height: 1.6;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-header {
        margin-bottom: 3rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background: #194a7a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #d1dbe4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Mobile Footer Responsiveness */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }
    
    .footer-links li {
        flex: 0 0 auto;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
        display: block;
        white-space: nowrap;
    }
    
    .footer p {
        font-size: 0.85rem;
        margin: 0;
        text-align: center;
        padding: 0 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem 0;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .footer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Pop-up Modal Styles */
.popup-modal {
    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;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.popup-content h3 {
    margin-top: 0;
    color: #476f95;
}

.popup-content p {
    line-height: 1.6;
    color: #333;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #333;
}

/* Video Heading */
.video-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: #476f95;
}

/* About the Course Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.workshop-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workshop-card {
    padding: 1.5rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.workshop-card p {
    margin: 1rem 0;
    line-height: 1.6;
}

.workshop-card ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.about-video {
    text-align: center;
}

.video-caption {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(71, 111, 149, 0.1);
        color: #476f95;
    }

    .hamburger-menu {
        display: flex;
        position: relative !important;
        z-index: 1002 !important;
        cursor: pointer !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        /* Add a subtle background to make it more visible */
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .hamburger-menu:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .hamburger-menu span {
        display: block !important;
        width: 25px !important;
        height: 3px !important;
        background: white !important;
        transition: all 0.3s ease-in-out !important;
        margin: 3px 0 !important;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
        background: white !important;
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
        background: white !important;
    }

    .about-content,
    .story-content {
        flex-direction: column;
    }

    .about-video,
    .story-video {
        margin-top: 2rem;
    }

    /* Hero section mobile adjustments */
    .hero {
        padding-left: 20px;
        padding-right: 20px;
        width: 100vw;
        max-width: 100%;
        position: relative;
    }
    
    #particle-canvas {
        width: 100% !important;
        max-width: 100vw;
        left: 0;
        right: 0;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        padding: 0 20px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -moz-hyphens: none !important;
        text-align: center !important;
        max-width: 100% !important;
        white-space: normal !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-title-line {
        display: block !important;
        margin-bottom: 0.2rem !important;
    }
    
    .hero-title-line:last-child {
        margin-bottom: 0 !important;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 20px;
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
    }
}

/* Extra small mobile phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem !important;
        padding: 0 15px !important;
    }
    
    .hero-title-line {
        margin-bottom: 0.3rem !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
        padding: 0 15px !important;
    }
}

@media (max-width: 768px) {    
    .cta-buttons {
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Reviews section mobile optimization */
    .reviews {
        padding: 2rem 0;
    }

    .reviews h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Mobile carousel adjustments */
    .reviews .swiper-container {
        width: 100%;
        padding: 1rem 0;
        margin: 0;
        overflow: hidden; /* Prevent horizontal overflow */
    }

    .reviews .swiper-slide {
        width: 280px !important; /* Smaller width for mobile */
        padding: 1.5rem;
        height: 300px; /* Reduced height for mobile */
        min-height: 300px;
        max-height: 300px;
        margin: 0 5px; /* Reduced margin */
    }

    .reviews .swiper-slide p {
        max-height: 170px; /* Adjusted for smaller mobile cards */
        margin-bottom: 0.8rem;
        font-size: 0.9rem; /* Slightly smaller text on mobile */
    }

    /* Navigation buttons for mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px !important;
    }

    /* Mobile video adjustments */
    .video-wrapper {
        max-width: 280px !important; /* Slightly larger for better visibility */
        margin: 0 auto !important;
    }

    .video-wrapper video {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 15px !important;
    }

    .video-wrapper .video-thumbnail {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 15px !important;
        cursor: pointer !important;
    }

    .play-button-container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .play-button-svg {
        width: 60px !important;
        height: 60px !important;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)) !important;
    }

    /* Mobile video modal adjustments */
    .video-modal-content {
        width: 90%;
        max-width: 350px; /* Reasonable size for mobile */
        margin: 0 auto;
    }

    .close-modal {
        top: -40px;
        right: 0;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }

    /* Ensure no horizontal overflow on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 95%;
        padding: 0 20px;
        max-width: 100%;
    }

    /* Prevent any element from causing horizontal scroll */
    * {
        max-width: 100%;
    }

    /* Fix any potential overflow elements */
    .hero, .about, .story, .courses, .reviews, .faq, .contact {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* About section mobile adjustments */
    .about {
        padding: 2rem 0;
    }

    .about h2 {
        font-size: 2rem;
    }

    .course-week-header {
        padding: 1rem;
    }

    .course-week-header h3 {
        font-size: 1.1rem;
    }

    /* Mobile Calendar Responsive Design - Carousel Style */
    .calendar-container {
        position: relative;
        margin: 1rem 0;
        overflow: hidden;
    }
    
    .calendar-months {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Show one full calendar plus edges of adjacent ones */
        padding: 0 3rem; /* Space for navigation buttons */
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }
    
    .calendar-months::-webkit-scrollbar {
        display: none;
    }
    
    .month-calendar {
        flex: 0 0 calc(100vw - 10rem); /* Smaller width to avoid arrow overlap */
        min-width: calc(100vw - 10rem);
        max-width: calc(100vw - 10rem);
        scroll-snap-align: center;
        margin-right: 1rem; /* Gap between calendars for peek effect */
    }
    
    .calendar-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative; /* Changed from absolute to relative */
        top: auto; /* Reset top positioning */
        transform: none; /* Remove transform */
        background: rgba(255, 255, 255, 0.9);
        color: #476f95;
        border: 2px solid rgba(71, 111, 149, 0.3);
        border-radius: 20px;
        padding: 8px 12px;
        cursor: pointer;
        z-index: 15;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        font-size: 12px;
        font-weight: 500;
        min-width: 60px;
        text-align: center;
        backdrop-filter: blur(10px);
        margin: 0 5px; /* Add some spacing between buttons */
    }

    .calendar-nav:hover {
        background: rgba(71, 111, 149, 0.1);
        border-color: rgba(71, 111, 149, 0.6);
        transform: scale(1.05);
    }
    
    /* Position navigation buttons between title and calendar */
    .calendar-container {
        position: relative;
    }
    
    .calendar-nav.prev,
    .calendar-nav.next {
        position: static; /* Remove absolute positioning */
        left: auto;
        right: auto;
    }
    
    /* Style the button container on mobile */
    .calendar-container {
        display: flex;
        flex-direction: column;
    }
    
    /* Group the navigation buttons */
    .calendar-nav.prev,
    .calendar-nav.next {
        display: inline-flex;
    }
    
    /* Hide navigation buttons and rearrange layout */
    .calendar-header {
        order: 1;
    }
    
    .calendar-nav {
        order: 2;
        align-self: center;
        margin: 10px 0;
    }
    
    .calendar-months {
        order: 3;
    }
    
    .calendar-nav.prev {
        left: 0.5rem;
    }
    
    .calendar-nav.next {
        right: 0.5rem;
    }
}

/* Mobile Calendar Navigation - Show between title and calendar */
@media (max-width: 768px) {
    .calendar-navigation {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin: 10px 0;
        flex-direction: row; /* Ensure side-by-side layout */
    }
    
    .calendar-nav {
        display: inline-flex !important; /* Use inline-flex for better side-by-side behavior */
        align-items: center;
        justify-content: center;
        position: static !important;
        background: rgba(255, 255, 255, 0.9);
        color: #476f95;
        border: 2px solid rgba(71, 111, 149, 0.3);
        border-radius: 20px;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 500;
        min-width: 70px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }
    
    .calendar-nav:hover {
        background: rgba(71, 111, 149, 0.1);
        border-color: rgba(71, 111, 149, 0.6);
        transform: scale(1.05);
    }
    
    .calendar-nav.prev,
    .calendar-nav.next {
        position: static;
        left: auto;
        right: auto;
        transform: none;
        width: auto;
        height: auto;
    }
    
    /* Hide buttons when they can't be used */
    .calendar-nav.hidden {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .calendar-months {
        padding: 0 2.5rem; /* Smaller padding on very small screens */
    }
    
    .month-calendar {
        flex: 0 0 calc(100vw - 6rem);
        min-width: calc(100vw - 6rem);
        max-width: calc(100vw - 6rem);
    }
    
    .calendar-nav {
        width: 40px;
        height: 40px;
    }
    
    .calendar-nav.prev {
        left: 0.25rem;
    }
    
    .calendar-nav.next {
        right: 0.25rem;
    }
    
    .calendar-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .calendar-day {
        min-height: 28px;
        font-size: 0.75rem;
    }
    
    .month-header {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Courses section mobile adjustments */
    .courses {
        padding: 2rem 0;
    }

    .courses h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .other-courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .course-buttons-container {
        gap: 6px;
        margin-top: 12px;
    }

    .course-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .info-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .calendar-months {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .month-calendar {
        font-size: 0.8rem;
    }

    .calendar-day {
        font-size: 0.75rem;
        min-height: 30px;
    }

    .calendar-day.header {
        font-size: 0.7rem;
    }

    .month-header {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .course-schedule {
        padding: 0.5rem 0;
    }

    /* Compact course groups for mobile */
    .course-group-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .course-header-compact {
        text-align: center;
    }

    .course-summary {
        align-items: center;
        text-align: center;
    }

    .course-btn-compact {
        width: 100%;
        padding: 12px;
    }

    .course-group {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }

    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem; /* Reduced gap */
        padding: 0.2rem 0;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.02);
    }
}

/* About the Course Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.workshop-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workshop-card {
    padding: 1.5rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.workshop-card p {
    margin: 1rem 0;
    line-height: 1.6;
}

.workshop-card ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.about-video {
    text-align: center;
}

/* Philosophy Section */
.philosophy-section {
    margin: 2rem 0 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(71, 111, 149, 0.03) 0%, rgba(232, 242, 247, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(71, 111, 149, 0.08);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.philosophy-text h3 {
    color: #476f95;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.philosophy-text p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.philosophy-text p:last-child {
    margin-bottom: 0;
}

.philosophy-quote {
    display: flex;
    justify-content: center;
    align-items: center;
}

.einstein-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
}

.einstein-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.einstein-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #476f95;
    box-shadow: 0 4px 12px rgba(71, 111, 149, 0.2);
    transition: transform 0.3s ease;
}

.einstein-image:hover {
    transform: scale(1.05);
}

.einstein-fact {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.philosophy-quote blockquote {
    margin: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-style: italic;
    color: #34495e;
    line-height: 1.5;
    font-size: 0.9rem;
    border-left: 4px solid #476f95;
    box-shadow: 0 2px 8px rgba(71, 111, 149, 0.1);
}

.philosophy-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #476f95;
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 768px) {
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .philosophy-section {
        margin: 1.5rem 0 3rem 0;
        padding: 1.5rem;
    }
    
    .philosophy-text h3 {
        font-size: 1.2rem;
    }
    
    .einstein-container {
        max-width: 100%;
    }
}

/* ===== NEW WORKSHOP SECTION STYLES ===== */
/* Workshop Grid Layout - Three side-by-side containers */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
    width: 100%;
}

@media (max-width: 768px) {
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Workshop Container - For floating title effect */
.workshop-container {
    position: relative;
    margin-top: 2.5rem; /* Space for floating title */
    width: 100%;
}

/* Floating Title Above Container */
.floating-title {
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    background: #476f95;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(71, 111, 149, 0.3);
    margin: 0;
}

/* Workshop Card Styling - Match website theme */
.workshop-card {
    background: #fff;
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    /* Let content define height to avoid creating a mini scroll area on mobile */
    overflow: visible;
    height: auto;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Workshop Card Color Themes - Match website colors */
.workshop-1 {
    border-left: 4px solid #476f95;
}

.workshop-2 {
    border-left: 4px solid #5a7fb8;
}

.workshop-3 {
    border-left: 4px solid #476f95;
}

/* Workshop Content */
.workshop-subtitle {
    color: #476f95;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workshop-description {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.workshop-features { list-style: disc; padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.workshop-features li { color: #34495e; font-size: 0.9rem; margin-bottom: 0.5rem; overflow: visible; }



/* Workshop Tags - Website theme colors */
.workshop-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.tag-1 {
    background: linear-gradient(135deg, #476f95, #5a7fb8);
}

.tag-2 {
    background: linear-gradient(135deg, #5a7fb8, #6d8ccc);
}

.tag-3 {
    background: linear-gradient(135deg, #476f95, #4a6b8a);
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(71, 111, 149, 0.3);
}

/* Course Benefits Section */
.course-benefits {
    text-align: center;
    margin: 5rem 0 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(71, 111, 149, 0.05) 0%, rgba(232, 242, 247, 0.8) 100%);
    border-radius: 15px;
    border: 1px solid rgba(71, 111, 149, 0.1);
}

.benefits-subtitle {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.benefits-tags {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.benefit-tag {
    background: linear-gradient(135deg, #476f95, #5a7fb8);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(71, 111, 149, 0.3);
    transition: all 0.3s ease;
}

.benefit-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 111, 149, 0.4);
}

/* Course Video Section */
.course-video-section {
    text-align: center;
    margin-top: 3rem;
}

.course-video-section .video-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.video-caption {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Comprehensive Mobile Overflow Prevention */
@media (max-width: 768px) {
    /* Aggressive overflow prevention */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* Force all elements to respect viewport width */
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Container constraints */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }

    /* Section constraints */
    section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 2rem 10px !important;
    }

    /* Hero section mobile constraints */
    .hero {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 80px 10px 20px 10px !important;
    }

    /* Canvas constraints */
    #particle-canvas {
        max-width: 100vw !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Grid and card constraints */
    .course-grid, .workshop-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .course-card, .workshop-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        /* Ensure cards never become their own scrolling containers */
        overflow: visible !important;
        height: auto !important;
        touch-action: pan-y !important;
    }

    /* Form constraints */
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Text wrapping to prevent overflow */
    h1, h2, h3, h4, h5, h6, p, span, div, li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* Image constraints */
    img, video {
        max-width: 100% !important;
        height: auto !important;
    }

    /* FAQ constraints */
    .faq-item {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Navbar constraints */
    .navbar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    .nav-links {
        position: absolute !important;
        z-index: 1000 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        top: 60px !important;
        left: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        padding: 20px 0 !important;
    }

    .nav-links.active {
        display: flex !important;
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        z-index: 1000 !important;
        flex-direction: column !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
}



