/* CSS Variables */
:root {
    --primary-color: #0d9488;
    /* Teal */
    --primary-dark: #0f766e;
    --primary-light: #e0f2f1;
    --secondary-color: #f59e0b;
    /* Amber/Orange */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-primary {
    color: var(--primary-color);
}

.text-gray {
    color: var(--text-gray);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.align-center {
    align-items: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Header */
.header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.logo-icon {
    color: var(--secondary-color);
    font-size: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-featured {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

.btn-featured:hover {
    background-color: #d97706;
}

.btn-featured::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    /* Header height */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    max-width: 650px;
    margin-left: 1.5rem;
    /* Container alignment fix */
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Features - Overlapping Cards */
.features {
    padding: 0 0 5rem 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* About Section */
.about-img-wrapper {
    position: relative;
}

.about-img {
    border-radius: 1.5rem;
    box-shadow: var(--card-shadow);
}

.exp-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

.exp-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-list {
    margin-bottom: 2rem;
}

.about-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.about-list li i {
    color: var(--primary-color);
}

/* Programs */
.program-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card .card-img {
    height: 250px;
    overflow: hidden;
}

.program-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .card-img img {
    transform: scale(1.05);
}

.program-card .card-content {
    padding: 1.5rem;
}

.program-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.program-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: var(--transition);
}

.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-1 {
    grid-column: 1 / 3;
}

.item-2 {
    grid-column: 3 / 5;
}

.item-3 {
    grid-column: 1 / 2;
}

.item-4 {
    grid-column: 2 / 5;
}

/* Contact */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.info-item h4 {
    color: white;
    margin-bottom: 0.2rem;
}

.info-item p {
    color: #94a3b8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 0;
    border-top: 1px solid #1e293b;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .navbar {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .navbar.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .exp-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: -20px;
        display: inline-block;
    }

    .about-img-wrapper {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

.whatsapp-text {
    position: absolute;
    right: 70px;
    background-color: white;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-text {
    transform: translateX(-5px);
}

/* On mobile, we might want to adjust position or keep it visible */
@media (max-width: 768px) {
    .whatsapp-text {
        right: 60px;
        /* Adjust for smaller button */
        font-size: 12px;
    }
}

/* Page Headers */
.page-header {
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 80px;
    /* Offset fixed header */
    position: relative;
    background-color: #0f766e;
    /* Fallback */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Values Grid */
.values-grid {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    text-align: center;
    flex: 1;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Info Cards (Mission/Vision) */
.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card i {
    font-size: 1.5rem;
}

/* Team Section */
.team-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 2rem auto 1rem;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.team-info {
    padding: 0 1.5rem 2rem;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.team-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Program Details */
.program-detail {
    margin-bottom: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.program-detail.reverse {
    direction: rtl;
}

.program-detail.reverse .program-text {
    direction: ltr;
}

.program-img img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
}

.check-list {
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.check-list i {
    color: var(--secondary-color);
}

/* FAQ Accordion */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Full Gallery */
.full-gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-rows: auto;
}

.full-gallery .gallery-item {
    height: 250px;
}

/* Responsiveness fixes */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header {
        height: 35vh;
    }

    .program-detail,
    .program-detail.reverse {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .values-grid {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Testimonials */
.testimonials {
    overflow: hidden;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.comment {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.parent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.parent-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.parent-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.parent-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Accessibility Widget */
.accessibility-btn {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.5rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.accessibility-btn:hover {
    padding-left: 1.5rem;
}

.access-panel {
    position: fixed;
    top: 50%;
    left: -300px;
    transform: translateY(-50%);
    width: 250px;
    background: white;
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: var(--transition);
}

.access-panel.active {
    left: 0;
}

.access-panel h4 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.access-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-controls button {
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.access-controls button:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* High Contrast Mode */
body.high-contrast {
    background-color: black !important;
    color: white !important;
}

body.high-contrast * {
    background-color: black !important;
    color: white !important;
    border-color: white !important;
}

body.high-contrast img {
    filter: grayscale(100%);
}

body.high-contrast .btn,
body.high-contrast .accessibility-btn {
    background-color: yellow !important;
    color: black !important;
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 10px;
    gap: 10px;
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.call-btn {
    background-color: var(--primary-color);
}

.whatsapp-btn {
    background-color: #25D366;
}

.mobile-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    /* Hide the floating button on mobile in favor of the bar */
    .whatsapp-float {
        display: none !important;
    }

    /* Add padding to body to prevent content from being stuck behind the bar */
    body {
        padding-bottom: 70px;
    }

    .footer {
        margin-bottom: 50px;
    }
}

.text-center-btn {
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}