/* =============================================
   ATWIMA MPONUA RURAL BANK - Modern Redesign
   Custom Stylesheet
   ============================================= */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800&display=swap");

/* CSS Variables */
:root {
  --green-primary: #15803d;
  --green-dark: #0f5c2c;
  --green-darker: #064e23;
  --green-light: #dcfce7;
  --green-50: #f0fdf4;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-bright: #f59e0b;
  --dark: #0f172a;
  --dark-muted: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 0;
  transition: var(--transition);
}
.navbar.transparent .nav-inner {
  background: transparent;
}
.navbar.scrolled .nav-inner {
  background: var(--white);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}
.table-responsive table {
  min-width: 600px;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-text .bank-name {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-primary);
  transition: var(--transition);
}
.nav-logo-text .bank-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.navbar.transparent .nav-logo-text .bank-name {
  color: #ffffff;
}
.navbar.transparent .nav-logo-text .bank-sub {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  margin: 0 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark-muted);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px; /* For pill glow shape */
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--green-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 2px;
  z-index: 2;
}
/* Unique Pill Glow Effect */
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-primary);
  opacity: 0;
  transform: scale(0.85);
  transition: var(--transition);
  border-radius: 50px;
  z-index: -1;
}
.nav-link:hover {
  color: var(--green-primary);
  transform: translateY(-2px);
}
.nav-link:hover::before {
  opacity: 0.08;
  transform: scale(1);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Chevron Styling */
.nav-chevron {
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-link.active {
  color: var(--green-primary);
  font-weight: 700;
}
.navbar.transparent .nav-link {
  color: rgba(255, 255, 255, 0.95);
}
.navbar.transparent .nav-link::before {
  background: #ffffff;
}
.navbar.transparent .nav-link::after {
  background: #fbbf24; /* Gold underline for transparent state */
  bottom: 4px;
}
.navbar.transparent .nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.navbar.transparent .nav-link:hover::before {
  opacity: 0.15;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-muted);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-dropdown-content a:hover {
  background: var(--green-50);
  color: var(--green-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1e1b4b; /* Deep navy/indigo for high contrast on gold */
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.6s;
}
.nav-cta:hover::before {
  left: 100%;
}
.nav-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
  color: #000;
}
.navbar.transparent .nav-cta {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  color: #1a2e05;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.navbar.transparent .nav-cta:hover {
  background: #ffffff;
  color: #d97706;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  background: none;
  border: none;
  z-index: 1001;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
/* Always dark bars on scrolled navbar, white only on transparent */
.navbar.transparent .nav-toggle span {
  background: white;
}
.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 998;
  padding: 16px 20px 32px;
  overflow-y: auto;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  /* smooth slide-in */
  animation: menuSlideIn 0.25s ease forwards;
}
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-muted);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  display: block;
  border-left: 3px solid transparent;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--green-50);
  color: var(--green-primary);
  border-left-color: var(--green-primary);
}
.mobile-menu .mobile-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 16px 4px;
  display: block;
}
.mobile-menu .mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}
.mobile-menu .mobile-sub {
  padding-left: 32px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.mobile-menu .mobile-sub::before {
  content: '•';
  color: var(--green-primary);
  margin-right: 8px;
}
.mobile-menu .mobile-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1e1b4b;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border-left: none;
  box-shadow: 0 4px 15px rgba(217,119,6,0.3);
}
.mobile-menu .mobile-cta:hover {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-left-color: transparent;
  transform: translateY(-1px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 78, 35, 0.92) 0%,
    rgba(21, 128, 61, 0.75) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 2rem 160px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge span {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero h1 em {
  font-style: normal;
  color: #fbbf24;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green-primary);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid var(--green-primary);
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.4);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21, 128, 61, 0.5);
  color: white;
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--green-primary);
  color: white;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 50px;
  border: 2px solid var(--green-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
  color: white;
}
.btn-outline-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 50px;
  border: 2px solid var(--green-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: white;
  transform: translateY(-2px);
}

/* Stats bar */
.stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}
.stats-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.stats-card {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 32px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.08);
}
.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.section-tag.gold {
  background: var(--gold-light);
  color: var(--gold);
}
.section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-desc.center {
  margin: 0 auto;
  text-align: center;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card-body {
  padding: 24px;
}
.product-card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-primary);
}
.product-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 50px;
}
.product-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-primary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  transition: var(--transition);
}
.card-link:hover {
  gap: 10px;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-primary);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.service-icon svg {
  color: var(--green-primary);
}
.service-card h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =============================================
   BRANCH CARDS
   ============================================= */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.branch-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.branch-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.branch-card-body {
  padding: 20px 22px;
}
.branch-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.branch-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.branch-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.branch-info-row svg {
  flex-shrink: 0;
  color: var(--green-primary);
  margin-top: 2px;
}
.branch-info-row strong {
  color: var(--dark);
}
.branch-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef9c3;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

/* =============================================
   TEAM / DIRECTORS
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
}
.team-card-body {
  padding: 20px;
}
.team-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--green-primary);
  font-weight: 600;
  background: var(--green-light);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-section {
  background: linear-gradient(
    135deg,
    var(--green-darker) 0%,
    var(--green-dark) 100%
  );
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.testimonial-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}
.testimonial-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.testimonial-author-info strong {
  display: block;
  color: white;
  font-size: 14.5px;
  font-weight: 600;
}
.testimonial-author-info span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 6px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}
.faq-item.open {
  border-color: var(--green-primary);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.1);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--dark);
  transition: var(--transition);
  user-select: none;
  background: white;
}
.faq-question:hover {
  color: var(--green-primary);
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--green-primary);
}
.faq-item.open .faq-icon {
  background: var(--green-primary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  background: var(--green-50);
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 16px 24px 20px;
}
.faq-answer p {
  color: var(--dark-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}
.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 128, 61, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-primary);
}
.contact-info-item h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-info-item p,
.contact-info-item a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: var(--transition);
}
.contact-info-item a:hover {
  color: var(--green-primary);
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
  background: white;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--green-primary) 0%,
    var(--green-darker) 100%
  );
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.cta-banner h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.cta-banner .cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 16px;
}
.footer-social a:hover {
  background: var(--green-primary);
  color: white;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: #4ade80;
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item svg {
  flex-shrink: 0;
  color: #4ade80;
  margin-top: 2px;
}
.footer-contact-item p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}
.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  outline: none;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-newsletter input:focus {
  border-color: var(--green-primary);
  background: rgba(255, 255, 255, 0.1);
}
.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.footer-newsletter button {
  width: 100%;
  padding: 12px;
  background: var(--green-primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
}
.footer-newsletter button:hover {
  background: var(--green-dark);
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  transition: var(--transition);
}
.footer-bottom a:hover {
  color: #4ade80;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--green-darker) 0%,
    var(--green-primary) 100%
  );
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: white;
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}
.page-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  line-height: 1.7;
}

/* =============================================
   BANCASSURANCE
   ============================================= */
.banc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.banc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-primary);
}
.banc-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.banc-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.banc-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.banc-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.banc-card ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.banc-card ul li::before {
  content: "✓";
  color: var(--green-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--green-primary),
    var(--green-light)
  );
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--green-primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green-light);
}
.timeline-item h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.year-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-primary);
}
.value-number {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 8px;
}
.value-card h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   UTILITY
   ============================================= */
.text-center {
  text-align: center;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
.mb-48 {
  margin-bottom: 48px;
}
.mb-64 {
  margin-bottom: 64px;
}
.bg-light {
  background: var(--green-50);
}
.bg-dark {
  background: var(--dark);
}
.bg-green {
  background: var(--green-primary);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Prevent horizontal overflow globally */
*,
body {
  max-width: 100%;
}
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* ---- 1200px: Wide tablet / small desktop ---- */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  .nav-inner {
    padding: 0 1.5rem;
  }
  .hero-content {
    padding: 120px 1.5rem 160px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* ---- 1024px: Tablet landscape ---- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats: 2x2 grid */
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(3) {
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding-top: 16px;
  }
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
    padding-top: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-banner {
    padding: 48px 32px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section spacing */
  .section {
    padding: 72px 0;
  }
  .section-sm {
    padding: 48px 0;
  }

  /* Page hero */
  .page-hero {
    padding: 120px 0 56px;
  }
}

/* ---- 768px: Tablet portrait / large mobile ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-logo-text {
    display: block;
  } /* keep logo text on tablets */
  .nav-inner {
    height: 68px;
  }

  /* Grids → single column */
  .product-grid,
  .service-grid,
  .branch-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.span-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }
  .section-sm {
    padding: 40px 0;
  }

  /* Hero */
  .hero-content {
    padding: 100px 1.25rem 200px;
  }
  .hero-desc {
    max-width: 100%;
  }

  /* Stats */
  .stats-card {
    padding: 24px 16px;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0;
  }

  /* Contact form */
  .contact-form {
    padding: 24px 20px;
  }
  .contact-grid {
    gap: 28px;
  }

  /* CTA */
  .cta-banner {
    padding: 36px 24px;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .cta-btns a {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Page hero */
  .page-hero {
    padding: 100px 0 48px;
  }
  .page-hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }
  .page-hero p {
    font-size: 1rem;
  }

  /* Section title */
  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  /* Banc grid */
  .banc-card {
    padding: 22px 18px;
  }

  /* Team grid tablet → 2 cols */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .testimonial-card {
    padding: 22px;
  }
}

/* ---- 640px: Small tablet / large phone ---- */
@media (max-width: 640px) {
  /* Footer → single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Gallery masonry → 2 cols */
  .gallery-masonry {
    columns: 2;
  }
  .gallery-highlight {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-highlight-item.big {
    grid-row: span 1;
    height: 220px;
  }

  /* Service detail alternating layout fix */
  .service-detail {
    direction: ltr;
  }
  .service-detail.reverse {
    direction: ltr;
  }

  /* Team grid → single column */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Director grid */
  .director-grid-3col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- 480px: Mobile portrait ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav-inner {
    padding: 0 1rem;
  }
  .nav-logo-text {
    display: none;
  }

  /* Hero */
  .hero-content {
    padding: 90px 1rem 210px;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-primary,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-card {
    grid-template-columns: 1fr 1fr;
    padding: 20px 12px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 12px;
  }

  /* Sections */
  .section {
    padding: 48px 0;
  }
  .section-sm {
    padding: 32px 0;
  }
  .section-title {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

  /* Page hero */
  .page-hero {
    padding: 90px 0 40px;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* CTA */
  .cta-banner {
    padding: 28px 16px;
    border-radius: var(--radius);
  }
  .cta-banner h2 {
    font-size: 1.3rem;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    padding: 20px 16px;
  }

  /* Contact */
  .contact-form {
    padding: 20px 16px;
  }

  /* Branch cards */
  .branch-card-extended {
    border-radius: var(--radius);
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-masonry {
    columns: 2;
    column-gap: 8px;
  }
  .gallery-masonry-item {
    margin-bottom: 8px;
  }

  /* Director cards */
  .director-img-wrap img {
    height: 240px;
  }

  /* Mobile Dropdowns */
  .nav-dropdown-content {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 0 20px !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: transparent !important;
  }
  .nav-dropdown.submenu-open .nav-dropdown-content {
    max-height: 400px;
    margin-top: 8px;
  }
  .nav-dropdown.submenu-open .nav-chevron {
    transform: rotate(180deg);
  }

  /* Chatbot Mobile */
  .chat-window {
    width: calc(100% - 32px) !important;
    right: 16px !important;
    bottom: 90px !important;
    height: 70vh !important;
    max-height: 500px;
  }
}

/* Hide floating elements when mobile menu is open */
body.menu-open .fab-container,
body.menu-open .back-to-top {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* =============================================
   FLOATING ACTION BUTTON (FAB)
   ============================================= */
.fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab-options.open {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
.fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  white-space: nowrap;
}
.fab-option:hover {
  transform: scale(1.05);
}
.fab-whatsapp {
  background: #25d366;
}
.fab-call {
  background: var(--green-primary);
}
.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.4);
  transition: var(--transition);
}
.fab-main:hover {
  background: var(--green-dark);
  transform: scale(1.08);
}
.fab-icon-close {
  display: none;
}
.fab-main.open .fab-icon-chat {
  display: none;
}
.fab-main.open .fab-icon-close {
  display: block;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-muted);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-primary);
}

/* =============================================
   NEWS CARDS
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card-body {
  padding: 22px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.news-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.news-tag.gold {
  background: var(--gold-light);
  color: #92400e;
}
.news-date {
  font-size: 12.5px;
  color: var(--text-muted);
}
.news-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-primary);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}
.news-read-more:hover {
  gap: 10px;
}
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   BRANCH MAP
   ============================================= */
.branch-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.branch-map-tab {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--dark-muted);
  cursor: pointer;
  transition: var(--transition);
}
.branch-map-tab:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.branch-map-tab.active {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-primary);
}
.branch-map-frame {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .branch-map-frame {
    height: 300px;
  }
}
@media (max-width: 480px) {
  .fab-container {
    bottom: 20px;
    right: 16px;
  }
  .back-to-top {
    bottom: 84px;
    right: 16px;
  }
}

/* ---- 360px: Very small phones ---- */
@media (max-width: 360px) {
  .stats-card {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 12px 8px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .container {
    padding: 0 0.875rem;
  }
  .nav-inner {
    padding: 0 0.875rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .gallery-masonry {
    columns: 1;
  }
}

/* =============================================
   ANNOUNCEMENT BANNER
   ============================================= */
.announce-bar {
  background: var(--green-dark);
  color: white;
  text-align: center;
  padding: 11px 48px 11px 20px;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.5;
  overflow: hidden;
}
.announce-bar a {
  color: #a7f3d0;
  text-decoration: underline;
  font-weight: 600;
}
.announce-bar a:hover {
  color: white;
}
.announce-bar-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: var(--transition);
}
.announce-bar-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: white;
  padding: 18px 24px;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
  margin: 0;
}
.cookie-banner p a {
  color: #a7f3d0;
  text-decoration: underline;
}
.cookie-btn-group {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-accept {
  padding: 9px 22px;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
}
.cookie-accept:hover {
  background: var(--green-dark);
}
.cookie-decline {
  padding: 9px 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
}
.cookie-decline:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-btn-group {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   TESTIMONIALS CAROUSEL
   ============================================= */
.testimonial-track-wrap {
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-track .testimonial-card {
  flex: 0 0 calc(50% - 12px);
  min-width: calc(50% - 12px);
}
.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.testimonial-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}
.testimonial-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 768px) {
  .testimonial-track .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* =============================================
   FORM FEEDBACK
   ============================================= */
.form-success {
  background: var(--green-50);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 14.5px;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.form-success.visible {
  display: flex;
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #dc2626;
  font-size: 14px;
  display: none;
  margin-top: 12px;
}
.form-error.visible {
  display: block;
}

/* =============================================
   DOWNLOADS PAGE
   ============================================= */
.download-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  margin-bottom: 12px;
}
.download-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.download-icon.pdf {
  background: #fef2f2;
  color: #dc2626;
}
.download-icon.form {
  background: var(--green-light);
  color: var(--green-primary);
}
.download-icon.doc {
  background: #eff6ff;
  color: #2563eb;
}
.download-meta {
  flex: 1;
}
.download-meta h4 {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 3px;
}
.download-meta p {
  font-size: 13px;
  color: var(--text-muted);
}
.download-btn {
  padding: 9px 18px;
  background: var(--green-primary);
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.download-btn:hover {
  background: var(--green-dark);
}
@media (max-width: 580px) {
  .download-card {
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
  }
  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   LEAFLET MAP OVERRIDES
   ============================================= */
.map-section {
  background: white;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-top: 32px;
}
#branchMap {
  height: 460px;
  width: 100%;
}
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
}
.map-popup-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}
.map-popup-addr {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.map-popup-tel {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-primary);
}
@media (max-width: 640px) {
  #branchMap {
    height: 320px;
  }
}

/* =============================================
   ANNOUNCEMENT MODAL
   ============================================= */
.announcement-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.announcement-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.announcement-modal {
  background: white;
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.announcement-modal-overlay.active .announcement-modal {
  transform: translateY(0) scale(1);
}
.announcement-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--text-muted);
}
.announcement-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}
.announcement-modal-header {
  padding: 32px 32px 20px;
  text-align: center;
}
.announcement-icon {
  width: 56px;
  height: 56px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}
.announcement-modal-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}
.announcement-modal-body {
  padding: 0 32px 24px;
  font-size: 14.5px;
  color: var(--dark-muted);
  line-height: 1.6;
}
.announcement-modal-body p {
  margin-bottom: 12px;
}
.announcement-modal-body strong {
  color: var(--dark);
  font-weight: 700;
}
.announcement-contact-box {
  background: var(--green-50);
  border: 1px dashed var(--green-primary);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  text-align: center;
}
.announcement-contact-box p {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--green-primary);
  font-weight: 600;
}
.announcement-phones {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
}
.announcement-phones a {
  color: var(--green-primary);
}
.announcement-modal-footer {
  padding: 20px 32px 32px;
  display: flex;
  justify-content: center;
}
.announcement-modal-footer .btn-green {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}
@media (max-width: 480px) {
  .announcement-modal {
    border-radius: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    overflow-y: auto;
  }
  .announcement-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .announcement-modal-overlay.active .announcement-modal {
    transform: translateY(0);
  }
  .announcement-modal {
    transform: translateY(100%);
  }
}

/* ── AI QUICK-BANK CHATBOT ── */
/* CHAT WINDOW (Unified with FAB) */
.chat-window {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border);
}

.chat-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 8px;
}
.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.chatbot-close svg {
  width: 16px;
  height: 16px;
}
.chat-bot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-header-info h4 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.chat-header-info span {
  font-size: 12px;
  opacity: 0.8;
}

.chat-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8fafc;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  animation: messageSlide 0.3s ease-out forwards;
}

@keyframes messageSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.bot {
  align-self: flex-start;
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.message.user {
  align-self: flex-end;
  background: var(--green-primary);
  color: white;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  border: none;
  font-size: 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.chat-send-btn {
  color: var(--green-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.1) rotate(-10deg);
}

.typing-indicator {
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  align-self: flex-start;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  display: none;
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 90px;
    height: 450px;
  }
}

/* =============================================
   INLINE GRID MOBILE OVERRIDES
   Fixes inline-style grids that ignore media queries
   ============================================= */

/* History grid — aboutus.html, bancassurance partner section */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  [style*="grid-template-columns: 300px 1fr"],
  .chairman-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 32px 24px !important;
    gap: 24px !important;
  }
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .info-strip-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  [style*="grid-template-columns: repeat(6, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================
   GLOBAL MOBILE UX POLISH
   ============================================= */

/* Scroll lock when nav menu is open */
body.menu-open {
  overflow: hidden;
}

/* Prevent horizontal text overflow */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Better touch tap targets for nav */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* Navbar height adjustment on mobile for better proportions */
@media (max-width: 480px) {
  .nav-inner {
    height: 62px;
  }
  .mobile-menu {
    top: 62px;
  }
}
