:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #0ea5e9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --navy: #0b132b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #111827;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #334155;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.25;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* Top Bar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.55rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.topbar a:hover { color: #ffffff; }
.theme-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}
.brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero & Page Banner */
.hero {
  /*background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 100%),
    url(https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1920&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D) center/cover;*/
    background: #0f172a url('hero-poster.png') center / cover no-repeat;
  color: #fff;
  padding: 6.5rem 0 7rem;
}
.page-banner {
  background: linear-gradient(120deg, rgba(11, 19, 43, 0.88), rgba(29, 78, 216, 0.78)),
    url(https://images.unsplash.com/photo-1572003818138-19cf96ee15e7?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D) center/cover;
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.page-banner.money-banner {
  background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
              url('https://images.unsplash.com/photo-1565371767810-ef913a6c8315?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D') center/cover no-repeat;
}
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.9rem; color: #cbd5e1; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 720px;
  margin-bottom: 1.1rem;
}
.hero p {
  max-width: 600px;
  color: #e2e8f0;
  font-size: 1.08rem;
  margin-bottom: 1.8rem;
}
.btn-group { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Sections & Grids */
.section { padding: 4.8rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; align-items: center; }

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* Pillars overlap */
.pillars-wrap { margin-top: -3.2rem; position: relative; z-index: 5; }

/* Stats Band */
.stats-band {
  background: linear-gradient(120deg, var(--navy), var(--primary-dark));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.stat-num { font-size: 2.4rem; font-weight: 800; color: #38bdf8; }
.stat-label { font-size: 0.95rem; color: #e2e8f0; margin-top: 0.25rem; }

/* Team & Testimonials */
.team-card { padding: 0; overflow: hidden; text-align: center; }
.team-card img { width: 100%; height: 240px; object-fit: cover; }
.team-info { padding: 1.2rem; }
.team-info span { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

.quote-author { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.2rem; }
.quote-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-author small { color: var(--muted); display: block; }

/* CTA Banner */
.cta-band {
  background: var(--primary);
  color: #fff;
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Contact Page Form */
.contact-form {
  display: grid;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}
.contact-info-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-item i { color: var(--primary); font-size: 1.15rem; margin-top: 0.2rem; }

/* Footer */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
}
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer-socials { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; color: #fff;
}
.footer-socials a:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Floating WhatsApp & Phone Buttons */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: #25d366; }
.float-phone { background: var(--primary); }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid-4, .grid-3, .form-row { grid-template-columns: 1fr; }
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: 240px;      /* Adjust this (e.g., 220px–280px) to get your preferred size */
  height: auto;      /* Keeps the logo from stretching */
  max-height: 75px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .brand-logo {
    width: 180px;    /* Keeps it fitting cleanly beside the menu icon on mobile */
  }
}
/* Phone Country Code + Input */
.phone-group {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.phone-group select {
  width: 78px !important;
  flex: 0 0 78px !important;
  padding: 0.75rem 0.4rem !important;
  box-sizing: border-box;
}

.phone-group input {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
/* Homepage 2-Slide Rate Popup */
.rate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  z-index: 9999;
  box-sizing: border-box;
}

.rate-overlay.active {
  display: flex;
}

.rate-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: rateFadeIn 0.25s ease-out;
}

@keyframes rateFadeIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.rate-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.rate-close:hover {
  background: #0f172a;
}

.rate-slider {
  position: relative;
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rate-slides {
  width: 100%;
  display: flex;
  justify-content: center;
}

.rate-slide {
  display: none;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}

.rate-slide.active {
  display: block;
}

.rate-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.82);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.2s;
}

.rate-arrow:hover {
  background: #1e3a8a;
}

.rate-prev { left: 8px; }
.rate-next { right: 8px; }

.rate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  gap: 0.75rem;
}

.rate-dots {
  display: flex;
  gap: 0.45rem;
}

.rate-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.rate-dot.active {
  background: #1d4ed8;
  width: 24px;
  border-radius: 999px;
}

.rate-apply-btn {
  padding: 0.5rem 1.1rem !important;
  font-size: 0.88rem !important;
}

/* Mobile Adjustments */
@media (max-width: 520px) {
  .rate-overlay {
    padding: 0.5rem;
  }
  .rate-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    background: rgba(30, 58, 138, 0.72);
  }
  .rate-prev { left: 4px; }
  .rate-next { right: 4px; }
  .rate-close {
    width: 30px;
    height: 30px;
    font-size: 1.25rem;
  }
}

/* Highlighted Cards for Services, Loans & Deposits */
.section-alt {
  background-color: #f1f5f9;
}

.section .card {
  border: 1px solid #dbeafe;
  border-top: 3px solid #1d4ed8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Desktop Hover (only on devices with a mouse) */
@media (hover: hover) {
  .section .card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    border-top-color: #1e3a8a;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.12);
  }
}

/* Mobile & Touch Tap Effect */
.section .card:active,
.section .card.card-tapped {
  transform: scale(0.98);
  border-color: #60a5fa;
  border-top-color: #1e3a8a;
  background-color: #f8fbff;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.16);
}

/* Dark Mode */
[data-theme="dark"] .section-alt {
  background-color: #0f172a;
}

[data-theme="dark"] .section .card {
  border-color: rgba(148, 163, 184, 0.2);
  border-top: 3px solid #3b82f6;
}

[data-theme="dark"] .section .card:active,
[data-theme="dark"] .section .card.card-tapped {
  background-color: #1e293b;
  border-color: #60a5fa;
}
/* Remove double spacing when two section-alt blocks are stacked */
.section-alt + .section-alt {
  padding-top: 1rem;
}
/* CTA Band Layout */
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text {
  max-width: 720px;
}

.cta-eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.cta-text h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
}

.cta-band .btn-outline {
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  background: transparent;
}

.cta-band .btn-outline:hover {
  background: #ffffff;
  color: #1d4ed8;
}
/*
/* Compact Careers Section */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.career-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.career-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.career-card h3 {
  margin: 0 0 0.6rem 0;
}

.career-card p {
  color: var(--muted);
  margin: 0 0 1.25rem 0;
  flex: 1;
}

.career-card .btn {
  align-self: flex-start;
}

/* Eligibility & Direct Apply Strip */
.career-info-strip {
  margin-top: 2rem;
  padding: 1.5rem;
}

.career-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.career-info-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d4ed8;
  margin-bottom: 0.3rem;
}

.career-direct-apply {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.career-direct-apply a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.career-direct-apply a:hover {
  text-decoration: underline;
}

/* Dark Mode Support */
[data-theme="dark"] .career-meta,
[data-theme="dark"] .career-info-label,
[data-theme="dark"] .career-direct-apply a {
  color: #60a5fa;
}

[data-theme="dark"] .career-info-grid {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
  .career-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .career-info-grid {
    grid-template-columns: 1fr;
  }
}
/* Leadership 3D Flip Cards */
.team-flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 350px;
}

.team-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.team-flip-card.is-flipped .team-flip-inner {
  transform: rotateY(180deg);
}

.team-flip-front,
.team-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
}

.team-flip-front {
  padding: 0;
}

.team-flip-front img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.team-flip-front .team-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.team-flip-front .team-info h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.05rem;
}

.flip-hint {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #1d4ed8;
  font-weight: 600;
}

.team-flip-back {
  transform: rotateY(180deg);
  background: #1d4ed8;
  color: #ffffff;
  padding: 1.35rem;
  justify-content: space-between;
  text-align: left;
  border-color: #1d4ed8;
}

.team-flip-back h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.05rem;
  color: #ffffff;
}

.flip-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.team-flip-back p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.flip-hint-back {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.75rem;
}

[data-theme="dark"] .flip-hint {
  color: #60a5fa;
}

[data-theme="dark"] .team-flip-back {
  background: #1e3a8a;
  border-color: #1e3a8a;
}
/* Leadership 3D Flip Cards */
.team-flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 350px;
  user-select: none;
  -webkit-user-select: none;
}

.team-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.team-flip-card.is-flipped .team-flip-inner {
  transform: rotateY(180deg);
}

.team-flip-front,
.team-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
}

/* Stop .card:hover from breaking the 3D flip */
.team-flip-card .team-flip-front,
.team-flip-card .team-flip-front:hover {
  transform: rotateY(0deg);
}

.team-flip-card .team-flip-back,
.team-flip-card .team-flip-back:hover {
  transform: rotateY(180deg);
}

/* Only let the visible side receive clicks */
.team-flip-back {
  pointer-events: none;
}

.team-flip-card.is-flipped .team-flip-front {
  pointer-events: none;
}

.team-flip-card.is-flipped .team-flip-back {
  pointer-events: auto;
}

.team-flip-front {
  padding: 0;
}

.team-flip-front img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.team-flip-front .team-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.team-flip-front .team-info h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.05rem;
}

.flip-hint {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #1d4ed8;
  font-weight: 600;
}

.team-flip-back {
  background: #1d4ed8;
  color: #ffffff;
  padding: 1.35rem;
  justify-content: space-between;
  text-align: left;
  border-color: #1d4ed8;
}

.team-flip-back h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.05rem;
  color: #ffffff;
}

.flip-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.team-flip-back p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.flip-hint-back {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.75rem;
}

[data-theme="dark"] .flip-hint {
  color: #60a5fa;
}

[data-theme="dark"] .team-flip-back {
  background: #1e3a8a;
  border-color: #1e3a8a;
}
/* Job Application Popup Modal */
.apply-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72); /* Removed backdrop-filter blur to stop scroll lag */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

.apply-modal-overlay.is-open {
  display: flex;
}

.apply-modal {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0); /* GPU-accelerated smooth scrolling */
  padding: 1.5rem;
  position: relative;
  animation: modalPop 0.2s ease-out;
}
/* Prevent .card:hover from shifting the popup */
.apply-modal:hover {
  transform: translateZ(0);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.apply-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.apply-modal-header h3 {
  margin: 0.2rem 0 0 0;
  font-size: 1.25rem;
}

.apply-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.25rem;
}

.apply-modal-close:hover {
  color: #ef4444;
}

.apply-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.apply-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.apply-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  background: transparent;
  color: inherit;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.apply-form input[type="file"] {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
}

/* Dark Mode Support */
[data-theme="dark"] .apply-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .apply-form input,
[data-theme="dark"] .apply-form select,
[data-theme="dark"] .apply-form textarea {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .apply-form select option {
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 600px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* Hero Background Video */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}
/* Prevent sideways scrollbar during slide-in animations */
body {
  overflow-x: hidden;
}

/* Scroll Reveal Base States */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

/* Visible State */
.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}
/* Careers Application Modal — Mobile & Desktop Form Fix */
[class*="modal"] {
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[class*="modal"] form label,
[class*="overlay"] form label {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 5px;
  color: var(--text, #1e293b);
}

[class*="modal"] form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
[class*="modal"] form select,
[class*="modal"] form textarea,
[class*="overlay"] form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
[class*="overlay"] form select,
[class*="overlay"] form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 4px;
  font-size: 16px; /* Stops iPhone Safari from auto-zooming on tap */
  font-family: inherit;
  line-height: 1.4;
  color: var(--text, #0f172a);
  background-color: var(--card, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
}

[class*="modal"] form select,
[class*="overlay"] form select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

[class*="modal"] form input[type="file"],
[class*="overlay"] form input[type="file"] {
  padding: 8px 10px;
  font-size: 14px;
  background-color: #f8fafc;
  border-style: dashed;
}

[class*="modal"] form textarea,
[class*="overlay"] form textarea {
  min-height: 84px;
  resize: vertical;
}

[class*="modal"] form button[type="submit"],
[class*="overlay"] form button[type="submit"] {
  margin-top: 14px;
}
/* 1. Eliminate extra white strip on the right on Android */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 2. Keep FD & RD popup compact on desktop and fit inside mobile */
.rate-overlay {
  padding: 12px !important;
  box-sizing: border-box;
}

.rate-modal {
  width: 100% !important;
  max-width: min(560px, 94vw) !important;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0 auto;
}

.rate-slider,
.rate-slides {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.rate-slide {
  display: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.rate-slide.active {
  display: block !important;
}

@media (max-width: 600px) {
  .rate-modal {
    padding: 12px 10px !important;
  }
  .rate-arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }
  .rate-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .rate-apply-btn {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }
}