/**
 * Blue Sky School — Blue, White & Gold Theme
 * Loaded after style.css for extra polish and CMS form styling.
 */

:root {
    --bs-blue-dark: #1e3a5f;
    --bs-blue: #244a7c;
    --bs-blue-light: #3a6ea8;
    --bs-gold: #c9a227;
    --bs-gold-light: #dbb94a;
    --bs-gold-dark: #a6851f;
    --bs-white: #ffffff;
    --bs-off-white: #f8fafc;
    --bs-text: #4a5568;
}

body.boxed_wrapper {
    background: var(--bs-white);
    color: var(--bs-text);
}

/* Header — blue bar, gold accents */
.main-header .header-bottom {
    background: var(--bs-white);
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
}

/* Logo sizing — uploaded logos must not overflow the header */
.main-header .logo-box {
    max-width: 240px;
    flex-shrink: 0;
}

.main-header .logo-box .logo {
    padding: 10px 0;
    line-height: 0;
}

.main-header .logo-box .logo img,
.main-header .logo-box .logo a img {
    max-height: 70px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Hide Kidko template logo decoration — breaks custom logos */
.main-header .logo-box .logo:before,
.main-footer .footer-bottom .right-content .footer-logo:before {
    display: none !important;
}

.sticky-header .logo-box {
    max-width: 170px;
    margin-top: 8px;
}

.sticky-header .logo-box img {
    max-height: 48px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.main-footer .footer-bottom .right-content .footer-logo {
    margin-right: 24px;
    max-width: 200px;
}

.main-footer .footer-bottom .right-content .footer-logo img {
    max-height: 44px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media only screen and (max-width: 991px) {
    .main-header .logo-box {
        max-width: 100%;
    }

    .main-header .logo-box .logo img,
    .main-header .logo-box .logo a img {
        max-height: 56px;
        max-width: 200px;
        margin: 0 auto;
    }
}

.main-menu .navigation > li > a {
    color: var(--bs-blue-dark);
    font-weight: 600;
}

.main-menu .navigation > li.current > a,
.main-menu .navigation > li:hover > a {
    color: var(--bs-gold);
}

.sticky-header {
    background: var(--bs-white);
    box-shadow: 0 2px 16px rgba(30, 58, 95, 0.12);
}

/* Hero slider — blue overlay in style.css */

.main-slider .content-box h3 {
    color: var(--bs-gold-light);
}

.main-slider .content-box h1 {
    color: var(--bs-white);
}

/* Section titles — gold label, blue heading */
.sec-title h5 {
    color: var(--bs-gold);
}

.sec-title h1 {
    color: var(--bs-blue-dark);
}

/* Buttons — gold with blue hover (from style.css) */
.theme-btn {
    background-color: var(--bs-gold);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.theme-btn:before {
    background-color: var(--bs-blue-dark);
}

.theme-btn:hover {
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35);
}

/* CTA banner — gradient set in style.css */

.cta-section .content-box h3 {
    color: var(--bs-gold-light);
}

/* Footer */
.main-footer .footer-top {
    background: linear-gradient(180deg, var(--bs-blue-dark) 0%, #152a47 100%);
}

.main-footer .footer-top .link-widget .widget-content li a:hover,
.main-footer .footer-top .contact-widget .info-list li a:hover {
    color: var(--bs-gold-light);
}

.main-footer .footer-bottom {
    background: #ffffff;
    border-top: 1px solid #e4e9f0;
}

.main-footer .footer-bottom .left-content .copyright,
.main-footer .footer-bottom .left-content .copyright a {
    color: var(--bs-blue-dark) !important;
}

.main-footer .footer-bottom .footer-social li a {
    background: var(--bs-blue-dark) !important;
    color: #fff !important;
}

.footer-social li a:hover {
    background: var(--bs-gold) !important;
    color: var(--bs-blue-dark) !important;
}

/* Scroll to top */
.scroll-top {
    background: var(--bs-gold);
}

.scroll-top:hover {
    background: var(--bs-blue-dark);
}

/* Service / program cards */
.service-block-one .inner-box:hover .icon-box {
    background: var(--bs-gold);
}

.inner-block .lower-content .price {
    color: var(--bs-gold);
}

/* Event date badge */
.event-block-one .date {
    background: var(--bs-gold);
    color: var(--bs-white);
}

/* Testimonial stars */
.testimonial-block .rating li i {
    color: var(--bs-gold);
}

/* Form success banner */
.form-success-banner {
    background: var(--bs-blue-dark);
    border-bottom: 3px solid var(--bs-gold);
}

/* Tour & admission forms */
.tour-intro {
    background: var(--bs-white);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-left: 4px solid var(--bs-gold);
}

.tour-intro h3 {
    color: var(--bs-blue-dark);
}

.tour-intro .tour-features li::before {
    color: var(--bs-gold);
}

.admission-step {
    border-top: 3px solid var(--bs-gold);
}

.admission-step .step-num {
    background: var(--bs-blue-dark);
    border: 2px solid var(--bs-gold);
}

.admission-step h4 {
    color: var(--bs-blue-dark);
}

.form-subsection h4 {
    color: var(--bs-blue-dark);
    border-bottom-color: var(--bs-gold);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(201, 162, 39, 0.35);
}

.contact-form-section .contact-form .form-group select:focus,
.contact-form-section .contact-form .form-group input:focus,
.contact-form-section .contact-form .form-group textarea:focus,
.contact-form-section .contact-form .form-group input[type="date"]:focus,
.contact-form-section .contact-form .form-group input[type="tel"]:focus,
.contact-form-section .contact-form .form-group input[type="number"]:focus {
    border-color: var(--bs-gold);
}

.contact-form-section .form-actions .theme-btn.btn-reset {
    background: var(--bs-blue);
}

.admission-form-section {
    background: var(--bs-off-white) !important;
}

/* Owl carousel nav */
.owl-nav button {
    background: var(--bs-gold) !important;
    color: var(--bs-white) !important;
}

.owl-nav button:hover {
    background: var(--bs-blue-dark) !important;
}

/* Page title banner */
.page-title {
    background: linear-gradient(135deg, var(--bs-blue-dark) 0%, var(--bs-blue) 100%);
}

.page-title h1 {
    color: var(--bs-white);
}

.breadcrumb li,
.breadcrumb li a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb li a:hover {
    color: var(--bs-gold-light);
}

.google-map-section #contact-google-map iframe,
.contact-info-section #contact-google-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* Map placed beside the Get In Touch info */
.contact-info-section .contact-info-map-row .info-column {
    text-align: left;
}

.contact-info-section .contact-info-map-row .single-info-box {
    margin-bottom: 25px;
}

.contact-info-section .contact-info-map-row .single-info-box:last-child {
    margin-bottom: 0;
}

.contact-info-section .map-column {
    margin-top: 10px;
}

.contact-info-section .map-column .google-map-area,
.contact-info-section .map-column #contact-google-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .contact-info-section .map-column {
        margin-top: 40px;
    }
}

.contact-info-section .map-directions-link {
    margin-top: 12px;
    margin-bottom: 0;
}

.contact-info-section .map-directions-link a {
    color: var(--bs-blue);
    font-weight: 600;
}

.contact-info-section .map-directions-link a:hover {
    color: var(--bs-gold);
}

/* ---- News strip (after hero) ---- */
.news-home-section {
    background: var(--bs-off-white, #f8fafc);
}

.news-home-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.news-home-card .image-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-home-card .lower-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-home-badge {
    display: inline-block;
    background: var(--bs-gold, #c9a227);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.news-home-card .date {
    font-size: 13px;
    color: var(--bs-blue-light, #3a6ea8);
    margin-bottom: 6px;
}

.news-home-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-home-card h3 a {
    color: var(--bs-blue-dark, #1e3a5f);
}

.news-home-card .text {
    font-size: 14px;
    color: var(--bs-text, #4a5568);
    flex: 1;
}

.news-home-card .read-more {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-blue, #244a7c);
}

/* ---- Event detail page ---- */
.event-page-header .header-bottom {
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.event-detail-section .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--bs-blue, #244a7c);
    font-weight: 600;
}

.event-detail-section .event-hero-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
}

.event-detail-section .event-details-text p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--bs-text, #4a5568);
}

.event-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.event-media-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.event-media-item img,
.event-media-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.event-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s;
}

.event-media-link:hover .event-media-overlay {
    opacity: 1;
}

.event-sidebar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
}

.event-sidebar .theme-btn.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.event-info-list li {
    margin-bottom: 14px;
    list-style: none;
}

.event-info-list strong {
    display: block;
    color: var(--bs-blue-dark, #1e3a5f);
}

/* Single-page site */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

.pillar-block .inner-box,
.value-block .inner-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    height: 100%;
    text-align: center;
}

.pillar-icon,
.value-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.pillar-block h3,
.value-block h3 {
    color: var(--bs-blue-dark);
    margin-bottom: 10px;
}

.gallery-page-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #5a6a7e;
}

.gallery-section-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
    padding: 0;
}

.gallery-section-nav a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--bs-blue-dark);
    color: #fff;
    font-weight: 600;
}

.gallery-section-nav a:hover {
    background: var(--bs-gold);
    color: var(--bs-blue-dark);
}

.gallery-page-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

/* Deeper template color coverage controlled by CMS Appearance settings */
.sec-title h2,
.classes-section .sec-title h2,
.service-section .sec-title h2,
.event-section .sec-title h2,
.our-teachers .sec-title h2,
.contact-info-section .sec-title h2,
.contact-form-section .sec-title h2,
.gallery-section .sec-title h2,
.faq-section .sec-title h2,
.about-section .content-box h1,
.about-section .content-box h2,
.about-section .content-box h3,
.inner-block .lower-content h3,
.service-block-one .inner-box h3,
.event-block-one .content-box h3,
.teachers-block-one .lower-content h3,
.contact-info-section .single-info-box h3,
.accordion-box .block .acc-btn h4,
.album-title {
    color: var(--bs-blue-dark) !important;
}

.about-section .content-box .text,
.classes-section .lower-content .text,
.service-block-one .inner-box .text,
.event-block-one .content-box .text,
.teachers-block-one .lower-content .designation,
.contact-info-section .single-info-box p,
.faq-section .accordion-box .block .content .text,
.gallery-section-desc,
.collage-overlay span {
    color: var(--bs-text) !important;
}

.main-header .header-top,
.sticky-header .main-menu .navigation > li.current > a,
.sticky-header .main-menu .navigation > li:hover > a,
.main-menu .navigation > li > ul > li:hover > a,
.main-menu .navigation > li > .megamenu li:hover > a,
.footer-top .widget-title h3,
.main-footer .footer-top .about-widget .text,
.main-footer .footer-top .contact-widget .info-list li,
.main-footer .footer-top .contact-widget .info-list li a,
.main-footer .footer-top .link-widget .widget-content li a {
    color: var(--bs-white);
}

.main-menu .navigation > li > ul,
.main-menu .navigation > li > .megamenu {
    border-top-color: var(--bs-gold);
}

.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > .megamenu li > a {
    color: var(--bs-blue-dark);
}

.main-menu .navigation > li > ul > li:hover,
.main-menu .navigation > li > .megamenu li:hover {
    background: rgba(201, 162, 39, 0.08);
}

.service-block-one .inner-box .icon-box,
.classes-section .inner-block .lower-content .link-btn a,
.contact-info-section .single-info-box .icon-box,
.faq-section .accordion-box .block .acc-btn .icon-outer,
.feature-section .inner-content .single-item .icon-box {
    color: var(--bs-blue-dark);
}

.service-block-one .inner-box:hover,
.pillar-block .inner-box:hover,
.value-block .inner-box:hover,
.admission-step:hover,
.tour-intro:hover {
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.14);
}

.classes-section .inner-block:hover .lower-content,
.event-block-one:hover,
.teachers-block-one:hover .lower-content,
.contact-info-section .single-info-box:hover {
    border-color: rgba(201, 162, 39, 0.45);
}

.classes-section .inner-block .lower-content .link-btn a:hover,
.contact-info-section .single-info-box .icon-box,
.faq-section .accordion-box .block .acc-btn.active .icon-outer,
.feature-section .inner-content .single-item:hover .icon-box,
.gallery-block .overlay-box,
.collage-overlay {
    background: var(--bs-gold) !important;
    color: var(--bs-white) !important;
}

.classes-section .inner-block .lower-content .link-btn a:hover i,
.gallery-block .overlay-box a,
.collage-overlay i,
.collage-overlay span {
    color: var(--bs-white) !important;
}

.contact-form-section .contact-form .form-group input,
.contact-form-section .contact-form .form-group textarea,
.contact-form-section .contact-form .form-group select {
    color: var(--bs-text);
    border-color: rgba(30, 58, 95, 0.14);
}

.contact-form-section .contact-form .form-group input::placeholder,
.contact-form-section .contact-form .form-group textarea::placeholder {
    color: rgba(74, 85, 104, 0.72);
}

.preloader-close,
.search-box-btn,
.nav-toggler,
.mobile-nav-toggler {
    color: var(--bs-blue-dark) !important;
}

.preloader-close:hover,
.search-box-btn:hover,
.nav-toggler:hover,
.mobile-nav-toggler:hover {
    color: var(--bs-gold) !important;
}

.main-slider .owl-nav button,
.main-slider .owl-dots .owl-dot.active span,
.main-slider .owl-dots .owl-dot:hover span {
    background: var(--bs-gold) !important;
}

.main-slider .owl-nav button:hover {
    background: var(--bs-blue-dark) !important;
}

.cta-section,
.feature-section,
.event-section {
    background-color: var(--bs-blue-dark);
}
