/* Institute Website Builder — public site styles
   Nunito + Plus Jakarta Sans for UI, Playfair Display for display headings.
   Soft rounded cards, layered shadows, subtle motion.
   --theme/--theme-dark/--theme-light/--theme-rgb are injected per-institute
   in inc/header.php (Website Settings > brand color). */
:root {
  --theme: #FF6B35;        /* overridden inline per institute */
  --theme-dark: #e55a24;   /* overridden inline per institute */
  --theme-light: #fff3ef;  /* overridden inline per institute */
  --theme-rgb: 255,107,53; /* overridden inline per institute */
  --secondary: #392C7D;
  --accent: #00C9A7;
  --text-dark: #171a2e;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e9ecef;
  --bg-soft: #F8F9FC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 34px rgba(23,26,46,0.09);
  --shadow-sm: 0 2px 10px rgba(23,26,46,0.06);
  --shadow-lg: 0 30px 70px rgba(23,26,46,0.16);
  --font-display: 'Playfair Display', 'Nunito', serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.65;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.2; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.site-topbar { background: var(--text-dark); color: #b9bdd1; font-size: .8rem; }
.site-topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-topbar-left a, .site-topbar-address { color: #b9bdd1; display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.site-topbar-left a:hover { color: #fff; }
.site-topbar-left i { color: var(--theme); font-size: .78rem; }
.site-topbar-social { display: flex; align-items: center; gap: 12px; }
.site-topbar-social a { color: #b9bdd1; font-size: .82rem; transition: color .15s, transform .15s; }
.site-topbar-social a:hover { color: var(--theme); transform: translateY(-1px); }
@media (max-width: 820px) { .site-topbar-address { display: none; } }
@media (max-width: 600px) { .site-topbar { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease), background .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 28px rgba(23,26,46,.1); background: rgba(255,255,255,.98); }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1160px; margin: 0 auto; gap: 20px;
}
.site-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; font-family: 'Nunito', sans-serif; color: var(--text-dark); }
.site-brand img { height: 44px; width: auto; border-radius: var(--radius-sm); }
.site-brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, var(--theme), var(--theme-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(var(--theme-rgb), .35);
}
.site-brand .tagline { display: block; font-weight: 500; font-size: .74rem; color: var(--text-light); font-family: 'Plus Jakarta Sans', sans-serif; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; color: var(--text-mid);
  transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav a.active { background: var(--theme-light); color: var(--theme); }
.site-nav a.site-nav-cta {
  background: var(--theme); color: #fff; margin-left: 8px; padding: 10px 20px; border-radius: 30px;
  box-shadow: 0 6px 18px rgba(var(--theme-rgb), .32);
}
.site-nav a.site-nav-cta:hover { background: var(--theme-dark); color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-dark); }

/* ---------- Nav dropdown (submenus) ---------- */
.site-nav-dropdown { position: relative; display: flex; align-items: center; border-radius: var(--radius-sm); }
.site-nav-dropdown-label {
  padding: 9px 6px 9px 14px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: .9rem; font-weight: 600; color: var(--text-mid);
  transition: background .15s, color .15s;
}
.site-nav-caret {
  background: none; border: none; cursor: pointer; padding: 9px 12px 9px 4px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-mid); font-size: .68rem; transition: background .15s, color .15s, transform .15s;
}
.site-nav-dropdown-label:hover, .site-nav-dropdown-label.active,
.site-nav-caret:hover { background: var(--theme-light); color: var(--theme); }
.site-nav-dropdown.open .site-nav-caret i, .site-nav-dropdown:hover .site-nav-caret i { transform: rotate(180deg); }
.site-nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px; min-width: 210px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.site-nav-dropdown-menu a {
  padding: 9px 14px; border-radius: 6px; font-size: .87rem; font-weight: 600; color: var(--text-mid); white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav-dropdown-menu a:hover, .site-nav-dropdown-menu a.active { background: var(--theme-light); color: var(--theme); }
.site-nav-dropdown:hover .site-nav-dropdown-menu, .site-nav-dropdown.open .site-nav-dropdown-menu { display: flex; }

@media (max-width: 820px) {
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 10px; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a.site-nav-cta { margin-left: 0; text-align: center; }
  .site-header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav-dropdown { flex-wrap: wrap; }
  .site-nav-dropdown-menu {
    position: static; box-shadow: none; border: none; margin-top: 0; margin-left: 14px;
    width: 100%; padding: 2px 0 2px 6px; border-left: 2px solid var(--theme-light);
  }
  .site-nav-dropdown:hover .site-nav-dropdown-menu { display: none; }
  .site-nav-dropdown.open .site-nav-dropdown-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--theme), var(--theme-dark));
  color: #fff; padding: 92px 24px; overflow: hidden;
  isolation: isolate;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .5;
}
.hero-shape { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.hero-shape-1 { width: 340px; height: 340px; background: rgba(255,255,255,.08); top: -120px; right: -80px; }
.hero-shape-2 { width: 220px; height: 220px; background: rgba(0,0,0,.08); bottom: -90px; left: 6%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 8px 16px; border-radius: 30px; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.hero-badge i { color: #ffe1a8; }
.hero-inner { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 5.5vw, 2.7rem); margin: 0 0 16px; line-height: 1.2; letter-spacing: -.5px; }
.hero p { font-size: 1.08rem; opacity: .94; margin: 0 0 30px; max-width: 480px; font-weight: 500; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 340px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
}
.hero-img img { width: 100%; height: 100%; display: block; object-fit: contain; }
@media (max-width: 820px) {
  .hero { padding: 64px 20px 56px; border-top-left-radius: 24px; border-top-right-radius: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-img { height: 220px; }
}

/* ---------- Hero banner slider (multiple admin-added slides) ---------- */
.hero-slider { position: relative; max-width: 1160px; margin: 0 auto; padding-bottom: 8px; }
.hero-slider-viewport { overflow: hidden; }
.hero-slider-track { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; flex-shrink: 0; }
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero-slider-arrow:hover { background: rgba(255,255,255,.32); }
.hero-slider-arrow.prev { left: -6px; }
.hero-slider-arrow.next { right: -6px; }
.hero-slider-dots {
  position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 22px;
}
.hero-slider-dot {
  width: 9px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .2s, width .2s;
}
.hero-slider-dot.active { background: #fff; width: 24px; }
@media (max-width: 820px) {
  .hero-slider-arrow { display: none; }
}

/* ---------- Director's Message ---------- */
.director-grid {
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 56px; align-items: center;
}
.director-media { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.director-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; width: 100%; background: var(--bg-soft);
}
.director-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.director-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 3rem;
}
.director-exp-badge {
  position: absolute; top: -18px; left: 22px; z-index: 2;
  background: var(--theme); color: #fff; border-radius: var(--radius-sm);
  padding: 12px 18px; box-shadow: 0 10px 24px rgba(var(--theme-rgb), .35);
  text-align: center; line-height: 1.15; white-space: nowrap;
}
.director-exp-badge .num { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.director-exp-badge .label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .92; }
.director-content { display: flex; flex-direction: column; align-items: flex-start; }
.director-content .section-eyebrow, .director-eyebrow { justify-content: flex-start; margin-bottom: 12px; }
.director-title { color: var(--theme); font-weight: 700; font-size: .95rem; margin: 0 0 6px; }
.director-name { font-family: var(--font-display); font-size: clamp(1.3rem, 3.5vw, 1.8rem); color: var(--text-dark); margin: 0 0 16px; line-height: 1.25; }
.director-message { color: var(--text-mid); font-size: 1.02rem; line-height: 1.7; margin: 0 0 28px; max-width: 60ch; }
@media (max-width: 900px) {
  .director-grid { grid-template-columns: minmax(220px, 300px) 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .director-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .director-content { align-items: center; }
  .director-media { max-width: 280px; }
  .director-message { max-width: none; }
  .director-exp-badge { display: none; }
  .director-content .section-eyebrow { justify-content: center !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 30px;
  font-weight: 700; font-size: .89rem; font-family: inherit; border: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
  position: relative;
}
.btn-theme { background: #fff; color: var(--theme); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.btn-theme:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }
.btn-solid { background: var(--theme); color: #fff; box-shadow: 0 10px 24px rgba(var(--theme-rgb), .3); }
.btn-solid:hover { background: var(--theme-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(var(--theme-rgb), .4); }

/* ---------- Sections ---------- */
.section { padding: 76px 24px; }
.section-soft { background: var(--bg-soft); }
.section-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--theme); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0 0 14px; text-align: center; color: var(--text-dark); position: relative; }
.section-title::after {
  content: ''; display: block; width: 56px; height: 4px; margin: 16px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--theme), var(--theme-dark));
}
.section-sub { text-align: center; color: var(--text-light); max-width: 560px; margin: 0 auto 44px; font-size: .97rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Feature / highlight cards */
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--theme), var(--theme-dark)); transition: transform .3s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.info-card:hover::before { transform: scaleX(1); }
.info-card .icon {
  width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--theme-light), #fff);
  color: var(--theme); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(var(--theme-rgb), .18);
}
.info-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.info-card p { margin: 0; color: var(--text-light); font-size: .9rem; }

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; text-align: center; }
.stats-row > div { display: flex; flex-direction: column; align-items: center; }
.stats-row i { font-size: 1.3rem; color: var(--theme); margin-bottom: 10px; }
.stats-row .num { font-size: 2.3rem; font-weight: 800; color: var(--text-dark); font-family: 'Nunito', sans-serif; }
.stats-row .label { color: var(--text-light); font-size: .85rem; font-weight: 600; margin-top: 2px; }
.stats-band .container {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 30px;
  border: 1px solid var(--border);
}

/* Course / faculty cards */
.entity-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.entity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.entity-card .thumb { height: 172px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.entity-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.entity-card:hover .thumb img { transform: scale(1.08); }
.entity-card .thumb .placeholder { font-size: 2.2rem; color: var(--theme); font-weight: 800; }
.entity-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.entity-card h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.entity-card .meta { color: var(--text-light); font-size: .82rem; margin-bottom: 10px; }
.entity-card p { color: var(--text-mid); font-size: .88rem; margin: 0 0 16px; flex: 1; }
.entity-card .tag {
  display: inline-block; background: var(--theme-light); color: var(--theme);
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 6px;
}

.achievement-card .tag { margin-bottom: 10px; }
.achievement-card .achievement-student {
  font-size: .82rem; color: var(--text-light); margin-bottom: 8px; font-weight: 600;
}
.achievement-card .achievement-student i { color: var(--theme); margin-right: 4px; }
/* Fixed, consistent image box across every card — image is never cropped,
   it scales down to fit within the box and stays centered. */
.achievement-card .thumb {
  height: 190px; background: var(--bg-soft); padding: 10px;
}
.achievement-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.achievement-card:hover .thumb img { transform: none; }

.section-more-cta { text-align: center; margin-top: 36px; }

/* ---------- Homepage "Our Programs" cards ---------- */
/* Distinct from .entity-card (used on the full Courses listing page) so this
   redesign only affects the homepage teaser section. */
.program-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card .thumb {
  width: 100%; height: 176px; background: var(--bg-soft); display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
}
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.program-card:hover .thumb img { transform: scale(1.08); }
.program-card .thumb .placeholder { font-size: 2.2rem; color: var(--theme); font-weight: 800; }
.program-card .body {
  padding: 26px 24px; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center;
}
.program-card h3 { margin: 0 0 12px; font-size: 1.12rem; font-weight: 700; color: var(--text-dark); }
.program-card .program-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.program-card .tag {
  display: inline-flex; align-items: center; gap: 5px; background: var(--theme-light); color: var(--theme);
  font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.program-card p { color: var(--text-mid); font-size: .9rem; line-height: 1.65; margin: 0 0 20px; max-width: 34ch; }
.program-card .btn { margin-top: auto; }

.faculty-card { text-align: center; padding: 30px 20px; }
.faculty-photo {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--theme-light); box-shadow: 0 8px 20px rgba(var(--theme-rgb), .15);
}
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-photo .placeholder { font-size: 1.5rem; font-weight: 800; color: var(--theme); }

/* ---------- Forms ---------- */
.site-form { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.site-form .form-row { margin-bottom: 16px; }
.site-form label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.site-form input, .site-form textarea, .site-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .92rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.site-form input:focus, .site-form textarea:focus, .site-form select:focus {
  outline: none; border-color: var(--theme); box-shadow: 0 0 0 3px var(--theme-light);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-two { grid-template-columns: 1fr; } }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; font-weight: 500; }
.form-alert.success { background: #ecfdf5; color: #067647; border: 1px solid #a7f3d0; }
.form-alert.error { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--theme-light);
  color: var(--theme); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 20px; }

/* Admissions steps */
.steps-list { max-width: 700px; margin: 0 auto; }
.step-item { display: flex; gap: 16px; margin-bottom: 22px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--theme), var(--theme-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
  font-family: 'Nunito', sans-serif; box-shadow: 0 6px 14px rgba(var(--theme-rgb), .3);
}

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--text-dark), #262a4a);
  margin: 0 24px 64px; border-radius: var(--radius);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(var(--theme-rgb),.25), transparent 45%),
                     radial-gradient(circle at 80% 80%, rgba(var(--theme-rgb),.2), transparent 45%);
}
.cta-band .section-title, .cta-band .section-sub { color: #fff; position: relative; }
.cta-band .section-sub { color: #c4c8d6; }
.cta-band .btn-theme { position: relative; }
.cta-band-inner { text-align: center; }
.cta-band-inner .btn { justify-content: center; }
@media (max-width: 700px) { .cta-band { margin: 0 12px 44px; } }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--text-dark), #12142a); color: #c4c8d6; padding: 60px 24px 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 38px; width: auto; border-radius: 8px; }
.footer-inner h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.footer-brand h4 { margin: 0; }
.footer-inner a { color: #c4c8d6; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .88rem; transition: color .15s, transform .15s; }
.footer-inner a:hover { color: #fff; transform: translateX(3px); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; margin: 0;
}
.footer-social a:hover { background: var(--theme); transform: translateY(-3px); }
.footer-bottom {
  max-width: 1160px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: #8b90a5; text-align: center;
}

/* ---------- Bottom navigation bar (mobile only) ---------- */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(23,26,46,.1);
}
.bottom-nav-inner {
  display: flex; align-items: flex-end;
  max-width: 560px; margin: 0 auto;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav-item {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 4px; padding: 4px 2px; color: var(--text-light); text-decoration: none;
  font-size: .68rem; font-weight: 600; line-height: 1.15; text-align: center;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.bottom-nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-size: 1.15rem; line-height: 1;
}
.bottom-nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--theme); }
.bottom-nav-item.bottom-nav-cta { color: var(--theme); }
.bottom-nav-item.bottom-nav-cta .bottom-nav-icon {
  width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; background: var(--theme); color: #fff;
  font-size: 1.3rem; box-shadow: 0 8px 20px rgba(var(--theme-rgb),.4); border: 4px solid #fff;
}
.bottom-nav-item.bottom-nav-cta.active .bottom-nav-icon,
.bottom-nav-item.bottom-nav-cta:hover .bottom-nav-icon { background: var(--theme-dark); }
.bottom-nav-item.bottom-nav-cta.active, .bottom-nav-item.bottom-nav-cta:hover { color: var(--theme-dark); }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--text-dark); color: #fff; border: none; cursor: pointer; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s; z-index: 190;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--theme); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow); z-index: 200; transition: transform .2s;
  border: none; cursor: pointer; padding: 0;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* WhatsApp popup widget */
.wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.wa-widget .whatsapp-float { position: static; }
.wa-widget .wa-icon-close { display: none; }
.wa-widget .whatsapp-float.is-open .wa-icon-chat { display: none; }
.wa-widget .whatsapp-float.is-open .wa-icon-close { display: block; }

.wa-popup {
  position: absolute; bottom: 74px; right: 0; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wa-popup.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-popup-header {
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; padding: 18px 20px;
}
.wa-popup-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.05rem; }
.wa-popup-subtitle { font-size: .82rem; opacity: .9; margin-top: 4px; }

.wa-popup-agents { max-height: 320px; overflow-y: auto; padding: 8px; }
.wa-agent {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px;
  transition: background .15s;
}
.wa-agent:hover { background: var(--bg-soft); }
.wa-agent-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.wa-agent-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wa-agent-initials {
  width: 44px; height: 44px; border-radius: 50%; background: var(--theme-light); color: var(--theme-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.wa-agent-dot {
  position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff;
}
.wa-agent-dot.is-online { background: #25D366; }
.wa-agent-dot.is-offline { background: #c7ccd6; }
.wa-agent-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-agent-name { font-weight: 700; font-size: .9rem; color: var(--text-dark); }
.wa-agent-role { font-size: .76rem; color: var(--text-light); }
.wa-agent-status { font-size: .74rem; margin-top: 2px; font-weight: 600; }
.wa-agent-status.is-online { color: #16a34a; }
.wa-agent-status.is-offline { color: var(--text-light); }
.wa-agent-cta { color: #25D366; font-size: 1.2rem; flex-shrink: 0; }

.wa-popup-footer {
  padding: 10px 18px; text-align: center; font-size: .72rem; color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* Chatbot widget */
.cb-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.cb-widget .whatsapp-float { position: static; }
.cb-toggle-btn { background: linear-gradient(135deg, var(--theme, #4f46e5), var(--theme-dark, #3730a3)); }
.cb-widget .wa-icon-close { display: none; }
.cb-widget .whatsapp-float.is-open .wa-icon-chat { display: none; }
.cb-widget .whatsapp-float.is-open .wa-icon-close { display: block; }

.cb-popup-header { background: linear-gradient(135deg, var(--theme, #4f46e5), var(--theme-dark, #3730a3)); }
.cb-bot-row { display: flex; align-items: center; gap: 12px; }
.cb-bot-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;
}

.cb-body { max-height: 360px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.cb-bubble { border-radius: 14px; padding: 10px 14px; font-size: .85rem; line-height: 1.45; max-width: 88%; }
.cb-bubble-bot { background: var(--bg-soft); color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb-bubble-user { background: var(--theme, #4f46e5); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.cb-list { display: flex; flex-direction: column; gap: 6px; }
.cb-option {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
  font-size: .85rem; font-weight: 600; color: var(--text-dark); cursor: pointer; transition: border-color .15s, background .15s;
}
.cb-option:hover { border-color: var(--theme, #4f46e5); background: var(--bg-soft); }
.cb-option i:first-child { color: var(--theme, #4f46e5); width: 16px; text-align: center; }
.cb-option-arrow { margin-left: auto; font-size: .7rem; color: var(--text-light); }
.cb-option-muted { color: var(--text-mid); font-weight: 600; justify-content: center; }

.cb-back {
  align-self: flex-start; background: none; border: none; color: var(--theme, #4f46e5); font-weight: 700;
  font-size: .78rem; cursor: pointer; padding: 2px 0; display: flex; align-items: center; gap: 6px;
}
.cb-back:hover { text-decoration: underline; }

.cb-attachment {
  display: flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--theme-light, #f0ecff);
  color: var(--theme, #4f46e5); border-radius: 10px; padding: 8px 12px; font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: opacity .15s;
}
.cb-attachment:hover { opacity: .8; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-light); }

/* ---------- Home page Banner (2-column: text left, image right) ---------- */
.banner-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.banner-content { display: flex; flex-direction: column; align-items: flex-start; }
.banner-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text-dark); margin: 0 0 16px; line-height: 1.25;
}
.banner-details { color: var(--text-mid); font-size: 1.02rem; line-height: 1.7; margin: 0 0 24px; max-width: 60ch; }
.banner-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  width: 100%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.banner-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; }
.banner-media-placeholder {
  width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 3rem;
}

@media (max-width: 900px) {
  .banner-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .banner-content { align-items: center; }
  .banner-details { max-width: none; }
  .banner-media { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .banner-media img { max-height: 320px; }
}

/* ---------- Extra small-screen polish (phones down to ~320px) ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 16px; }
  .hero { padding: 48px 16px 44px; }
  .site-header-inner { padding: 12px 16px; }
  .stats-row { gap: 28px; }
  .stats-row .num { font-size: 1.8rem; }
  .site-form { padding: 22px 18px; }
  .footer-inner { gap: 30px; }
}

/* Keep floating widgets (chat, back-to-top, install prompt) clear of the
   bottom nav bar on mobile — placed last so it wins the cascade. */
@media (max-width: 768px) {
  .whatsapp-float, .wa-widget, .cb-widget { bottom: 82px; }
  .back-to-top { bottom: 82px; }
  .pwa-install-popup.open { bottom: 82px; }
}
