/* ============================================
   Circle of Life Edu-Care – Site Stylesheet
   Font: Open Sans | Colours: #7494da (blue), #222 (text), #fff (bg)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ---- STICKY FOOTER ---- */
html, body {
    height: 100%;
}
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-body main {
    flex: 1 0 auto;
}
.cole-footer {
    flex-shrink: 0;
}

:root {
    --blue:        #7494da;
    --blue-dark:   #5a78c4;
    --blue-light:  #b5c8f0;
    --blue-pale:   #eef3fc;
    --text:        #222222;
    --text-light:  #555555;
    --white:       #ffffff;
    --bg:          #ffffff;
    --radius:      8px;
    --shadow:      0 2px 16px rgba(116,148,218,0.13);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    margin: 0; padding: 0;
}

/* ---- NAVBAR ---- */
.cole-navbar {
    background: var(--blue);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    min-height: 70px;
    position: relative;
    z-index: 1000;
}
.cole-navbar .navbar-brand { padding: 8px 15px; height: auto; }
.cole-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 48px; width: auto; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.4); }
.nav-logo-placeholder {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
}
.brand-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0.3px;
}
.brand-name small { font-size: 12px; font-weight: 600; opacity: 0.85; }

.cole-navbar .nav > li > a {
    color: rgba(255,255,255,0.92) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 24px 14px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.3px;
}
.cole-navbar .nav > li > a:hover,
.cole-navbar .nav > li.active > a {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 4px;
}
.cole-navbar .navbar-toggle { border-color: rgba(255,255,255,0.5); margin-top: 17px; }
.cole-navbar .navbar-toggle .icon-bar { background: #fff; }

/* ---- BANNER CAROUSEL ---- */
.banner-section { position: relative; }
.banner-carousel { overflow: hidden; }
.banner-carousel .carousel-inner { height: 420px; overflow: hidden; }
.banner-carousel .carousel-inner .item {
    height: 420px;
    background: var(--blue-dark);
    text-align: center;
    overflow: hidden;
}
.banner-carousel .carousel-inner .item img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
}
.banner-carousel .carousel-inner .item a {
    display: block;
    height: 420px;
    overflow: hidden;
}
.banner-carousel .carousel-inner .item a img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
}
.carousel-control { background: none !important; }
.carousel-indicators li { border-color: #fff; }
.carousel-indicators .active { background-color: #fff; }
.banner-spec {
    background: var(--blue-pale);
    text-align: center;
    padding: 5px;
    font-size: 11px;
    color: var(--text-light);
}

/* ---- SECTIONS ---- */
.section-pad { padding: 60px 0; }
.section-pad-sm { padding: 36px 0; }
.section-blue-bg { background: var(--blue); color: #fff; }
.section-pale { background: var(--blue-pale); }
.section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 10px;
}
.section-divider {
    width: 48px; height: 4px;
    background: var(--blue);
    border-radius: 2px;
    margin: 0 0 24px 0;
}
.section-divider.center { margin: 0 auto 24px; }

/* ---- HOME INFO SECTION ---- */
.info-section { padding: 60px 0; background: #fff; }
.info-image-wrap {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    line-height: 0; /* removes inline-block gap */
}
.info-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: var(--radius);
}
.info-content h2 { color: var(--blue-dark); font-family: 'Nunito', sans-serif; font-weight: 800; margin-bottom: 8px; }
.info-content p { color: var(--text-light); line-height: 1.8; }

/* ---- CONTACT SECTION ---- */
.contact-section { background: var(--blue-pale); padding: 60px 0; }
.contact-form-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 32px;
}
.contact-form-card .form-control {
    border-radius: 4px; border: 1.5px solid #d6e0f5;
    font-family: 'Open Sans', sans-serif;
    padding: 10px 14px; height: auto;
    transition: border-color 0.2s;
}
.contact-form-card .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(116,148,218,0.15); outline: none; }
.btn-cole {
    background: var(--blue); color: #fff; border: none;
    border-radius: 4px; padding: 11px 28px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600; font-size: 15px;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
}
.btn-cole:hover { background: var(--blue-dark); color: #fff; }
.btn-cole:active { transform: scale(0.98); }
.btn-cole-outline {
    background: transparent; color: var(--blue);
    border: 2px solid var(--blue); border-radius: 4px;
    padding: 9px 24px; font-weight: 600;
    transition: all 0.2s; cursor: pointer;
}
.btn-cole-outline:hover { background: var(--blue); color: #fff; }

.contact-info-block { margin-bottom: 20px; }
.contact-info-block p { margin: 4px 0; color: var(--text-light); }
.contact-info-block i { color: var(--blue); margin-right: 8px; width: 18px; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; }

/* ---- ABOUT ---- */
.about-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 32px;
    border-top: 4px solid var(--blue);
    height: 100%; transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-4px); }
.about-card .card-icon { font-size: 36px; color: var(--blue); margin-bottom: 16px; }
.about-card h3 { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--blue-dark); margin-bottom: 12px; }

/* ---- TEAM ---- */
.team-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 0;
    text-align: center; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 28px;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(116,148,218,0.22); }

/* Photo wrapper - crops to a consistent square regardless of portrait/landscape */
.team-photo-wrap {
    width: 100%;
    padding-top: 100%; /* 1:1 square */
    position: relative;
    overflow: hidden;
    background: var(--blue-pale);
}
.team-photo {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top; /* show face, not feet */
    display: block;
    transition: transform 0.3s;
}
.team-card:hover .team-photo { transform: scale(1.04); }

.team-placeholder {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: var(--blue-pale);
}
.team-placeholder i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px; color: var(--blue-light);
}
.team-info { padding: 20px; }
.team-info h4 { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.team-info .job-title { color: var(--blue); font-weight: 600; font-size: 13px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-info p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* ---- FORMS PAGE ---- */
.forms-table { width: 100%; border-collapse: collapse; }
.forms-table th { background: var(--blue); color: #fff; padding: 12px 16px; font-weight: 600; }
.forms-table td { padding: 12px 16px; border-bottom: 1px solid #eef3fc; vertical-align: middle; }
.forms-table tr:hover td { background: var(--blue-pale); }
.forms-table .download-link { color: var(--blue); font-weight: 600; }
.forms-table .download-link i { margin-right: 6px; }

/* ---- ACTIVITIES ---- */
.activity-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    margin-bottom: 28px; display: flex;
    flex-direction: column;
}
.activity-img { width: 100%; height: 200px; object-fit: cover; }
.activity-img-placeholder {
    width: 100%; height: 200px; background: var(--blue-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--blue-light);
}
.activity-body { padding: 24px; flex: 1; }
.activity-body h3 { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--blue-dark); margin: 0 0 10px; }
.activity-body p { color: var(--text-light); line-height: 1.7; }
.activity-link { font-weight: 600; color: var(--blue); margin-top: 12px; display: inline-block; }

/* ---- DAILY ROUTINES ---- */
.routine-block {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 28px; overflow: hidden;
}
.routine-block .routine-header {
    background: var(--blue); color: #fff;
    padding: 16px 24px; font-family: 'Nunito', sans-serif;
    font-size: 20px; font-weight: 800;
}
.routine-block .routine-body { padding: 24px; }
.routine-block .routine-img {
    width: 100%; max-height: 260px; object-fit: cover;
    border-radius: 4px; margin-bottom: 16px;
}
.timetable { width: 100%; border-collapse: collapse; font-size: 14px; }
.timetable th { background: var(--blue-pale); color: var(--blue-dark); padding: 9px 12px; }
.timetable td { padding: 8px 12px; border-bottom: 1px solid #eef3fc; }
.routine-desc { color: var(--text-light); line-height: 1.7; }
.routine-desc table { width: 100%; border-collapse: collapse; }
.routine-desc table th { background: var(--blue-pale); color: var(--blue-dark); padding: 9px 12px; }
.routine-desc table td { padding: 8px 12px; border-bottom: 1px solid #eef3fc; }

/* ---- FAQS ---- */
.faq-item {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 14px;
    border-left: 4px solid var(--blue); overflow: hidden;
}
.faq-question {
    padding: 18px 22px; cursor: pointer;
    font-weight: 600; color: var(--text);
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--blue-pale); }
.faq-question i { color: var(--blue); transition: transform 0.3s; }
.faq-question.open i { transform: rotate(180deg); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; color: var(--text-light); line-height: 1.7; }
.faq-answer.open { max-height: 600px; padding: 0 22px 18px; }

/* ---- PAGE HERO ---- */
.page-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 48px 0 40px;
    color: #fff;
    text-align: center;
}
.page-hero h1 { font-family: 'Nunito', sans-serif; font-size: 36px; font-weight: 800; margin: 0 0 8px; }
.page-hero p { font-size: 16px; opacity: 0.88; margin: 0; }
.breadcrumb-cole { background: transparent; padding: 6px 0 0; margin: 0; }
.breadcrumb-cole > li + li::before { color: rgba(255,255,255,0.6); }
.breadcrumb-cole a { color: rgba(255,255,255,0.75); }
.breadcrumb-cole .active { color: #fff; }

/* ---- INTRO BLOCK ---- */
.intro-block {
    background: var(--blue-pale); border-radius: var(--radius);
    padding: 28px 32px; margin-bottom: 36px;
    border-left: 5px solid var(--blue);
}
.intro-block h2 { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--blue-dark); margin: 0 0 10px; }
.intro-block p { color: var(--text-light); margin: 0; line-height: 1.7; }

/* ---- FOOTER ---- */
.cole-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.85);
    padding: 24px 0;
    font-size: 14px;
}
.footer-copy { margin: 0; line-height: 40px; }
.social-links { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 40px; }
.social-link {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.social-link:hover { background: rgba(255,255,255,0.3); color: #fff; transform: translateY(-2px); }

/* ---- ALERTS ---- */
.alert-cole-success {
    background: #e8f5e9; border-left: 4px solid #4caf50;
    color: #2e7d32; border-radius: var(--radius); padding: 16px 20px;
}

/* ---- UTILITIES ---- */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ---- RESPONSIVE ---- */
/* ---- MOBILE NAVBAR FIX ---- */
@media (max-width: 767px) {
    /* Force navbar collapse to show properly */
    .cole-navbar .navbar-collapse {
        background: #5a78c4;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 0;
        max-height: none !important;
    }
    .cole-navbar .navbar-nav {
        margin: 0;
        width: 100%;
    }
    .cole-navbar .navbar-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .cole-navbar .navbar-nav > li > a {
        padding: 14px 20px !important;
        font-size: 14px !important;
        color: #fff !important;
        display: block;
        width: 100%;
    }
    .cole-navbar .navbar-nav > li > a:hover,
    .cole-navbar .navbar-nav > li.active > a {
        background: rgba(255,255,255,0.15) !important;
        color: #fff !important;
    }
    .cole-navbar .navbar-toggle {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .banner-carousel .carousel-inner,
    .banner-carousel .carousel-inner .item,
    .banner-carousel .carousel-inner .item a { height: 220px; }
    .banner-carousel .carousel-inner .item img,
    .banner-carousel .carousel-inner .item a img { height: 220px; }
    .section-pad { padding: 36px 0; }
    .page-hero h1 { font-size: 26px; }
    .social-links { justify-content: flex-start; margin-top: 8px; }
    .cole-footer .text-right { text-align: left !important; }
    /* Team cards - 2 per row on mobile */
    .team-card { margin-bottom: 16px; }
}

/* ---- FAQ CATEGORY LAYOUT ---- */
.faq-category-block {
    margin-bottom: 40px;
}
.faq-category-title {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    background: var(--blue);
    padding: 12px 22px;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0;
}
.faq-category-title i {
    margin-right: 10px;
    opacity: 0.85;
    font-size: 16px;
}
.faq-category-items {
    border: 2px solid var(--blue-light);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}
.faq-item-flat {
    border-bottom: 1px solid var(--blue-pale);
    background: #fff;
}
.faq-item-flat:last-child {
    border-bottom: none;
}
.faq-question-flat {
    padding: 16px 22px;
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
    background: var(--blue-pale);
    border-left: 4px solid var(--blue);
}
.faq-question-flat i {
    color: var(--blue);
    margin-right: 10px;
    font-size: 14px;
}
.faq-answer-flat {
    padding: 16px 22px 18px 46px;
    color: var(--text-light);
    line-height: 1.8;
}
.faq-answer-flat p:last-child { margin-bottom: 0; }
