/* Preschool Theme Variables */
:root {
    --primary-orange: #FF7A45;
    --mint-green: #6FD3C8;
    --sky-blue: #4DA3FF;
    --lemon-yellow: #FFD54F;
    --soft-purple: #8B7CF6;
    --bg-warm-white: #FFF8F3;
    --text-dark: #2D3748;
    --border-radius-lg: 30px;
    --border-radius-md: 20px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --font-heading: 'Fredoka', cursive;
    --font-body: 'Poppins', sans-serif;
}

/* Global Reset & Typography */
body {
    background-color: var(--bg-warm-white) !important;
    font-family: var(--font-body) !important;
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.menu-title {
    font-family: var(--font-heading) !important;
    font-weight: 600;
}

/* Rounded Corners & Softening */
.btn {
    border-radius: 50px !important;
    /* Pill shape */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-control {
    border-radius: 25px !important;
    padding: 12px 20px;
    border: 2px solid #E2E8F0;
    background-color: #FFFFFF;
}

.form-control:focus {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.1);
}

.rounded {
    border-radius: var(--border-radius-md) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* Card Styling Override */
.card,
.service-item,
.facility-item,
.classes-item,
.team-item,
.bg-light {
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-soft);
    border: none;
    overflow: hidden;
}

/* Ensure bg-light is white in our warm theme for contrast or keep it light gray but rounded */
.bg-light {
    background-color: #FFFFFF !important;
}

/* Utility Animations */
.hover-pop:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Navbar Tweaks */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 2px solid rgba(255, 122, 69, 0.1);
    /* Subtle primary color border */
}

.navbar .navbar-brand h1 {
    color: var(--primary-orange) !important;
    font-size: 2rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-orange);
    background: rgba(255, 122, 69, 0.1);
}

.navbar-toggler {
    border: none;
    background-color: rgba(255, 122, 69, 0.1);
    border-radius: 15px;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-orange);
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 20px !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 15px !important;
    /* Spacing from nav item */
}

.dropdown-item {
    border-radius: 10px;
    padding: 8px 15px;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(77, 163, 255, 0.1);
    /* Sky blue hover */
    color: var(--sky-blue);
}

/* Primary Color Overrides */
.text-primary {
    color: var(--primary-orange) !important;
}

.bg-primary {
    background-color: var(--primary-orange) !important;
}

.btn-primary {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

/* Custom Text Colors for Multi-color Theme */
.text-mint {
    color: var(--mint-green) !important;
}

.bg-mint {
    background-color: var(--mint-green) !important;
}

.text-blue {
    color: var(--sky-blue) !important;
}

.bg-blue {
    background-color: var(--sky-blue) !important;
}

.text-yellow {
    color: var(--lemon-yellow) !important;
}

.bg-yellow {
    background-color: var(--lemon-yellow) !important;
}

.text-purple {
    color: var(--soft-purple) !important;
}

.bg-purple {
    background-color: var(--soft-purple) !important;
}


/* Hero Section */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(45, 55, 72, 0.4), rgba(45, 55, 72, 0.1));
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    /* Taller wave */
}

.hero-wave .shape-fill {
    fill: var(--bg-warm-white);
}

.owl-prev,
.owl-next {
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    background: var(--primary-orange) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-prev:hover,
.owl-next:hover {
    background: var(--sky-blue) !important;
}

/* Bootstrap Color Mappings */
.bg-success {
    background-color: var(--mint-green) !important;
}

.text-success {
    color: var(--mint-green) !important;
}

.bg-warning {
    background-color: var(--lemon-yellow) !important;
}

.text-warning {
    color: orangered !important;
    /* improved contrast */
}

.bg-info {
    background-color: var(--sky-blue) !important;
}

.text-info {
    color: var(--sky-blue) !important;
}

/* Facilities Section */
.facility-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 30px !important;
    transition: all 0.5s ease;
    border: 2px dashed rgba(0, 0, 0, 0.05);
}

.facility-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-style: solid;
    border-color: var(--primary-orange);
}

.facility-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hide the weird span circles from original template if possible, or style them out */
.facility-icon span {
    display: none;
}

/* Classes Book Style */
.classes-item {
    background: transparent !important;
    box-shadow: none !important;
    /* Remove default card shadow to apply custom book shadow */
    perspective: 1000px;
}

.classes-item .bg-light {
    background-color: transparent !important;
}

.classes-item img {
    border-radius: 10px 20px 20px 10px !important;
    /* Book radii */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-left: 12px solid #ddd;
    /* Spine base */
}

/* Hover: Open book effect */
.classes-item:hover img {
    transform: rotateY(-10deg) translateX(-5px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.classes-item .d-block.h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-top: 15px;
}

/* Teacher CTA Section */
.call-to-action-bg {
    background-color: var(--soft-purple) !important;
    position: relative;
    overflow: hidden;
}

.call-to-action-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.call-to-action-bg .h-100 {
    color: white !important;
}

.call-to-action-bg h1,
.call-to-action-bg p {
    color: white !important;
}

.call-to-action-bg .btn {
    background: white !important;
    color: var(--soft-purple) !important;
}

/* Teacher & Gallery Cards */
.team-item {
    background: white;
    padding: 20px;
    text-align: center;
}

.team-item img {
    border: 5px solid var(--bg-warm-white);
    box-shadow: var(--shadow-soft);
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow-soft);
}

/* Blog Cards */
.blog-item {
    border-radius: 20px !important;
    background: white !important;
}

.blog-item .blog-img {
    border-radius: 20px 20px 0 0;
}

/* Footer Redesign */
.footer {
    background: #2D3748 !important;
    /* Soft dark blue-gray */
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer .text-white {
    font-family: var(--font-heading);
    color: var(--lemon-yellow) !important;
}

.footer .btn-link {
    font-family: var(--font-body);
}

.footer .btn-social {
    border-radius: 50%;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.footer .btn-social:hover {
    background: var(--primary-orange);
    color: white;
}

/* Newsletter Input */
.footer .form-control.bg-transparent {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer .form-control.bg-transparent::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Page Enhancements */
.contact-form .form-control {
    border: 2px solid #E2E8F0;
    padding: 15px;
    background: #fff;
    border-radius: 20px !important;
}

.contact-form .form-control:focus {
    border-color: var(--mint-green);
    box-shadow: 0 0 0 4px rgba(111, 211, 200, 0.2);
}

.contact-info-card {
    background: white !important;
    border-radius: 30px !important;
    box-shadow: var(--shadow-soft);
    padding: 40px !important;
    border: 1px solid #eee;
}

.contact-info-card .bg-white {
    background-color: var(--bg-warm-white) !important;
}

.contact-info-card i {
    font-size: 1.5rem;
}