/* Modern Premium CSS for Kids Fun N Learn Centre */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-color: #f43f5e; /* Rose/Pink */
    --primary-hover: #e11d48;
    --secondary-color: #3b82f6; /* Blue */
    --accent-yellow: #f59e0b; /* Amber */
    --accent-green: #10b981; /* Emerald */
    --accent-purple: #8b5cf6; /* Violet */
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-soft-blue: #eff6ff;
    --bg-soft-pink: #fff1f2;

    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    --font-ui: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    gap: 8px;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span:nth-child(1) { color: var(--primary-color); }
.logo-text span:nth-child(2) { color: var(--secondary-color); }
.logo-text span:nth-child(3) { color: var(--accent-yellow); }
.logo-text span:nth-child(4) { color: var(--accent-green); }
.logo-text span:nth-child(5) { color: var(--accent-purple); }

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-ui);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
    transform: translateX(-50%);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-dark);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 80%;
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    min-width: 280px;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    list-style: none !important;
    list-style-type: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
    width: 100%;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block !important;
    padding: 12px 16px !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
    text-align: left !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: var(--primary-color) !important;
}

.nav-item-dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    top: 100%;
    left: 0;
}



.dropdown-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 6px 8px;
    list-style: none !important;
    list-style-type: none !important;
    display: block;
    padding: 0;
}

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: block;
    }
}

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

/* General Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-soft-pink);
    color: var(--primary-color);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Specific Page Overrides */
.hero {
    /* To be styled in index.php */
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 70px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--bg-white);
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    font-family: var(--font-ui);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #94a3b8;
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff !important;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-ui);
    color: #64748b;
    position: relative;
    z-index: 1;
}

/* Forms */
.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-speed);
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: var(--shadow-md);
        display: none; /* toggled via JS */
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu-wrapper.active {
        display: flex;
    }

    .nav-links,
    .nav-links li {
        list-style: none !important;
        list-style-type: none !important;
        width: 100%;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .header-cta {
        display: block;
        margin-top: 20px;
    }

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

    .nav-item-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none !important;
        list-style-type: none !important;
    }

    .dropdown-toggle {
        font-weight: 600;
        padding: 10px 20px;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .nav-item-dropdown.open .dropdown-toggle {
        background: rgba(244, 63, 94, 0.08);
        color: var(--primary-color);
    }

    .nav-item-dropdown .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        opacity: 1;
        visibility: visible;
        display: none;
        background: #f8fafc;
        border-radius: 14px;
        margin-top: 10px;
        padding: 8px;
        border: 1px solid #e2e8f0;
        width: 100%;
        max-width: 320px;
        list-style: none !important;
        list-style-type: none !important;
    }

    .nav-item-dropdown.open .dropdown-menu {
        display: block;
        animation: fadeInMenu 0.25s ease forwards;
    }

    .nav-item-dropdown.open .nav-arrow {
        transform: rotate(180deg);
    }

    .nav-item-dropdown .dropdown-menu li {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0;
        padding: 0;
    }

    .nav-item-dropdown .dropdown-menu li a {
        display: block !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        border-radius: 8px !important;
        color: #334155 !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
    }

    .nav-item-dropdown .dropdown-menu li a:active,
    .nav-item-dropdown .dropdown-menu li a:hover {
        background: #f1f5f9 !important;
        color: var(--primary-color) !important;
    }

    .nav-item-dropdown .dropdown-divider {
        height: 1px;
        background-color: #e2e8f0;
        margin: 6px 10px;
        display: block;
        list-style: none !important;
        list-style-type: none !important;
        padding: 0;
    }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
