/* Custom CSS for The Ankuran Public School - Play Group Theme */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #ff6b6b;      /* Playful Red/Pink */
    --secondary-color: #feca57;    /* Playful Yellow */
    --tertiary-color: #48dbfb;     /* Playful Light Blue */
    --quaternary-color: #1dd1a1;   /* Playful Mint Green */
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --text-muted: #747d8c;
    --soft-bg: #fff9f0;
}

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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--soft-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', cursive;
    color: var(--dark-color);
}

/* Navigation Enhancements */
.navbar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #ffffff !important;
}

.navbar-brand .fw-bold {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: var(--primary-color) !important;
    font-family: 'Baloo 2', cursive;
}

.nav-link {
    font-weight: 700;
    color: var(--dark-color) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px dashed var(--primary-color);
    padding-bottom: 0.2rem;
}

/* Top Bar */
.bg-topbar {
    background-color: var(--tertiary-color);
    color: #fff;
}

/* Carousel Enhancements */
.carousel {
    background-color: var(--soft-bg);
}

.carousel-caption {
    bottom: 5%;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem !important;
    border-radius: 20px;
    color: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    color: var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--tertiary-color);
    opacity: 1;
}

/* Badge Styles */
.badge {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 50px;
    font-family: 'Baloo 2', cursive;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.15) !important;
}

.card .card-body {
    padding: 2rem;
}

.card-img-top {
    border-bottom: 5px dashed var(--secondary-color);
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Hero Section */
.hero-carousel {
    min-height: 600px;
}

/* Buttons */
.btn {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    border: none;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary-custom:hover {
    background-color: #ff4757;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

.btn-warning-custom {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.4);
}

.btn-warning-custom:hover {
    background-color: #ffb142;
    color: var(--dark-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(254, 202, 87, 0.6);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Stats Section */
.bg-stats {
    background: linear-gradient(135deg, var(--quaternary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    border-radius: 30px;
    margin: 2rem 0;
}

.bg-stats .display-4 {
    font-family: 'Baloo 2', cursive;
    color: #fff;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* Background Colors for UI */
.bg-soft-blue { background-color: #e0f7fa !important; }
.bg-soft-pink { background-color: #fce4ec !important; }
.bg-soft-yellow { background-color: #fff8e1 !important; }
.bg-soft-green { background-color: #e8f5e9 !important; }

/* Text Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-tertiary-custom { color: var(--tertiary-color) !important; }

/* Display Classes */
.display-3, .display-4, .display-5 {
    font-weight: 700;
}

/* Icon Containers */
.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #ffffff !important;
    border-top: 5px dashed var(--tertiary-color);
    color: var(--dark-color) !important;
    padding-top: 4rem;
}

footer h5, footer h6 {
    color: var(--primary-color) !important;
}

footer p, footer li a {
    color: var(--text-muted) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

footer hr {
    border-color: #eee;
}

/* Image Utilities */
.img-rounded {
    border-radius: 20px;
}

.object-fit-cover {
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 1rem !important;
        width: 90%;
        bottom: 2%;
    }
    .display-3 { font-size: 2.2rem; }
    .display-5 { font-size: 1.8rem; }
}

/* Playful Shapes */
.shape-blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}
