/* ActKidz - Main Stylesheet - Kidza 101 Inspired Theme */

:root {
    --primary: #6AB43E;
    --secondary: #4BB5E0;
    --accent: #6B7B3A;
    --green: #6AB43E;
    --blue: #4BB5E0;
    --pink: #E91E63;
    --dark: #2D3436;
    --light: #E8F5E9;
    --white: #FFFFFF;
    --gray: #F5F9F5;
    --text: #333333;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    color: #6B7B3A;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #4BB5E0;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav ul li a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
    background: var(--secondary);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4BB5E0, #6AB43E);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.hero-content .tagline {
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106,180,62,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106,180,62,0.4);
    background: #5a9e34;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.3rem;
}

/* Slider */
.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106,180,62,0.85), rgba(75,181,224,0.75));
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 60px;
    color: white;
    text-align: center;
}

.slide-content h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

.slide-content .btn-slider {
    display: inline-block;
    padding: 14px 35px;
    background: white;
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-content .btn-slider:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--light);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #6B7B3A;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #4BB5E0;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #6AB43E, #4BB5E0);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light);
}

/* Main Content */
.main-content {
    min-height: 50vh;
}

.main-content > .container {
    padding: 60px 20px;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content h2 {
    margin: 30px 0 15px;
    font-size: 2rem;
}

.page-content h3 {
    margin: 25px 0 10px;
    color: var(--primary);
}

.page-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Program grid from page content */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.program-card {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.program-card h3 {
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
}

.map-container {
    margin-top: 25px;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-form {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-about h3,
.footer-contact h3,
.footer-links h3 {
    color: #6AB43E;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #6AB43E;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .slide-content h2 { font-size: 2.2rem; }
    .slide-content p { font-size: 1.1rem; }
    .slide-content { padding: 30px 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive - Mobile Landscape / Small Tablets */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 5px; }
    .main-nav ul li a { display: block; padding: 12px 15px; }

    .slider { height: 50vh; min-height: 350px; }
    .slide-content { padding: 25px 30px; max-width: 100%; }
    .slide-content h2 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
    .slider-btn { width: 40px; height: 40px; font-size: 1rem; }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .tagline { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .feature-card { padding: 25px 20px; }
    .cta-section h2 { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .program-grid { grid-template-columns: 1fr; }
    .page-content { padding: 0 10px; }

    .header-container { padding: 10px 15px; }
    .logo img { height: 45px; }
}

/* Responsive - Mobile Portrait */
@media (max-width: 480px) {
    .slider { height: 45vh; min-height: 300px; }
    .slide-content { padding: 20px; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; margin-bottom: 15px; }
    .slide-content .btn-slider { padding: 10px 25px; font-size: 0.9rem; }
    .slider-dots .dot { width: 10px; height: 10px; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-icon { font-size: 2.5rem; }
    .btn-primary { padding: 12px 25px; font-size: 1rem; }
    .btn-large { padding: 14px 30px; font-size: 1.1rem; }

    .main-content > .container { padding: 30px 15px; }
    .section-title { font-size: 1.7rem; margin-bottom: 30px; }
    .cta-section { padding: 50px 15px; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section p { font-size: 1rem; }
    .features-section { padding: 50px 0; }

    .site-footer { padding: 30px 0 15px; }
    .logo-text { font-size: 1.5rem; }
}
