/* ==========================================================================
   Mayyil Service Co-operative Bank — site styles
   Built on Bootstrap 5.3. Brand colours come from the bank's logo (royal indigo)
   and the maroon/red of the bank seal used on the previous site.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Malayalam";
  src: url("../fonts/noto-sans-malayalam-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

:root {
  --brand-950: #0e1040;
  --brand-900: #15185a;
  --brand-800: #1d2172;
  --brand-700: #23278a;
  --brand-600: #292d96;   /* logo indigo */
  --brand-500: #3d42b4;
  --brand-300: #9da1e3;
  --brand-100: #e4e5f8;
  --brand-50:  #f1f2fc;
  --accent-700: #8f1124;
  --accent-600: #b4162e;  /* seal maroon/red */
  --accent-50:  #fcecef;
  --gold-500: #d9a521;
  --gold-50:  #fdf6e3;
  --ink:      #171a2e;
  --ink-2:    #3b4060;
  --muted:    #626884;
  --line:     #e2e5ef;
  --line-2:   #eef0f6;
  --surface:  #ffffff;
  --bg:       #f6f7fb;
  --success:  #1d7a4a;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 90, .06), 0 1px 3px rgba(21, 24, 90, .06);
  --shadow:    0 4px 14px rgba(21, 24, 90, .07), 0 1px 3px rgba(21, 24, 90, .05);
  --shadow-lg: 0 18px 40px -12px rgba(21, 24, 90, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Inter", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-link-color: var(--brand-600);
  --bs-link-color-rgb: 41, 45, 150;
  --bs-link-hover-color: var(--brand-800);
  --bs-link-hover-color-rgb: 29, 33, 114;
  --bs-border-color: var(--line);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 41, 45, 150;
  --bs-focus-ring-color: rgba(41, 45, 150, .3);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
.lang-ml body, body.lang-ml { line-height: 1.85; }
.lang-ml h1, .lang-ml h2, .lang-ml h3 { line-height: 1.45; }

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand-100); color: var(--brand-900); }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }

/* Focus visibility for keyboard users */
:focus-visible { outline: 3px solid rgba(41, 45, 150, .45); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--brand-600); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ------------------------------------------------------------------ Buttons */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s, color .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--brand-600); --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-800); --bs-btn-active-color: #fff; --bs-btn-focus-shadow-rgb: 41, 45, 150;
  box-shadow: 0 6px 16px -8px rgba(41, 45, 150, .7);
}
.btn-outline-brand {
  --bs-btn-color: var(--brand-600); --bs-btn-border-color: var(--brand-100); --bs-btn-bg: #fff;
  --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-border-color: var(--brand-300);
  --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-800); --bs-btn-focus-shadow-rgb: 41, 45, 150;
}
.btn-light-on-dark {
  --bs-btn-color: var(--brand-800); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-900); --bs-btn-hover-border-color: var(--brand-50);
}
.btn-ghost-on-dark {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-bg: transparent;
  --bs-btn-hover-bg: rgba(255,255,255,.1); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255,255,255,.6);
}

/* ------------------------------------------------------------------ Top bar */
.topbar { background: var(--brand-900); color: #c9cbf0; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar ul { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; }
.topbar li { display: flex; }
.topbar a { color: #dfe0fa; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0; }
.topbar a:hover { color: #fff; }
.topbar .icon { opacity: .75; }
.lang-switch {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: .2rem .75rem !important; font-weight: 600; color: #fff !important;
}
.lang-switch:hover { background: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(21, 24, 90, .25); }
.site-header .navbar { padding: .6rem 0; }
.navbar-brand { padding: 0; margin-right: 1rem; }
.navbar-brand img { height: 75px; width: auto; display: block; }
@media (max-width: 575.98px) { .navbar-brand img { height: 40px; } }

.navbar-toggler {
  border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; display: inline-flex; align-items: center; gap: .45rem;
  color: var(--brand-700); font-weight: 600; font-size: .9rem;
}
.navbar-toggler .icon { width: 1.35rem; height: 1.35rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(41, 45, 150, .25); }
@media (max-width: 399.98px) { .navbar-toggler-label { display: none; } }

.navbar-nav .nav-link {
  color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: .55rem .8rem !important; border-radius: 10px;
  position: relative;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus-visible, .navbar-nav .show > .nav-link { color: var(--brand-700); background: var(--brand-50); }
.navbar-nav .nav-link.active { color: var(--brand-700); }
@media (min-width: 1200px) {
  .navbar-nav .nav-link.active::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -.62rem; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-600);
  }
  .lang-ml .navbar-nav .nav-link { font-size: .88rem; padding: .55rem .6rem !important; }
}
.dropdown-menu {
  --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: 14px; --bs-dropdown-padding-y: .45rem;
  --bs-dropdown-link-active-bg: var(--brand-50); --bs-dropdown-link-active-color: var(--brand-700);
  --bs-dropdown-link-hover-bg: var(--brand-50); --bs-dropdown-link-hover-color: var(--brand-700);
  box-shadow: var(--shadow-lg); min-width: 15rem; padding-inline: .45rem;
}
.dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 9px; padding: .5rem .7rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.dropdown-item .icon { color: var(--brand-500); width: 1.05rem; height: 1.05rem; }
.dropdown-item.active { font-weight: 600; }
@media (min-width: 1200px) {
  .navbar .dropdown-menu { margin-top: .55rem !important; animation: dd-in .16s var(--ease); }
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Mobile off-canvas menu */
@media (max-width: 1199.98px) {
  .offcanvas { --bs-offcanvas-width: min(360px, 88vw); }
  .offcanvas-header { border-bottom: 1px solid var(--line); }
  .offcanvas-title { font-weight: 700; color: var(--brand-800); }
  .offcanvas .navbar-nav .nav-link { font-size: 1rem; padding: .7rem .8rem !important; }
  .offcanvas .dropdown-menu { box-shadow: none; border: 0; background: var(--bg); margin: .2rem 0 .5rem; animation: none; }
  .offcanvas-extra { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ News ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ticker-inner { display: flex; align-items: center; gap: .9rem; min-height: 42px; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent-600);
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  background: var(--accent-50); padding: .25rem .6rem; border-radius: 999px;
}
.lang-ml .ticker-label { letter-spacing: 0; font-size: .78rem; text-transform: none; }
.ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 3rem; margin: 0; padding: 0; list-style: none; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-track li { white-space: nowrap; }
.ticker-track a { color: var(--ink-2); text-decoration: none; }
.ticker-track a strong { color: var(--brand-700); font-weight: 600; }
.ticker-track a:hover { color: var(--brand-700); }
.ticker-toggle { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.ticker-toggle:hover { color: var(--brand-700); border-color: var(--brand-300); }
.ticker-toggle .i-play { display: none; }
.ticker.is-paused .ticker-toggle .i-play { display: block; }
.ticker.is-paused .ticker-toggle .i-pause { display: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: nowrap; }
  .ticker-viewport { overflow-x: auto; }
}

/* ------------------------------------------------------------------ Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(600px 300px at 0% 120%, rgba(180, 22, 46, .35), transparent 60%),
    linear-gradient(120deg, var(--brand-800), var(--brand-600) 60%, var(--brand-500));
  padding: 2.1rem 0 2.4rem;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, .05); pointer-events: none;
}
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); font-size: .85rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #fff; text-decoration: none; opacity: .85; }
.page-hero .breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-hero .breadcrumb span { color: rgba(255, 255, 255, .7); }
.page-hero-title { display: flex; align-items: center; gap: 1.1rem; position: relative; z-index: 1; }
.page-hero-icon {
  flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.page-hero-icon .icon { width: 28px; height: 28px; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.page-hero .lead { color: rgba(255, 255, 255, .82); margin: .35rem 0 0; font-size: 1.02rem; max-width: 60ch; }
@media (max-width: 575.98px) {
  .page-hero { padding: 1.5rem 0 1.7rem; }
  .page-hero-icon { width: 46px; height: 46px; border-radius: 12px; }
  .page-hero-icon .icon { width: 22px; height: 22px; }
}

/* ------------------------------------------------------------------ Page body / cards */
.page-body { padding: 2.25rem 0 3.5rem; }
.content-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.4vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.content-card + .content-card { margin-top: 1.5rem; }

/* Long-form content */
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05rem; }
.prose h2 {
  font-size: 1.22rem; margin: 2rem 0 .85rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: .6rem;
}
.prose h2::before { content: ""; width: 6px; height: 1.15em; border-radius: 3px; background: var(--accent-600); flex: none; }
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 .7rem; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin: .3rem 0; }
.prose strong { color: var(--ink); }
.prose .lead-text { font-size: 1.12rem; color: var(--ink); }

.list-check { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.list-check li { position: relative; padding-left: 2rem; margin: 0; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23292d96'%3E%3Cpath d='M12.7 4.7a1 1 0 0 1 0 1.4l-5.5 5.5a1 1 0 0 1-1.4 0L3.3 9.1a1 1 0 1 1 1.4-1.4l1.8 1.8 4.8-4.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.list-check.cols-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 1.5rem; }

.lead-panel {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; color: var(--ink-2);
}
.lead-panel .icon { color: var(--brand-600); width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.note {
  display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--muted);
  background: var(--gold-50); border: 1px solid #f4e3b5; border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1.25rem 0 0;
}
.note .icon { color: #a77a08; margin-top: .2rem; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.fact b { display: block; font-size: 1.3rem; color: var(--brand-700); line-height: 1.25; }
.fact span { font-size: .85rem; color: var(--muted); }

.media-float { float: left; margin: .25rem 1.5rem 1rem 0; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 40%; }
@media (max-width: 575.98px) { .media-float { float: none; display: block; margin: 0 auto 1.25rem; max-width: 60%; } }
.figure-wide { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.figure-wide img { display: block; width: 100%; }

/* Tabs inside content */
.nav-tabs-pill { gap: .5rem; border: 0; margin-bottom: 1.5rem; flex-wrap: wrap; }
.nav-tabs-pill .nav-link {
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: .5rem 1.1rem; background: #fff;
}
.nav-tabs-pill .nav-link:hover { border-color: var(--brand-300); color: var(--brand-700); }
.nav-tabs-pill .nav-link.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* ------------------------------------------------------------------ Tables (interest rates) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.rate-table { margin: 0; font-size: .95rem; --bs-table-bg: transparent; min-width: 420px; }
.rate-table th, .rate-table tr:first-child > th { background: var(--brand-50); color: var(--brand-800); font-weight: 700; font-size: .85rem; text-transform: none; border-bottom: 1px solid var(--brand-100); }
.rate-table td, .rate-table th { padding: .7rem 1rem; vertical-align: middle; border-color: var(--line-2); }
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:nth-child(even) td { background: #fafbfe; }
.rate-table td:last-child, .rate-table td:nth-last-child(2):not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.rate-table td:first-child { color: var(--ink-2); }
.rates-content h2, .rates-content h3, .rates-content h4 { font-size: 1.1rem; margin: 1.75rem 0 .75rem; display: flex; align-items: center; gap: .55rem; padding: 0; border: 0; }
.rates-content h2::before, .rates-content h3::before, .rates-content h4::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--accent-600); }
.rates-content > :first-child { margin-top: 0; }
.rates-updated { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.25rem; }

/* ------------------------------------------------------------------ Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 992px) { .sidebar > :first-child { position: static; } }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.side-title { font-size: .95rem; margin: 0 0 .85rem; display: flex; align-items: center; gap: .5rem; color: var(--brand-800); }
.side-title .icon { color: var(--accent-600); }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.side-nav a {
  display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.side-nav a .icon { color: var(--brand-500); }
.side-nav a .chev { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: .15s var(--ease); width: .8rem; height: .8rem; }
.side-nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.side-nav a:hover .chev { opacity: 1; transform: none; }
.side-nav a.active { background: var(--brand-600); color: #fff; }
.side-nav a.active .icon { color: #fff; }
.side-nav a.active .chev { opacity: 1; transform: none; }
.side-meta { font-size: .8rem; color: var(--muted); margin: .6rem 0 .8rem; }
.rates-mini .table-wrap { margin: 0; border-radius: 10px; }
.rates-mini .rate-table { min-width: 0; font-size: .86rem; }
.rates-mini .rate-table td { padding: .5rem .7rem; }
.help-card { background: linear-gradient(160deg, var(--brand-50), #fff 70%); }
.help-card p { font-size: .9rem; color: var(--muted); }
.help-line { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-top: 1px dashed var(--line); font-size: .93rem; word-break: break-word; }
.help-line .icon { width: 2.1rem; height: 2.1rem; padding: .5rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand-600); }
.help-line small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.help-line:hover { color: var(--brand-700); }

/* ------------------------------------------------------------------ Home: hero carousel */
.home-hero { padding: 1.5rem 0 0; background: linear-gradient(180deg, var(--brand-50), var(--bg) 85%); }
.hero-carousel { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brand-900); position: relative; }
.hero-carousel .carousel-item img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 424; object-fit: cover; }
.hero-carousel .carousel-indicators { margin-bottom: .75rem; gap: .35rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: 0; margin: 0; opacity: .55; background: #fff; transition: width .2s var(--ease), opacity .2s; }
.hero-carousel .carousel-indicators .active { width: 26px; border-radius: 6px; opacity: 1; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 56px; opacity: 1; }
.carousel-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brand-800); box-shadow: var(--shadow); transition: transform .15s; }
.carousel-control-prev:hover .carousel-btn, .carousel-control-next:hover .carousel-btn { transform: scale(1.06); }
.carousel-pause { position: absolute; right: .75rem; bottom: .65rem; z-index: 3; border: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(14, 16, 64, .55); color: #fff; display: grid; place-items: center; }
.carousel-pause .i-play { display: none; }
.carousel-pause[aria-pressed="true"] .i-play { display: block; }
.carousel-pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 575.98px) {
  .home-hero { padding-top: 1rem; }
  .hero-carousel { border-radius: var(--radius); }
  .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
}

/* Quick access tiles */
.quick-access { position: relative; z-index: 2; margin-top: 1.25rem; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .85rem; }
@media (max-width: 991.98px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 459.98px) { .quick-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }
.quick-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem 1.05rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  min-height: 100%;
}
.quick-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--brand-800); }
.quick-tile .qt-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.quick-tile .qt-icon .icon { width: 1.3rem; height: 1.3rem; }
.quick-tile:nth-child(2) .qt-icon { background: var(--accent-50); color: var(--accent-600); }
.quick-tile:nth-child(5) .qt-icon { background: var(--gold-50); color: #a77a08; }
.quick-tile strong { font-size: .93rem; line-height: 1.3; font-weight: 600; }

/* ------------------------------------------------------------------ Home sections */
.section { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .6rem; }
.lang-ml .eyebrow { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin-bottom: .75rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-badge {
  position: absolute; right: -10px; bottom: -22px; background: #fff; border-radius: var(--radius); padding: .9rem 1.1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line);
}
.about-badge .icon { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); }
.about-badge b { display: block; font-size: 1.25rem; color: var(--brand-800); line-height: 1.1; }
.about-badge span { font-size: .8rem; color: var(--muted); }
@media (max-width: 575.98px) { .about-badge { right: 10px; bottom: -18px; } }
.about-text p { color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.75rem 0; }
@media (max-width: 459.98px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { border-left: 3px solid var(--brand-600); padding: .2rem 0 .2rem .9rem; }
.stat b { display: block; font-size: 1.45rem; color: var(--brand-800); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); }

/* Services */
.service-tabs { justify-content: flex-start; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.service-card {
  display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.35rem; text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; position: relative; overflow: hidden;
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand-600), var(--accent-600)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: var(--ink-2); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .sc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.service-card .sc-icon .icon { width: 1.45rem; height: 1.45rem; }
.service-card h3 { font-size: 1.05rem; margin: 0; }
.service-card p { font-size: .9rem; margin: 0; color: var(--muted); flex: 1; }
.service-card .sc-more { font-size: .86rem; font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: .35rem; }
.service-card:hover .sc-more .icon { transform: translateX(3px); }
.service-card .sc-more .icon { transition: transform .2s var(--ease); }

/* Home info panels: news / rates / downloads */
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line-2); }
.panel-head h2, .panel-head h3 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.panel-head h2 .icon, .panel-head h3 .icon { color: var(--accent-600); }
.panel-head a { font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.panel-body { padding: 1rem 1.25rem 1.25rem; flex: 1; }
.panel-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--line-2); font-size: .8rem; color: var(--muted); }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.news-item { display: flex; gap: .9rem; padding: .7rem .5rem; border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.news-item:hover { background: var(--bg); color: var(--ink); }
.news-date { flex: none; width: 54px; text-align: center; border-radius: 12px; background: var(--brand-600); color: #fff; padding: .35rem 0; line-height: 1.1; }
.news-date b { display: block; font-size: 1.25rem; }
.news-date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.news-item p { margin: 0; font-size: .92rem; font-weight: 500; line-height: 1.45; }
.news-item small { color: var(--muted); font-size: .78rem; }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.file-link {
  display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.file-link:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-800); transform: translateX(2px); }
.file-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); }
.file-icon.is-app { background: #e8f6ee; color: var(--success); }
.file-icon .icon { width: 1.2rem; height: 1.2rem; }
.file-meta { min-width: 0; flex: 1; }
.file-meta strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.file-meta small { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.file-dl { flex: none; color: var(--brand-500); }
.badge-new { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--gold-500); color: #3b2a00; padding: .1rem .45rem; border-radius: 999px; margin-left: .35rem; vertical-align: middle; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-900), var(--brand-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3rem); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(180, 22, 46, .45), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; }

/* ------------------------------------------------------------------ News page */
.news-article { padding: 1.5rem 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 74px 1fr; gap: 1.25rem; }
.news-article:first-child { border-top: 0; padding-top: 0; }
.news-article h2 { font-size: 1.12rem; margin: 0 0 .5rem; border: 0; padding: 0; }
.news-article h2::before { display: none; }
.news-article .news-date { width: 74px; padding: .6rem 0; }
.news-article .news-date b { font-size: 1.6rem; }
.news-article p { margin: 0 0 .5rem; }
.news-article img { border-radius: var(--radius); margin-top: .5rem; max-height: 320px; width: auto; }
.news-article:target { background: var(--gold-50); border-radius: var(--radius); padding: 1rem; }
@media (max-width: 459.98px) { .news-article { grid-template-columns: 1fr; } .news-article .news-date { display: inline-flex; gap: .35rem; width: auto; padding: .25rem .7rem; align-items: baseline; } .news-article .news-date b { font-size: 1rem; } }

/* ------------------------------------------------------------------ People grids */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1rem; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto .85rem; display: block; border: 4px solid var(--brand-50); background: var(--bg); }
.person-card.is-former .person-photo { border-radius: 18px; filter: grayscale(.15); }
.person-name { font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.35; margin: 0; }
.person-role { display: inline-block; margin-top: .45rem; font-size: .76rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: .2rem .65rem; border-radius: 999px; }
.person-role.is-lead { background: var(--accent-600); color: #fff; }
.person-period { display: block; font-size: .8rem; color: var(--muted); margin-top: .35rem; }

/* ------------------------------------------------------------------ Branches */
.branch-filter { margin-bottom: 1.25rem; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow-sm); }
.branch-card h2 { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: .6rem; border: 0; padding: 0; }
.branch-card h2::before { display: none; }
.branch-card h2 .icon { color: #fff; background: var(--brand-600); width: 2rem; height: 2rem; padding: .45rem; border-radius: 10px; }
.branch-card.is-ho h2 .icon { background: var(--accent-600); }
.branch-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; margin: 0; font-size: .9rem; }
.branch-dl dt { color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.branch-dl dt .icon { color: var(--brand-500); }
.branch-dl dd { margin: 0; color: var(--ink); }
.chip-list { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.chip { font-size: .75rem; font-weight: 600; background: var(--brand-50); color: var(--brand-700); padding: .2rem .6rem; border-radius: 999px; }
.branch-actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.album-card { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: block; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--brand-800); }
.album-cover { aspect-ratio: 4 / 3; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-300); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-cover .icon { width: 3rem; height: 3rem; }
.album-body { padding: .9rem 1rem; }
.album-body strong { display: block; }
.album-body small { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.photo-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.photo-item:hover img { transform: scale(1.04); }
.photo-item figcaption { padding: .55rem .75rem; font-size: .86rem; }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: var(--radius); }
.lightbox .lb-caption { color: #fff; text-align: center; margin-top: .75rem; }
.lightbox .btn-close { position: absolute; right: 0; top: -2.5rem; }

/* ------------------------------------------------------------------ Forms */
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 10px; border-color: #d6daea; padding: .65rem .85rem; font-size: .98rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(41, 45, 150, .15); }
.req { color: var(--accent-600); margin-left: .15rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); display: flex; gap: .65rem; align-items: flex-start; }
.alert .icon { margin-top: .2rem; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon { flex: none; width: 2.6rem; height: 2.6rem; padding: .65rem; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.contact-card h2 { font-size: 1rem; margin: 0 0 .35rem; border: 0; padding: 0; }
.contact-card h2::before { display: none; }
.contact-card p, .contact-card a { margin: 0; font-size: .95rem; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--brand-950); color: #b9bce6; font-size: .92rem; position: relative; }
.footer-main { padding: 3.5rem 0 2.5rem; }
.footer-logo { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.1rem; }
.footer-about { color: #a9acd9; max-width: 38ch; }
.footer-address { font-style: normal; display: grid; gap: .6rem; margin: 1.25rem 0 0; }
.fa-line { display: flex; gap: .65rem; align-items: flex-start; color: #d4d6f5; text-decoration: none; }
.fa-line .icon { margin-top: .3rem; color: var(--brand-300); }
a.fa-line:hover { color: #fff; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: .35rem 0 1rem; }
.lang-ml .footer-title { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a { color: #b9bce6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.1rem 0; font-size: .82rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom p { margin: 0; color: #9093c7; }
.footer-bottom a { color: #d4d6f5; }
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-600); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s var(--ease); z-index: 1020;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; background: var(--brand-700); }

/* ------------------------------------------------------------------ Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Misc */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .icon { width: 2.6rem; height: 2.6rem; color: var(--brand-300); margin-bottom: .6rem; }
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; color: var(--brand-100); line-height: 1; }
[lang="en"].en-content { font-family: var(--font); }

@media print {
  .topbar, .site-header, .ticker, .sidebar, .site-footer, .to-top, .page-hero::after { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero h1 { color: #000; }
  .content-card { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* Vision & Mission acrostic */
.acrostic { display: grid; gap: .5rem; }
.acrostic-row { display: flex; align-items: center; gap: 1rem; padding: .55rem .75rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.acrostic-letter { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 10px; display: grid; place-items: center; background: var(--brand-600); color: #fff; font-weight: 800; font-size: 1.1rem; }
.acrostic-row:nth-child(odd) .acrostic-letter { background: var(--accent-600); }

/* Keep top-level menu labels on one line on laptop widths */
.navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-nav .nav-link { padding: .55rem .55rem !important; font-size: .9rem; }
  .navbar-brand img { height: 46px; }
}
/* backdrop-filter creates a containing block for position:fixed children,
   which would trap the mobile off-canvas menu inside the header */
@media (max-width: 1199.98px) { .site-header { backdrop-filter: none; background: #fff; } }
@media (max-width: 575.98px) {
  .quick-tile { flex-direction: row; align-items: center; padding: .75rem .8rem; gap: .65rem; }
  .quick-tile .qt-icon { width: 36px; height: 36px; flex: none; }
  .quick-tile strong { font-size: .86rem; }
  .hero-carousel .carousel-indicators { display: none; }
}
/* Branch details: stacked label / value rows */
.branch-dl { grid-template-columns: 1fr; gap: 0; }
.branch-dl dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .6rem; }
.lang-ml .branch-dl dt { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.branch-dl dt:first-child { margin-top: 0; }
.branch-dl dd { padding-left: 1.4rem; }
