/**
 * Wippie & Snippie Preschool Custom Styles
 * A playful, modern design for a preschool website
 */

/* ===========================
   CSS Variables & Root Styles
   =========================== */
:root {
    --primary-color: #FF6B9D;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --success-color: #95E1D3;
    --info-color: #6C5CE7;
    --danger-color: #FF6B6B;
    --light-color: #F8F9FA;
    --dark-color: #2C3E50;
    --gray-color: #6C757D;

    --heading-font: 'Quicksand', sans-serif;
    --body-font: 'Open Sans', sans-serif;

    --border-radius: 15px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===========================
   Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Navigation Styles
   =========================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(78, 205, 196, 0.1);
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, #FFE5F1 0%, #E0F7F4 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 230, 109, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

.section-bg-light {
    background-color: #FAFAFA;
}

.section-bg-gradient {
    background: linear-gradient(135deg, #FFF5F8 0%, #F0FFFD 100%);
}

/* ===========================
   Card Styles
   =========================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.card-icon i {
    color: white;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-primary {
    background: linear-gradient(135deg, var(--primary-color), #FF8FB3);
}

.icon-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #6FE4DC);
}

.icon-accent {
    background: linear-gradient(135deg, var(--accent-color), #FFED8F);
}

.icon-success {
    background: linear-gradient(135deg, var(--success-color), #B1EFE4);
}

.icon-info {
    background: linear-gradient(135deg, var(--info-color), #8A7AED);
}

/* ===========================
   Who We Are Section
   =========================== */
.who-we-are .card {
    height: 100%;
    padding: 2rem;
}

.who-we-are .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===========================
   Ages Section
   =========================== */
.age-group {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.age-group:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.age-group h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.age-group .age-range {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* ===========================
   Times/Schedule Section
   =========================== */
.schedule-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.schedule-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.schedule-card h4 {
    margin-bottom: 1rem;
}

/* ===========================
   Programs & Gallery
   =========================== */
.program-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.program-card img {
    transition: var(--transition);
}

.program-card:hover img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.program-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    background: rgba(255, 107, 157, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ===========================
   Fees Table
   =========================== */
.fees-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.fees-table table {
    margin-bottom: 0;
}

.fees-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.fees-table th {
    padding: 1.25rem;
    border: none;
}

.fees-table td {
    padding: 1rem 1.25rem;
}

.fees-table tbody tr:nth-child(even) {
    background-color: #F8F9FA;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control, .form-select {
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-info-card h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-info-item a {
    color: white;
    text-decoration: underline;
}

.contact-info-item a:hover {
    opacity: 0.8;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* ===========================
   Decorative Elements
   =========================== */
.grass-border {
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L50,30 L100,0 L150,30 L200,0 L250,30 L300,0 L350,30 L400,0 L450,30 L500,0 L550,30 L600,0 L650,30 L700,0 L750,30 L800,0 L850,30 L900,0 L950,30 L1000,0 L1050,30 L1100,0 L1150,30 L1200,0 L1200,120 L0,120 Z" fill="%2395E1D3"/></svg>');
    background-size: cover;
    background-repeat: repeat-x;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.6;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 100px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    margin-top: 4rem;
}

.footer-heading {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: #BDC3C7;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #BDC3C7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    color: #BDC3C7;
}

.footer-contact i {
    margin-top: 3px;
    color: var(--accent-color);
}

.footer-contact a {
    color: #BDC3C7;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom p {
    color: #95A5A6;
    margin: 0;
}

.footer-link {
    color: #95A5A6;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* ===========================
   Utility Classes
   =========================== */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #6FE4DC);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 230, 109, 0.4);
    background: #FFD700;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--box-shadow);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

/* ===========================
   Language Toggle
   =========================== */
.lang-toggle {
    line-height: 1;
}

.lang-toggle .btn {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    transition: var(--transition);
}

.lang-toggle .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.lang-toggle .btn-outline-secondary {
    border-color: #dee2e6;
    color: var(--gray-color);
}

.lang-toggle .btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* On dark/gradient navbar backgrounds keep the toggle readable */
.navbar-scrolled .lang-toggle .btn-outline-secondary {
    border-color: #ced4da;
}

@media (max-width: 991px) {
    .lang-toggle {
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
    }
}

/* ===========================
   Admin Panel Base Styles
   =========================== */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark-color), #1a252f);
}

.admin-sidebar .nav-link {
    color: #BDC3C7;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
}

.admin-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.coverage-bar {
    height: 8px;
    border-radius: 100px;
}

.gallery-thumb-admin {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}
