@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #195292;
    --accent-orange: #ff8a00;
    --text-dark: #202020;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-radius: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Header & Navbar */
.top-bar {
    background-color: #28a745; /* very thin top bar from image */
    height: 5px;
}
.header-info {
    padding: 15px 0;
    font-size: 0.9rem;
}
.header-info i {
    color: var(--accent-orange);
    margin-right: 8px;
    font-size: 1.2rem;
}
.header-info .info-block {
    display: flex;
    align-items: center;
}
.header-info strong {
    color: var(--primary-blue);
    display: block;
}
.navbar {
    background-color: transparent;
    padding-top: 15px;
    padding-bottom: 15px;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-blue) !important;
}
.navbar-brand span {
    color: var(--accent-orange);
}
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
}
.nav-link:hover {
    color: var(--accent-orange) !important;
}
.btn-login {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 500;
}
.btn-login:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, rgba(240,248,255,1) 0%, rgba(255,255,255,1) 100%);
    overflow: hidden;
}
.hero-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 120%;
    background: #e8f3fe;
    border-radius: 50%;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-blue);
}
.hero-title span {
    color: var(--accent-orange);
}
.hero-search {
    position: relative;
    max-width: 400px;
    margin-top: 30px;
}
.hero-search input {
    border-radius: 50px;
    padding: 15px 30px;
    border: 2px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hero-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-color: var(--accent-orange);
    color: white;
    border: none;
}
.hero-images {
    position: relative;
    z-index: 1;
    height: 400px;
}
.hero-img {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-img:hover {
    transform: scale(1.08) translateY(-10px);
    border-radius: 50%;
    box-shadow: 0 25px 45px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.8);
}
.img-1 { width: 250px; height: 250px; top: 0; right: 20%; }
.img-2 { width: 180px; height: 180px; bottom: 10%; right: 40%; }
.img-3 { width: 140px; height: 140px; top: 20%; right: 0; }

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Features */
.feature-box {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.02);
}
.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.feature-icon-wrap {
    width: 80px;
    height: 80px;
    background: #fff5eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: transform 0.3s ease;
}
.feature-box:hover .feature-icon-wrap {
    transform: scale(1.1);
}
.feature-icon {
    font-size: 2.2rem;
    color: var(--accent-orange);
    margin-bottom: 0;
}
.feature-title {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Gallery Masonry */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Classes */
.class-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.class-img-wrap {
    position: relative;
    height: 220px;
}
.class-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.class-price {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--accent-orange);
    color: white;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.4);
}
.class-card .card-body {
    padding: 30px 20px 20px 20px;
}
.class-title {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.instructor-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.instructor-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.instructor-name {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Teachers */
.teacher-card {
    text-align: center;
    margin-bottom: 30px;
}
.teacher-img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}
.teacher-name {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* News */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.news-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffc107;
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}
.news-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    background-color: var(--accent-orange);
    border-radius: 30px;
    padding: 50px;
    margin: 80px 0;
    color: white;
}
.cta-title {
    font-weight: 800;
    font-size: 2.5rem;
}
.cta-form input {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 30px;
    padding: 12px 20px;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.7); }

/* Footer */
.footer {
    background-color: #fcfcfc;
    padding: 60px 0 20px 0;
    border-top: 1px solid #eee;
}
.footer-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
}
.footer-link:hover { color: var(--accent-orange); }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    margin-right: 10px;
    text-decoration: none;
}
.social-icon:hover { background: var(--accent-orange); color: white; }


/* General Animations & Helpers */
.transition-hover {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.transition-hover:hover {
    transform: translateY(-4px);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@keyframes float-reverse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(15px); }
    100% { transform: translateY(0px); }
}
.floating-anim {
    animation: float 6s ease-in-out infinite;
}
.floating-anim-reverse {
    animation: float-reverse 7s ease-in-out infinite;
}
.floating-anim-delay1 {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}
.floating-anim-delay2 {
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
}
.hero-blob-small {
    position: absolute;
    bottom: 10%;
    left: 40%;
    width: 150px;
    height: 150px;
    background: #ffecd2;
    border-radius: 50%;
    z-index: 0;
}
.cta-blob {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 0;
}
.teacher-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}
.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.news-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    font-size: 1.2rem;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


