* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    margin: 0;
    display: block;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Enhanced Header with softer colors */
header {
    background: linear-gradient(135deg,
            rgba(52, 73, 94, 0.95),
            rgba(44, 62, 80, 0.95));
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(52, 73, 94, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-checkbox {
    display: none;
    /* Hidden checkbox for toggle */
}

.logo-section {
    display: flex;
    align-items: center;
    animation: slideInLeft 1s ease-out;
}

.logo-section img {
    height: 60px;
    margin-right: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ecf0f1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #ecf0f1;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

nav {
    animation: slideInRight 1s ease-out;
    display: flex;
    /* Default for desktop */
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav a:hover {
    background: rgba(149, 165, 166, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
    color: #bdc3c7;
}

/* Mobile Styles - Ensure this media query is at the end of your CSS */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-wrap: nowrap;
        /* Prevent wrapping to keep logo left and toggle right */
        align-items: flex-start;
        /* Align to top for corner positioning */
        position: relative;
        /* For absolute positioning of toggle */
    }

    .logo-section {
        justify-content: flex-start;
        /* Align logo content to left */
        align-items: center;
        /* Keep logo vertically centered within itself */
        /* Removed flex: 1 to avoid taking full width */
    }

    .logo-text {
        font-size: 18px;
        /* Slightly smaller on mobile */
    }

    .logo-section img {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        /* Position absolutely for precise top-right corner */
        top: 15px;
        /* Match header's top padding */
        right: 20px;
        /* Match header's right padding */
        /* No need for space-between now; absolute overrides flex */
    }

    nav {
        display: none !important;
        /* Force hide on mobile with !important for override */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg,
                rgba(52, 73, 94, 0.95),
                rgba(44, 62, 80, 0.95));
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
        box-shadow: 0 4px 20px rgba(52, 73, 94, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobile-menu:checked~nav {
        display: flex !important;
        /* Force show on toggle */
    }

    nav a {
        margin: 0;
        padding: 15px 40px;
        text-align: center;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        font-size: 16px;
    }

    nav a:hover {
        background: rgba(149, 165, 166, 0.2);
        transform: none;
        box-shadow: none;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Hamburger to X animation */
    #mobile-menu:checked~.mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #mobile-menu:checked~.mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu:checked~.mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.hero {
    text-align: center;
    padding: 140px 20px;
    /* background: linear-gradient(135deg, #34495e 0%, #2c3e50 30%, #1a252f 70%, #16a085 100%); */
    background-size: cover;
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    /* margin-bottom: 25px; */
    color: #fbfdfd;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    /* Tighten line-height to fit text height more precisely */
    min-height: 0;
    /* Remove min-height to avoid extra vertical space */
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;

    display: inline-block;
    padding: 0;
    /* Ensure no padding for tight fit */
    border-radius: 6px;

    background-color: rgba(44, 62, 80, 0.75);
}

.hero h1.typing::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

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

.hero p {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0;
    color: #16a085;
    line-height: 1.2;
    /* Tighten line-height for better vertical fit; adjust if needed for readability */
    min-height: 0;
    /* Remove min-height to avoid extra vertical space */
    background-color: rgba(44, 62, 80, 0.75);

    display: inline-block;
    padding: 0;
    /* Ensure no padding for tight fit */
    border-radius: 6px;
    /* Optional: Add if you want rounded corners like the h1 */
}

.hero p.visible {
    animation: fadeIn 0.5s ease-out forwards;
}

.hero p.typing::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

.hero-buttons.visible {
    animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 16px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, #16a085, #1abc9c);
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1abc9c, #48c9b0);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 160, 133, 0.4);
}

.btn-secondary {
    background: rgba(236, 240, 241, 0.1);
    color: #1db0d4;
    border: 2px solid rgba(135, 216, 236, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(236, 240, 241, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 240, 241, 0.2);
}

/* Calmer Features Section */
.features-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 42px);
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    border-radius: 2px;
}

.section-header p {
    font-size: 20px;
    color: #5d6d7e;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(149, 165, 166, 0.1);
}

.feature.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    transition: left 0.5s ease;
}

.feature:hover::before {
    left: 0;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.12);
    border-color: #16a085;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #16a085, #1abc9c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.feature:hover .feature-icon::before {
    transform: translateX(100%);
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, #48c9b0, #76d7c4);
    transform: scale(1.1);
}

.feature i {
    font-size: 42px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 600;
}

.feature p {
    color: #5d6d7e;
    line-height: 1.8;
    font-size: 16px;
}

/* Gentler Programs Section */
.programs-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(44,62,80,0.05)"/><circle cx="80" cy="20" r="1" fill="rgba(44,62,80,0.05)"/><circle cx="50" cy="50" r="1" fill="rgba(44,62,80,0.05)"/><circle cx="20" cy="80" r="1" fill="rgba(44,62,80,0.05)"/><circle cx="80" cy="80" r="1" fill="rgba(44,62,80,0.05)"/></svg>');
    opacity: 0.3;
}

.programs-section .section-header h2 {
    color: #2c3e50;
}

.programs-section .section-header p {
    color: #5d6d7e;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.program-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    border: 1px solid rgba(149, 165, 166, 0.1);
}

.program-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.program-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.15);
}

.program-card:nth-child(1) {
    border-top: 5px solid #16a085;
}

.program-card:nth-child(2) {
    border-top: 5px solid #1abc9c;
}

.program-card:nth-child(3) {
    border-top: 5px solid #48c9b0;
}

.program-icon {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
}

.program-icon i {
    font-size: 60px;
    transition: all 0.4s ease;
}

.program-card:nth-child(1) .program-icon i {
    color: #16a085;
}

.program-card:nth-child(2) .program-icon i {
    color: #1abc9c;
}

.program-card:nth-child(3) .program-icon i {
    color: #48c9b0;
}

.program-card:hover .program-icon i {
    transform: scale(1.1);
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.program-age {
    text-align: center;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-description {
    color: #5d6d7e;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
}

.program-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    padding: 8px 0;
}

.feature-item i {
    color: #16a085;
    font-size: 16px;
    width: 20px;
}

.feature-item span {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
}

.program-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.program-subjects span {
    background: linear-gradient(135deg,
            rgba(22, 160, 133, 0.1),
            rgba(26, 188, 156, 0.1));
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid rgba(22, 160, 133, 0.2);
    transition: all 0.3s ease;
}

.program-subjects span:hover {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: #fff;
    transform: translateY(-2px);
}

.program-btn {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    color: #fff;
    padding: 16px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-btn:hover {
    background: linear-gradient(45deg, #48c9b0, #76d7c4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

.programs-cta {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.1);
    position: relative;
    z-index: 2;
}

.programs-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

.programs-cta h3 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.programs-cta p {
    color: #5d6d7e;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.programs-cta .cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Teachers Section */
.teachers-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.teacher-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    border: 1px solid rgba(149, 165, 166, 0.1);
}

.teacher-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.12);
    border-color: #16a085;
}

.teacher-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

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

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(22, 160, 133, 0.8),
            rgba(26, 188, 156, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

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

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

.social-links a {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a085;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    transform: scale(1.05);
    color: #2c3e50;
}

.teacher-info {
    padding: 30px;
    text-align: center;
}

.teacher-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.teacher-role {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    padding: 8px 18px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-description {
    color: #5d6d7e;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.teacher-qualifications {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.teacher-qualifications span {
    background: linear-gradient(135deg,
            rgba(22, 160, 133, 0.1),
            rgba(26, 188, 156, 0.1));
    color: #2c3e50;
    padding: 6px 15px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid rgba(22, 160, 133, 0.2);
    transition: all 0.3s ease;
}

.teacher-qualifications span:hover {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: #fff;
    transform: translateY(-2px);
}

/* Softer Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 100px 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(236,240,241,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
    color: #ecf0f1;
    font-weight: 700;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.9;
    color: #bdc3c7;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: rgba(236, 240, 241, 0.1);
    color: #bdc3c7;
    border: 2px solid #bdc3c7;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Gentler Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 60px 40px 30px;
    text-align: center;
    margin-top: auto;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    color: #16a085;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.footer-section a {
    color: rgba(189, 195, 199, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: #16a085;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(189, 195, 199, 0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(189, 195, 199, 0.6);
    font-size: 16px;
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Responsive Design */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }

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

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 20px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .hero {
        padding: 100px 20px;
        min-height: 70vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-section,
    .programs-section,
    .teachers-section,
    .cta-section {
        padding: 80px 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 18px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature {
        padding: 40px 25px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature i {
        font-size: 36px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .program-card {
        margin: 0 10px;
    }

    .programs-cta {
        padding: 40px 25px;
        margin: 0 10px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .teacher-card {
        margin: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }

    .logo-text {
        font-size: 16px;
    }

    nav a {
        margin: 5px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .features-section,
    .programs-section,
    .teachers-section,
    .cta-section {
        padding: 60px 15px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .feature {
        padding: 35px 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }

    .feature i {
        font-size: 32px;
    }

    .feature h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .program-content {
        padding: 25px 20px;
    }

    .program-content h3 {
        font-size: 24px;
    }

    .program-icon i {
        font-size: 50px;
    }

    .program-subjects {
        gap: 6px;
    }

    .program-subjects span {
        padding: 6px 12px;
        font-size: 12px;
    }

    .teacher-info {
        padding: 25px 20px;
    }

    .teacher-info h3 {
        font-size: 22px;
    }

    .social-links a {
        width: 50px;
        height: 50px;
    }

    .programs-cta {
        padding: 35px 20px;
    }

    .programs-cta h3 {
        font-size: 26px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 18px;
    }

    footer {
        padding: 50px 15px 25px;
    }
}

/* Custom scrollbar - softer colors */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #138d75, #17a2b8);
}

/* Loading animation for images */
.teacher-image img,
.program-icon,
.feature-icon {
    opacity: 0;
    animation: fadeInImage 0.8s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Gentle pulse animation for call-to-action elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 160, 133, 0.3);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(22, 160, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 160, 133, 0);
    }
}

.btn-primary:hover {
    animation: pulse 1.5s infinite;
}

/* Smooth transitions for all interactive elements */
* {
    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Focus states for accessibility - softer colors */
.btn:focus,
nav a:focus,
.program-btn:focus,
.social-links a:focus {
    outline: 3px solid rgba(22, 160, 133, 0.4);
    outline-offset: 2px;
}

/* Enhanced hover effects - gentler movements */
.feature:hover,
.program-card:hover,
.teacher-card:hover {
    animation: gentleBounce 0.6s ease;
}

@keyframes gentleBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-10px);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-11px);
    }
}

/* Removed harsh gradient text effects */
.hero h1,
.section-header h2 {
    background-size: 200% 200%;
}

/* Print styles - eye-friendly colors */
@media print {

    .hero,
    .cta-section,
    .programs-section {
        background: #fff !important;
        color: #2c3e50 !important;
    }

    .btn,
    .program-btn {
        border: 2px solid #16a085 !important;
        background: #fff !important;
        color: #16a085 !important;
    }

    .section-header h2 {
        color: #2c3e50 !important;
    }
}

/* Additional eye-friendly improvements */
.hero,
.programs-section,
.cta-section {
    /* Reduced contrast for better readability */
}

/* Softer shadow effects throughout */
.feature,
.program-card,
.teacher-card {
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.08) !important;
}

.feature:hover,
.program-card:hover,
.teacher-card:hover {
    box-shadow: 0 12px 35px rgba(44, 62, 80, 0.12) !important;
}

/* Ensure text remains readable on all backgrounds */
.hero p,
.cta-content p {
    text-shadow: none;
    color: rgba(236, 240, 241, 0.9);
}

/* Gentler button hover states */
.btn:hover {
    transform: translateY(-2px) !important;
}

.program-btn:hover {
    transform: translateY(-2px) !important;
}

/* Additional styles for better mobile experience */
@media (max-width: 480px) {
    .mobile-menu-btn {
        font-size: 20px;
        padding: 6px;
    }

    nav.mobile-nav {
        padding: 15px;
    }

    nav.mobile-nav a {
        padding: 12px 20px;
        margin: 6px 0;
        border-radius: 20px;
    }
}


/* Teachers Carousel Styles */
.teachers-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.teachers-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.teachers-carousel-wrapper {
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.teachers-carousel {
    display: flex;
    gap: 40px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.teacher-card {
    flex: 0 0 calc(25% - 30px);
    min-width: 280px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(149, 165, 166, 0.1);
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.15);
    border-color: #16a085;
}

.teacher-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

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

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(22, 160, 133, 0.85), rgba(26, 188, 156, 0.85));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

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

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

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a085;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-links a:hover {
    background: #fff;
    transform: scale(1.1);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.teacher-info {
    padding: 25px 20px;
    text-align: center;
}

.teacher-info h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.teacher-role {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-description {
    color: #5d6d7e;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.teacher-qualifications {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.teacher-qualifications span {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1), rgba(26, 188, 156, 0.1));
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid rgba(22, 160, 133, 0.2);
}

.teacher-qualifications .status-badge {
    background: rgba(22, 160, 133, 0.15);
    color: #16a085;
    border-color: #16a085;
}

.teacher-qualifications .status-badge.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: #dc2626;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

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

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

.carousel-btn i {
    transition: all 0.3s ease;
}

.carousel-btn:hover i {
    transform: scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d5dbdb;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dots .dot:hover {
    background: #bdc3c7;
    transform: scale(1.1);
}

.carousel-dots .dot.active {
    background: #16a085;
    border-color: #16a085;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(22, 160, 133, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .teacher-card {
        flex: 0 0 calc(33.33% - 27px);
    }
}

@media (max-width: 992px) {
    .teacher-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .teachers-section {
        padding: 60px 20px;
    }

    .teachers-carousel-container {
        padding: 0 40px;
    }

    .teacher-card {
        flex: 0 0 calc(100% - 20px);
        min-width: unset;
    }

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

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

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

    .teacher-image {
        height: 200px;
    }

    .teacher-info h3 {
        font-size: 18px;
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .teachers-carousel-container {
        padding: 0 30px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .teacher-info {
        padding: 20px 15px;
    }

    .teacher-info h3 {
        font-size: 16px;
    }

    .teacher-role {
        font-size: 12px;
        padding: 4px 12px;
    }

    .teacher-description {
        font-size: 13px;
    }
}

/* Animation for teacher cards appearing */
.teacher-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.teacher-card:nth-child(1) {
    animation-delay: 0.1s;
}

.teacher-card:nth-child(2) {
    animation-delay: 0.2s;
}

.teacher-card:nth-child(3) {
    animation-delay: 0.3s;
}

.teacher-card:nth-child(4) {
    animation-delay: 0.4s;
}

.teacher-card:nth-child(5) {
    animation-delay: 0.5s;
}

.teacher-card:nth-child(6) {
    animation-delay: 0.6s;
}

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