/* ============================================================
   BJANZ — Bihar Jharkhand Association of New Zealand
   Global Stylesheet
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap");

/* ---- CSS Variables ---- */
:root {
  --navy: #0f2557;
  --navy-mid: #1b3a7a;
  --navy-light: #2451a8;
  --gold: #c9922b;
  --gold-light: #e8b84b;
  --saffron: #e85c1a;
  --cream: #faf7f2;
  --warm-gray: #f0ebe3;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 37, 87, 0.08);
  --shadow-md: 0 8px 32px rgba(15, 37, 87, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 37, 87, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 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: "DM Sans", sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}
h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-mid);
  line-height: 1.75;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 80px 0;
}
.section-pad-sm {
  padding: 48px 0;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo .logo-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---- Desktop Nav ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a,
.main-nav > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
}

.main-nav > li > a:hover,
.main-nav > li > button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.main-nav > li > a.active {
  color: var(--gold-light);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
  overflow: hidden;
}

.main-nav > li:hover .nav-dropdown,
.main-nav > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  transition:
    background var(--transition),
    color var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.main-nav > li:hover .nav-chevron {
  transform: rotate(180deg);
}

/* CTA in Nav */
.nav-cta {
  margin-left: 8px;
  padding: 8px 20px !important;
  background: var(--gold) !important;
  color: var(--white) !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* ---- Mobile Menu Button ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none; /* <-- Add this line */
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
}

.mobile-nav a {
  display: block;
  padding: 11px 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.mobile-nav a.indent {
  padding-left: 40px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---- Hero Banner ---- */
.hero {
  position: relative;
  height: clamp(420px, 60vh, 680px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 37, 87, 0.82) 0%,
    rgba(15, 37, 87, 0.55) 50%,
    rgba(200, 90, 26, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 146, 43, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 37, 87, 0.3);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.82rem;
}

/* ---- Decorative Divider ---- */
.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 16px auto 0;
  width: 160px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(201, 146, 43, 0.12);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-tag.saffron {
  background: rgba(232, 92, 26, 0.1);
  color: var(--saffron);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card-link {
  color: var(--navy-light);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    gap var(--transition),
    color var(--transition);
}

.card-link:hover {
  gap: 8px;
  color: var(--gold);
}

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

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

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

/* ---- Stat Cards ---- */
.stats-strip {
  background: var(--navy);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 37, 87, 0.75) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- Scroller / Carousel ---- */
.scroll-wrapper {
  position: relative;
}

.scroll-track {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.scroll-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scroll-card:hover img {
  transform: scale(1.04);
}

.scroll-card-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(15, 37, 87, 0.85), transparent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: background var(--transition);
}

.scroll-btn:hover {
  background: var(--gold);
  color: var(--white);
}
.scroll-btn svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
  transition: color var(--transition);
}
.scroll-btn:hover svg {
  color: var(--white);
}

.scroll-btn-left {
  left: -16px;
}
.scroll-btn-right {
  right: -16px;
}

/* ---- Forms ---- */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

label .req {
  color: var(--saffron);
  margin-left: 2px;
}

input,
select,
textarea {
  padding: 11px 16px;
  border: 1.5px solid #d8d4cc;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(36, 81, 168, 0.12);
  background: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234A4A6A' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy-light);
}

.form-checkbox span {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #15803d;
  font-weight: 500;
  text-align: center;
}

.form-error-msg {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

/* ---- Team / Member Cards ---- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  cursor: pointer;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
}

.team-card-body {
  padding: 20px 16px;
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(201, 146, 43, 0.15) 0%,
    transparent 70%
  );
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(232, 92, 26, 0.1) 0%,
    transparent 70%
  );
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--gold-light);
}
.breadcrumb-sep {
  opacity: 0.4;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ---- Blockquote ---- */
.blockquote {
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  background: rgba(201, 146, 43, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.blockquote p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

.blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
}

/* ---- Highlight Box ---- */
.highlight-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
}

.highlight-box h3 {
  color: var(--gold-light);
  margin-bottom: 16px;
}
.highlight-box p,
.highlight-box li {
  color: rgba(255, 255, 255, 0.82);
}
.highlight-box ul {
  padding-left: 20px;
}
.highlight-box li {
  margin-bottom: 8px;
}
.highlight-box a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ---- Info Box ---- */
.info-box {
  background: var(--warm-gray);
  border-radius: var(--radius-md);
  padding: 28px;
}

.info-box h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h5 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.social-icon:hover {
  background: var(--gold);
}
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.75);
  transition: fill var(--transition);
}
.social-icon:hover svg {
  fill: var(--white);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ---- Image Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.modal-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -4px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.75;
  line-height: 1;
}

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

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
}

.modal-prev:hover,
.modal-next:hover {
  background: var(--gold);
}
.modal-prev {
  left: -64px;
}
.modal-next {
  right: -64px;
}
.modal-prev svg,
.modal-next svg {
  width: 22px;
  height: 22px;
}

/* ---- News / Media layout ---- */
.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(15, 37, 87, 0.1);
  align-items: start;
}

.news-item:last-child {
  border-bottom: none;
}

.news-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.news-img-wrap img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-img-wrap:hover img {
  transform: scale(1.04);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.news-content h3 {
  margin-bottom: 10px;
}
.news-content p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* ---- Donation bank box ---- */
.bank-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
}

.bank-box h3 {
  color: var(--gold-light);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bank-row:last-child {
  border-bottom: none;
}
.bank-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.bank-val {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}

/* ---- Business listing ---- */
.biz-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  border-left: 4px solid var(--gold);
  transition: box-shadow var(--transition);
}

.biz-card:hover {
  box-shadow: var(--shadow-md);
}

.biz-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
  max-height: 160px;
}

.biz-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(201, 146, 43, 0.1);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.biz-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.biz-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biz-detail {
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
}
.biz-detail-label {
  color: var(--text-light);
  min-width: 100px;
}
.biz-detail-val {
  color: var(--text-dark);
}
.biz-detail-val a {
  color: var(--navy-light);
}
.biz-detail-val a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ---- Utilities ---- */
.text-center {
  text-align: center;
}
.text-gold {
  color: var(--gold);
}
.text-navy {
  color: var(--navy);
}
.text-white {
  color: var(--white);
}
.bg-cream {
  background: var(--cream);
}
.bg-warm {
  background: var(--warm-gray);
}
.bg-navy {
  background: var(--navy);
}
.bg-white {
  background: var(--white);
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

.animate-fade-up-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}
.animate-fade-up-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}
.animate-fade-up-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}
/* Horizontal Scroll Enhancements (Prevents Layout Shifts) */
.scroll-card {
  width: 300px;
  min-width: 300px;
}
.scroll-card img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  display: block;
}
/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-item {
    grid-template-columns: 1fr;
  }
  .biz-card {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-section {
    padding: 28px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .modal-prev {
    left: -12px;
  }
  .modal-next {
    right: -12px;
  }
  .section-pad {
    padding: 52px 0;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Form Validation Styles */
input.error-border,
select.error-border,
textarea.error-border {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.05);
}

.form-error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
}
.form-error-msg.active {
  display: block;
}
