/* ==========================================================================
   Othukkungal Service Co-operative Bank Ltd. (Reg. No: F1039)
   Main Stylesheet - Design System & Layout
   Palette: Bank Royal Blue (#0c477f) & Pure White (#ffffff)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors from Logo */
  --primary: #0c477f;
  --primary-dark: #072a4d;
  --primary-light: #1562a6;
  --primary-subtle: #e8f1f8;
  --accent-teal: #4b899a;
  --accent-teal-light: #edf6f9;
  --gold: #d97706;
  --gold-light: #fef3c7;

  /* Neutrals */
  --white: #ffffff;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(12, 71, 127, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(12, 71, 127, 0.10), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(12, 71, 127, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 36px rgba(12, 71, 127, 0.16), 0 6px 14px rgba(0, 0, 0, 0.08);

  /* Layout & Transitions */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ml: 'Manjari', 'Noto Sans Malayalam', system-ui, sans-serif;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-en);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Malayalam Font Support */
[lang="ml"],
.lang-ml,
body.lang-ml {
  font-family: var(--font-ml), var(--font-en);
}

body.lang-ml {
  font-size: 18px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Top Info Bar
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #dbeafe;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  max-width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-info-item a {
  color: #e2e8f0;
}

.top-info-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.reg-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
}

/* Navigation Bar Language Switcher */
.nav-lang-switcher {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
}

.nav-lang-switcher .lang-btn {
  color: #475569;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}

.nav-lang-switcher .lang-btn:hover:not(.active) {
  color: var(--primary);
}

.nav-lang-switcher .lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(11, 74, 154, 0.25);
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  max-width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-brand img.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* Bilingual Logo Display */
.logo-img-ml,
.footer-logo-img.logo-img-ml {
  display: none !important;
}

.logo-img-en,
.footer-logo-img.logo-img-en {
  display: block !important;
}

body.lang-ml .logo-img-en,
body.lang-ml .footer-logo-img.logo-img-en {
  display: none !important;
}

body.lang-ml .logo-img-ml,
body.lang-ml .footer-logo-img.logo-img-ml {
  display: block !important;
}

.site-header.scrolled .logo-brand img.logo-img {
  height: 56px;
}

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

.logo-title-en {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.logo-title-ml {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-teal);
  line-height: 1.2;
  font-family: var(--font-ml);
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(12, 71, 127, 0.25);
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(12, 71, 127, 0.35);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 42, 77, 0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.drawer-link.active,
.drawer-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Ticker / Notice Bar
   ========================================================================== */
.ticker-bar {
  background: #eef5fb;
  border-bottom: 1px solid #d9e8f4;
  padding: 0.55rem 2rem;
  font-size: 0.88rem;
  overflow: hidden;
  width: 100%;
}

.ticker-bar .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.ticker-label {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ticker-marquee {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerContinuous 30s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-content {
  display: inline-block;
  padding-right: 4rem;
  color: var(--primary-dark);
  font-weight: 500;
  white-space: nowrap;
}

@keyframes tickerContinuous {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 42, 77, 0.94) 0%, rgba(12, 71, 127, 0.88) 100%),
    url('../images/bank-building.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 3rem 0 3.25rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #e0f2fe;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title .accent-text {
  color: #60a5fa;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #ffffff;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-primary-blue {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(12, 71, 127, 0.3);
}

.btn-primary-blue:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 71, 127, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #93c5fd;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Hero Quick Card */
.hero-card-box {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-card-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hero-card-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.rate-badge-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.rate-row-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.rate-row-val {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Page Banner (for inner pages: About, Services, Gallery, Contact)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, rgba(7, 42, 77, 0.52) 0%, rgba(12, 71, 127, 0.42) 100%),
    url('../images/hero5.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 5.25rem 0 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 70%);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.page-banner-sub {
  font-size: 1.05rem;
  color: #f8fafc;
  max-width: 650px;
  margin: 0 auto 1.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
}

.breadcrumbs a {
  color: #ffffff;
}

.breadcrumbs span.current {
  color: #60a5fa;
  font-weight: 600;
}

/* ==========================================================================
   Section Headers & Utilities
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-bg {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  background-color: var(--primary-subtle);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Feature & Service Cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: var(--white);
}

.service-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}

/* Board Members & Leadership Cards */
.member-avatar-wrap {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 4px solid var(--primary-light);
  box-shadow: 0 4px 14px rgba(11, 74, 154, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease;
  background: #f8fafc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover .member-avatar-wrap {
  transform: scale(1.05);
  border-color: var(--primary);
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.member-avatar-img.center-pos {
  object-position: center 25%;
}

.member-phone-box {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.member-phone-link {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.member-phone-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Image Service Cards */
.image-service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.image-service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.image-service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.image-service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.image-service-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}


.service-features-list {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.service-feature-item svg {
  color: #16a34a;
  flex-shrink: 0;
}

.service-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  gap: 0.6rem;
  color: var(--primary-light);
}

/* Highlight Service Card with Image */
.feature-box-img {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-box-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-box-img:hover .feature-img-wrapper img {
  transform: scale(1.05);
}

.feature-img-content {
  padding: 1.75rem;
}

/* ==========================================================================
   Trust / Strengths Strip
   ========================================================================== */
.trust-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: #93c5fd;
}

.trust-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.trust-item p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ==========================================================================
   Interest Rates Table
   ========================================================================== */
.rates-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rates-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.rates-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-main);
}

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

.rates-table tr:hover td {
  background-color: #f8fafc;
}

.rates-highlight {
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   Calculator Component
   ========================================================================== */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.calc-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.calc-tab-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.calc-tab-btn.active {
  color: var(--primary);
}

.calc-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.calc-val-display {
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.calc-result-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  margin-top: 1.5rem;
}

.calc-result-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: #93c5fd;
  margin: 0.5rem 0;
}

.calc-result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Gallery & Lightbox
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(12, 71, 127, 0.25);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 42, 77, 0.9) 0%, rgba(7, 42, 77, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption-title {
  font-size: 1rem;
  font-weight: 700;
}

.gallery-caption-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Lightbox Modal & Viewer */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 33, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

/* Lightbox Header / Toolbar */
.lightbox-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3020;
  background: linear-gradient(to bottom, rgba(5, 14, 26, 0.9) 0%, rgba(5, 14, 26, 0.4) 60%, transparent 100%);
  pointer-events: none;
}

.lightbox-header > * {
  pointer-events: auto;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #38bdf8;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.lightbox-btn:active {
  transform: scale(0.94);
}

.lightbox-btn.lightbox-zoom-reset-btn {
  width: auto;
  padding: 0 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-en);
  min-width: 60px;
}

.lightbox-btn.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Lightbox Navigation Prev / Next */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3020;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.lightbox-nav-btn:hover {
  background: var(--primary, #0c477f);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 26px rgba(12, 71, 127, 0.65);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* Lightbox Stage & Zoom / Pan */
.lightbox-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5.5rem 5.5rem 6.5rem;
  cursor: default;
  user-select: none;
}

.lightbox-stage.is-zoomed {
  cursor: grab;
}

.lightbox-stage.is-zoomed.is-grabbing {
  cursor: grabbing;
}

.lightbox-img-wrap {
  display: inline-block;
  position: relative;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  transform-origin: center center;
}

.lightbox-img-wrap.is-dragging {
  transition: none !important;
}

.lightbox-img {
  max-width: 86vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* Bottom Caption Bar */
.lightbox-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3020;
  padding: 1.5rem 2rem 1.6rem;
  text-align: center;
  background: linear-gradient(to top, rgba(5, 14, 26, 0.95) 0%, rgba(5, 14, 26, 0.6) 65%, transparent 100%);
  pointer-events: none;
}

.lightbox-caption-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.lightbox-caption-sub {
  color: #cbd5e1;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-header {
    padding: 0.85rem 1rem;
  }

  .lightbox-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-btn.lightbox-zoom-reset-btn {
    padding: 0 0.65rem;
    font-size: 0.8rem;
    min-width: 50px;
  }

  .lightbox-counter {
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
  }

  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 0.6rem;
  }

  .lightbox-next {
    right: 0.6rem;
  }

  .lightbox-stage {
    padding: 4.5rem 1rem 5.5rem;
  }

  .lightbox-img {
    max-width: 94vw;
    max-height: 68vh;
  }

  .lightbox-caption-box {
    padding: 1rem 1rem 1.25rem;
  }

  .lightbox-caption-title {
    font-size: 1rem;
  }

  .lightbox-caption-sub {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Contact Cards & Form
   ========================================================================== */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.contact-item-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-item-row:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-detail h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  background: #fdfdfe;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 71, 127, 0.15);
}

/* Map Frame */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 400px;
  width: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: inline-block;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.footer-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand-reg {
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: #60a5fa;
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--white);
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom a,
.developer-link {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover,
.developer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-developer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar .container,
  .site-header .container,
  .ticker-bar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-brand img.logo-img {
    height: 48px;
  }

  .top-bar .container {
    justify-content: flex-end;
  }

  .section {
    padding: 3.5rem 0;
  }
}