/* FOUNTAIN SCH WEBSITE – theme layer on top of the Kider template.
   Colours come from Admin → Settings and are injected as CSS variables (--primary, --accent, --dark). */
:root {
    --primary: #1B5FAD;
    --accent: #F4B400;
    --dark: #0E2A47;
    --light: #EEF5FF;
    --radius: 18px;
}

body { font-family: 'Nunito', system-ui, sans-serif; color: #44515f; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .font-secondary {
    font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 800; color: var(--dark); letter-spacing: -.3px;
}
.text-white h1, h1.text-white, .display-2.text-white { color: #fff; }
a { color: var(--primary); }
a:hover { color: var(--dark); }

/* Bootstrap primary overrides */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { filter: brightness(.9); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--dark); border: 0; font-weight: 700; }
.btn-accent:hover { filter: brightness(.95); color: var(--dark); }
.bg-accent { background: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 25%, transparent); }
.page-link { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Top bar */
.topbar { background: var(--dark); color: rgba(255,255,255,.75); font-size: 14px; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .social a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; }
.topbar .social a:hover { background: rgba(255,255,255,.1); }

/* Navbar */
.navbar .navbar-brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.05; color: var(--dark); }
.brand-motto { font-size: .78rem; color: var(--primary); font-weight: 700; letter-spacing: .3px; }
.navbar .navbar-nav .nav-link { padding: 30px 10px; font-weight: 700; white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .navbar .navbar-nav .nav-link { padding: 30px 7px; font-size: .92rem; } .brand-name { font-size: 1.1rem; } }
.navbar .dropdown-item { font-weight: 600; padding: .5rem 1.2rem; }
.navbar .dropdown-item:active, .navbar .dropdown-item.active { background: var(--primary); color: #fff; }
@media (max-width: 991.98px) { .navbar .navbar-nav .nav-link { padding: 10px 0; } .brand-name { font-size: 1.1rem; } }
.navbar.sticky-top { top: 0 !important; }

/* Ticker */
.ticker { background: var(--accent); color: var(--dark); font-weight: 700; overflow: hidden; }
.ticker .label { background: var(--dark); color: #fff; padding: 8px 18px; white-space: nowrap; z-index: 2; }
.ticker .track { display: inline-flex; gap: 60px; white-space: nowrap; padding: 8px 0; animation: ticker 35s linear infinite; padding-left: 100%; }
.ticker:hover .track { animation-play-state: paused; }
.ticker a { color: var(--dark); text-decoration: none; }
.ticker a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; padding-left: 16px; } }

/* Hero */
.header-carousel .owl-carousel-item img { max-height: 640px; object-fit: cover; }
.header-carousel .overlay { background: linear-gradient(90deg, rgba(14,42,71,.82) 0%, rgba(14,42,71,.35) 60%, rgba(0,0,0,0) 100%); }
.hero-kicker { display: inline-block; background: var(--accent); color: var(--dark); font-weight: 800; padding: 4px 14px; border-radius: 30px; font-size: .85rem; letter-spacing: .5px; text-transform: uppercase; }

/* Quick links strip */
.quick-links { margin-top: -60px; position: relative; z-index: 5; }
.quick-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(14,42,71,.12); display: flex; gap: 14px; align-items: center; text-decoration: none; height: 100%; transition: .3s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,42,71,.18); }
.quick-card .ic { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.quick-card h6 { margin: 0; color: var(--dark); font-weight: 800; }
.quick-card small { color: #7a8794; }

/* Section heading */
.section-tag { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; }
.section-title { max-width: 640px; }

/* Stats */
.stats { background: linear-gradient(135deg, var(--primary), var(--dark)); border-radius: var(--radius); }
.stats .num { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; }
.stats .lbl { color: rgba(255,255,255,.8); font-weight: 700; }

/* Head teacher */
.head-card { background: var(--light); border-radius: var(--radius); position: relative; }
.head-card img.photo { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid #fff; }
.head-card .quote-ic { font-size: 70px; color: var(--accent); opacity: .5; line-height: 1; }

/* Cards */
.news-card { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(14,42,71,.08); transition: .3s; height: 100%; }
.news-card:hover { transform: translateY(-5px); }
.news-card img { height: 210px; object-fit: cover; }
.news-card .badge { background: var(--accent); color: var(--dark); }
.news-card h5 a { color: var(--dark); text-decoration: none; }
.news-card h5 a:hover { color: var(--primary); }
.event-item { display: flex; gap: 16px; padding: 16px; background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(14,42,71,.07); }
.event-date { width: 70px; flex-shrink: 0; text-align: center; background: var(--primary); color: #fff; border-radius: 12px; padding: 8px 0; }
.event-date .d { font-family: 'Baloo 2'; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date .m { font-size: .8rem; text-transform: uppercase; font-weight: 700; }
.classes-item img.img-fluid.rounded-circle { aspect-ratio: 1; object-fit: cover; }
.team-item img { aspect-ratio: 1; object-fit: cover; }
.facility-item .facility-text { min-height: 230px; }
.facility-item .facility-text.bg-primary, .facility-icon.bg-primary, .facility-icon span.bg-primary { background: var(--primary) !important; }

/* Gallery */
.gallery-item { display: block; border-radius: 14px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.album-filter .btn { border-radius: 30px; margin: 3px; }

/* Page header */
.page-header { background-size: cover !important; background-position: center !important; }
.page-header h1 { color: #fff; }
.page-header .breadcrumb a { color: #fff; }
.content-body img { max-width: 100%; height: auto; border-radius: 10px; }
.content-body h2, .content-body h3, .content-body h4 { margin-top: 1.2rem; }

/* Values */
.value-pill { background: #fff; border-left: 5px solid var(--accent); border-radius: 10px; padding: 14px 18px; font-weight: 700; color: var(--dark); box-shadow: 0 3px 12px rgba(14,42,71,.06); }
.mv-card { border-radius: var(--radius); padding: 30px; height: 100%; color: #fff; }

/* Footer */
.footer { background: var(--dark) !important; }
.footer h3, .footer h5 { color: #fff; }
.footer .btn.btn-social:hover, .footer .btn-primary { background: var(--primary); border-color: var(--primary); }
.footer .copyright a:hover, .footer .footer-menu a:hover, .footer .btn.btn-link:hover { color: var(--accent) !important; }
.footer .gal img { aspect-ratio: 1; object-fit: cover; }

/* Floating buttons */
.back-to-top { right: 24px; bottom: 24px; background: var(--primary) !important; border-color: var(--primary) !important; }
.wa-float { position: fixed; left: 20px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 98; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.update-fab { position: fixed; right: 24px; bottom: 86px; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: var(--dark); font-size: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 1040; display: flex; align-items: center; justify-content: center; }
.update-fab:hover { transform: scale(1.07); }
.update-fab .tip { position: absolute; right: 70px; background: var(--dark); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; }
.update-fab:hover .tip { opacity: 1; }
.admin-bar { background: #111; color: #ddd; font-size: 13px; }
.admin-bar a { color: var(--accent); text-decoration: none; margin-left: 14px; }
