/* Self-hosted Google Fonts — latin subset only */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Om Shanthi Theertham — Professional Charity Redesign
   Loads AFTER Tailwind. Blue-gold palette from org logo. Scroll-shrink header.
   ========================================================================== */

/* 1. Custom Properties
   ========================================================================== */
:root {
  --ost-primary: #1A6B8A;
  --ost-primary-dark: #145A74;
  --ost-primary-light: #2389AD;
  --ost-accent: #D4A843;
  --ost-accent-light: #E2BE6A;
  --ost-bg: #FAFAF7;
  --ost-bg-alt: #F0EDE6;
  --ost-card: #FFFFFF;
  --ost-text: #2D3436;
  --ost-text-muted: #636E72;
  --ost-text-light: #FFFFFF;
  --ost-heading: #1A3A4A;
  --ost-footer-bg: #1A2632;
  --ost-footer-text: #B8C9D6;
  --ost-border: #E0DDD6;
  --ost-border-accent: #D4A843;
  --header-full-height: 172px;
  --header-shrunk-height: 56px;
  --transition-speed: 0.35s;
  --ost-gradient-primary: linear-gradient(135deg, var(--ost-primary), var(--ost-primary-dark));
  --ost-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.05);
  --ost-focus-ring: 0 0 0 3px rgba(26, 107, 138, 0.12);
}

/* 2. Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ost-bg) !important;
  color: var(--ost-text) !important;
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 170px;  /* reserve space for fixed header */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Sticky footer: content grows to push footer to viewport bottom */
main,
.contact-form-section,
.prose {
  flex-grow: 1;
  width: 100%;
}

footer {
  margin-top: auto;
}

@media (max-width: 640px) {
  body {
    padding-top: 140px;  /* smaller header on mobile */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: var(--ost-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(26, 107, 138, 0.15);
  color: var(--ost-text);
}

/* 3. Header — Scroll Shrink
   ========================================================================== */
header {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 100 !important;
  transition: box-shadow var(--transition-speed) ease;
  overflow: hidden;
}

header > div {
  width: 100% !important;
}

header.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Contact bar — dark navy */
header .bg-tertiary-orange {
  background: var(--ost-footer-bg) !important;
  color: var(--ost-footer-text) !important;
}

header.header-scrolled .bg-tertiary-orange {
  display: none;
}

header .bg-tertiary-orange b,
header .bg-tertiary-orange a {
  color: var(--ost-footer-text) !important;
  text-decoration: none !important;
}

header .bg-tertiary-orange a:visited,
header .bg-tertiary-orange a:hover,
header .bg-tertiary-orange a:active,
header .bg-tertiary-orange a:focus {
  color: var(--ost-footer-text) !important;
  text-decoration: none !important;
  outline: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

header .bg-tertiary-orange a::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ost-footer-text);
}

header .bg-tertiary-orange svg {
  stroke: var(--ost-accent) !important;
}

/* Logo row — hides on scroll, logo moves to nav bar */
header > div:nth-child(2) {
  background-color: var(--ost-bg) !important;
}

header.header-scrolled > div:nth-child(2) {
  display: none;
}

/* Nav brand (logo + name + tagline, cloned into nav bar via JS) */
.nav-brand {
  display: none !important;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none !important;
  margin-right: auto;
}

header.header-scrolled .nav-brand {
  display: flex !important;
}

.nav-brand .nav-logo {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  border: 1.5px solid var(--ost-accent);
  flex-shrink: 0;
}

.nav-brand .nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand .nav-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff !important;
  white-space: nowrap;
}

.nav-brand .nav-brand-tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: italic;
  white-space: nowrap;
}

/* Nav bar — accommodate brand when scrolled */
header.header-scrolled .bg-primary-orange {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

header.header-scrolled .MOBILE-MENU {
  flex-shrink: 0;
}

header.header-scrolled .DESKTOP-MENU {
  flex: 1;
  justify-content: flex-end !important;
  gap: 2rem !important;
}

/* Nav bar — professional blue */
header .bg-primary-orange {
  background: var(--ost-gradient-primary) !important;
  border-bottom: 2px solid var(--ost-accent) !important;
  transition: padding var(--transition-speed) ease;
}

header .bg-primary-orange .DESKTOP-MENU {
  align-items: center !important;
}

header .bg-primary-orange a {
  color: var(--ost-text-light) !important;
  transition: color 0.2s ease, opacity 0.2s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

header .bg-primary-orange a:hover {
  color: var(--ost-accent) !important;
}

header .bg-primary-orange a.text-white {
  color: #fff !important;
  font-weight: 700;
}

/* Hamburger — 44px tap target, only below lg */
@media (max-width: 1023px) {
  header .bg-primary-orange .MOBILE-MENU {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

header .bg-primary-orange .HAMBURGER-ICON span {
  background-color: var(--ost-text-light) !important;
  animation: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X when menu open */
header .bg-primary-orange .HAMBURGER-ICON.menu-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

header .bg-primary-orange .HAMBURGER-ICON.menu-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

header .bg-primary-orange .HAMBURGER-ICON.menu-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile nav — slide-down animation (hidden on desktop via lg:hidden class) */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: none;
}

.mobile-nav.open {
  max-height: 500px;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

header .bg-primary-orange .mobile-nav a {
  display: block;
  padding: 0 1rem 0 1.25rem;
  min-height: 44px;
  line-height: 44px;
  border-left: 3px solid transparent;
  margin-left: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

header .bg-primary-orange .mobile-nav a:hover {
  border-left-color: var(--ost-accent);
  background: rgba(255, 255, 255, 0.06);
}

/* Donate nav pill — gold accent */
.nav-donate {
  background: linear-gradient(135deg, var(--ost-accent), var(--ost-accent-light)) !important;
  color: var(--ost-footer-bg) !important;
  padding: 0.35rem 1.15rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
}

.nav-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.5);
  color: var(--ost-footer-bg) !important;
}

/* 4. Content
   ========================================================================== */
.prose {
  color: var(--ost-text) !important;
}

.prose h2 a,
.prose h3 a {
  color: var(--ost-heading) !important;
  text-decoration: none !important;
}

.prose h2 a:hover,
.prose h3 a:hover {
  color: var(--ost-primary) !important;
}

.prose a:not(h2 a):not(h3 a) {
  color: var(--ost-primary) !important;
  text-decoration-color: rgba(26, 107, 138, 0.3);
  text-underline-offset: 2px;
}

.prose a:not(h2 a):not(h3 a):hover {
  color: var(--ost-primary-dark) !important;
  text-decoration-color: var(--ost-primary);
}

.prose ul li::marker {
  color: var(--ost-accent) !important;
}

.prose p {
  color: var(--ost-text) !important;
  line-height: 1.75;
}

/* 5. Sidebar
   ========================================================================== */
aside {
  border-right: 2px solid var(--ost-border) !important;
}

aside .font-semibold {
  color: var(--ost-heading) !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

aside a {
  color: var(--ost-text-muted) !important;
  transition: color 0.2s ease;
  font-weight: 400;
  font-size: 0.9rem;
}

aside a:hover {
  color: var(--ost-primary) !important;
}

/* 6. Section Dividers — replace Om dividers
   ========================================================================== */

/* Keep ornate-divider functional but restyle as thin gold line */
.ornate-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2.5rem 0;
  user-select: none;
}

.ornate-divider::before,
.ornate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ost-accent), transparent);
}

.ornate-divider .om-symbol {
  font-size: 1.2rem;
  color: var(--ost-accent);
  line-height: 1;
  opacity: 0.5;
  padding: 0 0.75rem;
  text-shadow: none;
}



/* 7. Team Cards
   ========================================================================== */
.team-member-item {
  background: var(--ost-card) !important;
  border: 1px solid var(--ost-border) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem 1rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-member-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 38, 50, 0.1);
  border-color: var(--ost-accent) !important;
}

.team-member-item .team-image {
  border-radius: 50% !important;
  border: 2px solid var(--ost-accent) !important;
  object-fit: cover;
  width: 100px;
  height: 100px;
}

.team-member-item span:first-child {
  font-weight: 600;
  color: var(--ost-heading);
}

/* 8. Form (Contact)
   ========================================================================== */
form input,
form textarea {
  border: 1px solid var(--ost-border) !important;
  border-radius: 0.5rem !important;
  padding: 0.65rem 0.85rem !important;
  background: var(--ost-card) !important;
  color: var(--ost-text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
  outline: none !important;
  border-color: var(--ost-primary) !important;
  box-shadow: var(--ost-focus-ring) !important;
}

form input[type="submit"] {
  background: var(--ost-gradient-primary) !important;
  color: var(--ost-text-light) !important;
  border: none !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 107, 138, 0.3);
}

form label {
  color: var(--ost-heading) !important;
  font-weight: 500;
}

/* 9. Footer — Modern two-tone
   ========================================================================== */
footer {
  background: var(--ost-footer-bg) !important;
  border-top: 2px solid var(--ost-accent) !important;
  color: var(--ost-footer-text) !important;
}

footer a {
  color: var(--ost-footer-text) !important;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--ost-accent) !important;
}

footer cite {
  color: var(--ost-footer-text) !important;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* 10. Privacy / Disclaimer pages
   ========================================================================== */
body > .prose {
  background: var(--ost-card);
  border: 1px solid var(--ost-border);
  border-radius: 0.75rem;
  box-shadow: var(--ost-shadow-card);
  margin: 2rem auto;
  max-width: 900px;
  padding: 3rem !important;
}

/* 10b. Section Cards — clean bordered sections
   ========================================================================== */
.prose section[id] {
  position: relative;
  border: 1px solid var(--ost-border);
  border-left: 3px solid var(--ost-accent);
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

/* Remove corner flourishes */
.prose section[id]::before,
.prose section[id]::after {
  display: none;
}

/* Contact form section */
.contact-form-section {
  position: relative;
  border: 1px solid var(--ost-border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  margin: 1rem auto;
  max-width: 900px;
  background: var(--ost-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* 11. Donate Page
   ========================================================================== */
.donate-hero {
  background: var(--ost-gradient-primary);
  color: var(--ost-text-light);
  text-align: center;
  padding: 4rem 2rem;
  border-bottom: 3px solid var(--ost-accent);
}

.donate-hero h1,
.donate-hero h2 {
  color: var(--ost-text-light) !important;
}

.donate-hero p {
  color: var(--ost-text-light) !important;
  opacity: 0.9;
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.dgr-badge {
  background: var(--ost-card);
  border: 1px solid var(--ost-border);
  border-left: 3px solid var(--ost-accent);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.dgr-badge h3 {
  color: var(--ost-heading) !important;
  margin-bottom: 0.5rem;
}

.dgr-badge p {
  color: var(--ost-text);
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

/* Donate layout */
.donate-layout {
  display: flex;
  gap: 0;
  padding: 1rem 2rem 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.donate-sidebar {
  display: none;
  flex-shrink: 0;
  width: 200px;
  position: sticky;
  top: 172px;
  height: fit-content;
  padding: 2rem 1rem 2rem 2rem;
}

.donate-policies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donate-policies span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ost-heading) !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.donate-policies a {
  display: block;
  color: var(--ost-text-muted) !important;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none !important;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.donate-policies a:hover {
  color: var(--ost-primary) !important;
}

.donate-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1023px) {
  .donate-sidebar {
    display: block;
    position: static;
    width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
  }
  .donate-layout {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .donate-sidebar {
    display: block;
  }
}

/* Donation Form Card */
.donate-form-card {
  background: var(--ost-card);
  border: 1px solid var(--ost-border);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: var(--ost-shadow-card);
}

.donate-form-card h3 {
  color: var(--ost-heading) !important;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.amount-presets {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.amount-btn {
  background: var(--ost-bg);
  border: 1px solid var(--ost-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ost-heading);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
}

.amount-btn:hover {
  background: var(--ost-bg-alt);
  border-color: var(--ost-accent);
  transform: translateY(-1px);
}

.amount-btn:active {
  transform: scale(0.97);
}

.amount-btn.active {
  background: var(--ost-gradient-primary);
  color: var(--ost-text-light);
  border-color: var(--ost-primary);
  box-shadow: 0 2px 12px rgba(26, 107, 138, 0.25);
}

.donate-field {
  margin-bottom: 1.25rem;
}

.donate-field label {
  display: block;
  color: var(--ost-heading);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.donate-field input {
  width: 100%;
  font-size: 1rem;
  box-sizing: border-box;
}

.amount-input-wrap {
  position: relative;
}

.amount-input-wrap .currency-symbol {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ost-heading);
  font-weight: 600;
  font-size: 1.1rem;
  pointer-events: none;
}

.amount-input-wrap input {
  padding-left: 1.75rem !important;
}

.donate-note {
  color: var(--ost-text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 1rem 0 1.25rem;
}

.donate-submit-btn {
  display: block;
  width: 100%;
  background: var(--ost-gradient-primary);
  color: var(--ost-text-light);
  border: none;
  border-radius: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 107, 138, 0.3);
}

.donate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--ost-text-muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.donate-secure svg {
  flex-shrink: 0;
}

/* Thank-you page */
.thankyou-card {
  background: var(--ost-card);
  border: 1px solid var(--ost-border);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: var(--ost-shadow-card);
}

.thankyou-card h2 {
  color: var(--ost-heading) !important;
  margin-bottom: 1rem;
}

.thankyou-card p {
  color: var(--ost-text);
  margin: 0.5rem 0;
  line-height: 1.7;
}

.thankyou-card .thankyou-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.thankyou-ref {
  background: var(--ost-bg);
  border: 1px solid var(--ost-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem auto;
  max-width: 400px;
  font-size: 0.95rem;
}

.thankyou-ref strong {
  color: var(--ost-heading);
}

.thankyou-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thankyou-actions a {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.thankyou-actions a:hover {
  transform: translateY(-1px);
}

.thankyou-actions .btn-primary {
  background: var(--ost-gradient-primary);
  color: var(--ost-text-light) !important;
}

.thankyou-actions .btn-secondary {
  border: 1px solid var(--ost-border);
  color: var(--ost-heading) !important;
  background: var(--ost-card);
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.impact-card {
  background: var(--ost-card);
  border: 1px solid var(--ost-border);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 38, 50, 0.08);
  border-color: var(--ost-accent);
}

.impact-card .impact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.impact-card h3 {
  color: var(--ost-heading) !important;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.impact-card p {
  color: var(--ost-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 12. FAQ Accordion
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--ost-card);
  border: 1px solid var(--ost-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-color: var(--ost-accent);
}

.faq-question {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ost-text);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '\2014';
  color: var(--ost-accent);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 2.75rem;
  color: var(--ost-text-muted);
  line-height: 1.7;
  border-left: 2px solid var(--ost-primary);
  margin-left: 1.25rem;
  margin-bottom: 0.5rem;
}

/* 13. Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .team-member-item {
    padding: 1rem 0.75rem !important;
  }

  .team-member-item .team-image {
    width: 80px;
    height: 80px;
  }

  body > .prose {
    margin: 1rem;
    padding: 1.5rem !important;
    border-radius: 0.75rem;
  }

  .prose section[id] {
    padding: 1.25rem;
  }

  .contact-form-section {
    padding: 1.5rem;
    margin: 1rem;
  }

  .impact-cards {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .donate-hero {
    padding: 2.5rem 1.5rem;
  }

  .donate-layout {
    flex-direction: column;
    padding: 1rem;
  }

  .donate-policies {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--ost-card);
    border: 1px solid var(--ost-border);
    border-radius: 0.5rem;
  }

  .donate-policies span {
    width: 100%;
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .donate-policies a {
    font-size: 0.85rem;
    padding: 0.15rem 0;
  }

  .dgr-badge,
  .donate-form-card {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1rem;
  }

  .amount-presets {
    gap: 0.5rem;
  }

  .amount-btn {
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
  }

  .mobile-nav .nav-donate {
    display: inline-block;
    width: fit-content;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    border-left: none;
  }

  /* On mobile, show name but hide tagline in nav brand */
  .nav-brand .nav-brand-tagline {
    display: none;
  }

  .nav-brand .nav-brand-name {
    font-size: 0.85rem;
  }

  .nav-brand .nav-logo {
    width: 30px !important;
    height: 30px !important;
  }

  /* Footer — mobile vertical layout */
  footer {
    padding: 1.5rem !important;
  }

  footer nav {
    flex-direction: column !important;
    align-items: center;
    gap: 0.75rem;
  }

  footer nav a {
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  footer cite {
    text-align: center;
    font-size: 0.75rem;
    display: block;
  }

  /* Mobile body text readability */
  .prose p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* Section breathing room */
  .prose section[id] {
    margin: 2rem 0;
  }

  /* Team cards: 2-column grid on mobile, odd last spans full */
  #our_team .flex.flex-col.sm\:flex-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  #our_team .flex.flex-col.sm\:flex-row .team-member-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* FAQ larger tap target */
  .faq-question {
    padding: 1.25rem;
  }

  /* Ornate dividers: less margin on mobile */
  .ornate-divider {
    margin: 1.5rem 0;
  }

  /* Active page link in mobile nav — gold left border */
  .mobile-nav a.text-white.font-bold {
    border-left-color: var(--ost-accent) !important;
    color: var(--ost-accent) !important;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 640px) {
  /* Contact bar: single compact row */
  header .bg-tertiary-orange {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  header .bg-tertiary-orange > div {
    flex-direction: row !important;
    gap: 0.75rem !important;
    justify-content: center;
  }

  header .bg-tertiary-orange b,
  header .bg-tertiary-orange a {
    font-size: 0.7rem;
  }

  /* Logo row: tighter padding */
  header > div:nth-child(2) {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  header > div:nth-child(2) h1 {
    font-size: 1.1rem !important;
  }

  header > div:nth-child(2) h3 {
    font-size: 0.65rem !important;
  }
}
