/*
Playfair Display - titles
Noto Sans Tamil - Tamil text
Times New Roman - texts
*/

:root {
  --saffron: #E8721A;
  --saffron-light: #F5943A;
  --saffron-pale: #FEF3E8;
  --teal: #0F7B6C;
  --teal-light: #17A08E;
  --teal-pale: #E6F5F3;
  --gold: #D4A017;
  --deep: #1A1A2E;
  --warm-white: #FFFDF9;
  --light-grey: #F4F4F0;
  --text-dark: #2C2C2C;
  --text-mid: #5A5A5A;
  --text-light: #888;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 24px 64px rgba(0, 0, 0, 0.16);
  --radius: 16px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

.tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /*background: rgba(255,253,249,0.96);*/
  background: rgba(253, 255, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 114, 26, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1400px;
  /* was 1200px — gives more breathing room */
  margin: 0 auto;
  /* add auto to center it */
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--saffron), var(--teal));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 114, 26, 0.35);
  overflow: hidden;
  /* add this */
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* or 'contain' if logo should not crop */
  border-radius: 14px;
}

.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
}

.logo-text .abbr {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--saffron);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  /* was 6px */
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  /* was 0.875rem */
  letter-spacing: 0.3px;
  /* was 0.5px */
  color: var(--text-dark);
  padding: 8px 10px;
  /* was 8px 16px */
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--saffron-pale);
  color: var(--saffron);
}

.nav-links a.active {
  color: var(--saffron);
}

.nav-donate-btn {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(232, 114, 26, 0.4);
  transition: all 0.2s !important;
}

.nav-donate-btn:hover {
  background: linear-gradient(135deg, #c85e10, var(--saffron)) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 114, 26, 0.5) !important;
}

.nav-donate-btn i {
  margin-right: 6px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── FIXED DROPDOWN POSITIONING ─── */

/* 1. Dropdown container positioning */
.nav-links li {
  position: relative;
}

/* 2. Main dropdown - positioned correctly under parent li */
.nav-links .dropdown {
  position: absolute;
  top: 100%;
  /* Aligns to bottom of parent <a> */
  left: 50%;
  /* Center horizontally */
  transform: translateX(-50%);
  /* Perfect center alignment */
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  min-width: 240px;
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-direction: column;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

/* 3. Show main dropdown on hover */
.nav-links li.services-menu:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 4. Dropdown main links */
.nav-links .dropdown>li {
  margin: 0;
}

.nav-links .dropdown li a {
  padding: 12px 20px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links .dropdown li a:hover {
  background: var(--saffron-pale);
  color: var(--saffron);
}

/* 5. Submenu container */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu:hover>.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 6. Submenu positioning - right of parent */
.nav-links .submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  min-width: 180px;
  z-index: 1006;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-direction: column;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  white-space: nowrap;
}

/* 7. Submenu links */
.nav-links .submenu li a {
  padding: 12px 16px;
  font-size: 0.85rem;
  display: block;
}

.nav-links .submenu li a:hover {
  background: var(--saffron-pale);
  color: var(--saffron);
}

/* 8. Submenu arrow rotation */
.submenu-arrow {
  font-size: 0.7rem !important;
  transition: transform 0.3s ease;
  margin-left: auto !important;
}

.dropdown-submenu:hover .submenu-arrow {
  transform: rotate(90deg);
}

/* 9. Prevent layout shift & hover issues */
.nav-links .dropdown,
.nav-links .submenu {
  pointer-events: auto;
}

/* 10. Ensure nav container doesn't clip dropdown */
#navbar,
.nav-inner {
  overflow: visible !important;
}

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  background: linear-gradient(150deg, #0f2027 0%, #1a4a3d 40%, #0F7B6C 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 72C22.3 72 8 57.7 8 40S22.3 8 40 8s32 14.3 32 32-14.3 32-32 32z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 114, 26, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 114, 26, 0.2);
  border: 1px solid rgba(232, 114, 26, 0.4);
  border-radius: 50px;
  padding: 8px 18px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFB978;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeSlideUp 0.8s ease both;
}

.badge-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeSlideUp 0.9s ease 0.1s both;
}

.hero-title .accent {
  color: var(--saffron-light);
}

.hero-tagline-en {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFB978;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  animation: fadeSlideUp 1s ease 0.2s both;
}

.hero-tagline-ta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  animation: fadeSlideUp 1s ease 0.25s both;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeSlideUp 1s ease 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s ease 0.4s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(232, 114, 26, 0.45);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232, 114, 26, 0.55);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-card {
  padding: 8px 24px !important;
  font-size: 0.8rem !important;
}


/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s ease 0.5s both;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--saffron-light);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  letter-spacing: 0.5px;
}


.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  animation: fadeSlideUp 1s ease 0.2s both;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
}

.hero-card h4 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-list {
  list-style: none;
}

.mission-list li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mission-list li:last-child {
  border-bottom: none;
}

.mission-list li span {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.motto-card {
  background: linear-gradient(135deg, rgba(232, 114, 26, 0.25), rgba(15, 123, 108, 0.25));
  border: 1px solid rgba(232, 114, 26, 0.3);
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.motto-card p {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

.motto-card .quote-mark {
  font-size: 2.5rem;
  color: var(--saffron-light);
  line-height: 1;
  font-family: Georgia;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SECTION BASE ─── */
section {
  padding: 96px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  background: var(--saffron-pale);
  color: var(--saffron);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(232, 114, 26, 0.2);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--deep);
}

.section-title .teal {
  color: var(--teal);
}

.section-title .saffron {
  color: var(--saffron);
}

.section-title .blue {
  color: #0A64BC;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 600px;
}

.section-header {
  margin-bottom: 56px;
}

/* ─── ABOUT ─── */
#about {
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.logo-showcase {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.logo-showcase::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.big-logo {
  font-size: 5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo-showcase h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.logo-showcase p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.symbol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.symbol-card {
  background: white;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.symbol-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.symbol-card .emoji {
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teal-pale);
  flex-shrink: 0;
}

.symbol-card h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.symbol-card p {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Vision/Mission cards */
.vm-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  /* important */
}

.vm-card {
  background: white;
  border-radius: 18px;
  padding: 28px 32px;
  border-left: 4px solid var(--saffron);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.vm-card.mission {
  border-left-color: var(--teal);
}

.vm-card .vm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.vm-card .vision-icon {
  background: var(--saffron-pale);
}

.vm-card .mission-icon {
  background: var(--teal-pale);
}

.vm-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--deep);
}

.vm-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.vm-card .tamil-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

/* ─── CONCEPT MEANING ─── */
#concept {
  background: var(--light-grey);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.concept-block {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.concept-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.care-header {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
}

.bridge-header {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

.concept-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  letter-spacing: 3px;
}

.concept-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.concept-items {
  padding: 8px 0;
}

.concept-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 32px;
  border-bottom: 1px solid var(--light-grey);
  transition: background 0.2s;
}

.concept-item:hover {
  background: rgba(232, 114, 26, 0.03);
}

.bridge-block .concept-item:hover {
  background: rgba(15, 123, 108, 0.03);
}

.concept-item:last-child {
  border-bottom: none;
}

.concept-letter {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
}

.care-block .concept-letter {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
}

.bridge-block .concept-letter {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

.concept-content h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 4px;
}

.concept-content p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.concept-content .arrow {
  color: var(--saffron);
  font-weight: 700;
  margin-right: 4px;
}

.bridge-block .concept-content .arrow {
  color: var(--teal);
}

/* ─── SERVICES ─── */
#services {
  background: var(--warm-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--light-grey);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.icon-orange {
  background: var(--saffron-pale);
}

.icon-teal {
  background: var(--teal-pale);
}

.icon-gold {
  background: #FEF9E7;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.service-card .tamil-note {
  font-size: 0.8rem;
  color: var(--teal);
  margin-top: 10px;
  font-weight: 600;
}

/* ─── DONATE ─── */
#donate {
  background: linear-gradient(150deg, var(--teal) 0%, #0a5548 100%);
  position: relative;
  overflow: hidden;
}

#donate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.donate-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.donate-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.donate-left h2 .highlight {
  color: #FFD166;
}

.donate-left p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 12px;
}

.donate-left .tamil-quote {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin-bottom: 36px;
  border-left: 3px solid rgba(232, 114, 26, 0.6);
  padding-left: 14px;
}

.impact-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

.impact-points li .check {
  width: 28px;
  height: 28px;
  background: rgba(232, 114, 26, 0.25);
  border: 1px solid rgba(232, 114, 26, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.donate-right {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
}

.donate-right h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.donate-right .sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.amount-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.amount-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: 'Nunito', sans-serif;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  transform: translateY(-1px);
}

.custom-amount {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s;
}

.custom-amount::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.custom-amount:focus {
  border-color: var(--saffron-light);
}

.donate-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232, 114, 26, 0.4);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.donate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232, 114, 26, 0.55);
}

.secure-note {
  text-align: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.77rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ─── CONTACT ─── */
#contact {
  background: var(--light-grey);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}

.info-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-card h4 {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.55;
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--deep);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E8E8E4;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(15, 123, 108, 0.35);
  transition: all 0.3s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(15, 123, 108, 0.45);
}

/* ─── FOOTER ─── */
footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer-motto {
  margin-top: 18px;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--saffron-light);
  border-left: 2px solid var(--saffron);
  padding-left: 12px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--saffron-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.social-links {
  display: flex;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--saffron-light);
  text-decoration: underline;
}

/* ICON BUTTON */
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ICON COLOR */
.social-link i {
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.social-link:hover {
  background: var(--saffron);
  transform: translateY(-3px);
}

/* ICON COLOR ON HOVER */
.social-link:hover i {
  color: white;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .donate-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .amount-options {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    justify-content: center;
  }

  .symbol-row {
    grid-template-columns: 1fr;
  }
}

/* Center About content */
#about .reveal {
  text-align: center;
}

#about .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.big-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: white;
  padding: 10px;
}

.about-visual .logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-grid>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── SCROLL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE NAVIGATION FIX ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--light-grey);
  padding: 20px 24px;
  box-shadow: var(--shadow-medium);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  display: flex !important;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: block;
}

.mobile-nav a:hover {
  background: var(--saffron-pale);
  color: var(--saffron);
}

.donate-link {
  background: var(--saffron) !important;
  color: white !important;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
}

/* Mobile Services */
.mobile-services {
  margin: 8px 0;
}

.mobile-services-main {
  display: block !important;
  padding: 14px 20px !important;
  font-weight: 700 !important;
  font-size: 1rem;
  border-radius: 12px;
  background: var(--saffron-pale);
  color: var(--saffron);
  cursor: pointer;
}

.mobile-dropdown {
  display: none;
  flex-direction: column;
  background: rgba(248, 248, 248, 0.95);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  gap: 2px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 114, 26, 0.1);
}

.mobile-dropdown.open {
  display: flex !important;
}

.mobile-submenu {
  position: relative;
}

.mobile-submenu>a {
  padding: 12px 20px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu-content {
  display: none;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  padding: 8px 0;
  margin: 4px 12px 0 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-submenu.open .mobile-submenu-content {
  display: flex !important;
}

.mobile-submenu-content a {
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
}

.mobile-submenu-arrow {
  font-size: 0.8rem !important;
  transition: transform 0.3s ease;
  color: var(--saffron);
}

.mobile-submenu.open .mobile-submenu-arrow {
  transform: rotate(90deg);
}

/* HIDE DESKTOP DROPDOWNS ON MOBILE */
@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }

  .nav-links .dropdown,
  .nav-links .submenu {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }
}


/* ─── ABOUT ─── */
#about {
  background: var(--warm-white);
}

/* Remove old about-grid */
.about-grid {
  display: none;
}

/* 1. Centered header block */
.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-header .section-label {
  display: inline-block;
}

.about-header .section-title {
  margin-left: auto;
  margin-right: auto;
}

.about-header .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 2. vm-cards: 3 horizontal cards */
.vm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 56px;
}

/* 3. about-visual: centered, full-width */
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.about-visual .section-label {
  display: inline-block;
}

.logo-showcase {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* symbol-row: all 4 in one line */
.symbol-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .vm-cards {
    grid-template-columns: 1fr 1fr;
  }

  .symbol-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vm-cards {
    grid-template-columns: 1fr;
  }

  .symbol-row {
    grid-template-columns: 1fr;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  background-color: var(--teal);
  /* button color */
  color: white;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background-color: var(--teal-dark);
  transform: translateY(-4px);
}

.pledge-dropdown {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pledge-dropdown .dropdown-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
}

.pledge-dropdown .custom-select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.pledge-dropdown .custom-select:focus {
  border-color: var(--saffron-light);
}

.pledge-dropdown .custom-select option {
  color: var(--text-dark);
}

#concept {
  position: relative;
  /* needed for overlay */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    /* white transparent overlay */
    url('assets/img/image4.jpg');
  /* your background image */
  background-size: cover;
  /* cover the whole section */
  background-position: center;
  /* center the image */
  background-repeat: no-repeat;
  /* prevent tiling */
  padding: 80px 0;
  /* spacing for content */
  color: #333;
  /* text color that works over white overlay */
}

/* Optional: add an overlay for better text readability */
#concept::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* semi-transparent dark overlay */
  z-index: 0;
}

#concept .container {
  position: relative;
  /* Make sure content appears above overlay */
  z-index: 1;
}

.mobile-dropdown {
  display: none;
  flex-direction: column;
  padding-left: 15px;
}

.mobile-dropdown a {
  font-size: 0.9rem;
  padding: 8px 12px;
}

.mobile-dropdown.open {
  display: flex;
}

.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-link:hover {
  text-decoration: none;
  color: inherit;
}

.service-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 20%;
}

.service-card a:hover {
  text-decoration: none;
  color: inherit;
}


/* Education Support Page */

.education-page {
  padding: 140px 24px 80px;
}

.education-container {
  max-width: 1100px;
  margin: 0 auto;
}

.education-intro {
  max-width: 800px;
}

/* Top feature cards */
.education-feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.education-feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 123, 108, 0.14);
}

.education-feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.education-feature-link:hover {
  text-decoration: none;
  color: inherit;
}

.education-feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.education-feature-card i {
  color: var(--saffron);
  font-size: 1.2rem;
}

/* Detail sections */
.education-details {
  margin-top: 70px;
}

.education-detail-block {
  margin-top: 50px;
  scroll-margin-top: 120px;
}

.education-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f8fbfb);
  border: 1px solid rgba(15, 123, 108, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(15, 123, 108, 0.08);
}

.education-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.education-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.education-detail-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.education-detail-image:first-child {
  grid-column: 1 / -1;
}

.education-detail-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.education-detail-image:hover img {
  transform: scale(1.05);
}

/* Why section */
.education-why {
  margin-top: 50px;
}

.education-section-title {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--deep);
}

.education-why-desc {
  max-width: 850px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.education-why-tamil {
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-soft);
}

/* Gallery */
.education-gallery-section {
  margin-top: 60px;
}

.education-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.education-gallery-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 123, 108, 0.08);
  border: 1px solid rgba(15, 123, 108, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 123, 108, 0.14);
}

.education-gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Back button */
.education-back-btn-wrap {
  margin-top: 32px;
}

/* Tablet */
@media (max-width: 991px) {
  .education-detail-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .education-detail-image img {
    height: 200px;
  }

  .education-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .education-page {
    padding: 120px 18px 70px;
  }

  .education-detail-gallery {
    grid-template-columns: 1fr;
  }

  .education-detail-image:first-child {
    grid-column: auto;
  }

  .education-detail-image img {
    height: 350px !important;
  }

  .education-gallery {
    grid-template-columns: 1fr;
  }

  .education-gallery-card img {
    height: 240px;
  }
}

/* Mobile dropdown safety */
@media (max-width: 768px) {

  .nav-links .dropdown,
  .nav-links .submenu {
    display: none !important;
    /* Hide desktop dropdowns on mobile */
  }

  .mobile-nav {
    overflow: visible;
  }
}

/* ══ TRUSTEES SECTION ══ */
.trustees-section {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid rgba(232, 114, 26, 0.1);
}

.trustees-header {
  text-align: center;
  margin-bottom: 56px;
}

.trustees-header .section-label {
  display: inline-block;
}

.trustees-header .section-title {
  margin: 0 auto 14px;
}

.trustees-header .section-desc {
  margin: 0 auto;
  text-align: center;
}

/* ── Grid ── */
.trustees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ── */
.trustee-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.trustee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.13);
}

/* ── Photo panel ── */
.trustee-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0ec;
}

.trustee-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.trustee-card:hover .trustee-photo {
  transform: scale(1.05);
}

/* Subtle gradient at bottom of photo for badge legibility */
.trustee-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(26, 26, 46, 0.55) 100%);
  pointer-events: none;
}

/* ── Role badge (sits at bottom of photo) ── */
.trustee-role-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: var(--saffron);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(232, 114, 26, 0.45);
  font-family: "Times New Roman", Times, serif;
}

.trustee-role-badge.managing {
  background: var(--teal);
  box-shadow: 0 3px 12px rgba(15, 123, 108, 0.45);
}

.trustee-role-badge.treasurer {
  background: #0A64BC;
  box-shadow: 0 3px 12px rgba(10, 100, 188, 0.45);
}

/* ── Bottom accent line per card colour ── */
.trustee-card::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--saffron-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.trustee-card.managing::after {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.trustee-card.treasurer::after {
  background: linear-gradient(90deg, #0A64BC, #1A7FD4);
}

.trustee-card:hover::after {
  transform: scaleX(1);
}

/* ── Info body ── */
.trustee-body {
  padding: 22px 24px 24px;
}

.trustee-name {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.3;
  margin: 0 0 4px;
}

.trustee-name-en {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}

.trustee-quote {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .trustees-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trustees-grid .trustee-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .trustees-grid {
    grid-template-columns: 1fr;
  }

  .trustees-grid .trustee-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }
}