* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Banner */
header {
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%); /* Warm orange gradient */
    color: #333;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.2)"/></svg>') no-repeat;
    background-size: contain;
}

header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q40,30 60,50 T100,50" stroke="rgba(255,255,255,0.3)" stroke-width="3" fill="none"/></svg>') no-repeat;
    background-size: contain;
}

.top-bar {
    background-color: #333;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 1rem;
}

.social-icons a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    font-weight: 800;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Main Navigation */
.main-nav {
    background-color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #FFA500;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    line-height: 1;
}
.nav-hamburger:hover {
    background: #fff3e0;
}

/* Nav menu wrapper */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Right-side login/profile wrapper */
.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFA500;
    text-decoration: none;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 0.5rem;
}

.nav-list a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 30px;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: #e3f2fd;
    color: #FFA500;
    transform: translateY(-2px);
}

.nav-list a:hover {
    background-color: #e3f2fd;
}

/* Login/Profile Buttons */
.login-btn {
    background: #FFA500;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
}

.login-btn:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255,165,0,0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #87CEEB;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(135,206,235,0.3);
}

.profile-btn:hover {
    background: #5ca9c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(135,206,235,0.4);
}

.profile-icon {
    font-size: 1.2rem;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(231,76,60,0.3);
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231,76,60,0.4);
}

/* Add this to ensure Font Awesome icons have proper spacing */
.me-2 {
    margin-right: 0.5rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

/* Profile Dropdown */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #87CEEB;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(135,206,235,0.3);
}

.profile-trigger:hover {
    background: #5ca9c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(135,206,235,0.4);
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.profile-dropdown-menu.show {
    display: flex;
}

.profile-dropdown-menu a {
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: block;
}

.profile-dropdown-menu a:hover {
    background: #e3f2fd;
    color: #FFA500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="rgba(255,165,0,0.1)"/></svg>') no-repeat;
    background-size: contain;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    background: #FFA500;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
}

.btn-secondary {
    background: #87CEEB; /* Pastel blue */
    box-shadow: 0 4px 8px rgba(135,206,235,0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255,165,0,0.4);
}

.btn-secondary:hover {
    background: #5ca9c7;
    box-shadow: 0 6px 12px rgba(135,206,235,0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-image-circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="5" fill="white" opacity="0.3"/><circle cx="70" cy="40" r="7" fill="white" opacity="0.2"/><circle cx="50" cy="70" r="6" fill="white" opacity="0.4"/></svg>') no-repeat;
    background-size: cover;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FFA500, #87CEEB);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #FFA500;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 50px;
    right: 5%;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q40,30 60,50 T100,50" stroke="%23FFA500" stroke-width="2" fill="none"/></svg>') no-repeat;
    background-size: contain;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image-blob {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: #FFA500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: bold;
}

.giraffe {
    position: absolute;
    bottom: -30px;
    right: 10%;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30,60 Q40,50 50,60 T70,60 Q60,70 50,80 T30,80 Q20,70 30,60" fill="%23FFA500"/><circle cx="65" cy="45" r="10" fill="%23333"/><circle cx="68" cy="43" r="3" fill="white"/></svg>') no-repeat;
    background-size: contain;
}

/* Programs Section */
.programs {
    padding: 4rem 0;
    background-color: white;
}

.programs-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.programs-text {
    flex: 1;
}

.programs-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.programs-text p {
    color: #666;
    margin-bottom: 2rem;
}

.programs-points {
    margin-bottom: 2rem;
}

.programs-point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.programs-point-icon {
    width: 30px;
    height: 30px;
    background: #87CEEB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: bold;
}

.programs-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.programs-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E2FF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Age-Based Program Cards */
.age-programs {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
}

.age-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.program-card.beginner {
    background: linear-gradient(135deg, #40E0D0 0%, #40E0D0 100%); /* Teal */
}

.program-card.creativity {
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%); /* Orange */
}

.program-card.drawing {
    background: linear-gradient(135deg, #DDA0DD 0%, #DDA0DD 100%); /* Purple */
}

.program-card.preschool {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFB6C1 100%); /* Red */
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.age-range {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Instructors Section */
.instructors {
    padding: 4rem 0;
    background-color: white;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.instructor-image {
    height: 300px;
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-info {
    padding: 1.5rem;
    text-align: center;
}

.instructor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.instructor-info p.role {
    color: #FFA500;
    font-weight: bold;
    margin-bottom: 1rem;
}

.instructor-info p.bio {
    color: #666;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #FFA500;
    color: white;
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 50px;
    right: 5%;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30,60 Q40,50 60,50 T70,60 Q60,70 50,80 T30,80 Q20,70 30,60" fill="%23FFA500"/><circle cx="65" cy="45" r="10" fill="%23333"/><circle cx="68" cy="43" r="3" fill="white"/></svg>') no-repeat;
    background-size: contain;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(255,165,0,0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    color: #666;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E2FF 100%);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: #333;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-form-container {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,80 Q40,95 60,80 T100,80 Q90,70 80,60 T60,50 Q50,60 40,70 T20,80" fill="rgba(135,206,235,0.1)"/></svg>') no-repeat;
    background-size: contain;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: #FFA500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #FFA500;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pricing-card.featured::before {
    content: "POPULAR";
    position: absolute;
    top: 20px;
    right: -30px;
    background: #FFA500;
    color: white;
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.pricing-header {
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    padding: 2rem;
    text-align: center;
    color: #333;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: normal;
}

.pricing-body {
    padding: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li .check {
    color: #28a745;
    margin-right: 0.5rem;
}

.pricing-features li .cross {
    color: #dc3545;
    margin-right: 0.5rem;
}

.pricing-footer {
    text-align: center;
}

.btn-pricing {
    display: inline-block;
    background: #FFA500;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
    border: none;
    cursor: pointer;
}

.btn-pricing:hover {
    background: #ff8c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255,165,0,0.4);
}

/* Footer — child-friendly redesign */
footer {
    background: linear-gradient(160deg, #0369a1 0%, #0ea5e9 52%, #7dd3fc 100%);
    color: white;
    padding: 4.5rem 0 0;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Floating star row at the very top */
footer::before {
    content: "⭐ ✨ 🌟 ⭐ ✨ 🌟 ⭐ ✨ 🌟 ⭐ ✨ 🌟 ⭐";
    position: absolute;
    top: 0.9rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    opacity: 0.5;
    letter-spacing: 1.2rem;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

/* Soft light bubble at the bottom-left */
footer::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Logo */
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, color 0.25s ease;
    letter-spacing: -0.5px;
}

.footer-logo:hover {
    color: #FFE66D;
    transform: scale(1.06);
}

/* About blurb */
.footer-about p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Section headings — pill / badge style */
.footer-links h4,
.footer-contact h4 {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 0.35rem 1.1rem;
    margin-bottom: 1.4rem;
    position: static;
}

/* Remove the old orange underline */
.footer-links h4::after,
.footer-contact h4::after {
    display: none;
}

/* Quick links list */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.footer-links ul li a i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
    transition: background 0.25s ease;
    margin-right: 0;
}

.footer-links ul li a:hover {
    color: #FFE66D;
    transform: translateX(6px);
}

.footer-links ul li a:hover i {
    background: rgba(255, 230, 109, 0.3);
}

/* Contact list */
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.footer-contact ul li i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
    margin-right: 0;
}

.footer-contact ul li div {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-contact ul li div strong {
    display: block;
    color: white;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.15rem;
}

/* Bottom bar */
.footer-bottom {
    text-align: center;
    padding: 1.4rem 1rem;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.2px;
}

/* Lesson Cards */
.lesson-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.lesson-card .card-header {
    border: none;
    padding: 1.5rem;
    text-align: center;
}

.lesson-card .card-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.lesson-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lesson-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

.lesson-card .card-text {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.lesson-card .btn {
    margin-top: auto;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lesson-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Lesson Management */
.lesson-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lesson-management-header h2 {
    margin: 0;
    color: #333;
}

.lesson-management-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-lesson-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #87CEEB;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(135,206,235,0.3);
    border: none;
    cursor: pointer;
}

.btn-lesson-action:hover {
    background: #5ca9c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(135,206,235,0.4);
}

.btn-lesson-action.primary {
    background: #FFA500;
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
}

.btn-lesson-action.primary:hover {
    background: #ff8c00;
    box-shadow: 0 6px 12px rgba(255,165,0,0.4);
}

/* Lessons Table */
.table-lessons {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table-lessons thead th {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-lessons tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table-lessons tbody tr:last-child td {
    border-bottom: none;
}

.table-lessons tbody tr:hover {
    background-color: #f8f9fa;
}

.badge-lesson {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-lesson.active {
    background: #d4edda;
    color: #155724;
}

.badge-lesson.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Lesson Modals */
.modal-lesson .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-lesson .modal-header {
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    color: #333;
    border: none;
    padding: 1.5rem;
}

.modal-lesson .modal-title {
    font-weight: 700;
    margin: 0;
}

.modal-lesson .modal-body {
    padding: 1.5rem;
}

.modal-lesson .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-lesson .form-control,
.modal-lesson .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.modal-lesson .form-control:focus,
.modal-lesson .form-select:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
}

.modal-lesson .btn-modal {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Lesson Detail Page */
.lesson-detail-header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.lesson-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.lesson-detail-meta {
  margin-bottom: 1.5rem;
}

.lesson-detail-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lesson-detail-badge.bg-success {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.lesson-detail-badge.bg-primary {
  background-color: #007bff !important;
  border-color: #007bff !important;
}

.lesson-attachments {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.btn-attachment {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  background-color: #ff6b6b;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-attachment:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.lesson-tabs .nav-link {
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0;
  color: #6c757d;
}

.lesson-tabs .nav-link.active {
  color: #fff;
  background-color: #6a11cb;
  border-color: #6a11cb;
}

.lesson-stage-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.fruit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fruit-group, .visual-group, .result-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fruit, .visual-item {
  font-size: 2rem;
  margin: 0.25rem;
}

.plus-sign, .equals-sign {
  font-weight: bold;
  color: #6a11cb;
}

.result-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #28a745;
}

.equation-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: #6a11cb;
  margin: 1rem 0;
}

/* Interactive Lesson Elements */
.fruit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.fruit-group,
.result-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.fruit {
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fruit:hover {
    transform: scale(1.2);
}

.plus-sign,
.equals-sign {
    font-weight: bold;
    color: #FFA500;
}

.result-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.visual-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.visual-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFA500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.equation-display {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    color: #333;
    margin: 1.5rem 0;
}

.interactive-equation {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.interactive-equation .input-group {
    max-width: 300px;
    margin: 0 auto 1rem;
}

/* Lesson Attachments */
.lesson-attachments {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.lesson-attachments h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.btn-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
}

.btn-attachment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: #FFA500;
}

.btn-attachment i {
    color: #dc3545;
}

/* Classroom Cards */
.classroom-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.classroom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.classroom-card .card-header {
    border: none;
    padding: 1.5rem;
    text-align: center;
}

.classroom-card .card-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.classroom-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.classroom-card .card-text {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.classroom-card .btn {
    margin-top: auto;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.classroom-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Join Classroom Form */
.join-classroom-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.join-classroom-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.join-classroom-form .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.join-classroom-form .form-control:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
}

/* Classroom Detail Page */
.classroom-detail-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.classroom-detail-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.classroom-detail-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .programs-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-text,
    .about-text,
    .programs-text,
    .contact-form-container,
    .contact-info {
        width: 100%;
    }
    
    .hero-image-circle {
        width: 250px;
        height: 250px;
    }
    
    .about-image-blob {
        height: 300px;
    }
    
    .lesson-management-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lesson-management-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    /* --- Hamburger nav --- */
    .nav-hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        border-top: 2px solid #FFA500;
        z-index: 999;
    }

    .nav-menu.nav-menu-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .nav-list li {
        margin: 0;
    }

    .nav-list a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-right {
        width: 100%;
        padding-top: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .login-btn {
        text-align: center;
        margin-top: 0.25rem;
        border-radius: 8px;
    }

    .user-profile {
        width: 100%;
    }

    .user-profile-dropdown {
        width: 100%;
    }

    .profile-trigger {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border: 1px solid #eee;
    }

    .profile-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-top: 0.25rem;
        right: auto;
    }

    .profile-dropdown-menu.show {
        display: flex;
        flex-direction: column;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .lesson-detail-title {
        font-size: 1.5rem;
    }
    
    .lesson-detail-meta {
        flex-direction: column;
    }
    
    .table-lessons {
        display: block;
        overflow-x: auto;
    }
    
    .table-lessons thead,
    .table-lessons tbody,
    .table-lessons th,
    .table-lessons td,
    .table-lessons tr {
        display: block;
    }
    
    .table-lessons thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-lessons tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .table-lessons td {
        border: none;
        position: relative;
        padding-left: 50% !important;
    }
    
    .table-lessons td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 1rem;
        width: 45%;
        font-weight: bold;
        color: #333;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .lesson-card .card-header,
    .lesson-card .card-body {
        padding: 1rem;
    }
    
    .lesson-management-actions {
        flex-direction: column;
    }
    
    .btn-lesson-action {
        width: 100%;
        justify-content: center;
    }
    
    .modal-lesson .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .classroom-detail-title {
        font-size: 1.5rem;
    }
    
    .classroom-detail-meta {
        flex-direction: column;
    }
}

/* Lesson link styling */
.lesson-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.lesson-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Minimal list group styling for teacher classroom view */
.list-group-item {
    border: 1px solid rgba(0,0,0,.125);
    border-left: none;
    border-right: none;
    padding: 1rem 0;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Enhanced lesson card styling */
.lesson-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.lesson-card .card-header {
    border-bottom: none;
    font-weight: 600;
}

.lesson-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.lesson-card .card-text {
    font-size: 0.9rem;
    color: #666;
    min-height: 60px;
}

/* Button styling for lesson actions */
.btn-lesson-action {
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-lesson-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-lesson-action.primary {
    background-color: #28a745;
    color: white;
}

.btn-lesson-action.primary:hover {
    background-color: #218838;
    color: white;
}

.btn-lesson-action.secondary {
    background-color: #6c757d;
    color: white;
}

.btn-lesson-action.secondary:hover {
    background-color: #5a6268;
    color: white;
}

/* Minimal card styling */
.card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-light {
    color: #000;
}

/* Alert link styling */
.alert-link {
    font-weight: 600;
}

.alert-link:hover {
    text-decoration: underline;
}

/* Quiz badge styling */
.lesson-detail-badge.bg-success {
    background-color: #28a745 !important;
}

/* Quiz management button */
.btn-quiz-management {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-quiz-management:hover {
    background-color: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Question review styling */
.question-review-item {
    border-bottom: 1px solid #eee;
}

.question-review-item:last-child {
    border-bottom: none;
}

.question-review-item.correct {
    background-color: rgba(40, 167, 69, 0.05);
}

.question-review-item.incorrect {
    background-color: rgba(220, 53, 69, 0.05);
}

/* Score circle styling */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Quiz form styling */
.quiz-question-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.quiz-question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quiz-question-card .card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lesson-detail-title {
    font-size: 2rem;
  }
  
  .lesson-detail-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  
  .btn-attachment {
    display: block;
    margin: 0.5rem 0;
    text-align: center;
  }
}

/* Quiz badge styling */
.lesson-detail-badge.bg-success {
    background-color: #28a745 !important;
}

.lesson-detail-badge.bg-primary {
    background-color: #007bff !important;
}

/* Quiz Page Sections */
.quiz-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    padding: 3rem 0;
}

.quiz-instructions {
    padding: 4rem 0;
    background-color: white;
}

.quiz-questions {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
}

/* Welcome Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    max-width: 900px;
    margin: 20px auto;
    
}

#addLessonModal .modal-dialog {
    height: 70%;
    width: 90% !important;
    max-width: 90% !important;
    margin-top: 10% !important;
    margin-bottom: 15% !important;
}

#addLessonModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: 2px linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: white;
}

.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: white;
}

.modal-header {
    background: linear-gradient(135deg, #FFA500 0%, #FFD580 100%);
    color: #333;
    border: none;
    padding: 1.5rem;
    text-align: center;
}

#addLessonModal .modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.modal-title {
    font-weight: 700;
    margin: 0;
    width: 100%;
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
}

#addLessonModal .modal-body {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
}

#addLessonModal .modal-footer {
    justify-content: space-between;
}

.modal button {
    background: #FFA500;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal button:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
}

.modal button.btn-secondary {
    background: #87CEEB;
}

.modal button.btn-secondary:hover {
    background: #5ca9c7;
}
/* --- Mobile footer adjustments --- */
@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Quick links — 2-column grid so they don't stack into a tall list */
    .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 1rem;
    }

    .footer-links ul li {
        margin-bottom: 0;
    }

    .footer-links ul li a {
        justify-content: flex-start;
        font-size: 0.88rem;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }

    .footer-bottom {
        font-size: 0.82rem;
    }
}

/* =============================================
   Homepage Responsive Styles
   ============================================= */

/* Tablet — hero image and text scale */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.05rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-image-circle {
        width: 220px;
        height: 220px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: left;
    }

    .programs-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .features,
    .about,
    .programs,
    .instructors,
    .contact {
        padding: 3rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Small phones — compact everything */
@media (max-width: 576px) {
    .hero,
    .features,
    .about,
    .programs,
    .instructors,
    .contact {
        padding: 2rem 0;
    }

    .hero-text h2 {
        font-size: 1.7rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-image-circle {
        width: 180px;
        height: 180px;
    }

    .about-image-blob {
        height: 200px;
    }

    .giraffe {
        display: none;
    }

    .about-text h2,
    .programs-text h2 {
        font-size: 1.6rem;
    }

    .programs-image-placeholder {
        height: 180px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .instructor-image {
        height: 200px;
    }

    .instructor-info h3 {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}
