/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f4faff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Apply this class to body via JS when mobile nav is open */
body.nav-active {
    overflow: hidden; /* Prevent scrolling page behind open nav */
}

/* --- Unified Sidebar (Ensure these match styles.css or adapt as needed) --- */
/* Assume basic sidebar styles (width, background, etc.) are in styles.css */
/* These styles focus on interaction and content */

.side-bar {
    width: 280px; /* Desktop width */
    background: linear-gradient(180deg, #002366 0%, #001a4d 100%);
    color: white;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Above overlay */
    transition: transform 0.3s ease-out; /* Transition for mobile */
    overflow-y: auto; /* Allow sidebar scrolling if content overflows */
}

.logo-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px; /* More space */
    text-align: center;
    width: 100%;
}

.logo {
    width: 180px; /* Adjusted size */
    height: auto;
    margin-bottom: 15px;
    opacity: 0.9; /* Slightly less transparent */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.animated-text {
    font-size: 1.1rem; /* Adjusted size */
    margin: 10px 0 5px 0; /* Adjusted margin */
    color: #ffffff;
    font-weight: 600;
}

.animated-subtext {
    font-size: 0.85rem; /* Adjusted size */
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.side-bar ul {
    list-style: none;
    width: 100%; /* Full width */
    padding: 0 10px; /* Add padding */
    margin: 0;
    flex-grow: 1; /* Allow list to take remaining space */
}

.side-bar ul li {
    margin: 10px 0; /* Adjusted margin */
}

.nav-item { /* Unified class for sidebar links */
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85); /* Brighter text */
    font-weight: 500;
    padding: 12px 18px; /* Adjusted padding */
    display: flex;
    align-items: center;
    text-align: left;
    border-radius: 8px; /* Smoother radius */
    background: transparent; /* Transparent background */
    border: 1px solid transparent; /* Placeholder for transition */
    transition: all 0.25s ease-out;
    position: relative;
    overflow: hidden;
}

.nav-item i {
    margin-right: 15px; /* More space */
    font-size: 1.1em;
    min-width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
}

.nav-item .nav-text {
    color: inherit; /* Inherit color from <a> */
    transition: color 0.25s ease-out;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff; /* Full white on hover */
    transform: translateX(5px); /* Subtle move */
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active {
    background: #0054a6; /* Solid active background */
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-item.active i {
    color: #ffffff;
}

/* Ripple Effect */
.ripple:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 1;
    pointer-events: none;
}
.ripple:active:before {
    transform: translate(-50%, -50%) scale(100);
    opacity: 0;
    transition: 0s;
}

/* Sidebar Bottom Links (Desktop) */
.sidebar-bottom-links {
    margin-top: auto; /* Push to bottom */
    padding: 15px 10px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
.bottom-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}
.bottom-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.bottom-nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* --- Mobile Menu Specific --- */
.mobile-menu-icon {
    display: none; /* Hidden by default, shown in media query */
    background: rgba(0, 84, 166, 0.8); /* Make button background blue */
    border: none;
    color: white; /* Icon color */
    font-size: 22px; /* Slightly smaller icon */
    padding: 0; /* Remove padding, use width/height */
    cursor: pointer;
    position: fixed;
    top: 10px; /* Adjust position */
    left: 10px;
    z-index: 1002; /* Above sidebar and overlay */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    width: 44px; /* Touch target size */
    height: 44px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Add align/justify for icon centering */
    align-items: center;
    justify-content: center;
}
.mobile-menu-icon.active {
    background-color: rgba(255, 255, 255, 0.9); /* White background */
    color: #0054a6; /* Blue icon */
}
.mobile-menu-icon:hover {
    background-color: rgba(0, 84, 166, 1);
}
.mobile-menu-icon.active:hover {
     background-color: rgba(255, 255, 255, 1);
}
.nav-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000; /* Below sidebar, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0s 0.3s linear;
}
.nav-overlay.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0s 0s linear;
}


/* --- Main Content --- */
.main-content {
    width: calc(100% - 280px); /* Desktop width */
    margin-left: 280px; /* Desktop margin */
    padding: 40px 50px; /* Consistent padding */
    min-height: calc(100vh - 40px); /* Account for footer height */
    transition: margin-left 0.3s ease-out, width 0.3s ease-out; /* Smooth transition */
    padding-bottom: 80px; /* Ensure space above footer */
    display: flex;
    flex-direction: column;
    position: relative; /* Needed for absolute certificate */
    text-align: center; /* Center align content by default */
}

/* --- Services Page Specific Styles --- */

.main-content h2 { /* Page Title */
    font-size: 2.2rem;
    color: #002366;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-content h3 { /* Section Subtitle */
    font-size: 1.5rem;
    color: #003366;
    margin-bottom: 30px; /* Space below subtitle */
    font-weight: 500;
}

/* Services Section Grid */
.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 25px; /* Gap between boxes */
    margin-bottom: 40px; /* Space below section */
    max-width: 1200px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

.service-box {
    background: white;
    padding: 30px 25px; /* Adjusted padding */
    border-radius: 12px; /* Consistent radius */
    box-shadow: 0 5px 15px rgba(0, 35, 102, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid #e8f0f8;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 35, 102, 0.12);
}

.service-box i {
    font-size: 2.5em; /* Larger icon */
    color: #0054a6;
    margin-bottom: 20px; /* More space */
    display: block; /* Center icon */
}

.service-box h4 {
    font-size: 1.25rem; /* Larger title */
    color: #002366;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-box p {
    font-size: 0.95rem; /* Larger text */
    color: #555;
    line-height: 1.6; /* Better readability */
    margin: 0; /* Reset margin */
}

/* Service Overlay (Pop-up on Hover) */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 84, 166, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8); /* Start smaller for pop */
    border-radius: 12px; /* Match parent */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.service-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
}

.service-box:hover .service-overlay {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Age Groups Carousel Section */
.age-groups {
    padding: 40px 0;
    margin: 40px auto; /* Center section */
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08);
    max-width: 1100px; /* Limit width */
    border: 1px solid #e8f0f8;
}

.age-groups h2 { /* Section title */
    color: #002366;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.carousel-container { /* Container for buttons and wrapper */
    position: relative;
    max-width: 900px; /* Limit carousel width */
    margin: 0 auto;
    padding: 0 50px; /* Space for buttons */
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    /* Add touch-action for better touch handling */
    touch-action: pan-y; /* Allow vertical scroll, handle horizontal pan in JS */

}

.carousel-track {
    display: flex;
    gap: 20px; /* Default gap */
    transition: transform 0.4s ease-in-out; /* Smoother transition */
    padding: 10px 0; /* Vertical padding for items */
     /* Prevent text selection during drag */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.age-label {
    flex: 0 0 120px; /* Default size */
    height: 120px;  /* Default size */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    padding: 10px;
    line-height: 1.3;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    /* Prevent image dragging if icons/images are inside */
    -webkit-user-drag: none;
}

.age-label:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}
.age-label:active {
    transform: scale(0.98);
}

/* Age Group Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    visibility: visible; /* Ensure visible by default */
    opacity: 1; /* Ensure opaque by default */
}
.carousel-btn.prev { left: 0px; } /* Position buttons */
.carousel-btn.next { right: 0px; }

.carousel-btn i {
    font-size: 16px;
    color: #003366;
    line-height: 1;
}

.carousel-btn:disabled {
    /* Keep pointer-events: none; */
    pointer-events: none;
    /* Use visibility and opacity for hiding */
    visibility: hidden;
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-btn:hover:not(:disabled) {
    background: #f0f8ff;
    transform: translateY(-50%) scale(1.05);
    border-color: #ccc;
}

/* Age Category Colors */
.babies { background: linear-gradient(135deg, #FF9999, #FF6666); }
.toddlers { background: linear-gradient(135deg, #99FF99, #66FF66); }
.aquarius { background: linear-gradient(135deg, #9999FF, #6666FF); }
.kids { background: linear-gradient(135deg, #ffcc66, #ffbb33); } /* Changed kids color */
.teens { background: linear-gradient(135deg, #FF99FF, #FF66FF); }
.adults { background: linear-gradient(135deg, #99FFFF, #66FFFF); }

/* Pricing Section */
.pricing-section {
    padding: 40px 20px; /* Adjusted padding */
    background: #f8f9fa; /* Simpler background */
    border-radius: 15px;
    margin: 40px auto; /* Center section */
    max-width: 1000px; /* Limit width */
}

.pricing-section h2 {
    text-align: center;
    color: #002366;
    font-size: 2em;
    margin-bottom: 35px; /* More space */
    font-weight: 600;
}

.price-cards {
    display: flex;
    justify-content: center;
    gap: 30px; /* Keep gap */
    flex-wrap: wrap;
}

.price-card {
    background: white;
    border-radius: 15px;
    padding: 30px; /* Keep padding */
    width: 310px; /* Slightly wider */
    box-shadow: 0 5px 20px rgba(0, 35, 102, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8f0f8;
}

.price-card .features {
    flex-grow: 1;
    margin-bottom: 20px;
}

.price-card.featured {
    border: 2px solid #0054a6;
    transform: scale(1.03); /* Slightly less scale */
    box-shadow: 0 8px 25px rgba(0, 84, 166, 0.15);
}
.price-card.featured:hover {
     transform: scale(1.05); /* Scale more on hover */
}


.badge {
    position: absolute;
    top: -15px; /* Adjust position */
    left: 50%; /* Center badge */
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 6px 18px; /* Adjust padding */
    border-radius: 20px;
    font-size: 0.85em; /* Slightly larger */
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price-header h3 {
    color: #002366;
    font-size: 1.4em;
    margin-bottom: 12px; /* Adjusted space */
    font-weight: 600;
}

.price {
    font-size: 2.4em; /* Adjusted size */
    color: #0054a6;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.currency {
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 2px;
}

.period {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: -3px;
    margin-bottom: 15px;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.features li {
    margin: 10px 0; /* More space */
    color: #555;
    font-size: 1rem; /* Larger font */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* More gap */
    text-align: left;
    padding: 0 10px;
}

.features li i {
    color: #0054a6;
    font-size: 1em;
    width: 1.3em; /* More space */
    text-align: center;
    flex-shrink: 0;
}

/* Pricing Button */
.book-btn {
    width: 100%;
    padding: 14px; /* More padding */
    border: none;
    border-radius: 8px;
    background: #003366; /* Darker base */
    color: white;
    font-size: 1.05rem; /* Larger font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.book-btn.featured {
    background: #ff6b6b; /* Keep featured color */
}

.book-btn:hover {
    background: #0054a6; /* Lighter blue hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
}
.book-btn.featured:hover {
     background: #ff4f4f; /* Darker red hover */
}

.book-btn:active {
    transform: scale(0.98);
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive grid */
    gap: 15px; /* Gap */
    margin: 40px auto; /* Center */
    padding: 0 10px; /* Add side padding */
    max-width: 1200px; /* Limit width */
}

.gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 35, 102, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For potential overlay */
    aspect-ratio: 4 / 3; /* Maintain aspect ratio */
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery a:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 35, 102, 0.15);
}

/* Join Us Button Container */
.join-us-container {
    margin: 40px 0;
    text-align: center;
}

/* Register Button */
.register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px; /* Adjusted padding */
    color: white;
    background-color: #0054a6; /* Match action buttons */
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    box-shadow: 0 3px 8px rgba(0, 84, 166, 0.2);
}
.register-button:hover {
    background-color: #003366;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 51, 102, 0.3);
}
.register-button .arrow {
    color: #ffc107; /* Yellow arrow */
    line-height: 1;
    transition: transform 0.3s ease;
}
.register-button:hover .arrow {
    transform: translateX(4px);
}

/* --- Certificate Info Box --- */
.certificate-info {
    position: fixed;
    bottom: 60px;    /* Position from bottom, above footer */
    right: 20px;     /* Position from right */
    width: 280px;
    z-index: 999;    /* Ensure it's above other content */
    background-color: rgba(255, 255, 255, 0.95); /* More opaque background */
    padding: 15px;
    border: 2px solid #0054a6; /* More visible border */
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    color: #002366;
    box-shadow: 0 4px 12px rgba(0, 35, 102, 0.15);
    backdrop-filter: blur(4px);
    display: block;
    transition: all 0.3s ease;
}

/* --- Footer Styling --- */
.footer {
    text-align: center;
    padding: 15px;
    background-color: #001a4d;
    color: rgba(255, 255, 255, 0.7);
    width: calc(100% - 280px);
    margin-left: 280px;
    font-size: 0.85rem;
    z-index: 100;
    margin-top: auto; /* Pushes footer down if content is short */
    transition: margin-left 0.3s ease-out, width 0.3s ease-out;
    position: static; /* Ensure footer stays at bottom of content flow */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* --- SweetAlert Modals --- */
/* Styles copied/adapted from contact.css for consistency */
.service-detail-content { text-align: left; padding: 0; }
.service-intro { background: linear-gradient(135deg, #0054a6 0%, #002366 100%); margin: 0 0 25px 0; padding: 30px; border-radius: 15px 15px 0 0; }
.service-intro .intro-text { color: #ffffff; font-size: 1.15rem; text-shadow: 0 1px 2px rgba(0,0,0,0.1); margin: 0; text-align: center; line-height: 1.7; }
.age-specific-info, .what-to-bring, .session-info, .competition-prep, .commitment, .prerequisites, .achievement-goals { background: #f8fbff; border-radius: 12px; padding: 25px; margin: 0 25px 25px 25px; box-shadow: 0 2px 10px rgba(0,35,102,0.05); }
.service-detail-content > div:last-child { margin-bottom: 0; }
.age-specific-info h4, .what-to-bring h4, .session-info h4, .competition-prep h4, .commitment h4, .prerequisites h4, .achievement-goals h4 { color: #002366; font-size: 1.25rem; margin: 0 0 18px 0; display: flex; align-items: center; gap: 12px; }
.age-specific-info h4 i, .what-to-bring h4 i, .session-info h4 i, .competition-prep h4 i, .commitment h4 i, .prerequisites h4 i, .achievement-goals h4 i { background: #0054a6; color: #ffffff; padding: 8px; border-radius: 50%; font-size: 1rem; width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.age-specific-info ul, .what-to-bring ul, .session-info ul, .competition-prep ul, .commitment ul, .prerequisites ul, .achievement-goals ul { list-style: none; padding: 0; margin: 0; }
.age-specific-info li, .what-to-bring li, .session-info li, .competition-prep li, .commitment li, .prerequisites li, .achievement-goals li { padding: 12px 0px; background: transparent; border-radius: 0; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; transition: transform 0.2s ease; border-bottom: 1px dashed #d0d9e8; color: #444; font-size: 1rem; line-height: 1.6; }
.age-specific-info li i, .what-to-bring li i, .session-info li i, .competition-prep li i, .commitment li i, .prerequisites li i, .achievement-goals li i { margin-top: 0.25em; color: #0054a6; width: 1.2em; text-align: center; flex-shrink: 0; }
.age-specific-info li:last-child, .what-to-bring li:last-child, .session-info li:last-child, .competition-prep li:last-child, .commitment li:last-child, .prerequisites li:last-child, .achievement-goals li:last-child { border-bottom: none; margin-bottom: 0; }
.swal2-popup { border-radius: 15px !important; padding: 1.5em !important; }
.service-modal .swal2-popup { max-width: 680px !important; width: 90% !important; padding: 0 !important; }
.service-modal .swal2-title { display: none !important; } /* Hide default title if using HTML title */
.service-modal .swal2-html-container { margin: 0 !important; padding: 0 !important; text-align: left; max-height: 70vh; overflow-y: auto; }
.service-modal .swal2-html-container::-webkit-scrollbar { width: 8px; }
.service-modal .swal2-html-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.service-modal .swal2-html-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.service-modal .swal2-html-container::-webkit-scrollbar-thumb:hover { background: #aaa; }
.service-modal .swal2-actions { margin: 25px 0 0 0 !important; padding: 0 25px 25px 25px !important; border-top: 1px solid #eee; justify-content: center !important; }
.service-modal .swal2-confirm { background: #0054a6 !important; border-radius: 25px !important; padding: 12px 30px !important; font-size: 1.1rem !important; margin: 5px !important; }
.service-modal .swal2-cancel { background: #f4f4f4 !important; color: #666 !important; border-radius: 25px !important; padding: 12px 30px !important; font-size: 1.1rem !important; margin: 5px !important; }
.swal2-confirm, .swal2-cancel { border-radius: 8px !important; padding: 12px 25px !important; }
.confirmation-content { text-align: center; padding: 20px 0 0 0; }
.confirmation-content h3 { color: #002366; font-size: 1.5em; margin-bottom: 10px; }
.price-confirm { font-size: 2em; color: #0054a6; font-weight: bold; margin: 15px 0; }
.package-details { list-style: none; padding: 0; margin: 20px auto; text-align: left; display: inline-block; max-width: 100%; }
.package-details li { margin: 10px 0; display: flex; align-items: center; gap: 10px; color: #555; font-size: 0.95rem; }
.package-details li i { color: #0054a6; width: 1.2em; text-align: center; flex-shrink: 0; }
.gallery-modal-popup .swal2-image { border-radius: 5px; max-width: 90%; margin: 1em auto; }
.gallery-modal-popup .swal2-title { margin-top: 0.5em; color: #333; }
.register-modal-content { text-align: center; padding: 20px 0; }
.register-modal-content p { font-size: 1.1rem; color: #444; line-height: 1.5; margin: 0; }
/* Use main swal2 title for non-HTML modals */
.swal2-title { text-align: center !important; color: #002366 !important; }
/* Age details modal specific */
.age-popup .swal2-title { display: block !important; /* Show title for age modal */ }
.age-detail-content { text-align: left; padding: 25px; }
.age-detail-content .intro-text { font-size: 1.1rem; color: #555; margin-bottom: 25px; text-align: center; }
.age-detail-content .highlight-list { list-style: none; padding: 0; margin: 20px 0; }
.age-detail-content .highlight-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #333; line-height: 1.6; }
.age-detail-content .highlight-list li i { color: #0054a6; width: 1.3em; text-align: center; flex-shrink: 0; }
.age-detail-content .cta-text { margin-top: 30px; font-weight: bold; color: #002366; text-align: center; font-size: 1.1rem; }

/* --- Responsive --- */

/* Styles for when mobile nav is active */
@media screen and (max-width: 768px) {
    /* Sidebar takes full width when active */
    .side-bar.active {
        width: 80%; /* Or a suitable width like 280px */
        max-width: 280px; /* Max width */
        transform: translateX(0);
    }
}

/* General Mobile Breakpoint Logic */
@media screen and (max-width: 768px) { /* Adjust this breakpoint if needed */
    .side-bar {
        transform: translateX(-105%); /* Hide sidebar off-screen */
        /* Ensure transition is applied */
        transition: transform 0.3s ease-out;
    }
    .side-bar.active {
        transform: translateX(0); /* Bring sidebar on-screen */
    }
    .mobile-menu-icon {
        display: flex; /* Show the hamburger icon */
    }
    .main-content {
        width: 100%;      /* Use full width */
        margin-left: 0;   /* Remove the margin left by the desktop sidebar */
    }
    .footer {
        width: 100%;      /* Use full width */
        margin-left: 0;   /* Remove the margin */
    }
}

/* Tablet adjustments (example: 992px) */
@media screen and (max-width: 992px) {
    .main-content { padding: 80px 20px 40px 20px; }
    /* Footer might become static earlier if needed */
    /* .footer { position: static; margin-top: 30px; } */
    .services-section { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
    .age-groups { padding: 30px 0; max-width: 95%; } /* Allow section to shrink more */
    .carousel-container {
         padding: 0 25px; /* REDUCED padding for carousel nav buttons */
         max-width: 100%; /* Remove max-width constraint earlier */
    }
    .pricing-section { padding: 30px 15px; max-width: 95%; }
    .price-cards { gap: 20px; }
    .price-card { width: 90%; max-width: 350px; } /* Allow price cards to respond */
    .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
    .certificate-info {
        position: fixed;
        bottom: 60px; /* Increased distance from bottom */
        right: 20px;
        width: auto;
        max-width: 250px;
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Mobile adjustments (example: 768px) */
@media screen and (max-width: 768px) {
    /* Main content padding adjustment for mobile nav icon */
    .main-content {
        padding: 75px 15px 30px 15px;
        /* width: 100%; margin-left: 0; are handled by the breakpoint above */
    }
    .main-content h2 { font-size: 1.8rem; }
    .main-content h3 { font-size: 1.3rem; }
    .services-section { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .service-box { padding: 20px; }
    .service-box i { font-size: 2em; margin-bottom: 15px; }
    .service-box h4 { font-size: 1.1rem; }
    .service-box p { font-size: 0.85rem; }

    .carousel-container {
        /* max-width: 100%; Already set */
        padding: 0 30px; /* FURTHER REDUCED padding for nav buttons */
                         /* Ensure buttons don't overlap content */
    }
    .carousel-btn {
        width: 35px; /* Slightly smaller buttons */
        height: 35px;
    }
    .carousel-btn.prev { left: -5px; } /* Adjust button position slightly */
    .carousel-btn.next { right: -5px; } /* Adjust button position slightly */

    .age-label {
        flex: 0 0 100px; /* Keep size or slightly reduce */
        height: 100px;
        font-size: 0.9em;
    }
    .price-card { padding: 20px; width: 100%; max-width: 380px; } /* Allow full width but constrain max */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5%;
    }
    .gallery a {
        transform: scale(1.015); /* Optional small scale */
    }
    .footer {
        padding: 10px;
        font-size: 0.8rem;
        /* width: 100%; margin-left: 0; are handled by the breakpoint above */
         position: static; /* Ensure footer is static */
         margin-top: 30px; /* Add space above footer */
    }
    .service-modal .swal2-popup { max-width: 95% !important; }
    .service-modal .swal2-html-container .service-detail-content { max-height: 75vh; }
    .age-specific-info, .what-to-bring, .session-info, .competition-prep, .commitment, .prerequisites, .achievement-goals { margin-left: 15px; margin-right: 15px; padding: 20px; }
    .service-modal .swal2-actions { padding: 0 15px 15px 15px; }
    .certificate-info {
        position: fixed;
        bottom: 80px; /* Increased distance from bottom */
        right: 15px;
        max-width: 200px;
        font-size: 0.85rem;
        padding: 10px;
    }
}

/* Small Mobile adjustments (example: 480px) */
@media screen and (max-width: 480px) {
      .main-content { padding: 70px 10px 20px 10px; }
      .main-content h2 { font-size: 1.6rem; }
      .main-content h3 { font-size: 1.1rem; }
      .services-section { grid-template-columns: 1fr; gap: 12px; } /* Stack services */
      .service-box { padding: 15px; }
      .service-box i { font-size: 1.8em; }
      .service-box h4 { font-size: 1rem; }
      .service-box p { font-size: 0.8rem; }

      .carousel-container {
         padding: 0 25px; /* Minimal padding for buttons */
      }
       .carousel-btn.prev { left: -8px; } /* Adjust button position */
       .carousel-btn.next { right: -8px; } /* Adjust button position */

      .age-label {
          flex: 0 0 85px; /* SLIGHTLY SMALLER age labels */
          height: 85px;
          font-size: 0.75em; /* Smaller font */
      }
      .carousel-track { gap: 10px; } /* Reduce gap */
      .price-card { padding: 15px; }
      .price-header h3 { font-size: 1.1em; }
      .price { font-size: 1.6em; }
      .features li { font-size: 0.85em; }
      .book-btn { font-size: 0.95rem; padding: 10px; }
      .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 2%;} /* Keep 2x2 */
      .register-button { font-size: 1rem; padding: 8px 20px; }
      .age-specific-info h4, .what-to-bring h4, .session-info h4, .competition-prep h4, .commitment h4, .prerequisites h4, .achievement-goals h4 { font-size: 1rem; }
      .age-specific-info li, .what-to-bring li, .session-info li, .competition-prep li, .commitment li, .prerequisites li, .achievement-goals li { font-size: 0.85rem; }
       /* Modal adjustments for small screens */
      .service-modal .swal2-popup { max-width: 98% !important; }
      .service-modal .swal2-html-container { max-height: 80vh; }
      .age-specific-info, .what-to-bring, .session-info, .competition-prep, .commitment, .prerequisites, .achievement-goals { padding: 15px; margin-left: 10px; margin-right: 10px; }
      .service-modal .swal2-actions { flex-direction: column; /* Stack buttons */ }
      .service-modal .swal2-confirm, .service-modal .swal2-cancel { width: 80%; margin: 5px auto !important; }
      .certificate-info {
        position: fixed;
        bottom: 70px; /* Increased distance from bottom */
        right: 10px;
        max-width: 180px;
        font-size: 0.8rem;
        padding: 8px;
        border-width: 1px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) {
    .service-box:hover { transform: none; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
    .service-box:active { transform: scale(0.98); }
    .age-label:hover { transform: none; box-shadow: 0 3px 8px rgba(0,0,0,0.2); }
    .age-label:active { transform: scale(0.95); }
    .price-card:hover { transform: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .price-card.featured:hover { transform: scale(1.03); }
    .price-card:active { transform: scale(0.98); }
    .gallery a:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 35, 102, 0.1); }
    .gallery a:active { transform: scale(0.97); }
    .register-button:hover { transform: none; box-shadow: 0 3px 8px rgba(0, 84, 166, 0.2); }
    .register-button:active { transform: scale(0.98); }
}