/* Global Styles */
:root {
    --primary-color: #FF6B6B;
    /* Playful Red */
    --secondary-color: #4ECDC4;
    /* Teal */
    --accent-color: #FFE66D;
    /* Yellow */
    --dark-color: #292F36;
    --light-color: #F7FFF7;
    --text-color: #333;
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 20px;
}

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

body {
    font-family: var(--font-body);
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    z-index: -1;
    opacity: 0.6;
    border-radius: 4px;
}

/* Navigation */
.navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fa-spin-hover {
    transition: transform 0.5s ease;
}

.logo:hover .fa-spin-hover {
    transform: rotate(360deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-weight: 600;
    color: var(--dark-color);
}

.nav-item:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fef9f3 0%, #e8f4f8 100%);
    padding-top: 60px;
    position: relative;
    overflow: visible;
    padding-bottom: 160px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.badge {
    background-color: #E0F7FA;
    color: #006064;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.floating-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-element {
    position: absolute;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.float-element:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.float-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
    background: linear-gradient(135deg, #FFE5E5 0%, #FF6B6B 100%);
}

.float-1 i {
    color: #FF6B6B;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3));
}

.float-2 {
    bottom: 25%;
    right: 5%;
    animation-delay: 1.5s;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E0F7FA 0%, #4ECDC4 100%);
}

.float-2 i {
    color: #4ECDC4;
    filter: drop-shadow(0 2px 4px rgba(78, 205, 196, 0.3));
}

.float-3 {
    top: 45%;
    right: 25%;
    animation-delay: 3s;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFE66D 100%);
}

.float-3 i {
    color: #FBC02D;
    filter: drop-shadow(0 2px 4px rgba(251, 192, 45, 0.3));
}


.wave-bottom {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* Search Section */
.search-section {
    background-color: white;
    padding: 60px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Large Oversized Search Bar Container */
.search-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-input-wrapper-large {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 8px 8px 25px;
    margin-bottom: 0;
    position: relative;
    min-height: 90px;
}

.search-icon-large {
    position: absolute;
    left: 45px;
    color: #999;
    font-size: 2rem;
    z-index: 2;
}

.search-input-large {
    flex: 1;
    border: none;
    outline: none;
    padding: 28px 30px 28px 80px;
    font-size: 1.5rem;
    font-family: var(--font-body);
    border-radius: 60px;
    font-weight: 500;
    min-height: 74px;
}

.search-input-large::placeholder {
    color: #999;
    font-size: 1.4rem;
}

.search-btn-large {
    padding: 24px 60px;
    font-size: 1.3rem;
    white-space: nowrap;
    font-weight: 700;
    border-radius: 60px;
    margin-left: 10px;
    min-height: 74px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff5252 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Filters Grouped Underneath */
.filters-group {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.filter-select {
    padding: 12px 18px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background: #FFF5F5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.advanced-toggle-wrapper {
    text-align: center;
    margin-top: 15px;
}

.advanced-toggle-btn {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.advanced-toggle-btn:hover {
    color: var(--primary-color);
    background: #FFF5F5;
    text-decoration: none;
}

.advanced-toggle-btn i {
    margin-right: 6px;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

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

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.9rem;
    color: #777;
}

/* Category Colors */
.color-1 {
    border-color: #FF6B6B;
}

.color-1 .icon-wrapper {
    background: #FFE5E5;
    color: #FF6B6B;
}

.color-2 {
    border-color: #4ECDC4;
}

.color-2 .icon-wrapper {
    background: #E0F7FA;
    color: #4ECDC4;
}

.color-3 {
    border-color: #FFE66D;
}

.color-3 .icon-wrapper {
    background: #FFF9C4;
    color: #FBC02D;
}

.color-4 {
    border-color: #FF9F1C;
}

.color-4 .icon-wrapper {
    background: #FFE0B2;
    color: #FF9F1C;
}

.color-5 {
    border-color: #2EC4B6;
}

.color-5 .icon-wrapper {
    background: #E0F2F1;
    color: #2EC4B6;
}

.color-6 {
    border-color: #E71D36;
}

.color-6 .icon-wrapper {
    background: #FFEBEE;
    color: #E71D36;
}

.color-7 {
    border-color: #7209B7;
}

.color-7 .icon-wrapper {
    background: #F3E5F5;
    color: #7209B7;
}

.color-8 {
    border-color: #3A86FF;
}

.color-8 .icon-wrapper {
    background: #E3F2FD;
    color: #3A86FF;
}

/* Teachers Section */
.teachers {
    padding: 80px 0;
    background-color: #F8F9FA;
}

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

.teacher-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.teacher-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.teacher-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.teacher-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.teacher-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.teacher-info .subject {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.teacher-info .bio {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tags span {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #555;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

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

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.95rem;
    color: #666;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.cta h2 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.cta p {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.cta .btn-white {
    background-color: #ffffff;
    color: #FF6B6B;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.cta .btn-white:hover {
    background-color: #f8f8f8;
    color: #FF5252;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cta-shapes .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite;
    animation-delay: 2s;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    margin-bottom: 20px;
}

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

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .float-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .float-2 {
        width: 55px;
        height: 55px;
    }

    .float-3 {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 50px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats {
        justify-content: center;
    }

    .features .row {
        flex-direction: column-reverse;
    }

    .features img {
        margin-bottom: 40px;
    }

    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .cta p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .cta .btn-white {
        font-size: 1rem;
        padding: 14px 30px;
    }

    .float-element {
        display: none;
    }

    .search-input-wrapper-large {
        flex-direction: column;
        padding: 12px;
        border-radius: 30px;
        min-height: auto;
    }

    .search-icon-large {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
    }

    .search-input-large {
        padding: 20px 20px 20px 60px;
        margin-bottom: 10px;
        width: 100%;
        font-size: 1.2rem;
        min-height: 60px;
    }

    .search-input-large::placeholder {
        font-size: 1.1rem;
    }

    .search-btn-large {
        width: 100%;
        margin-left: 0;
        padding: 20px 40px;
        font-size: 1.1rem;
        min-height: 60px;
    }

    .filters-group {
        margin-top: 20px;
        padding-top: 20px;
    }

    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .search-input-wrapper-large {
        padding: 10px;
    }

    .search-input-large {
        font-size: 1.15rem;
        padding: 18px 18px 18px 55px;
    }

    .search-btn-large {
        font-size: 1.15rem;
        padding: 18px 35px;
    }

    .filter-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 40px 0;
    }

    .search-input-wrapper-large {
        border-radius: 25px;
        padding: 8px;
    }

    .search-input-large {
        font-size: 1.1rem;
        padding: 16px 16px 16px 50px;
        min-height: 55px;
    }

    .search-input-large::placeholder {
        font-size: 1rem;
    }

    .search-icon-large {
        font-size: 1.3rem;
        left: 25px;
    }

    .search-btn-large {
        font-size: 1rem;
        padding: 16px 30px;
        min-height: 55px;
    }

    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .social-links {
        justify-content: center;
    }

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

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