/* ============================================
   Monarca Montessori - Warm & Nurturing Theme
   Inspired by the monarch butterfly & child care
   ============================================ */

:root {
    /* Warm palette inspired by monarch butterfly */
    --primary-color: #E07B54;
    --secondary-color: #F4C675;
    --accent-color: #7BA68C;
    --dark-color: #4A4A68;
    --light-color: #FDF8F3;
    --white: #FFFFFF;
    /* Typography */
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
    /* Softer borders */
    --border-radius: 20px;
    --border-radius-sm: 12px;
    /* Soft shadows */
    --shadow-soft: 0 4px 20px rgba(224, 123, 84, 0.08);
    --shadow-hover: 0 8px 30px rgba(224, 123, 84, 0.12);
    --shadow-card: 0 6px 25px rgba(74, 74, 104, 0.06);
}


/* Base & smooth scrolling */

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-color);
    padding-top: 76px;
    background-color: var(--light-color);
}

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

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}


/* Hero Slider */

.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    padding: 0;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    object-position: center;
}

.hero-slider .carousel-item {
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224, 123, 84, 0.6) 0%, rgba(74, 74, 104, 0.5) 100%);
    pointer-events: none;
}

.hero-slider .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    bottom: auto;
    padding: 2rem;
    text-align: center;
}

.hero-slider .carousel-caption.hero-caption h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    color: white;
}

.hero-slider .carousel-caption.hero-caption .lead {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.4);
    color: white;
    opacity: 0.98;
}

.hero-slider .carousel-caption.hero-caption .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-soft);
}

.hero-slider .carousel-caption.hero-caption .btn-primary:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}


/* Hero slider gradient fade to content */

.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--light-color), rgba(253, 248, 243, 0));
    pointer-events: none;
    z-index: 2;
}


/* Carousel controls - warm styling */

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 4rem;
    height: 4rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: white;
    opacity: 1;
}

.hero-slider .carousel-control-prev {
    left: 1.5rem;
}

.hero-slider .carousel-control-next {
    right: 1.5rem;
}

.hero-slider .carousel-indicators {
    bottom: 2rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators .active {
    background-color: white;
    transform: scale(1.2);
}


/* Navbar - Clean & warm */

.navbar {
    background: rgba(253, 248, 243, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(224, 123, 84, 0.06);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

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

.nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border-radius: var(--border-radius-sm);
    border: none;
    box-shadow: var(--shadow-card);
}

.dropdown-item:hover {
    background-color: rgba(224, 123, 84, 0.08);
    color: var(--primary-color);
}


/* Cards - Soft & inviting */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}


/* Buttons - Rounded & warm */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #d46a45);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 123, 84, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 123, 84, 0.4);
    background: linear-gradient(135deg, #d46a45, var(--primary-color));
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: rgba(224, 123, 84, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}


/* Form inputs - Soft borders */

.form-control {
    border: 2px solid #ebe5df;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(224, 123, 84, 0.15);
}


/* Animations */

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


/* Section styles */

section {
    padding: 100px 0;
    position: relative;
}

section.bg-light {
    background-color: rgba(253, 248, 243, 0.8) !important;
}

section h1,
section h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
}

section h2::after,
section h1::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section h2.text-center::after,
section h1.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}


/* Wave divider - decorative transition from hero */

.section-wave {
    margin-top: -50px;
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    margin-bottom: 60px;
}

.section-wave svg {
    width: calc(100% + 1.3px);
    height: 60px;
    display: block;
}

.section-wave .wave-fill {
    fill: var(--light-color);
}


/* Explore blocks - index page */

.explore-image {
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.explore-image img {
    transition: transform 0.5s ease;
    object-fit: cover;
}

.explore-image:hover img {
    transform: scale(1.03);
}


/* Responsive */

@media (max-width: 768px) {
    .section-wave {
        margin-top: -20px;
        margin-bottom: 30px;
    }
    .hero-slider .carousel-caption.hero-caption h1 {
        font-size: 2.5rem;
    }
    .hero-slider .carousel-caption.hero-caption .lead {
        font-size: 1.5rem;
    }
    .hero-slider .carousel-item img {
        height: 90vh;
    }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 3rem;
        height: 3rem;
    }
    .hero-slider .carousel-control-prev {
        left: 0.5rem;
    }
    .hero-slider .carousel-control-next {
        right: 0.5rem;
    }
    section {
        padding: 60px 0;
    }
}


/* Reveal animations */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Content boxes - About, Programs */

.content-box {
    background: var(--white);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.6rem;
}

.check-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}


/* Staff profile */

.staff-profile {
    background: var(--white);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-profile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.staff-image-container {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.staff-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.staff-image-container:hover img {
    transform: scale(1.03);
}


/* Section titles - centered underline */

section h1::after,
section h2::after {
    left: 50%;
    transform: translateX(-50%);
}


/* YouTube video */

.ratio {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius-sm);
}

.ratio:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .staff-profile {
        text-align: center;
    }
    .staff-image-container {
        max-width: 300px;
        margin: 0 auto;
    }
}


/* Curriculum & Program cards */

.curriculum-card,
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.curriculum-card:hover,
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.curriculum-image,
.program-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.curriculum-image img,
.program-image img {
    transition: transform 0.5s ease;
}

.curriculum-image:hover img,
.program-image:hover img {
    transform: scale(1.05);
}

.session-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
}

.session-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.session-card h5 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}


/* Blockquote - Maria Montessori */

.blockquote {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, #C46B4A 0%, #A85A3D 50%, #8B4A30 100%);
    border-radius: var(--border-radius);
    border: none;
    color: white;
}

.blockquote p {
    color: white;
}

.blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: Georgia, serif;
}

.blockquote-footer {
    color: rgba(255, 255, 255, 0.95);
}

.mission-vision {
    position: relative;
    padding-top: 2rem;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.camp-info {
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}


/* Summer Camp - vertical video */

.camp-video-wrapper {
    min-height: 280px;
}

.camp-video {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

@media (min-width: 992px) {
    .camp-video-wrapper {
        min-height: 100%;
    }
    .camp-video {
        max-height: 100%;
    }
}


/* List styles */

.list-unstyled strong {
    color: var(--primary-color);
}


/* Schedule info */

.schedule-info {
    background: rgba(224, 123, 84, 0.05) !important;
    border-radius: var(--border-radius);
}


/* Admission page */

.steps-container {
    position: relative;
    padding: 2rem 0;
}

.step-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(224, 123, 84, 0.3);
}

.step-content {
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.4;
}

.step-item:last-child .step-content::before {
    display: none;
}

.checklist {
    max-width: 800px;
    margin: 0 auto;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(253, 248, 243, 0.8);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 123, 84, 0.1);
}

.checklist-item:hover {
    transform: translateX(8px);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.checklist-item i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.social-share {
    position: relative;
    padding-top: 2rem;
}

.social-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

@media (max-width: 768px) {
    .step-item {
        padding-left: 3rem;
    }
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    .step-content::before {
        left: -1.5rem;
    }
}


/* Contact page */

.contact-header {
    padding-top: 120px;
    background: linear-gradient(135deg, rgba(224, 123, 84, 0.08), rgba(244, 198, 117, 0.1));
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(224, 123, 84, 0.25);
}

.icon-circle i {
    font-size: 26px;
    color: white;
}

.info-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.map-container {
    position: relative;
    height: 450px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.form-container {
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(224, 123, 84, 0.15);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(224, 123, 84, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(224, 123, 84, 0.15);
}

.accordion-item {
    border: 1px solid rgba(224, 123, 84, 0.15);
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white);
}

@media (max-width: 768px) {
    .contact-header {
        padding-top: 100px;
    }
    .info-card {
        margin-bottom: 1rem;
    }
    .map-container {
        height: 300px;
    }
}


/* Footer - Warm terracotta */

footer {
    background: linear-gradient(135deg, #8B5A3C 0%, #6B4433 50%, #5A3828 100%) !important;
    color: var(--light-color);
    padding: 2.5rem 0 !important;
}

footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

footer p {
    margin: 0;
    opacity: 0.95;
}


/* Footer accreditation logos */

.footer-accreditation-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .footer-accreditation-img {
        height: 56px;
    }
}