/* -------------------------------------------------- */
/* 1. Base Styles & Reset                             */
/* -------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Fredoka', sans-serif; color: #51AD17; line-height: 1.6; background-color: #f8fbff; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 70px 20px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
h2 { color: #0183D4; font-size: 36px; margin-bottom: 15px; font-weight: 700; }
.subtitle { color: #FC6E11; margin-bottom: 30px; font-size: 18px; font-weight: 600; }

/* Utilities */
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-4x2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.align-center { align-items: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* -------------------------------------------------- */
/* 2. Buttons                                         */
/* -------------------------------------------------- */
.btn {
    display: inline-block; padding: 14px 30px; border-radius: 50px; font-weight: 700; cursor: pointer;
    border: none; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.1s ease-in-out;
    font-family: 'Fredoka', sans-serif; text-decoration: none;
}
.btn-primary { background-color: #FC6E11; color: white; box-shadow: 0 6px 0 #cc580d; }
.btn-primary:hover { background-color: #fd8536; transform: translateY(-2px); box-shadow: 0 8px 0 #cc580d; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 transparent; }

.btn-white { background-color: white; color: #0abde3; box-shadow: 0 6px 0 #d1d8e0; font-size: 18px; margin-top: 25px; }
.btn-white:hover { background-color: #fdfdfd; transform: translateY(-2px); box-shadow: 0 8px 0 #d1d8e0; }
.btn-white:active { transform: translateY(4px); box-shadow: 0 2px 0 transparent; }

.btn-blue { background-color: #0183D4; color: white; box-shadow: 0 4px 0 #0056b3; }
.btn-blue:hover { background-color: #0294eb; transform: translateY(-2px); box-shadow: 0 6px 0 #0056b3; }
.btn-blue:active { transform: translateY(2px); box-shadow: 0 2px 0 transparent; }

.btn-outline { background-color: transparent; color: #51AD17; border: 2px solid #51AD17; box-shadow: none; padding: 12px 28px; }
.btn-outline:hover { background-color: #51AD17; color: white; }

.btn-cta-glow {
    background-color: #FC6E11; color: white; box-shadow: 0 6px 0 #cc580d, 0 10px 20px rgba(252, 110, 17, 0.4);
    font-size: 20px; padding: 16px 40px; position: relative; z-index: 2; transition: all 0.2s ease-in-out;
}
.btn-cta-glow:hover { background-color: #fd8536; transform: translateY(-2px); box-shadow: 0 8px 0 #cc580d, 0 15px 30px rgba(252, 110, 17, 0.5); }
.btn-cta-glow:active { transform: translateY(4px); box-shadow: 0 2px 0 transparent; }

/* -------------------------------------------------- */
/* 3. Header, Nav & Dropdown                          */
/* -------------------------------------------------- */
header { background-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; z-index: 100; }
.header-container { padding: 5px 20px; display: flex; justify-content: space-between; align-items: center; }
.header-logo { max-height: 110px; width: auto; display: block; margin-top: -20px; margin-bottom: -20px; margin-left: -25px; }

/* New Nav Container */
.nav-menu { display: flex; align-items: center; gap: 30px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-only { display: none; }
.desktop-only { display: block; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: #333; font-weight: 600; font-size: 17px; transition: color 0.2s ease; }
.nav-links a:hover { color: #0183D4; }

.nav-dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; background-color: white;
    min-width: 180px; box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 1000; border-radius: 12px; top: 100%; left: 50%;
    transform: translateX(-50%); padding: 10px 0; margin-top: 10px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    color: #333; padding: 12px 25px; text-decoration: none;
    display: block; font-weight: 500; font-size: 15px; text-align: center;
}
.dropdown-menu a:hover { background-color: #f8fbff; color: #0183D4; }

/* -------------------------------------------------- */
/* 4. Hero Section                                    */
/* -------------------------------------------------- */
.hero-animated {
    background: linear-gradient(-45deg, #013b82, #0183D4, #0abde3, #0183D4); background-size: 300% 300%;
    animation: gradientShift 10s ease infinite; color: white; padding: 130px 20px; position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero-heading { font-size: 48px; line-height: 1.2; margin-bottom: 15px; text-shadow: 2px 4px 0 rgba(0,0,0,0.1); }
.hero-sub { font-size: 18px; font-weight: 500; margin-bottom: 30px; color: rgba(255, 255, 255, 0.9); }

/* -------------------------------------------------- */
/* 5. Layout Sections (Home Page)                     */
/* -------------------------------------------------- */
.story-section { margin-top: 40px; }
.story-section h2 { color: #0183D4; text-align: left; }
.story-subheading { color: #0183D4; margin-top: 20px; }
.story-section p { font-size: 18px; line-height: 1.7; color: #7b8fa1; }
.story-img-placeholder { height: 300px; background: #d1d8e0; border-radius: 20px; }
.story-img { width: 100%; height: 300px; object-fit: cover; border-radius: 20px; display: block; }

.courses-section { margin-top: 40px; }
.courses-section h2, .course-list-card h4 { color: #FC6E11; }
.courses-subtitle { color: #7b8fa1; font-weight: 500; max-width: 600px; margin: 0 auto 40px auto; }
.courses-title { color: #FC6E11; font-size: 22px; margin-bottom: 30px; }
.course-grid { gap: 40px; }
.course-list-card { display: flex; gap: 20px; align-items: center; }
.course-img-placeholder { width: 120px; height: 120px; background: #d1d8e0; border-radius: 15px; flex-shrink: 0; }
.course-list-card h4 { font-size: 22px; margin-bottom: 5px; }
.course-list-card p { font-size: 15px; color: #7b8fa1; margin-top: 5px; }

.different-section { margin-top: 40px; }
.different-section h2 { color: #51AD17; }
.different-desc { color: #7b8fa1; margin-bottom: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }

.achievements-section { margin-top: 60px; }
.achievements-section h2 { color: #51AD17; }
.achievements-desc { color: #7b8fa1; max-width: 600px; margin: 0 auto 40px auto; }
.achieved-list { max-width: 800px; margin: 0 auto; }
.achieved-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; text-align: left; }
.achieved-icon { width: 50px; height: 50px; background: #e0f6ff; border-radius: 50%; padding: 10px; flex-shrink: 0; }
.achieved-item h4 { color: #0183D4; font-size: 42px; line-height: 1; margin-bottom: 5px; }
.achieved-item h5 { color: #333; font-size: 18px; margin-bottom: 5px; }
.achieved-item p { font-size: 16px; color: #7b8fa1; }

.testimonial-section { margin-top: 60px; }
.testimonial-section h2, .testimonial-author-name { color: #0183D4; }
.testimonial-author-name { margin-top: 20px; }
.testimonial-author-title { color: #7b8fa1; }
.testimonial-wrapper { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 30px; }
.nav-arrow { background: white; border: 2px solid #0183D4; color: #0183D4; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.nav-arrow:hover { background: #0183D4; color: white; }
.testimonial-box { background-color: #e5f6f1; padding: 40px; border-radius: 30px; display: flex; gap: 30px; align-items: center; max-width: 700px; }
.testimonial-content { flex: 1; }
.testimonial-content p { color: #333; font-style: italic; font-size: 18px; line-height: 1.7; }
.testimonial-content h4 { font-size: 20px; }
.testimonial-content p:last-child { font-size: 15px !important; font-style: normal; color: #7b8fa1; margin-top: 5px; }
.t-img-placeholder { width: 150px; height: 150px; background: #2c3e50; border-radius: 20px; }

/* -------------------------------------------------- */
/* 6. Interactive Bottom CTA                          */
/* -------------------------------------------------- */
.bottom-cta {
    background: linear-gradient(-45deg, #013b82, #0183D4, #632de8, #0183D4); background-size: 300% 300%;
    animation: gradientShift 10s ease infinite; padding: 80px 40px; border-radius: 40px; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(1, 131, 212, 0.2);
}
.cta-heading { color: white; margin-bottom: 15px; font-size: 42px; position: relative; z-index: 2; text-shadow: 2px 4px 0 rgba(0,0,0,0.1); }
.cta-subtext { color: white; font-size: 18px; font-weight: 500; margin-bottom: 30px; position: relative; z-index: 2; opacity: 0.9; }

.floating-shape { position: absolute; z-index: 1; opacity: 0.8; }
.shape-1 { top: 20%; left: 10%; animation: floating 4s ease-in-out infinite; font-size: 40px; }
.shape-2 { bottom: 20%; right: 15%; animation: floating 5s ease-in-out infinite reverse; font-size: 50px; }
.shape-3 { top: 15%; right: 10%; animation: floating 6s ease-in-out infinite 1s; font-size: 35px; }
.shape-4 { bottom: 15%; left: 15%; animation: floating 4.5s ease-in-out infinite reverse 0.5s; font-size: 45px; }
.shape-5 { top: 15%; left: 15%; animation: floating 5s ease-in-out infinite; font-size: 40px; }
.shape-6 { bottom: 25%; right: 10%; animation: floating 4s ease-in-out infinite reverse; font-size: 35px; }
.shape-7 { top: 20%; right: 20%; animation: floating 6s ease-in-out infinite 1s; font-size: 45px; }
.shape-8 { bottom: 15%; left: 20%; animation: floating 5.5s ease-in-out infinite reverse 0.5s; font-size: 50px; }

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* -------------------------------------------------- */
/* 7. Footer                                          */
/* -------------------------------------------------- */
.site-footer { background-color: #032b5e; color: white; padding: 60px 20px; margin-top: 60px; }
.grid-footer { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding: 0; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 10px; font-size: 16px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.newsletter-form { display: flex; background: white; border-radius: 50px; padding: 5px; }
.newsletter-form input { border: none; padding: 10px 15px; border-radius: 50px; outline: none; flex: 1; font-family: 'Fredoka', sans-serif; }
.newsletter-btn { border-radius: 50px; }

/* -------------------------------------------------- */
/* 8. General Animations & Floating WhatsApp          */
/* -------------------------------------------------- */
@keyframes floating { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } 100% { transform: translateY(0px) rotate(0deg); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.pulse-btn { animation: pulse 2s infinite; }
.pulse-btn:hover { animation: none; }
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.active { opacity: 1; transform: translateY(0); }
.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.float-infinite { animation: floating 3s ease-in-out infinite; }
.floating-whatsapp img { width: 38px; height: 38px; }
.floating-whatsapp:hover { transform: scale(1.15) rotate(10deg); animation: none; }

/* -------------------------------------------------- */
/* 9. Responsive Media Queries                        */
/* -------------------------------------------------- */
@media (max-width: 992px) {
    .grid-4x2, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Fixed Header Overflow & Hamburger Menu */
    .header-container { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 15px; }
    .header-logo { max-height: 45px; margin: 0; max-width: 100%; }
    
    .hamburger { display: block; }
    
    /* Mobile Popup Card Styling */
    .nav-menu {
        display: none; 
        position: absolute;
        top: 70px;
        right: 15px;
        left: 15px;
        background: white;
        flex-direction: column;
        padding: 30px 25px;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        z-index: 1001;
    }
    .nav-menu.active {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 25px;
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }
    .nav-links a { font-size: 20px; font-weight: 700; color: #111; letter-spacing: 1px; }
    
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .nav-btn {
        padding: 16px 20px;
        font-size: 20px;
        line-height: 1.3;
        width: 100%;
        text-align: center;
        white-space: normal; 
    }

    /* Make CTA Buttons Smaller */
    .btn-cta-glow { padding: 12px 24px; font-size: 16px; }
    .btn { padding: 10px 24px; font-size: 14px; }

    /* Testimonial Mobile Fix */
    .testimonial-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "box box"
            "left right";
        gap: 15px;
    }
    .testimonial-box { grid-area: box; flex-direction: column-reverse; padding: 30px 20px; }
    .nav-arrow.left-arrow { grid-area: left; justify-self: end; margin-right: 10px; }
    .nav-arrow.right-arrow { grid-area: right; justify-self: start; margin-left: 10px; }

    /* Layout Adjustments */
    .grid-2x2, .grid-4x2, .contact-grid { grid-template-columns: 1fr; }
    .grid-footer { grid-template-columns: 1fr; }
    .hero-heading { font-size: 36px; }
    .cta-heading { font-size: 32px; }
    .floating-shape { display: none; }
    .flex-reverse-mobile { display: flex; flex-direction: column-reverse; }
    .floating-whatsapp { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .project-placeholder { height: 300px !important; }
}

/* -------------------------------------------------- */
/* 10. Free Coding Workshop Specific Styles           */
/* -------------------------------------------------- */
.title-section { padding-bottom: 20px; }
.workshop-subtitle { color: #7b8fa1; font-weight: 500; }
.explanation-2 { padding-top: 0; }
.badge { background-color: #791212; color: white; padding: 6px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 25px; }
.page-title { color: #FC6E11; font-size: 42px; margin-bottom: 15px; }
.explanation-row { margin-bottom: 40px; }
.explanation-title { color: #FC6E11; margin-bottom: 20px; }
.explanation-img { height: 300px; background: #e1e6eb; border-radius: 10px; width: 100%; }
.workshop-cta { background: linear-gradient(-45deg, #791212, #D14015, #e05e2f, #791212); background-size: 300% 300%; animation: gradientShift 10s ease infinite; padding: 80px 40px; border-radius: 40px; box-shadow: 0 20px 40px rgba(121, 18, 18, 0.2); }
.workshop-cta .btn { margin-top: 15px; position: relative; z-index: 2; }
.text-red { color: #791212 !important; }

/* -------------------------------------------------- */
/* 11. FAQ Accordion Shared Styles                    */
/* -------------------------------------------------- */
.faq-section { margin-top: 20px; }
.faq-section h2 { color: #FC6E11; margin-bottom: 30px; }
.faq-accordion { max-width: 850px; margin: 0 auto 40px auto; }
.faq-item { background-color: #791212; border-radius: 8px; margin-bottom: 12px; overflow: hidden; transition: all 0.3s ease; }
.faq-question { width: 100%; background: none; border: none; color: white; text-align: left; padding: 20px 25px; font-size: 16px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Fredoka', sans-serif; }
.faq-answer { padding: 0 25px 20px 25px; color: rgba(255, 255, 255, 0.9); display: none; font-size: 15px; line-height: 1.6; }
.faq-item.active .faq-answer { display: block; }
.faq-icon { font-size: 20px; font-weight: 400; }

/* -------------------------------------------------- */
/* 12. Courses Page Specific Styles                   */
/* -------------------------------------------------- */
.badge-green { background-color: #51AD17; }
.page-title-green { color: #51AD17; }
.course-section { margin-bottom: 60px; padding-top: 20px; }
.course-hero-img { width: 100%; height: 350px; background: #a9a9a9; border-radius: 20px; margin-bottom: 40px; }
.course-content { max-width: 850px; margin: 0 auto; }
.course-desc { color: #7b8fa1; font-size: 16px; line-height: 1.7; }
.theme-green .theme-color { color: #51AD17; } .theme-green .faq-item { background-color: #104f14; } .theme-green .theme-btn { border-color: #51AD17; color: #51AD17; } .theme-green .theme-btn:hover { background-color: #51AD17; color: white; }
.theme-blue .theme-color { color: #0183D4; } .theme-blue .faq-item { background-color: #0b3469; } .theme-blue .theme-btn { border-color: #0183D4; color: #0183D4; } .theme-blue .theme-btn:hover { background-color: #0183D4; color: white; }
.theme-red .theme-color { color: #FC6E11; } .theme-red .faq-item { background-color: #791212; } .theme-red .theme-btn { border-color: #791212; color: #791212; } .theme-red .theme-btn:hover { background-color: #791212; color: white; }

/* -------------------------------------------------- */
/* 13. Student Projects Page Specific Styles          */
/* -------------------------------------------------- */
.badge-dark-blue { background-color: #032b5e; }
.page-title-blue { color: #0183D4; }
.projects-container { margin-bottom: 60px; }
.projects-grid { gap: 40px; }
.project-placeholder { width: 100%; height: 450px; background-color: #e0e0e0; border-radius: 0; transition: transform 0.3s ease; }
.project-placeholder:hover { transform: translateY(-5px); }

/* -------------------------------------------------- */
/* 14. About Page Specific Styles                     */
/* -------------------------------------------------- */
.badge-about { background-color: #1b4d1b; }
.page-title-about { color: #51AD17; }
.about-subtitle { color: #7b8fa1; font-weight: 500; }
.about-desc { color: #7b8fa1; font-size: 16px; max-width: 600px; margin: 0 auto; }

/* Mission Accordion Styles */
.mission-section { max-width: 850px; margin: 0 auto 60px auto; }
.mission-list { display: flex; flex-direction: column; gap: 15px; }
.mission-item { overflow: hidden; transition: all 0.3s ease; }

.mission-header { 
    width: 100%; background: none; border: none; cursor: pointer; 
    display: flex; align-items: center; justify-content: space-between; 
    text-align: left; padding: 10px 0; font-family: 'Fredoka', sans-serif;
}
.mission-header-left { display: flex; align-items: center; gap: 20px; }
.mission-icon { width: 80px; height: 80px; object-fit: contain; flex-shrink: 0; }

.mission-title-area { display: flex; flex-direction: column; }
.mission-q-icon { font-size: 18px; color: #51AD17; font-weight: 700; display: block; margin-bottom: 5px; }
.mission-header h4 { font-size: 20px; color: #333; margin: 0; }

.mission-arrow { color: #51AD17; font-size: 30px; font-weight: bold; transition: transform 0.3s ease; margin-left: 10px; }

/* Hidden body that expands when .active is added */
.mission-body { display: none; padding-left: 100px; padding-bottom: 15px; padding-right: 40px; }
.mission-body p { font-size: 15px; color: #7b8fa1; line-height: 1.5; margin: 0; }

.mission-item.active .mission-body { display: block; }
.mission-item.active .mission-arrow { transform: rotate(90deg); }

.certifications-section { margin-bottom: 60px; }
.certifications-grid { gap: 30px; }
.cert-placeholder { height: 350px; background-color: #c4c4c4; width: 100%; }

/* -------------------------------------------------- */
/* 15. FAQ Page Specific Styles                       */
/* -------------------------------------------------- */
.badge-faq { background-color: #032b5e; }
.page-title-faq { color: #0183D4; }
.faq-subtitle { color: #7b8fa1; font-weight: 500; }
.theme-faq .faq-item { background-color: #032b5e; }

/* -------------------------------------------------- */
/* 16. Contact Page Specific Styles                   */
/* -------------------------------------------------- */
.badge-contact { background-color: #791212; }
.page-title-contact { color: #FC6E11; }
.contact-subtitle { color: #7b8fa1; font-weight: 500; }

.contact-info-section { margin-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.contact-card { display: flex; align-items: flex-start; gap: 20px; text-align: left; }
.contact-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 24px; flex-shrink: 0; }
.icon-red { background-color: #ffe5e5; }
.icon-green { background-color: #e5ffe5; }
.icon-blue { background-color: #e5f5ff; }

.contact-card-title { color: #791212; font-size: 22px; margin-bottom: 5px; }
.contact-card-desc { color: #7b8fa1; font-size: 15px; margin-bottom: 5px; }
.contact-card-link { color: #FC6E11; font-weight: 600; text-decoration: none; font-size: 16px; }

.location-section { margin-bottom: 60px; }
.map-placeholder { width: 100%; height: 500px; background-color: #d1d8e0; margin-top: 20px; }