/* ==========================================================================
   Polyclinic House — Ayurveda & Modern Medicine
   Design system / main stylesheet
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Base & typography
   3.  Buttons & utilities
   4.  Header (top bar + navigation)
   5.  Hero
   6.  Section furniture
   7.  Cards: services, departments, team, blog
   8.  Why us (dark band), chairman, testimonials, CTA band
   9.  Inner page hero & breadcrumb
   10. Forms
   11. Footer & back to top
   12. Motion & responsive
   ========================================================================== */

/* 1. Tokens ============================================================== */
:root {
  /* Colour — sampled from the Policlinic House logo */
  --ink:        #0D385B;   /* wordmark navy */
  --ink-2:      #1D4A6E;
  --blue:       #185685;   /* logo blue */
  --blue-600:   #12456B;
  --blue-tint:  #E7EFF6;
  --herb:       #3D8259;   /* logo green, darkened for text contrast */
  --herb-600:   #326B49;
  --herb-bright:#5DAC7C;   /* logo green, as drawn */
  --herb-tint:  #E9F3EC;
  --mist:       #F3F7FA;
  --paper:      #FFFFFF;
  --line:       #DBE5EE;
  --line-soft:  #E9EFF5;
  --muted:      #5C7591;
  --muted-dark: #A7C0D4;
  --sand:       #C9922F;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(13, 56, 91, .05), 0 10px 30px -18px rgba(13, 56, 91, .35);
  --shadow-2: 0 2px 6px rgba(13, 56, 91, .06), 0 26px 50px -28px rgba(13, 56, 91, .45);

  /* Rhythm */
  --section-y: clamp(4rem, 8vw, 7rem);
  --container: 1360px;
}

/* 2. Base & typography =================================================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 1400px) { .container { padding-left: 2rem; padding-right: 2rem; } }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

h1, .h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4, .h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--herb); }

img { max-width: 100%; height: auto; }

::selection { background: var(--herb-tint); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(93, 172, 124, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Type utilities */
.lead-text {
  font-size: 1.075rem;
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--herb);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 46%, var(--herb-bright) 46%, var(--herb-bright) 100%);
  flex: none;
}
.eyebrow--center { justify-content: center; }

.mono { font-family: var(--font-mono); }

.mono-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-muted-2 { color: var(--muted) !important; }
.text-herb { color: var(--herb) !important; }
.text-blue { color: var(--blue) !important; }

.quote-serif {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}

/* 3. Buttons & small utilities =========================================== */
.btn {
  --bs-btn-focus-box-shadow: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .005em;
  border-radius: 999px;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn:active { transform: translateY(0); }

.btn-clinic {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(24, 86, 133, .9);
}
.btn-clinic:hover, .btn-clinic:focus {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-2px);
}

.btn-herb { background: var(--herb); color: #fff; }
.btn-herb:hover, .btn-herb:focus { background: var(--herb-600); color: #fff; transform: translateY(-2px); }

.btn-line {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-line:hover, .btn-line:focus {
  border-color: var(--herb);
  color: var(--herb-600);
  background: #fff;
  transform: translateY(-2px);
}

.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn-on-dark:hover, .btn-on-dark:focus {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover, .btn-white:focus { background: var(--herb-tint); color: var(--ink); transform: translateY(-2px); }

.btn-sm-pill { padding: .55rem 1.1rem; font-size: .875rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue);
}
.link-arrow i { transition: transform .22s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* Icon tile */
.ico-tile {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--herb-tint);
  color: var(--herb);
  flex: none;
  transition: background-color .25s ease, color .25s ease;
}
.ico-tile--blue { background: var(--blue-tint); color: var(--blue); }
.ico-tile--sm { width: 44px; height: 44px; border-radius: 13px; font-size: 1.15rem; }

/* Chips */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .32rem .7rem;
  border-radius: 999px;
  background: var(--herb-tint);
  color: var(--herb-600);
}
.chip--blue { background: var(--blue-tint); color: var(--blue); }

.hairline { height: 1px; background: var(--line); border: 0; opacity: 1; }

/* 4. Header ============================================================== */
.topbar {
  background: var(--ink);
  color: #B7CCDE;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  padding: .5rem 0;
}
.topbar a { color: #B7CCDE; }
.topbar a:hover { color: #fff; }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .topbar-sep { color: rgba(255, 255, 255, .22); padding: 0 .85rem; }
.topbar-social a {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .78rem;
}
.topbar-social a:hover { background: var(--herb); border-color: var(--herb); color: #fff; }

/* Two-tone brand rule: blue on the left, green on the right — the split in
   the logo cross, carried across the header and page headings. */
.brand-rule,
.site-nav::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--blue) 0%, var(--blue) 46%,
    var(--herb-bright) 46%, var(--herb-bright) 100%);
  pointer-events: none;
  z-index: 2;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  padding: .55rem 0;
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-nav.is-stuck {
  box-shadow: 0 8px 30px -22px rgba(13, 56, 91, .65);
  padding: .3rem 0;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand img {
  width: auto;
  height: 52px;
  transition: height .25s ease;
}
.site-nav.is-stuck .brand img { height: 44px; }
.site-footer .brand img { height: 56px; }
@media (max-width: 575.98px) {
  .brand img { height: 42px; }
  .site-nav.is-stuck .brand img { height: 38px; }
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.02em;
  display: block;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--herb);
  display: block;
}

.site-nav .navbar-nav { gap: .1rem; }
.site-nav .nav-link {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: .6rem .85rem;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .35rem;
  height: 2px;
  background: var(--herb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--ink); }
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .dropdown-toggle::after { margin-left: .35rem; vertical-align: .15em; }

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: .5rem;
  min-width: 15rem;
}
.dropdown-item {
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: .55rem .8rem;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--herb-tint); color: var(--herb-600); }
.dropdown-item.active, .dropdown-item:active {
  background: var(--herb-tint);
  color: var(--herb-600);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--herb);
}
.dropdown-item:focus-visible { outline-offset: -2px; }

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .4rem .6rem;
  color: var(--ink);
}
.navbar-toggler:focus { box-shadow: none; }

/* 5. Hero ================================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(93, 172, 124, .10) 0%, rgba(93, 172, 124, 0) 60%),
    radial-gradient(55% 60% at 4% 0%, rgba(24, 86, 133, .10) 0%, rgba(24, 86, 133, 0) 55%),
    linear-gradient(180deg, #F7FAFB 0%, #FFFFFF 78%);
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--herb);
}
.hero-copy { max-width: 34rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-right: 1.5rem;
  margin-right: 1.5rem;
  border-right: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-trust-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-trust-item i { color: var(--herb); font-size: 1.1rem; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-2);
}

/* Signature element: the OPD desk card */
.opd-card {
  position: absolute;
  left: -1.5rem;
  bottom: 1.75rem;
  width: 17.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-2);
}
.opd-card h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}
.opd-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: .3rem .45rem;
  border-radius: 6px;
  color: var(--ink-2);
}
.opd-row.is-today {
  background: var(--herb-tint);
  color: var(--herb-600);
  font-weight: 500;
}
.opd-note {
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  font-size: .78rem;
  color: var(--muted);
}

/* 6. Section furniture =================================================== */
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section--mist { background: var(--mist); }
.section--herb-wash { background: linear-gradient(180deg, #FFFFFF 0%, var(--herb-tint) 100%); }
.section-head { max-width: 42rem; }
.section-head.mx-auto { text-align: center; }
.section-head h2 { margin-bottom: .85rem; }

/* Image with mono caption */
.figure-clinic { position: relative; }
.figure-clinic img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-1);
}
.figure-caption-mono {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.stat-cell {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat-cell:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .2s ease;
  line-height: 1;
  display: block;
}
.stat-cell:nth-child(even) .stat-num { color: var(--herb); }
.stat-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
  display: block;
}

/* Bullet list with herb ticks */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .6rem;
  color: var(--ink-2);
}
.tick-list li::before {
  content: "\F26E"; /* bi-check-lg */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: -.05rem;
  color: var(--herb);
  font-size: 1rem;
}
.tick-list--light li { color: #D3E3EF; }

/* 7. Cards =============================================================== */
/* Services */
.svc-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card h3 { margin: 1.25rem 0 .6rem; font-size: 1.3rem; }
.svc-card p { color: var(--muted); font-size: .95rem; }
.svc-card .link-arrow { margin-top: 1.1rem; }
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 172, 124, .45);
  box-shadow: var(--shadow-2);
}
.svc-card:hover .ico-tile { background: var(--herb); color: #fff; }

/* Service detail rows (services page) */
.svc-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc-detail img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.svc-detail-body { padding: clamp(1.5rem, 3vw, 2.5rem); }

/* Departments directory board — signature structural device */
.dept-board { border-top: 1px solid var(--line); }
.dept-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.55rem .75rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, padding .25s ease;
  color: inherit;
}
.dept-row:hover { background: var(--mist); padding-left: 1.35rem; color: inherit; }
.dept-code {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--herb);
}
.dept-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: .15rem;
  display: block;
}
.dept-desc { font-size: .92rem; color: var(--muted); margin: 0; }
.dept-go {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.dept-row:hover .dept-go { background: var(--herb); border-color: var(--herb); color: #fff; }

/* Department cards (departments page) */
.dept-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.dept-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.dept-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dept-card:hover .dept-card-media img { transform: scale(1.05); }
.dept-card-code {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: rgba(13, 56, 91, .82);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  padding: .28rem .6rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.dept-card-body { padding: 1.6rem; }

/* Team */
.team-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(93, 172, 124, .4); }
.team-photo { aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--mist); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 1.35rem 1.4rem 1.5rem; }
.team-body h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.team-role { font-size: .9rem; color: var(--blue); font-weight: 500; }
.team-dept {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: .35rem;
}
.team-social { display: flex; gap: .4rem; margin-top: 1rem; }
.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: var(--muted);
}
.team-social a:hover { background: var(--herb); border-color: var(--herb); color: #fff; }

/* Blog */
.post-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.post-body h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--muted); font-size: .94rem; }
.post-body .link-arrow { margin-top: auto; padding-top: 1rem; }

/* Blog sidebar */
.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { border-bottom: 1px dashed var(--line); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .93rem;
  color: var(--ink-2);
}
.widget-list a:hover { color: var(--herb); }
.widget-list .count { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.mini-post { display: flex; gap: .85rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.mini-post:last-child { border-bottom: 0; }
.mini-post img { width: 68px; height: 60px; border-radius: 8px; object-fit: cover; flex: none; }
.mini-post h4 { font-size: .95rem; margin: 0 0 .2rem; line-height: 1.35; }
.mini-post h4 a { color: var(--ink); }
.mini-post span { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }

/* Article body */
.article-body { font-size: 1.03rem; line-height: 1.8; }
.article-body h2 { margin: 2.25rem 0 1rem; font-size: 1.7rem; }
.article-body h3 { margin: 1.75rem 0 .75rem; }
.article-body ul { padding-left: 1.1rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body figure img { border-radius: var(--r); }
.article-body blockquote {
  border-left: 3px solid var(--herb);
  background: var(--herb-tint);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 1.75rem 0;
}

/* 8. Dark band, chairman, testimonials, CTA ============================== */
.section--ink {
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(93, 172, 124, .3) 0%, rgba(93, 172, 124, 0) 60%),
    var(--ink);
  color: #CBDEEB;
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .eyebrow { color: #8FD0A8; }
.section--ink .lead-text { color: #A7C0D4; }

.why-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.why-item .ico-tile {
  background: rgba(93, 172, 124, .22);
  color: #8FD0A8;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.why-item p { font-size: .93rem; color: #A7C0D4; margin: 0; }

/* Chairman */
.chairman-portrait { position: relative; }
.chairman-portrait img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 4 / 4.7;
}
.chairman-badge {
  position: absolute;
  right: -1rem;
  bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-2);
  max-width: 14rem;
}
.chairman-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.chairman-badge span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--herb); }
.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--blue);
  margin-top: 1.5rem;
}

/* Testimonials */
.tst-carousel { max-width: 46rem; margin: 0 auto; }
.tst-item { text-align: center; padding: 0 .5rem; }
.tst-stars { color: var(--sand); font-size: 1rem; letter-spacing: .15em; margin-bottom: 1.25rem; }
.tst-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.tst-person { display: inline-flex; align-items: center; gap: .85rem; text-align: left; }
.tst-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.tst-person strong { display: block; color: var(--ink); font-size: .98rem; }
.tst-person span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.carousel-indicators.tst-dots {
  position: static;
  margin: 2.25rem 0 0;
}
.carousel-indicators.tst-dots [data-bs-target] {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  border: 0;
  opacity: 1;
  margin: 0 4px;
}
.carousel-indicators.tst-dots .active { background: var(--herb); }
.tst-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tst-nav:hover { background: var(--herb); border-color: var(--herb); color: #fff; }

/* Testimonial static grid (about page) */
.tst-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.tst-card .tst-stars { margin-bottom: .9rem; }
.tst-card p { color: var(--ink-2); font-size: .96rem; }

/* CTA band */
.cta-band {
  position: relative;
  background:
    radial-gradient(65% 120% at 88% 55%, rgba(93, 172, 124, .55) 0%, rgba(93, 172, 124, 0) 66%),
    linear-gradient(100deg, var(--ink) 0%, var(--blue) 55%, var(--herb-600) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }

/* 9. Inner page hero ===================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 80% at 92% 10%, rgba(93, 172, 124, .28) 0%, rgba(93, 172, 124, 0) 60%),
    linear-gradient(120deg, var(--ink) 0%, #1A5480 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: #B4CCDF; max-width: 38rem; margin: 0; }
.breadcrumb-mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8FD0A8;
  margin-bottom: 1rem;
}
.breadcrumb-mono a { color: #8FD0A8; }
.breadcrumb-mono a:hover { color: #fff; }
.breadcrumb-mono span { color: rgba(255, 255, 255, .45); padding: 0 .5rem; }

/* 10. Forms ============================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-1);
}
.form-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.form-label .req { color: #C0532F; }
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .95rem;
  color: var(--ink);
  background-color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: #97AEC3; }
.form-control:focus, .form-select:focus {
  border-color: var(--herb);
  box-shadow: 0 0 0 4px rgba(93, 172, 124, .12);
}
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #C0532F;
  background-image: none;
}
.invalid-feedback { font-size: .8rem; color: #C0532F; }
.form-note { font-size: .82rem; color: var(--muted); }

.form-alert {
  display: none;
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  background: var(--herb-tint);
  border: 1px solid rgba(93, 172, 124, .35);
  color: var(--herb-600);
  font-size: .95rem;
}
.form-alert i { margin-right: .4rem; }

/* Contact info tiles */
.contact-tile {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-tile:last-child { border-bottom: 0; }
.contact-tile h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-tile p { margin: 0; font-size: .95rem; color: var(--muted); }
.contact-tile a { color: var(--ink-2); }
.contact-tile a:hover { color: var(--herb); }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  background: var(--mist);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Newsletter */
.newsletter-box {
  background: var(--ink);
  border-radius: var(--r);
  padding: 1.75rem;
  color: #CBDEEB;
}
.newsletter-box h3 { color: #fff; font-size: 1.15rem; }
.newsletter-box .form-control { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.newsletter-box .form-control::placeholder { color: #7E9AB4; }

/* 11. Footer & back to top ============================================== */
.site-footer {
  background: var(--ink);
  color: #A7C0D4;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .94rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8FD0A8;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #A7C0D4; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a { transition: color .2s ease, padding-left .2s ease; display: inline-block; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .85rem; }
.footer-contact i { color: #8FD0A8; margin-top: .2rem; }
.footer-contact a { color: #A7C0D4; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  color: #A7C0D4;
}
.footer-social a:hover { background: var(--herb); border-color: var(--herb); color: #fff; }
.footer-map {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  line-height: 0;
  margin-top: 1rem;
}
.footer-map iframe { width: 100%; height: 140px; border: 0; display: block; filter: grayscale(1) contrast(.9); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.35rem 0;
  font-size: .84rem;
  color: #7E9AB4;
}
.footer-bottom a { color: #A7C0D4; }
.footer-disclaimer { font-size: .78rem; color: #6D8AA5; max-width: 46rem; }

#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1040;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--herb); }

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25a35a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  z-index: 1040;
  font-size: 1.3rem;
}
.wa-float:hover { color: #fff; background: #1e8c4c; }

/* 12. Motion & responsive =============================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1199.98px) {
  .opd-card { left: -.5rem; width: 16rem; }
  .chairman-badge { right: 0; }
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin-top: .75rem;
    border-top: 1px solid var(--line);
    padding-top: .75rem;
    max-height: 75vh;
    overflow-y: auto;
  }
  .site-nav .nav-link { padding: .7rem .25rem; }
  .site-nav .nav-link::after { left: .25rem; right: auto; width: 24px; }
  .site-nav .dropdown-menu { border: 0; box-shadow: none; padding-left: .75rem; }
  .hero-media { margin-top: 2.5rem; }
  .hero-media img { aspect-ratio: 16 / 11; }
  .opd-card { position: static; width: 100%; margin-top: -3rem; margin-left: auto; margin-right: auto; max-width: 22rem; position: relative; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .chairman-portrait { max-width: 26rem; margin: 0 auto 3rem; }
}

@media (max-width: 767.98px) {
  body { font-size: .98rem; }
  .hero-trust-item {
    border-right: 0;
    width: 100%;
    padding: .35rem 0;
    margin-right: 0;
  }
  .dept-row {
    grid-template-columns: 1fr 2.5rem;
    gap: .5rem 1rem;
    padding: 1.25rem .25rem;
  }
  .dept-code { grid-column: 1 / -1; }
  .dept-row:hover { padding-left: .5rem; }
  .map-frame iframe { height: 300px; }
  .footer-bottom { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .topbar, .site-nav, #backToTop, .wa-float, .cta-band, .site-footer { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   13. Component overrides added during QA
   ========================================================================== */

/* Department board text blocks */
.dept-text { display: block; }
.dept-desc { display: block; }

/* Accordion (appointment FAQ) */
.accordion-item { background: #fff; }
.accordion-button {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 1.15rem 1.35rem;
  background: #fff;
}
.accordion-button:not(.collapsed) {
  background: var(--herb-tint);
  color: var(--herb-600);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(93, 172, 124, .12); border-color: transparent; }
.accordion-button::after {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235C7480'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233D8259'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body { padding: 0 1.35rem 1.35rem; font-size: .97rem; }

/* Pagination */
.pagination { gap: .4rem; }
.page-link {
  border: 1px solid var(--line);
  border-radius: 10px !important;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .92rem;
  min-width: 42px;
  text-align: center;
  padding: .55rem .75rem;
}
.page-link:hover { background: var(--herb-tint); color: var(--herb-600); border-color: var(--herb); }
.page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-link:focus { box-shadow: 0 0 0 4px rgba(93, 172, 124, .12); }

/* Checkboxes */
.form-check-input { border-color: var(--line); width: 1.1em; height: 1.1em; margin-top: .25em; }
.form-check-input:checked { background-color: var(--herb); border-color: var(--herb); }
.form-check-input:focus { border-color: var(--herb); box-shadow: 0 0 0 4px rgba(93, 172, 124, .12); }
.form-check-input.is-invalid { border-color: #C0532F; }
.form-check-label { color: var(--ink-2); }

/* Input group pairing with pill buttons */
.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-radius: 0 12px 12px 0; padding-left: 1.1rem; padding-right: 1.1rem; }

/* Ordered list inside widgets */
.widget ol li::marker { font-family: var(--font-mono); font-size: .85rem; color: var(--herb); }

/* ==========================================================================
   14. Hover dropdown (desktop only — tap still toggles on mobile)
   ========================================================================== */
@media (min-width: 992px) {
  .site-nav .dropdown > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .site-nav .dropdown:hover > .dropdown-menu,
  .site-nav .dropdown:focus-within > .dropdown-menu,
  .site-nav .dropdown > .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* invisible bridge so the pointer can cross the gap to the menu */
  .site-nav .dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }
  .site-nav .dropdown:hover > .nav-link::after { transform: scaleX(1); }
}

/* CMS addition ==============================================================
   The only rule added during the Laravel conversion. It introduces an error
   state for the shared .form-alert box (which the static demo never needed,
   because it only ever showed a success message). Nothing above is changed.
   ========================================================================== */
.form-alert.is-error { background: #FBEDEA; border-color: rgba(155, 44, 27, .3); color: #9B2C1B; }
