/* =====================================================================
   ICFM Public Website — original styling
   Brand colours are CSS variables so they stay admin-configurable
   (Super Admin colour settings write into these in a later phase).
   ===================================================================== */

:root {
  --icfm-primary: #0B3D91;
  --icfm-primary-dark: #082a66;
  --icfm-primary-light: #E8EEFB;
  --icfm-accent: #F5A623;
  --icfm-accent-dark: #d88f12;
  --icfm-ink: #1E2433;
  --icfm-muted: #6B7280;
  --icfm-border: #E7EAF2;
  --icfm-bg-alt: #F6F8FC;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', var(--font-body);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--icfm-ink);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--icfm-ink);
}

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-icfm {
  background: var(--icfm-accent);
  border: 1px solid var(--icfm-accent);
  color: #1E2433;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.3rem;
}
.btn-icfm:hover { background: var(--icfm-accent-dark); border-color: var(--icfm-accent-dark); color: #1E2433; }

.btn-outline-icfm {
  border: 1.5px solid var(--icfm-primary);
  color: var(--icfm-primary);
  font-weight: 600;
  border-radius: 8px;
  padding: .55rem 1.25rem;
  background: transparent;
}
.btn-outline-icfm:hover { background: var(--icfm-primary); color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--icfm-primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 6px 0;
}
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: rgba(255,255,255,.85); }
.topbar-links a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.icfm-navbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(11,61,145,.06);
  padding: 14px 0;
}
.icfm-navbar .navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--icfm-primary);
}
.icfm-navbar .navbar-brand i { font-size: 26px; }
.icfm-navbar .nav-link { font-weight: 600; color: var(--icfm-ink); padding: 8px 14px !important; }
.icfm-navbar .nav-link:hover { color: var(--icfm-primary); }
.nav-cta { margin-left: 12px; }

/* ---------- Hero ---------- */
.hero-section { position: relative; }
.hero-slide {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex; align-items: center;
  background-color: var(--icfm-primary-dark);
}
.hero-fallback { background: linear-gradient(135deg, var(--icfm-primary) 0%, var(--icfm-primary-dark) 100%); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,42,102,.88) 0%, rgba(8,42,102,.55) 60%, rgba(8,42,102,.35) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; padding: 60px 0; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px;
}
.hero-content h1 { font-size: 44px; color: #fff; margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.carousel-control-prev, .carousel-control-next { width: 5%; }

/* Quick search card overlapping hero bottom edge */
.quick-search {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(11,61,145,.18);
  padding: 18px;
  position: relative;
  margin-top: -38px;
  z-index: 5;
}

/* ---------- Statistics ---------- */
.stats-section { background: var(--icfm-primary); padding: 70px 0 50px; }
.stat-block i { font-size: 30px; color: var(--icfm-accent); margin-bottom: 10px; display: block; }
.stat-num, .stat-suffix { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: #fff; }
.stat-block p { color: rgba(255,255,255,.8); margin-top: 6px; font-size: 14px; }

/* ---------- Generic sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--icfm-bg-alt); }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block; color: var(--icfm-primary); font-weight: 700; font-size: 12.5px;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.eyebrow-light { color: rgba(255,255,255,.85); }
.section-heading h2 { font-size: 32px; margin-bottom: 10px; }
.section-heading p { color: var(--icfm-muted); }

/* ---------- Course cards ---------- */
.course-card {
  background: #fff; border: 1px solid var(--icfm-border); border-radius: 14px;
  overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,61,145,.12); }
.course-card-img {
  height: 170px; background-size: cover; background-position: center; background-color: var(--icfm-primary-light);
  position: relative;
}
.course-card-category {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--icfm-primary);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.course-card-body { padding: 20px; }
.course-card-body h3 { font-size: 17px; margin-bottom: 8px; }
.course-card-desc { color: var(--icfm-muted); font-size: 14px; margin-bottom: 14px; min-height: 42px; }
.course-card-meta { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 16px; font-size: 13px; color: var(--icfm-muted); }
.course-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--icfm-border); padding-top: 14px; }
.course-card-fee { font-weight: 800; color: var(--icfm-primary); font-size: 15px; }
.course-card-fee s { font-weight: 500; font-size: 12.5px; margin-left: 4px; }

/* ---------- Why choose ---------- */
.why-card { text-align: center; padding: 26px 18px; }
.why-icon {
  width: 60px; height: 60px; border-radius: 16px; background: var(--icfm-primary-light);
  color: var(--icfm-primary); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
}
.why-card h4 { font-size: 16px; margin-bottom: 8px; }
.why-card p { color: var(--icfm-muted); font-size: 14px; }

/* ---------- Partner CTA ---------- */
.partner-cta { background: linear-gradient(120deg, var(--icfm-primary) 0%, var(--icfm-primary-dark) 100%); padding: 50px 0; color: #fff; }
.partner-cta h2 { color: #fff; margin-bottom: 8px; }
.partner-cta p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Centre Locator ---------- */
.centre-card { background: #fff; border: 1px solid var(--icfm-border); border-radius: 14px; padding: 22px; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.centre-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,61,145,.12); }
.centre-card-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--icfm-primary-light); display: flex; align-items: center; justify-content: center; color: var(--icfm-primary); font-size: 20px; object-fit: cover; }
.centre-card h3 { font-size: 16.5px; margin: 12px 0 4px; }
.centre-card .centre-code { font-size: 12px; color: var(--icfm-muted); }
.centre-card .centre-loc { font-size: 13.5px; color: var(--icfm-muted); margin: 8px 0 14px; }
.centre-locator-map { height: 480px; border-radius: 14px; overflow: hidden; border: 1px solid var(--icfm-border); }
.centre-gallery img { border-radius: 10px; object-fit: cover; height: 130px; width: 100%; }
.centre-profile-hero { background: var(--icfm-bg-alt); border-radius: 16px; padding: 30px; }
.centre-facts { list-style: none; padding: 0; margin: 0; }
.centre-facts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--icfm-border); font-size: 14px; }
.centre-facts li:last-child { border-bottom: none; }
.centre-facts i { color: var(--icfm-primary); width: 18px; text-align: center; }

/* ---------- Generic content card (forms, CMS pages, blog) ---------- */
.panel-card { background: #fff; border: 1px solid var(--icfm-border); border-radius: 16px; box-shadow: 0 10px 30px rgba(11,61,145,.06); }

/* ---------- Blog ---------- */
.blog-card { background: #fff; border: 1px solid var(--icfm-border); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,61,145,.12); }
.blog-card-img { height: 190px; background-size: cover; background-position: center; background-color: var(--icfm-primary-light); }
.blog-card-body { padding: 20px; }
.blog-card-meta { font-size: 12.5px; color: var(--icfm-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; }
.blog-card p { color: var(--icfm-muted); font-size: 14px; }
.blog-article img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-article h1, .blog-article h2, .blog-article h3 { color: var(--icfm-ink); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border: 1px solid var(--icfm-border); border-radius: 14px; padding: 24px; height: 100%; }
.testimonial-stars { color: var(--icfm-accent); margin-bottom: 12px; }
.testimonial-msg { color: var(--icfm-ink); font-size: 14.5px; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-author span { color: var(--icfm-muted); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 70px 0; background: var(--icfm-bg-alt); }
.final-cta h2 { margin-bottom: 8px; }
.final-cta p { color: var(--icfm-muted); margin-bottom: 24px; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner { background: linear-gradient(120deg, var(--icfm-primary) 0%, var(--icfm-primary-dark) 100%); padding: 46px 0; color: #fff; }
.page-banner h1 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,.75); font-size: 13.5px; }
.page-banner .breadcrumb-item.active { color: #fff; }

/* ---------- Course listing filters ---------- */
.filter-panel { background: #fff; border: 1px solid var(--icfm-border); border-radius: 14px; padding: 20px; }
.filter-panel h5 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--icfm-muted); margin-bottom: 10px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li a { display: block; padding: 7px 0; color: var(--icfm-ink); font-size: 14.5px; border-bottom: 1px dashed var(--icfm-border); }
.filter-list li:last-child a { border-bottom: none; }
.filter-list li a.active, .filter-list li a:hover { color: var(--icfm-primary); font-weight: 700; }

/* ---------- Course detail sidebar ---------- */
.course-sidebar { background: #fff; border: 1px solid var(--icfm-border); border-radius: 14px; padding: 20px; position: sticky; top: 90px; }
.course-sidebar-img { width: 100%; border-radius: 10px; margin-bottom: 16px; }
.course-sidebar-fee { font-size: 26px; font-weight: 800; color: var(--icfm-primary); margin-bottom: 14px; }
.course-sidebar-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; }
.course-sidebar-list li { padding: 7px 0; border-bottom: 1px dashed var(--icfm-border); color: var(--icfm-muted); }
.course-sidebar-list li i { width: 18px; color: var(--icfm-primary); }
.course-sidebar-list li strong { color: var(--icfm-ink); }

.enquiry-card { background: var(--icfm-bg-alt); border-radius: 14px; padding: 20px; }
.enquiry-card h5 { font-size: 15px; margin-bottom: 14px; }

.centre-mini-card {
  display: flex; gap: 12px; align-items: center; border: 1px solid var(--icfm-border); border-radius: 10px;
  padding: 12px 14px; color: var(--icfm-ink);
}
.centre-mini-card i { color: var(--icfm-primary); font-size: 18px; }
.centre-mini-card strong { display: block; font-size: 14px; }
.centre-mini-card span { font-size: 12.5px; color: var(--icfm-muted); }

/* ---------- Footer ---------- */
.icfm-footer { background: #0A1B3D; color: rgba(255,255,255,.75); padding: 60px 0 20px; font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-tagline { color: rgba(255,255,255,.65); margin-bottom: 4px; }
.footer-parent { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--icfm-accent); color: #1E2433; }
.icfm-footer h6 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.icfm-footer ul { list-style: none; padding: 0; margin: 0; }
.icfm-footer ul li { margin-bottom: 10px; }
.icfm-footer ul li a { color: rgba(255,255,255,.7); }
.icfm-footer ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--icfm-accent); margin-top: 3px; }
.icfm-footer hr { border-color: rgba(255,255,255,.1); margin: 30px 0 20px; }
.footer-bottom { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.5); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ---------- Coming soon (placeholder interior pages) ---------- */
.coming-soon { padding: 90px 0; text-align: center; }
.coming-soon i { font-size: 44px; color: var(--icfm-primary); margin-bottom: 18px; }
.coming-soon p { color: var(--icfm-muted); max-width: 480px; margin: 0 auto; }

@media (max-width: 991px) {
  .hero-content h1 { font-size: 32px; }
  .course-sidebar { position: static; }
}
