/* ================================
   NOBLE'S-GROUP WEBSITE STYLESHEET
   Design system v2 — refined blue/teal
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ================================
   1. VARIABLES & ROOT SETTINGS
   ================================ */

:root {
  /* Color Palette */
  --ink: #0d2b3e;            /* near-black blue, headings */
  --primary-dark: #0d2b3e;   /* alias kept for backward compatibility */
  --primary: #145374;        /* deep blue */
  --primary-light: #1f6f8b;  /* mid blue, links/hover */
  --accent: #2a9d8f;         /* muted teal */
  --accent-light: #3fb6a6;   /* lighter teal for hover states */
  --accent-soft: #eaf5f2;    /* pale teal tint */
  --gold: #dba53c;           /* warm sand/gold accent */
  --gold-dark: #b9822a;
  --light-bg: #f3f1ea;       /* warm light background */
  --bg: #faf8f3;             /* warm off-white page background */
  --text-dark: #233240;
  --text-light: #64707a;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(13, 43, 62, 0.08);
  --shadow-lg: 0 10px 30px rgba(13, 43, 62, 0.14);

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-main: "Public Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --header-h: 2.6rem;
  --nav-h: 4.5rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* ================================
   2. RESET & BASE STYLES
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg);
  overflow-x: hidden;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

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

/* ================================
   3. TYPOGRAPHY
   ================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
  line-height: 1.8;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Skip link — hidden until keyboard-focused, lets keyboard/screen-reader
   users jump past the repeated header/nav on every page */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top 0.2s ease;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 0.75rem;
  color: var(--white);
}

/* Eyebrow / mono label utility — used for small caps labels above headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

/* ================================
   4. HEADER & STUDENT INFO
   ================================ */

.student-info {
  background-color: var(--ink);
  color: var(--white);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 110;
}

.student-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ================================
   5. NAVIGATION BAR
   ================================ */

/* Sticky wrapper: the info bar + navbar stick together as one unit so the
   navbar's offset never has to guess the info bar's (variable, wrapping)
   height with a magic number. */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-icon {
  font-size: 1.6rem;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.logo-text {
  color: var(--white);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--spacing-xs) 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

.page-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

/* ripple signature — corner accent on page headers */
.page-header::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.06), 0 0 0 48px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0;
  position: relative;
}

/* ================================
   8. BUTTONS
   ================================ */

.btn {
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  color: var(--white);
  background-color: var(--primary);
  box-shadow: 0 8px 18px rgba(13, 43, 62, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-primary,
.btn-secondary {
  color: var(--white);
}

.btn-primary {
  background-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-light);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

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

/* Page-specific accent overrides */
body.donate-page .btn-primary { background-color: var(--gold); color: var(--ink); }
body.donate-page .btn-primary:hover { background-color: var(--gold-dark); }

body.contact-page .btn-primary { background-color: var(--primary-light); }

body.volunteer-page .btn-primary { background-color: var(--accent); }

/* ================================
   9. HERO SECTION (HOME PAGE)
   ================================ */

.home-hero {
  width: 100%;
  min-height: 70vh;
  min-height: 70dvh;
  background-image: linear-gradient(rgba(13, 43, 62, 0.55), rgba(13, 43, 62, 0.55)), url("pictures/water_and_sanitation.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.home-hero-title,
.home-tagline {
  color: #fff !important;
}

.home-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.tagline,
.home-tagline {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-main);
}

.tagline {
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

section {
  margin-bottom: 45px;
}

section h2 {
  text-align: center;
}

/* ================================
   10. MISSION SECTION
   ================================ */

.mission {
  background-color: var(--accent-soft);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--accent);
  margin-bottom: var(--spacing-xl);
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 0;
  color: var(--text-dark);
}

/* ================================
   11. GRID LAYOUTS
   ================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.partners-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.vm-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.projects-detailed-grid {
  display: grid;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* ================================
   12. CARD STYLES
   ================================ */

.project-card,
.stat-box,
.testimonial-card,
.partner,
.value-card,
.team-member,
.vm-card,
.info-card,
.reason-card,
.opportunity-card,
.giving-method {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 43, 62, 0.06);
}

.project-card:hover,
.stat-box:hover,
.testimonial-card:hover,
.partner:hover,
.value-card:hover,
.team-member:hover,
.vm-card:hover,
.info-card:hover,
.reason-card:hover,
.opportunity-card:hover,
.giving-method:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-card {
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--spacing-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-light);
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* Home page featured-project thumbnails (previously referenced but undefined —
   now a proper illustrated placeholder tile that matches the design system) */
.card-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  background-color: var(--accent-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(42, 157, 143, 0.16), rgba(13, 43, 62, 0.05));
}

.card-image.project-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d8f' stroke-width='1.6'%3E%3Cpath d='M12 2s6 7 6 11a6 6 0 1 1-12 0c0-4 6-11 6-11Z'/%3E%3C/svg%3E"); }
.card-image.project-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d8f' stroke-width='1.6'%3E%3Crect x='4' y='9' width='16' height='11' rx='1'/%3E%3Cpath d='M8 9V6a4 4 0 0 1 8 0v3M9 13h6'/%3E%3C/svg%3E"); }
.card-image.project-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d8f' stroke-width='1.6'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 20c0-3.9 3.1-7 7-7s7 3.1 7 7'/%3E%3C/svg%3E"); }

.stat-box {
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.stat-box h3 {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

.stat-box p {
  margin: var(--spacing-md) 0 0 0;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.testimonial-card {
  border-left: 4px solid var(--accent);
  border-top: none;
  position: relative;
}

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--ink);
}

.testimonial-author {
  display: block;
}

.testimonial-author strong {
  color: var(--primary);
  font-family: var(--font-main);
}

.testimonial-author span {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.partner {
  text-align: center;
  border: 2px solid var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.partner h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-main);
}

.value-card,
.reason-card {
  text-align: center;
  border-top: 4px solid var(--accent);
}

.value-icon,
.reason-icon {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-sm);
}

.team-member {
  text-align: center;
}

.member-avatar {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

.position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vm-card {
  border-top: 4px solid var(--ink);
}

.info-card {
  border-left: 4px solid var(--accent);
}

.opportunity-card {
  border-top: 4px solid var(--accent);
}

.opportunity-details {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--light-bg);
  font-size: 0.95rem;
}

.opportunity-details p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.giving-method {
  text-align: center;
  border-top: 4px solid var(--gold);
}

/* ================================
   15. TWO-COLUMN / ABOUT SECTION
   ================================ */

.two-column-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  min-height: auto;
}

.two-column-image {
  flex: 1 1 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.two-column-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  object-fit: cover;
}

.two-column-content {
  flex: 1 1 320px;
}

/* ================================
   13. PROJECT DETAILS
   ================================ */

.page-visual {
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.map-image-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: var(--spacing-md);
}

.map-image-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.map-image-card p {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.project-detail {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.project-detail:hover {
  box-shadow: var(--shadow-lg);
}

.project-image {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: var(--spacing-lg);
}

.project-info h2 {
  margin-top: 0;
  text-align: left;
}

.project-table {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  border-collapse: collapse;
}

.project-table th,
.project-table td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--light-bg);
}

.project-table th {
  background-color: var(--light-bg);
  font-weight: 600;
  width: 30%;
}

.project-info h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.project-info ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.project-info li {
  padding-left: var(--spacing-lg);
  position: relative;
  margin-bottom: 0.5rem;
}

.project-info li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ================================
   14. STATUS BADGES
   ================================ */

.status {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status.active {
  background-color: #dff2e6;
  color: #1e7a45;
}

.status.planning {
  background-color: #fbeacb;
  color: #92620a;
}

.status.completed {
  background-color: #dbeafd;
  color: #1a5da8;
}

/* ================================
   GALLERY
   ================================ */

.gallery-section {
  padding: 10px;
}

.page-title {
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-image {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.gallery-image:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================
   16. FORMS
   ================================ */

form {
  background-color: var(--light-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid #e2ddd0;
}

fieldset {
  border: none;
  padding: 0 0 var(--spacing-lg) 0;
  margin: 0 0 var(--spacing-lg) 0;
}

legend {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  padding: 0;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem var(--spacing-sm);
  border: 1px solid #c9c2b0;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: var(--white);
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.checkbox-group {
  display: grid;
  gap: var(--spacing-sm);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: normal;
}

.checkbox input[type="checkbox"],
.checkbox input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.form-group.checkbox label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.form-group.checkbox input[type="checkbox"],
.form-group.checkbox input[type="radio"] {
  margin-right: var(--spacing-sm);
}

.field-hint {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  font-style: italic;
}

.form-intro {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.form-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.donation-options {
  margin-bottom: var(--spacing-md);
}

.donation-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  flex-wrap: wrap;
}

.preset-amounts {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
  margin-left: var(--spacing-lg);
}

.amount-btn {
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--accent);
  background-color: var(--white);
  color: var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: all 0.25s ease;
}

.amount-btn:hover,
.amount-btn.selected {
  background-color: var(--accent);
  color: var(--white);
}

/* ================================
   17. TABLES
   ================================ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: var(--spacing-lg) 0;
}

thead {
  background-color: var(--ink);
  color: var(--white);
}

th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-family: var(--font-main);
}

td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--light-bg);
}

tbody tr:hover {
  background-color: var(--accent-soft);
}

tbody tr:last-child td {
  border-bottom: none;
}

.impact-table {
  margin-top: var(--spacing-lg);
}

.office-hours {
  width: 100%;
  background-color: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}

.office-hours tr {
  border-bottom: 1px solid var(--light-bg);
}

.office-hours td {
  padding: var(--spacing-sm);
  border: none;
}

/* ================================
   18. LISTS
   ================================ */

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.objectives-list {
  list-style-position: inside;
  margin-left: 0;
}

.objectives-list li {
  background-color: var(--accent-soft);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}

/* ================================
   19. FLEXBOX UTILITIES
   ================================ */

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ================================
   20. MAP PLACEHOLDER
   ================================ */

.map-placeholder {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #d8ece8 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  margin: var(--spacing-lg) 0;
}

.placeholder-content { color: var(--primary); }
.placeholder-content p:first-child { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
.placeholder-content p:nth-child(2) { font-size: 1.3rem; font-weight: 600; margin: 0; }

/* ================================
   21. FAQ SECTION
   ================================ */

.faq-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--light-bg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-item:hover { background-color: var(--accent-soft); }
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}

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

.faq-item summary::before {
  content: "▾";
  display: inline-block;
  margin-right: var(--spacing-md);
  transition: transform 0.25s ease;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::before { transform: rotate(-180deg); }

.faq-item p {
  margin-top: var(--spacing-md);
  margin-bottom: 0;
  color: var(--text-dark);
  padding-left: var(--spacing-lg);
}

/* ================================
   22. SOCIAL MEDIA SECTION
   ================================ */

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.social-icon {
  background-color: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  color: var(--primary);
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.social-icon .icon { font-size: 2rem; font-weight: bold; }
.social-icon .platform { font-weight: 600; font-size: 0.9rem; }

/* ================================
   23. FOOTER
   ================================ */

.footer {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.footer-section h4 {
  font-family: var(--font-main);
  color: var(--accent-light);
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-section p { color: rgba(255, 255, 255, 0.75); margin-bottom: 0; }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin-bottom: var(--spacing-sm); }
.footer-section a { color: rgba(255, 255, 255, 0.85); transition: color 0.25s ease; }
.footer-section a:hover { color: var(--accent-light); }

.social-links { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-weight: bold;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: scale(1.08);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.65); }

/* ================================
   24. UTILITY CLASSES
   ================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.p-lg { padding: var(--spacing-lg); }

/* ================================
   25. RESPONSIVE DESIGN
   ================================ */

/* Small laptop / large tablet (1100px and below) — new tier so this range
   isn't stuck with raw desktop spacing before the 768px tier kicks in */
@media (max-width: 1100px) {
  main { padding: var(--spacing-lg) var(--spacing-md); }
  .nav-container { gap: var(--spacing-sm) var(--spacing-md); }
  .nav-menu { gap: var(--spacing-xs) var(--spacing-md); }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  main { padding: var(--spacing-lg) var(--spacing-sm); }

  /* FIX: was `flex-wrap: nowrap`, which forced the opened .nav-menu
     (width: 100%) to squeeze onto the same row as the logo/toggle
     instead of dropping to its own line below them. */
  .nav-container { flex-wrap: wrap; }
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: var(--spacing-sm);
    font-size: 0.98rem;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: none;
  }

  .home-hero { min-height: 60vh; min-height: 60dvh; padding: var(--spacing-lg); }

  .project-detail { grid-template-columns: 1fr; }
  .project-image { min-height: 220px; }

  .two-column-container { flex-direction: column; }
  .two-column-image img { min-height: 220px; max-height: 320px; }

  .form-row { grid-template-columns: 1fr; }
  .form-buttons { flex-direction: column; }
  .form-buttons button, .form-buttons .btn { width: 100%; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }

  table { font-size: 0.9rem; }
  th, td { padding: var(--spacing-sm); }

  .page-header { padding: var(--spacing-lg); }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  main { padding: var(--spacing-md) var(--spacing-sm); }
  section { margin-bottom: var(--spacing-lg); }

  .nav-container {
    padding: 0.75rem 0.5rem;
  }

  .logo {
    font-size: 1.1rem;
    padding: 0.4rem 0.75rem;
  }

  .logo-icon {
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
  }

  .home-hero { padding: var(--spacing-lg) var(--spacing-sm); min-height: 50vh; min-height: 50dvh; }

  .stats-container { grid-template-columns: 1fr 1fr; }
  .projects-grid,
  .testimonials-grid,
  .gallery-container,
  .values-grid,
  .team-grid,
  .vm-container { grid-template-columns: 1fr; }

  .gallery-image { height: 220px; }

  .project-image { min-height: 160px; }
  .project-info { padding: var(--spacing-md); }

  form { padding: var(--spacing-md); }
  fieldset { margin-bottom: var(--spacing-md); }
  .form-group { margin-bottom: var(--spacing-sm); }

  .preset-amounts { justify-content: space-between; margin-left: 0; }
  .amount-btn { flex: 1 1 45%; text-align: center; }

  .footer-content { grid-template-columns: 1fr; }

  .page-header { padding: var(--spacing-md) var(--spacing-sm); }

  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem; }

  .social-media-grid { grid-template-columns: 1fr 1fr; }
}

/* Extra Small Devices (below 360px) */
@media (max-width: 360px) {
  .student-info { font-size: 0.72rem; }
  .logo { font-size: 0.95rem; }
  .stats-container,
  .social-media-grid { grid-template-columns: 1fr; }
  .nav-menu a { font-size: 0.85rem; padding: 0.65rem 0.5rem; }
}

/* ================================
   26. MOTION
   ================================ */

@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

section { animation: slideIn 0.4s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section { animation: none; }
  .btn:hover, .project-card:hover, .stat-box:hover, .testimonial-card:hover,
  .partner:hover, .value-card:hover, .team-member:hover, .vm-card:hover,
  .info-card:hover, .reason-card:hover, .opportunity-card:hover,
  .giving-method:hover, .social-icon:hover, .social-links a:hover,
  .gallery-image:hover {
    transform: none;
  }
}

/* ================================
   27. PRINT STYLES
   ================================ */

@media print {
  .navbar, .footer, .student-info, .form-buttons, .hero-buttons { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}