/* =====================================================
   Global Styles – Shri Gurudeva Vividhoddesha
   Sahakara Sangha (Limited)
===================================================== */

/* Root palette */
:root {
  --brand-dark: #1f1f1f;
  --brand-accent: #facc15;
  --brand-yellow: #facc15;

  --brand-navy: #1f1f1f;
  --brand-navy-dark: #141414;
  --brand-gold: var(--brand-yellow);
  --brand-gold-soft: #fff7c2;

  --bg-body: #fffdf3;
  --bg-surface: #ffffff;
  --border-subtle: #e5dfc5;
  --text-main: #1f1f1f;
  --text-muted: #6a6a6a;
  --text-soft: #8a8a8a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 10px 30px rgba(31, 31, 31, 0.08);
  --shadow-medium: 0 15px 40px rgba(31, 31, 31, 0.14);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

/* Utility containers */
.main {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================================================
   Header & Navigation
===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.bank-name {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
  color: var(--brand-navy);
}

.bank-subtitle {
  font-size: 12px;
  margin: 2px 0 0;
  color: var(--text-soft);
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #595959;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
}

.nav-link:hover,
.dropdown-toggle:hover {
  background: rgba(250, 204, 21, 0.16);
  color: var(--brand-dark);
}

/* Underline animation */
.nav-link::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-accent));
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.nav-link:hover::after,
.dropdown-toggle:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(229, 231, 235, 0.95);
  padding: 6px;
  list-style: none;
  display: none;
  z-index: 30;
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* --------------------------------------------
   FIX: Stable dropdown position for "Services"
   (desktop)
---------------------------------------------*/
@media (min-width: 769px) {
  .nav-item.dropdown {
    position: relative;
  }

  .nav-item.dropdown .dropdown-menu {
    left: 0; /* anchor to left edge of "Services" */
    right: auto;
    transform: none; /* cancel previous translateX(-50%) */
    margin-top: 6px;
  }
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  color: #3f3f3f;
  transition: background 0.16s ease, color 0.16s ease;
}

.dropdown-link:hover {
  background: rgba(250, 204, 21, 0.22);
  color: var(--brand-dark);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f1f1f;
}

/* Overlay for mobile nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 20;
}

/* =====================================================
   Buttons
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 9px 18px;
  font-size: 15px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 26px;
  border-radius: 40px; /* Large radius fixes corner flattening */

  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  border: none;
  outline: none;

  background: linear-gradient(90deg, #facc15, #facc15, #facc15);
  background-size: 200% 200%;
  transition: background-position 0.3s ease, transform 0.2s ease;
  overflow: hidden; /* IMPORTANT: Fixes leaking color at edges */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-dark);
  border-color: rgba(31, 31, 31, 0.12);
}

.btn-secondary:hover {
  background: #fffaf0;
  border-color: rgba(31, 31, 31, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: rgba(31, 31, 31, 0.45);
}

.btn-outline:hover {
  background: rgba(250, 204, 21, 0.16);
}

/* =====================================================
   Hero Section
===================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.22),
      #ffffff 55%
    )
    fixed;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  z-index: -1;
}

.hero::before {
  width: 260px;
  height: 260px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.65), transparent);
}

.hero::after {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.50), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

/* Hero text */
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--brand-navy);
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.13);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #3f3f3f;
  transition: transform 0.18s ease, background 0.18s ease;
}

.hero-badge:hover {
  transform: translateY(-1px);
  background: rgba(250, 204, 21, 0.16);
}

/* Hero Right column */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Hero decorative graphic */
.hero-graphic {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(31, 31, 31, 0.98),
    rgba(250, 204, 21, 0.98),
    rgba(250, 204, 21, 0.96)
  );
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(31, 31, 31, 0.35);
  overflow: hidden;
  animation: none;
}

.hero-graphic::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.90), transparent);
  right: -30px;
  bottom: -40px;
  opacity: 0.8;
}

.hero-graphic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-graphic-title {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 3px;
}

.hero-graphic-sub {
  font-size: 11px;
  opacity: 0.8;
  margin: 0;
}

.hero-graphic-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.22);
  font-size: 12px;
  font-weight: 500;
}

.hero-graphic-meter {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-graphic-meter-fill {
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff7c2, var(--brand-yellow), #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.hero-graphic-row-bottom {
  font-size: 11px;
}

.hero-graphic-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-graphic-tag-soft {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero EMI calculator card */
.hero-calculator {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

/* =====================================================
   Forms & Inputs
===================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 7px 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(31, 31, 31, 0.82);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
}

/* =====================================================
   Sections & Layout
===================================================== */

.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--brand-navy);
  position: relative;
  padding-bottom: 4px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-accent));
}

.section-subtitle {
  font-size: 14px;
  margin: 4px 0 0;
  color: var(--text-muted);
}

/* Generic grids */
.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards, stats, services, news share similar card style */
.card,
.stat-card,
.service-card,
.news-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #ffffff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

/* Hover elevation */
.service-card:hover,
.news-card:hover,
.stat-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(31, 31, 31, 0.16);
  border-color: rgba(250, 204, 21, 0.65);
  background: radial-gradient(circle at top left, #ffffff, #fffaf0);
}

/* Stats */
.stats {
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 14px 12px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-soft);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 2px;
  color: var(--brand-navy);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 14px 14px 14px;
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.16);
  margin-bottom: 8px;
  font-size: 18px;
}

.service-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
}

.service-desc {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.service-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  color: #595959;
}

.service-list {
  padding-left: 18px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Note text */
.note-text {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 18px;
}

/* =====================================================
   News
===================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  padding: 14px;
}

.news-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.news-title {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--brand-navy);
}

.news-excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================================
   CTA Banner
===================================================== */

.cta-banner {
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fffaf0;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.cta-banner p {
  margin: 0;
  font-size: 14px;
  color: rgba(209, 213, 219, 0.95);
}

/* Animated gradient border for CTA */


.cta-banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(250, 204, 21, 0.90),
    rgba(31, 31, 31, 0.90)
  );
  background-size: 200% 200%;
  animation: none;
  z-index: -2;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--brand-navy),
    var(--brand-navy-dark)
  );
  z-index: -1;
}

/* =====================================================
   Tables (Branches page etc.)
===================================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5dfc5;
}

.table th {
  background: #fffaf0;
  text-align: left;
  font-weight: 600;
  color: #3f3f3f;
}

.table tr:last-child td {
  border-bottom: none;
}

/* =====================================================
   FAQ
===================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid #e5dfc5;
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  color: #1f1f1f;
  background: #ffffff;
}

.faq-answer {
  padding: 0 12px 10px;
  font-size: 13px;
  color: #595959;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* =====================================================
   Auth Card (Login)
===================================================== */

.auth-card {
  max-width: 360px;
  margin: 0 auto;
}

/* =====================================================
   Tabs (Calculators page)
===================================================== */

.tabs {
  margin-top: 18px;
}

.tab-list {
  display: flex;
  border-radius: 999px;
  padding: 3px;
  background: #fffdf3;
  gap: 4px;
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  font-size: 13px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #595959;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tab.active {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 10px 20px rgba(31, 31, 31, 0.12);
}

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =====================================================
   Footer
===================================================== */

.footer {
  margin-top: var(--space-xl);
  background: #242424;
  color: #e5dfc5;
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.footer-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.footer-logo-text h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.footer-logo-text p {
  margin: 0;
  font-size: 12px;
  color: #8a8a8a;
}

.footer-description {
  margin: 0;
  font-size: 13px;
  color: #8a8a8a;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: #e5dfc5;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a {
  color: #8a8a8a;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: #e5dfc5;
}

.contact-info p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #8a8a8a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #8a8a8a;
}

/* =====================================================
   Floating Contact Chip
===================================================== */

.floating-chip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-accent));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.floating-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.floating-chip-icon {
  font-size: 18px;
  line-height: 1;
}

.floating-chip-label {
  white-space: nowrap;
}

/* =====================================================
   Motion Effects Disabled
===================================================== */





/* =====================================================
   Responsive
===================================================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    max-width: 360px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .news-grid,
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    inset: 58px 0 auto;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5dfc5;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 10px 16px 12px;
  }

  .mobile-nav-open .nav-menu {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    margin-top: 4px;
    padding-left: 2px;
    transform: none;
  }

  .mobile-nav-overlay {
    display: none;
  }

  .mobile-nav-open .mobile-nav-overlay {
    display: block;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding-inline: 12px;
  }

  .bank-name {
    font-size: 14px;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .stats-grid,
  .service-grid,
  .news-grid,
  .footer-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-chip {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
  }

  .floating-chip-label {
    display: none;
  }
}

/* =====================================================
   Yellow + Charcoal Theme Refresh
   Flat yellow and charcoal colour system with motion effects disabled.
===================================================== */
:root {
  --brand-dark: #1f1f1f;
  --brand-accent: #facc15;
  --brand-yellow: #facc15;
  --brand-navy: #1f1f1f;
  --brand-navy-dark: #141414;
  --brand-gold: #facc15;
  --brand-gold-soft: #fff7c2;
  --bg-body: #fffdf3;
  --bg-surface: #ffffff;
  --border-subtle: #e5dfc5;
  --text-main: #1f1f1f;
  --text-muted: #626262;
  --text-soft: #858585;
  --shadow-soft: 0 8px 24px rgba(31, 31, 31, 0.10);
  --shadow-medium: 0 14px 34px rgba(31, 31, 31, 0.16);
}

html {
  scroll-behavior: auto;
}

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
  background-image: none !important;
}

body {
  background: var(--bg-body);
  color: var(--text-main);
}

/* Larger, crisp header */
.header {
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 4px solid var(--brand-yellow);
  box-shadow: 0 3px 12px rgba(31, 31, 31, 0.08);
}

.nav-container {
  min-height: 92px;
  padding: 14px 16px;
  gap: 20px;
}

.logo {
  gap: 13px;
}

.logo-img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(31, 31, 31, 0.18);
}

.bank-name {
  color: var(--brand-navy);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.bank-subtitle {
  color: #666666;
  font-size: 13px;
}

.nav-list {
  gap: 6px;
}

.nav-link,
.dropdown-toggle {
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 12px;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link.active {
  color: #171717;
  background: var(--brand-yellow);
}

.nav-link::after,
.dropdown-toggle::after {
  height: 3px;
  background: #1f1f1f !important;
}

.dropdown-menu {
  background: #ffffff;
  border: 2px solid var(--brand-yellow);
  box-shadow: var(--shadow-medium);
}

.dropdown-link {
  color: #1f1f1f;
  font-weight: 600;
}

.dropdown-link:hover {
  background: var(--brand-yellow);
  color: #171717;
}

.mobile-menu-toggle {
  border: 2px solid #1f1f1f;
  background: var(--brand-yellow);
  padding: 9px;
}

.mobile-menu-toggle span {
  background: #1f1f1f;
}

.mobile-nav-overlay {
  background: rgba(0, 0, 0, 0.55);
}

/* Flat yellow and black buttons */
.btn {
  font-weight: 700;
}

.btn-primary {
  color: #171717;
  background: var(--brand-yellow);
  border: 2px solid #1f1f1f;
  box-shadow: 0 5px 14px rgba(31, 31, 31, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--brand-yellow);
  background: #1f1f1f;
  border-color: #1f1f1f;
  transform: none;
}

.btn-primary:active {
  transform: none;
}

.btn-secondary,
.btn-outline {
  color: #1f1f1f;
  background: #ffffff;
  border: 2px solid var(--brand-yellow);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-secondary:focus-visible,
.btn-outline:focus-visible {
  color: #171717;
  background: var(--brand-yellow);
  border-color: #1f1f1f;
}

/* Light yellow hero with no decorative fading blobs */
.hero {
  background: var(--brand-gold-soft);
  border-bottom: 1px solid #eadf9d;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-eyebrow {
  color: #1f1f1f;
  font-weight: 800;
}

.hero-title,
.section-title,
.service-title,
.news-title,
.stat-value {
  color: #1f1f1f;
}

.hero-badge {
  background: #ffffff;
  border: 1px solid #d8c65f;
  color: #1f1f1f;
}

.hero-badge:hover {
  background: #ffffff;
  transform: none;
}

.hero-graphic {
  background: var(--brand-yellow);
  color: #171717;
  border: 2px solid #1f1f1f;
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.18);
}

.hero-graphic::after {
  display: none;
}

.hero-graphic-sub {
  opacity: 1;
}

.hero-graphic-pill,
.hero-graphic-tag {
  color: #ffffff;
  background: #1f1f1f;
  border-color: #1f1f1f;
}

.hero-graphic-tag-soft {
  color: #1f1f1f;
  background: #ffffff;
  border-color: #1f1f1f;
}

.hero-graphic-meter {
  background: rgba(31, 31, 31, 0.20);
}

.hero-graphic-meter-fill {
  background: #1f1f1f;
  box-shadow: none;
}

.hero-calculator {
  border: 2px solid var(--brand-yellow);
  box-shadow: var(--shadow-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #bdb58d;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1f1f1f;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.42);
}

.section-title::after {
  background: var(--brand-yellow);
}

.card,
.stat-card,
.service-card,
.news-card {
  border-color: #ddd5ae;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(31, 31, 31, 0.07);
}

.service-card:hover,
.news-card:hover,
.stat-card:hover,
.card:hover {
  transform: none;
  background: #ffffff;
  border-color: var(--brand-yellow);
  box-shadow: 0 7px 22px rgba(31, 31, 31, 0.12);
}

.service-icon {
  color: #1f1f1f;
  background: var(--brand-yellow);
  border: 1px solid #1f1f1f;
}

.service-tag {
  color: #1f1f1f;
  background: #fff9d9;
  border-color: #cbb94f;
}

.cta-banner {
  color: #ffffff;
  background: #1f1f1f;
  border: 3px solid var(--brand-yellow);
}

.cta-banner p {
  color: #e8e8e8;
}

.cta-banner::before,
.cta-banner::after {
  display: none;
}

.table,
.faq-item,
.faq-question {
  background: #ffffff;
}

.table th {
  color: #1f1f1f;
  background: #fff5b8;
}

.table th,
.table td,
.faq-item {
  border-color: #ded6af;
}

.faq-question:hover {
  background: #fff9d9;
}

.tab-list {
  background: #f4edc8;
}

.tab.active {
  color: #171717;
  background: var(--brand-yellow);
  box-shadow: none;
}

/* Charcoal black footer */
.footer {
  background: #242424;
  color: #ffffff;
  border-top: 5px solid var(--brand-yellow);
}

.footer-logo-text h3,
.footer-title {
  color: var(--brand-yellow);
}

.footer-logo-text p,
.footer-description,
.footer-links a,
.contact-info p,
.footer-bottom {
  color: #d5d5d5;
}

.footer-links a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.20);
}

.floating-chip {
  color: #171717;
  background: var(--brand-yellow);
  border: 2px solid #1f1f1f;
  box-shadow: 0 8px 22px rgba(31, 31, 31, 0.24);
}

.floating-chip:hover {
  color: var(--brand-yellow);
  background: #1f1f1f;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 78px;
    padding: 10px 12px;
  }

  .logo-img {
    width: 54px;
    height: 54px;
  }

  .nav-menu {
    inset: 78px 0 auto;
    background: #ffffff;
    border-bottom: 4px solid var(--brand-yellow);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .bank-name {
    font-size: 14px;
  }

  .bank-subtitle {
    font-size: 11px;
  }
}

/* Larger header switches to the compact navigation sooner on tablets. */
@media (max-width: 1024px) {
  .nav-container {
    min-height: 78px;
    padding: 10px 12px;
  }

  .logo-img {
    width: 54px;
    height: 54px;
  }

  .bank-name {
    font-size: 14px;
  }

  .bank-subtitle {
    font-size: 11px;
  }

  .nav-menu {
    position: fixed;
    inset: 78px 0 auto;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 4px solid var(--brand-yellow);
    transform: translateY(-110%);
    opacity: 1;
    pointer-events: none;
    padding: 12px 16px 16px;
  }

  .mobile-nav-open .nav-menu {
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-link,
  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 4px;
    padding-left: 8px;
    transform: none;
  }

  .mobile-nav-overlay {
    display: none;
  }

  .mobile-nav-open .mobile-nav-overlay {
    display: block;
  }
}


/* Keep the full institution name readable in the enlarged desktop header. */
@media (min-width: 1025px) {
  .logo {
    flex: 0 0 auto;
    min-width: 370px;
  }

  .bank-name {
    white-space: nowrap;
  }
}

@media (min-width: 1025px) {
  .logo {
    min-width: 400px;
  }

  .logo-text {
    min-width: 315px;
  }

  .bank-name {
    font-size: 17px;
  }
}

/* Simple block flow prevents title/subtitle overlap across renderers. */
.logo-text {
  display: block;
}


/* ===== Official bilingual production refinements ===== */
:root { --brand-accent:#ffff00; --brand-yellow:#ffff00; --brand-gold:#ffff00; --brand-gold-soft:#ffffd9; }
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:#fffdf3}
html[lang="kn"] body,html[lang="kn"] button,html[lang="kn"] input,html[lang="kn"] select,html[lang="kn"] textarea{font-family:"Baloo Tamma 2","Noto Sans Kannada","Nirmala UI",Tunga,sans-serif;line-height:1.7}
.header{backdrop-filter:none;background:#fff}
.nav-container{max-width:1440px;padding:12px clamp(16px,3vw,48px)}
.logo{min-width:0;flex:1}
.logo-text{min-width:0}.bank-name{font-size:clamp(14px,1.15vw,18px);white-space:normal}.bank-subtitle{font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.nav-menu{margin-left:auto}.nav-list{gap:2px}.nav-link,.dropdown-toggle{font-weight:600;color:#282828;padding:10px 9px;border-radius:10px}
.nav-link.active{background:#ffff00;color:#111}.nav-link::after,.dropdown-toggle::after{display:none}
.btn{font-weight:650}.btn-primary{background:#ffff00;color:#111;border-color:#111}.btn-primary:hover{background:#111;color:#ffff00}
.hero{background:#fffef2;border-bottom:1px solid #e5dfc5}.hero-eyebrow{background:#111;color:#ffff00;border-radius:999px;padding:7px 12px;display:inline-flex;font-weight:700}.hero-title{max-width:760px}
.hero-badges{flex-wrap:wrap}.hero-badge{border:1px solid #ded8bb;background:#fff;padding:8px 12px;border-radius:999px}
.official-notice{background:#fffed0;border:1px solid #cfc800;border-left:5px solid #111;padding:14px 16px;border-radius:10px;margin:18px 0;color:#242424}
.rate-note{font-size:13px;color:#5d5d5d;margin-top:14px}.section.compact{padding-top:28px}.section.alt{background:#fffef0;border-top:1px solid #ece7cf;border-bottom:1px solid #ece7cf}
.card,.service-card,.stat-card{border:1px solid #ded9c1;box-shadow:0 8px 24px rgba(31,31,31,.06)}
.card h3,.service-title{line-height:1.25}.service-icon{background:#ffff00;color:#111;border:1px solid #111}
.table th{background:#171717;color:#fff}.table td,.table th{vertical-align:top}.table tbody tr:nth-child(even){background:#fffef0}
.data-note{font-size:12px;color:#6a6a6a;margin:8px 0 0}.long-copy{max-width:900px}.long-copy p{margin:0 0 14px}.feature-list{margin:0;padding-left:20px}.feature-list li{margin:8px 0}
.highlight-panel{background:#171717;color:#fff;border-radius:18px;padding:clamp(22px,4vw,42px);border-bottom:5px solid #ffff00}.highlight-panel h2,.highlight-panel h3{color:#fff}.highlight-panel strong,.highlight-panel a{color:#ffff00}
.language-link{border:1px solid #111;padding:9px 12px;border-radius:10px;text-decoration:none;color:#111;font-weight:700;white-space:nowrap}.language-link:hover{background:#ffff00}
.footer-logo-text h3{color:#ffff00;display:block!important;opacity:1!important}.footer-logo-text{min-width:0}.footer-logo-text h3{overflow-wrap:anywhere}.footer-description{max-width:420px}.developer-credit a{color:#ffff00;font-weight:700}
.mobile-language{display:none}.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.branch-chip{display:inline-flex;padding:7px 10px;border:1px solid #d8d1b1;border-radius:999px;background:#fff;margin:4px 4px 4px 0}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:999;background:#ffff00;color:#111;padding:10px}.skip-link:focus{left:8px}
:focus-visible{outline:3px solid #111;outline-offset:3px}
@media(max-width:1100px){.nav-menu{position:fixed}.mobile-language{display:block}.header-actions .language-link{display:none}.nav-list{gap:0}}
@media(max-width:768px){.contact-grid{grid-template-columns:1fr}.hero-title{font-size:clamp(34px,10vw,50px)}.section{padding:48px 0}.logo-img{width:50px;height:50px}.bank-name{font-size:13px}.bank-subtitle{font-size:10px}.table{min-width:680px}.footer-content{grid-template-columns:1fr}.footer-logo{align-items:flex-start}}
@media(max-width:420px){.logo-text{max-width:220px}.bank-name{font-size:12px}.nav-container{padding:9px 12px}.hero-actions .btn{width:100%}.hero-actions{display:grid}.card{padding:18px}}

/* ===== V2 card spacing and action-link refinement ===== */
.card {
  padding: clamp(20px, 2.2vw, 30px);
  overflow: hidden;
}

.card > h2:first-child,
.card > h3:first-child,
.card > h4:first-child {
  margin-top: 0;
}

.card h2,
.card h3,
.card h4 {
  margin-bottom: 14px;
}

.card > div,
.card > p {
  line-height: 1.65;
}

.card p {
  margin: 16px 0 0;
}

.card a:not(.btn):not(.language-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1.5px solid #171717;
  border-radius: 999px;
  background: #ffff00;
  color: #171717;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 3px 3px 0 #171717;
}

.card a:not(.btn):not(.language-link):hover,
.card a:not(.btn):not(.language-link):focus-visible {
  background: #171717;
  color: #ffff00;
  box-shadow: none;
}

.grid-2 > .card,
.grid-3 > .card {
  height: 100%;
}

.grid-2 > .card > div,
.grid-3 > .card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.grid-2 > .card p:last-child,
.grid-3 > .card p:last-child {
  margin-top: auto;
  padding-top: 18px;
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
  }

  .card a:not(.btn):not(.language-link) {
    width: 100%;
  }
}


/* Bilingual consistency, calculator hub CTA and Kannada typography v3 */
html[lang="kn"], html[lang="kn"] body {
  font-family: "Baloo Tamma 2", "Noto Sans Kannada", "Nirmala UI", Tunga, sans-serif !important;
}
html[lang="kn"] :where(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,span,li,th,td,div) {
  font-family: inherit;
}
html[lang="kn"] body { line-height: 1.72; }
html[lang="kn"] .hero-title { line-height: 1.28; letter-spacing: 0; }
html[lang="kn"] .bank-name, html[lang="kn"] .nav-link, html[lang="kn"] .btn { letter-spacing: 0; }
.calculator-hub-card { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.calculator-hub-card h3, .calculator-hub-card p { margin:0; }
.calculator-kicker { display:inline-flex; padding:5px 10px; border-radius:999px; background:#111; color:#ffff00; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
html[lang="kn"] .calculator-kicker { text-transform:none; letter-spacing:0; }
.calculator-feature-list { display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:2px 0 4px; list-style:none; }
.calculator-feature-list li { border:1px solid #d8d2b6; background:#fffef4; border-radius:999px; padding:7px 11px; font-size:.88rem; font-weight:600; color:#292929; }
.calculator-hub-link { width:100%; justify-content:center; text-decoration:none; }
@media (max-width: 640px) { .calculator-feature-list { display:grid; width:100%; grid-template-columns:1fr; } .calculator-feature-list li { text-align:center; } }

/* Board member content integration — uses existing card/grid theme */
.board-card{overflow:hidden}.board-photo{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;margin:0 0 18px}.board-role{margin-top:-4px!important;margin-bottom:14px!important}.board-card>div p{margin-bottom:10px}.board-card>div p:last-child{margin-bottom:0}

/* ===== Update 2.0: homepage heading, board photos, branch directory/map ===== */
.hero-title{font-size:clamp(44px,4.8vw,68px);line-height:1.08;max-width:860px}
html[lang="kn"] .hero-title{font-size:clamp(40px,4.25vw,60px);line-height:1.22}
.board-card .board-photo{width:min(180px,100%);height:150px;aspect-ratio:auto;object-fit:cover;object-position:center top;margin:0 auto 16px;border-radius:10px}
.board-card{break-inside:avoid;page-break-inside:avoid}
.branch-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.branch-address-card{display:flex;flex-direction:column;gap:10px}
.branch-address-card h3{margin-bottom:0}.branch-address,.branch-phone{margin:0}.branch-phone{font-size:14px}
.branch-map-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:4px}.branch-map-actions .btn{font-size:13px;padding:9px 12px}
.branch-map-panel{margin-top:28px;border:1px solid #ded9c1;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(31,31,31,.06)}
.branch-map-heading{padding:14px 18px;font-weight:700;background:#171717;color:#ffff00}
.branch-map-panel iframe{display:block;width:100%;height:420px;border:0}
@media(max-width:768px){.hero-title{font-size:clamp(38px,10vw,52px)}html[lang="kn"] .hero-title{font-size:clamp(35px,9vw,48px)}.branch-directory-grid{grid-template-columns:1fr}.branch-map-panel iframe{height:340px}.board-card .board-photo{width:min(160px,100%);height:135px}}
@media print{.board-card{break-inside:avoid;page-break-inside:avoid}.board-card .board-photo{width:140px;height:118px}.branch-map-actions,.branch-map-panel{display:none!important}}

/* ===== Board profile layout refinement ===== */
.board-list{display:grid;grid-template-columns:1fr;gap:22px}
.board-list .board-card{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:26px;row-gap:12px;align-items:start;padding:24px}
.board-list .board-card .board-photo{grid-column:1;grid-row:1 / span 2;width:220px;height:185px;max-width:none;aspect-ratio:auto;object-fit:cover;object-position:center top;margin:0;border-radius:12px}
.board-summary{grid-column:2;grid-row:1;align-self:center}
.board-summary h3{margin:0 0 12px;font-size:1.3rem;line-height:1.3}
.board-meta{margin:5px 0!important;line-height:1.55}
.board-meta-label{font-weight:700;color:var(--text-dark,#222)}
.board-details{grid-column:2;grid-row:2}
.board-details p:first-child{margin-top:0}
@media(max-width:768px){
  .board-list .board-card{grid-template-columns:140px minmax(0,1fr);column-gap:18px;padding:18px}
  .board-list .board-card .board-photo{width:140px;height:130px}
  .board-summary h3{font-size:1.1rem}
}
@media(max-width:520px){
  .board-list .board-card{grid-template-columns:1fr;grid-template-rows:auto auto auto}
  .board-list .board-card .board-photo{grid-column:1;grid-row:1;width:180px;height:155px;margin:0}
  .board-summary{grid-column:1;grid-row:2}
  .board-details{grid-column:1;grid-row:3}
}


/* board qualification inline */
.board-summary h3 .board-qualification{display:inline-block;margin-left:8px;font-size:.78em;font-weight:600;color:var(--text-secondary,#5f6368);white-space:nowrap}
@media(max-width:480px){.board-summary h3 .board-qualification{display:inline;margin-left:6px;white-space:normal}}


/* ===== SGVSS Update 3 refinements ===== */
.board-card .board-details p{ text-align:justify; text-justify:inter-word; }
.financial-table tbody td:not(:first-child){ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.financial-table tbody td:first-child{ font-weight:700; white-space:nowrap; }
.home-page .bank-name{ font-size:clamp(15px,1.25vw,19px); }
.coming-soon-card{max-width:760px;margin:0 auto;text-align:center;border:1px solid #ded9c1;background:#fff;border-radius:20px;padding:clamp(34px,7vw,72px) clamp(22px,6vw,56px);box-shadow:0 12px 32px rgba(31,31,31,.07)}
.coming-soon-mark{display:inline-block;background:#111;color:#ffff00;border-radius:999px;padding:8px 14px;font-weight:800;margin-bottom:18px}.coming-soon-card h2{margin:0 0 12px}.coming-soon-card p{margin:0;color:#5d5d5d}
@media(max-width:1180px) and (min-width:769px){.nav-link,.dropdown-toggle{padding-left:7px;padding-right:7px;font-size:13px}.home-page .bank-name{font-size:16px}}


/* ===== Home bank lockup + financial decimal alignment refinement ===== */
.home-page .home-bank-lockup{display:flex;flex-direction:column;line-height:1.08;margin:0}
.home-page .home-bank-primary{display:block;font-size:clamp(20px,1.65vw,26px);font-weight:850;letter-spacing:-.02em}
.home-page .home-bank-secondary{display:block;font-size:clamp(13px,1vw,16px);font-weight:750;margin-top:3px}
.home-page .home-bank-place{display:block;margin-top:4px;font-size:12px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
html[lang="kn"] .home-page .home-bank-primary{font-size:clamp(19px,1.55vw,24px);letter-spacing:0}
html[lang="kn"] .home-page .home-bank-secondary{font-size:clamp(13px,.95vw,16px)}
.financial-table .financial-center{text-align:center!important}
.financial-table tbody td.financial-decimal{text-align:right!important;font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap}
.financial-table tbody td.financial-label{text-align:left!important;font-weight:700;white-space:nowrap}
@media(max-width:768px){.home-page .home-bank-primary{font-size:18px}.home-page .home-bank-secondary{font-size:12px}.home-page .home-bank-place{font-size:10px;letter-spacing:.08em}}


/* ===== Global three-line bank lockup + slightly smaller home hero ===== */
.bank-lockup{display:flex;flex-direction:column;line-height:1.06;margin:0}
.bank-lockup .bank-primary{display:block;font-size:clamp(22px,1.65vw,27px);font-weight:850;letter-spacing:-.02em}
.bank-lockup .bank-secondary{display:block;font-size:clamp(16px,1.18vw,19px);font-weight:750;margin-top:4px;line-height:1.12}
.bank-place{display:block;margin-top:5px;font-size:12px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
html[lang="kn"] .bank-lockup .bank-primary{font-size:clamp(21px,1.55vw,25px);letter-spacing:0}
html[lang="kn"] .bank-lockup .bank-secondary{font-size:clamp(15px,1.12vw,18px);letter-spacing:0}
html[lang="kn"] .bank-place{letter-spacing:0;text-transform:none}
.home-page .hero-title{font-size:clamp(40px,4.15vw,60px);line-height:1.08}
html[lang="kn"] .home-page .hero-title{font-size:clamp(36px,3.75vw,54px);line-height:1.22}
@media(max-width:768px){
  .bank-lockup .bank-primary{font-size:18px}
  .bank-lockup .bank-secondary{font-size:13px;margin-top:2px}
  .bank-place{font-size:10px;letter-spacing:.08em;margin-top:3px}
  html[lang="kn"] .bank-lockup .bank-primary{font-size:18px}
  html[lang="kn"] .bank-lockup .bank-secondary{font-size:13px}
  .home-page .hero-title{font-size:clamp(34px,9vw,48px)}
  html[lang="kn"] .home-page .hero-title{font-size:clamp(32px,8.4vw,44px)}
}

/* ===== Financial table fit + Kannada home header consistency ===== */
.financial-table{
  width:100%;
  table-layout:fixed;
  font-size:12px;
}
.financial-table th,
.financial-table td{
  padding:8px 5px;
}
.financial-table th:first-child,
.financial-table td:first-child{
  width:15%;
}
.financial-table tbody td.financial-label{
  white-space:normal;
  line-height:1.25;
}
.financial-table th{
  white-space:normal;
  line-height:1.2;
}
.financial-table + *{}
.table-wrapper:has(.financial-table){
  overflow-x:hidden;
}
html[lang="kn"] .home-page .bank-lockup .bank-primary{
  font-size:clamp(21px,1.55vw,25px);
}
@media(max-width:1100px){
  .financial-table{font-size:11px;}
  .financial-table th,.financial-table td{padding:7px 4px;}
  .financial-table th:first-child,.financial-table td:first-child{width:14%;}
}
@media(max-width:768px){
  .financial-table{font-size:9.5px;}
  .financial-table th,.financial-table td{padding:6px 2px;}
  .financial-table th:first-child,.financial-table td:first-child{width:16%;}
  .financial-table tbody td.financial-decimal{white-space:normal;}
  html[lang="kn"] .home-page .bank-lockup .bank-primary{font-size:18px;}
}


/* ===== Instructions 4.0: financial alignment + Special Scheme brochure modal ===== */
.financial-table tbody td.financial-decimal{
  text-align:right!important;
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
}
.financial-table tbody td.financial-center,
.financial-table thead th.financial-center{ text-align:center!important; }

.scheme-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.scheme-card{ overflow:hidden; }
.scheme-card h3{ margin-bottom:14px; }
.scheme-image-button{
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
  text-align:left;
  border-radius:14px;
  overflow:hidden;
  position:relative;
}
.scheme-thumb{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
}
.scheme-enlarge-hint{
  position:absolute;
  right:10px;
  bottom:10px;
  background:rgba(17,17,17,.86);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.scheme-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.scheme-modal.is-open{ display:flex; }
.scheme-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
}
.scheme-modal-dialog{
  position:relative;
  z-index:1;
  width:min(1180px,96vw);
  max-height:92vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.scheme-modal-image{
  display:block;
  max-width:100%;
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  box-shadow:0 20px 70px rgba(0,0,0,.4);
}
.scheme-modal-close{
  position:absolute;
  top:-18px;
  right:-18px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:2px solid #fff;
  background:#171717;
  color:#fff;
  font-size:30px;
  line-height:36px;
  cursor:pointer;
  z-index:2;
}
body.scheme-modal-open{ overflow:hidden; }
@media(max-width:760px){
  .scheme-grid{ grid-template-columns:1fr; gap:18px; }
  .scheme-modal{ padding:14px; }
  .scheme-modal-close{ top:8px; right:8px; }
  .scheme-modal-dialog{ width:100%; }
}

/* Gallery / news cards */
.gallery-caption{margin-top:14px;line-height:1.65;text-align:justify;}
.news-event-card{max-width:820px;margin:0 auto;}
.news-event-thumb{max-height:520px;object-fit:contain;background:#fff;}

/* ===== 2026-10 mobile production hardening ===== */
html, body { width:100%; max-width:100%; overflow-x:clip; }
img, video, iframe, svg { max-width:100%; }

/* Keep the sticky header compact and fully visible on phones. */
@media (max-width: 1024px) {
  .header { position:sticky; top:0; }
  .nav-container {
    width:100%;
    min-height:74px;
    padding:8px 12px;
    gap:8px;
    flex-wrap:nowrap;
  }
  .logo {
    flex:1 1 auto;
    min-width:0;
    max-width:calc(100% - 58px);
    gap:9px;
    overflow:hidden;
  }
  .logo-img {
    flex:0 0 48px;
    width:48px;
    height:48px;
    border-radius:11px;
  }
  .logo-text {
    display:block;
    flex:1 1 auto;
    min-width:0;
    max-width:100%;
    overflow:hidden;
  }
  .bank-lockup { min-width:0; line-height:1.03; }
  .bank-lockup .bank-primary,
  html[lang="kn"] .bank-lockup .bank-primary {
    font-size:16px;
    line-height:1.05;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .bank-lockup .bank-secondary,
  html[lang="kn"] .bank-lockup .bank-secondary {
    font-size:11.5px;
    line-height:1.13;
    margin-top:2px;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .bank-place,
  html[lang="kn"] .bank-place {
    font-size:9.5px;
    line-height:1.1;
    margin-top:3px;
    letter-spacing:.07em;
    white-space:nowrap;
  }
  .header-actions {
    flex:0 0 auto;
    margin-left:auto;
    gap:0;
  }
  .mobile-menu-toggle {
    flex:0 0 44px;
    width:44px;
    height:44px;
    padding:9px;
    align-items:center;
    justify-content:center;
  }
  .mobile-menu-toggle span { width:22px; height:2.5px; }

  /* Truly hide the menu when closed; prevents the language item peeking above the header. */
  .nav-menu {
    display:none;
    position:fixed;
    top:74px;
    left:0;
    right:0;
    inset:auto 0 auto 0;
    max-height:calc(100dvh - 74px);
    overflow-y:auto;
    transform:none !important;
    opacity:1 !important;
    pointer-events:auto;
    padding:10px 14px 16px;
    background:#fff;
    border-bottom:4px solid var(--brand-yellow);
    box-shadow:0 10px 24px rgba(0,0,0,.14);
    z-index:45;
  }
  .mobile-nav-open .nav-menu { display:block; }
  .nav-list { width:100%; }
  .nav-item { width:100%; }
  .nav-link, .dropdown-toggle, .language-link {
    max-width:100%;
    min-height:42px;
  }
  .mobile-nav-overlay { z-index:39; }
}

@media (max-width: 560px) {
  .container { padding-left:14px; padding-right:14px; }
  .nav-container { padding-left:10px; padding-right:10px; }
  .logo { max-width:calc(100% - 50px); gap:8px; }
  .logo-img { flex-basis:44px; width:44px; height:44px; }
  .bank-lockup .bank-primary,
  html[lang="kn"] .bank-lockup .bank-primary { font-size:15px; }
  .bank-lockup .bank-secondary,
  html[lang="kn"] .bank-lockup .bank-secondary { font-size:10.5px; }
  .bank-place,
  html[lang="kn"] .bank-place { font-size:9px; }

  .hero { padding:34px 0 30px; }
  .hero-grid { gap:24px; }
  .hero-eyebrow {
    max-width:100%;
    font-size:12px;
    line-height:1.35;
    padding:7px 10px;
    border-radius:18px;
    white-space:normal;
  }
  .home-page .hero-title,
  html[lang="kn"] .home-page .hero-title {
    font-size:clamp(30px,9vw,38px);
    line-height:1.12;
    overflow-wrap:anywhere;
  }
  .hero-subtitle { font-size:15px; line-height:1.55; }
  .hero-actions { display:grid; grid-template-columns:1fr; width:100%; gap:12px; }
  .hero-actions .btn { width:100%; white-space:normal; text-align:center; }
  .hero-badges { gap:8px; }
  .hero-badge { font-size:13px; padding:7px 10px; }
  .hero-right { width:100%; max-width:none; }
  .hero-graphic, .hero-calculator { width:100%; }
  .hero-graphic-row { gap:10px; flex-wrap:wrap; }
  .hero-graphic-row-bottom { align-items:flex-start; }
  .hero-graphic-tag { font-size:12px; }

  .section { padding:40px 0; }
  .section-title { font-size:clamp(24px,7vw,32px); }
  .section-subtitle { font-size:14px; }
  .card, .service-card, .stat-card, .news-card { min-width:0; padding:18px; }

  /* Long grids/cards become a clean single column. */
  .grid-2, .grid-3, .grid-4,
  .service-grid, .news-grid, .stats-grid,
  .scheme-grid, .branch-directory-grid,
  .footer-content { grid-template-columns:1fr !important; }

  /* Board profiles: no squeezed two-column text on narrow phones. */
  .board-list .board-card {
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:14px;
    padding:18px;
  }
  .board-list .board-card .board-photo {
    grid-column:1;
    grid-row:1;
    width:min(210px,62vw);
    height:auto;
    aspect-ratio:6/5;
    margin:0;
    object-fit:cover;
  }
  .board-summary { grid-column:1; grid-row:2; }
  .board-details { grid-column:1; grid-row:3; min-width:0; }
  .board-details p { overflow-wrap:anywhere; }

  /* General tables remain usable without forcing the whole page wider. */
  .table-wrapper {
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
  }
  .table-wrapper:not(:has(.financial-table)) .table { min-width:620px; }

  /* Financial performance is explicitly compressed to the viewport. */
  .table-wrapper:has(.financial-table) { overflow-x:hidden; }
  .financial-table {
    width:100%;
    min-width:0 !important;
    table-layout:fixed;
    font-size:8.2px;
  }
  .financial-table th,
  .financial-table td {
    padding:5px 1px;
    line-height:1.12;
    overflow:hidden;
    text-overflow:clip;
  }
  .financial-table th:first-child,
  .financial-table td:first-child { width:18%; }
  .financial-table thead th { font-size:7.8px; }
  .financial-table tbody td.financial-label {
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:left!important;
  }
  .financial-table tbody td.financial-decimal { white-space:nowrap; }

  .scheme-card { padding:16px; }
  .scheme-image-button { overflow:visible; }
  .scheme-thumb { width:100%; height:auto; object-fit:contain; }
  .scheme-enlarge-hint { font-size:11px; right:7px; bottom:7px; }
  .scheme-modal { padding:10px; }
  .scheme-modal-dialog { max-height:96dvh; }
  .scheme-modal-image { max-height:92dvh; border-radius:8px; }

  .branch-map-panel iframe { height:300px; }
  .branch-map-actions .btn { flex:1 1 140px; white-space:normal; }

  .gallery-caption { text-align:left; font-size:14px; }
  .news-event-card { width:100%; }
  .news-event-thumb { width:100%; height:auto; max-height:none; }

  .footer { overflow:hidden; }
  .footer-content { gap:28px; }
  .footer-logo { min-width:0; }
  .footer-logo-text { min-width:0; }
  .footer-logo-text h3 { overflow-wrap:anywhere; }
  .footer-bottom { gap:10px; }
}

@media (max-width: 380px) {
  .logo-img { flex-basis:40px; width:40px; height:40px; }
  .bank-lockup .bank-primary,
  html[lang="kn"] .bank-lockup .bank-primary { font-size:14px; }
  .bank-lockup .bank-secondary,
  html[lang="kn"] .bank-lockup .bank-secondary { font-size:9.6px; }
  .bank-place,
  html[lang="kn"] .bank-place { font-size:8.4px; }
  .mobile-menu-toggle { flex-basis:40px; width:40px; height:40px; }
  .home-page .hero-title,
  html[lang="kn"] .home-page .hero-title { font-size:29px; }
  .financial-table { font-size:7.4px; }
  .financial-table thead th { font-size:7px; }
}

/* Shared visitor counter */
.visitor-counter {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#d5d5d5;
  font-variant-numeric:tabular-nums;
}
.visitor-counter strong { color:var(--brand-yellow); font-weight:800; }
.visitor-counter-dot { width:7px; height:7px; border-radius:50%; background:var(--brand-yellow); flex:0 0 auto; }

/* ===== 2026-10-27 mobile navigation reliability ===== */
:root { --mobile-header-height: 74px; }
@media (max-width: 1024px) {
  body.mobile-nav-open { overflow:hidden; touch-action:none; }
  .nav-menu {
    top:var(--mobile-header-height) !important;
    max-height:calc(100dvh - var(--mobile-header-height)) !important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .mobile-nav-open .nav-menu { display:block; }
  .nav-list {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:0;
    margin:0;
  }
  .nav-item { margin:0; }
  .nav-link,
  .dropdown-toggle,
  .mobile-language .language-link {
    display:flex;
    align-items:center;
    width:100%;
    min-height:44px;
    padding:10px 16px;
    line-height:1.2;
    border-radius:9px;
  }
  .mobile-language { margin-top:4px; padding-top:4px; }
  .mobile-nav-overlay {
    top:var(--mobile-header-height);
    height:calc(100dvh - var(--mobile-header-height));
  }
}
@media (max-width: 560px) and (max-height: 760px) {
  .nav-menu { padding-top:6px; padding-bottom:8px; }
  .nav-link,
  .dropdown-toggle,
  .mobile-language .language-link {
    min-height:39px;
    padding-top:7px;
    padding-bottom:7px;
    font-size:15px;
  }
}


/* ===== FINAL mobile sticky + navigation reliability merge ===== */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
}
@media (max-width:1024px){
  body.mobile-nav-open { overflow:hidden !important; touch-action:none; }
  .nav-menu {
    display:none !important;
    position:fixed !important;
    top:var(--mobile-header-height,74px) !important;
    left:0 !important;
    right:0 !important;
    bottom:auto !important;
    height:auto !important;
    max-height:calc(100dvh - var(--mobile-header-height,74px)) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch;
    transform:none !important;
    translate:none !important;
    padding:8px 14px 14px !important;
    background:#fff !important;
    z-index:1002 !important;
    scroll-behavior:auto !important;
  }
  .mobile-nav-open .nav-menu { display:block !important; }
  .nav-menu .nav-list {
    position:relative !important;
    inset:auto !important;
    transform:none !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:0 !important;
  }
  .nav-menu .nav-item { margin:0 !important; width:100% !important; }
  .nav-menu .nav-link,
  .nav-menu .dropdown-toggle,
  .nav-menu .mobile-language .language-link {
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    min-height:42px !important;
    padding:8px 14px !important;
    line-height:1.2 !important;
  }
  .mobile-nav-overlay {
    position:fixed !important;
    top:var(--mobile-header-height,74px) !important;
    left:0 !important; right:0 !important; bottom:0 !important;
    height:auto !important;
    z-index:1001 !important;
  }
}
@media (max-width:560px) and (max-height:760px){
  .nav-menu .nav-link,
  .nav-menu .dropdown-toggle,
  .nav-menu .mobile-language .language-link {
    min-height:38px !important;
    padding-top:6px !important;
    padding-bottom:6px !important;
    font-size:15px !important;
  }
}

/* ===== 2026-11-03 mobile menu click-layer fix ===== */
@media (max-width:1024px){
  /* The backdrop is a sibling of .header, so it must remain below the header's
     stacking context. Otherwise it intercepts taps intended for the drawer. */
  .mobile-nav-overlay{
    z-index:999 !important;
    pointer-events:auto !important;
  }
  .header{
    z-index:1000 !important;
  }
  .nav-menu{
    z-index:1002 !important;
    pointer-events:auto !important;
  }
  .nav-menu .nav-list,
  .nav-menu .nav-item,
  .nav-menu .nav-link,
  .nav-menu .dropdown-toggle,
  .nav-menu .language-link{
    pointer-events:auto !important;
  }
}
