/* 
 * IWSH Australia - Stylesheet
 * Custom CSS Design System
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties (Design System Tokens) */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --primary-dark: #0f172a;       /* Slate 900 - Deep Blue */
  --primary: #1e3a8a;            /* Blue 900 - Deep Trust Blue */
  --primary-light: #2563eb;      /* Blue 600 - Action Blue */
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --secondary: #0d9488;          /* Teal 600 - Clean Sanitation Teal */
  --secondary-light: #14b8a6;    /* Teal 500 - Hygiene Cyan */
  --secondary-glow: rgba(13, 148, 136, 0.15);
  
  --accent: #ea580c;             /* Orange 600 - Urgency/Donation Orange */
  --accent-light: #f97316;       /* Orange 500 - Action Highlight */
  --accent-hover: #c2410c;        /* Orange 700 */
  --accent-glow: rgba(234, 88, 12, 0.2);

  --bg-white: #ffffff;
  --bg-light: #f8fafc;           /* Slate 50 - Section Backgrounds */
  --bg-light-alt: #f1f5f9;       /* Slate 100 - Subtler details */
  
  --text-dark: #0f172a;          /* Slate 900 - Primary Text */
  --text-medium: #334155;        /* Slate 700 - Subtext */
  --text-muted: #64748b;         /* Slate 500 - Captions/Disabled */
  --text-light: #f8fafc;         /* Slate 50 - Contrast Text */

  /* Borders & Shadows */
  --border-color: #e2e8f0;       /* Slate 200 */
  --border-focus: #94a3b8;       /* Slate 400 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow-blue: 0 0 20px rgba(37, 99, 235, 0.25);
  --shadow-glow-orange: 0 0 20px rgba(234, 88, 12, 0.25);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.section-bg-dark h2, .section-bg-dark h3 {
  color: var(--bg-white);
}

.section-title-wrapper {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-medium);
}

.section-bg-dark .section-subtitle {
  color: var(--border-focus);
}

/* Page Containers (SPA Architecture) */
.page-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-height: calc(100vh - var(--nav-height) - 400px); /* Fill space above footer */
  padding-top: var(--nav-height);
}

.page-container.active {
  display: block;
  animation: pageFadeIn 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
  height: 70px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  user-select: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.logo-text span {
  color: var(--secondary);
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-gradient: linear-gradient(90deg, var(--primary-light), var(--secondary));
  background-color: var(--primary-light);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

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

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

.nav-link.active {
  color: var(--primary-light);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

/* Open states for hamburger */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-white);
  box-shadow: var(--shadow-sm), var(--shadow-glow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 8px 25px rgba(234, 88, 12, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--bg-white);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  transform: translateY(-2px);
}

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

.btn-outline-white:hover {
  background: var(--bg-white);
  color: var(--primary-dark);
  border-color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent-blue {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-accent-blue:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* ========================================================
   PAGE: HOME (LANDING PAGE)
   ======================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.12) 0%, rgba(37, 99, 235, 0.06) 50%, rgba(255, 255, 255, 1) 100%), var(--bg-white);
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--secondary-glow);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 16px;
  color: var(--secondary-light);
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 20px;
  color: var(--text-medium);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Water Ripple and Graphic styling */
.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  z-index: 2;
  background-color: var(--bg-light-alt);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-graphic:hover .hero-image-card img {
  transform: scale(1.05);
}

.graphic-bg-shape-1 {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 240px;
  height: 240px;
  border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
  background: linear-gradient(45deg, var(--secondary-glow), rgba(20, 184, 166, 0.05));
  z-index: 1;
  animation: blobFlow 12s infinite alternate;
}

.graphic-bg-shape-2 {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 280px;
  height: 280px;
  border-radius: 64% 36% 62% 38% / 37% 51% 49% 63%;
  background: linear-gradient(45deg, var(--primary-glow), rgba(37, 99, 235, 0.05));
  z-index: 1;
  animation: blobFlow 15s infinite alternate-reverse;
}

@keyframes blobFlow {
  0% { border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 60% 40% 50% 60% / 40% 60% 40% 60%; transform: translate(15px, -15px) rotate(90deg); }
  100% { border-radius: 35% 65% 30% 70% / 65% 35% 65% 35%; transform: translate(-10px, 10px) rotate(180deg); }
}

.hero-floating-card {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: floatCard 4s infinite ease-in-out;
}

.hero-floating-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hero-floating-card .card-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-floating-card .card-text p {
  font-size: 13px;
  color: var(--text-medium);
  font-weight: 500;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stats / Counter Section */
.stats-section {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 60px 0;
  position: relative;
  z-index: 5;
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--secondary-light);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--border-focus);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Core Mission Summary */
.mission-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
  background-color: var(--bg-light-alt);
}

.mission-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.mission-content p {
  color: var(--text-medium);
  margin-bottom: 20px;
  font-size: 16px;
}

.mission-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mission-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mission-feature-item i {
  color: var(--secondary);
  font-size: 20px;
  margin-top: 2px;
}

.mission-feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mission-feature-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Featured Programs / Grid Card layout */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.program-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.15);
}

.program-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light-alt);
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img {
  transform: scale(1.06);
}

.program-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

.program-card-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.program-card-desc {
  font-size: 15px;
  color: var(--text-medium);
  margin-bottom: 24px;
  flex-grow: 1;
}

.program-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-light-alt);
  padding-top: 20px;
  margin-top: auto;
}

.program-card-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-card-link i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.program-card-link:hover {
  color: var(--secondary);
}

.program-card-link:hover i {
  transform: translateX(4px);
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-shape {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  opacity: 0.5;
}

.cta-banner-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-banner p {
  font-size: 18px;
  color: var(--border-focus);
  margin-bottom: 36px;
}

.cta-banner-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Latest News / Blog Preview */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.news-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light-alt);
}

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

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
}

.news-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--primary-dark);
}

.news-desc {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-link:hover {
  color: var(--secondary);
}

/* ========================================================
   PAGE: ABOUT US
   ======================================================== */

.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.narrative-content .lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.narrative-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
}

.about-vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.card-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.15);
}

.card-box .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--secondary-glow);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.card-box h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.card-box p {
  color: var(--text-medium);
  font-size: 15px;
}

/* Core Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.1);
}

.value-card .value-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: rgba(13, 148, 136, 0.2);
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-medium);
}

/* Leadership Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.team-image {
  height: 280px;
  background-color: var(--bg-light-alt);
  position: relative;
  overflow: hidden;
}

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

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

.team-info {
  padding: 24px 20px;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.team-social-link:hover {
  background-color: var(--primary-light);
  color: var(--bg-white);
}

.team-bio-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.team-bio-btn:hover {
  background-color: var(--primary-light);
  color: var(--bg-white);
  border-color: var(--primary-light);
}

/* Legal Footer Note */
.legal-footer-note {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.legal-footer-note .abn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-light-alt);
  color: var(--text-medium);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.legal-footer-note p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   PAGE: OUR PROGRAMS (SERVICES)
   ======================================================== */

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

.program-detail-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.program-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(20, 184, 166, 0.2);
}

.program-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary));
}

.program-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.program-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.program-detail-card:nth-child(even) .program-detail-icon {
  color: var(--secondary);
}

.program-detail-header h3 {
  font-size: 24px;
  font-weight: 800;
}

.program-detail-desc {
  color: var(--text-medium);
  font-size: 15px;
  margin-bottom: 24px;
}

.program-subfeatures-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.program-subfeatures-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.program-subfeature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-medium);
}

.program-subfeature-item i {
  color: var(--secondary-light);
  font-size: 16px;
}

.program-detail-footer {
  margin-top: auto;
  border-top: 1px solid var(--bg-light-alt);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.program-sponsor-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================================
   PAGE: GET INVOLVED (INTERACTIVE)
   ======================================================== */

.get-involved-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: flex-start;
}

/* Volunteer Form Column */
.volunteer-intro h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.volunteer-intro p {
  color: var(--text-medium);
  margin-bottom: 32px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Donation Tiers Column */
.donation-tiers-wrapper {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: sticky;
  top: 100px;
}

.donation-tiers-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.donation-tiers-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.donation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.donation-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.donation-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.donation-card.active {
  border-color: var(--secondary);
  background-color: var(--secondary-glow);
}

.donation-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.donation-card.active .donation-radio-circle {
  border-color: var(--secondary);
}

.donation-card.active .donation-radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
}

.donation-amount-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
}

.donation-card.active .donation-amount-text {
  color: var(--secondary);
}

.donation-impact-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.donation-impact-text p {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 0;
}

.custom-donation-group {
  margin-bottom: 32px;
}

.custom-donation-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-donation-currency {
  position: absolute;
  left: 16px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-medium);
}

.custom-donation-input {
  width: 100%;
  padding: 14px 16px 14px 38px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.custom-donation-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px var(--secondary-glow);
}

.donation-submit-btn {
  width: 100%;
}

/* ========================================================
   PAGE: CONTACT US
   ======================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}

/* Contact Info Column */
.contact-info-wrapper h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.contact-info-wrapper > p {
  color: var(--text-medium);
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-method-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--bg-light-alt);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-method-details h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-method-details p, .contact-method-details a {
  font-size: 15px;
  color: var(--text-medium);
}

.contact-method-details a:hover {
  color: var(--primary-light);
}

/* Map Section style */
.map-placeholder {
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light-alt);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.map-overlay-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bg-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  max-width: 220px;
  box-shadow: var(--shadow-md);
}

.map-overlay-info h5 {
  color: var(--secondary-light);
  font-size: 13px;
  margin-bottom: 4px;
}

/* Contact Form Column */
.contact-form-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ========================================================
   GLOBAL FOOTER
   ======================================================== */

.site-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col-about .logo-wrapper {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-col-about .logo-icon {
  background: linear-gradient(135deg, var(--secondary-light), var(--primary-light));
}

.footer-col-about .logo-subtitle {
  color: var(--border-focus);
}

.footer-about-text {
  font-size: 14px;
  color: var(--border-focus);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background-color: var(--secondary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bg-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--border-focus);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link i {
  font-size: 12px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.footer-link:hover {
  color: var(--secondary-light);
}

.footer-link:hover i {
  transform: translateX(4px);
  opacity: 1;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--border-focus);
}

.footer-contact-item i {
  color: var(--secondary-light);
  font-size: 16px;
  margin-top: 2px;
}

.footer-contact-item a:hover {
  color: var(--secondary-light);
}

.footer-newsletter-text {
  font-size: 14px;
  color: var(--border-focus);
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--bg-white);
  font-size: 14px;
  flex-grow: 1;
}

.footer-newsletter-input::placeholder {
  color: var(--text-muted);
}

.footer-newsletter-input:focus {
  border-color: var(--secondary-light);
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-newsletter-btn {
  padding: 10px 18px;
  background-color: var(--secondary);
  color: var(--bg-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.footer-newsletter-btn:hover {
  background-color: var(--secondary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link:hover {
  color: var(--border-focus);
}

.footer-abn {
  font-weight: 500;
  color: var(--border-focus);
}

/* ========================================================
   MODALS & OVERLAYS
   ======================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 540px;
  width: 100%;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  color: var(--text-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-light-alt);
  color: var(--text-dark);
}

.modal-header {
  padding: 32px 32px 16px;
  border-bottom: 1px solid var(--bg-light-alt);
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--secondary-glow);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.modal-header-title h3 {
  font-size: 20px;
  font-weight: 800;
}

.modal-header-title p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-body {
  padding: 32px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--bg-light-alt);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-light);
}

/* Leader Bio Modal Elements */
.leader-bio-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.leader-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light-alt);
  overflow: hidden;
  flex-shrink: 0;
}

.leader-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-bio-meta h3 {
  font-size: 20px;
  font-weight: 800;
}

.leader-bio-meta p {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-bio-content {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* Checkout Form Styles */
.checkout-summary-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.checkout-summary-row:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.checkout-summary-row .total-label {
  font-weight: 700;
  font-size: 16px;
}

.checkout-summary-row .total-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--secondary);
}

.checkout-card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.checkout-card-input-wrapper i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.checkout-card-input {
  padding-left: 42px;
}

.checkout-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ======================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .hero-image-card {
    height: 400px;
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-card:last-child {
    display: none; /* Hide 3rd card on medium viewports */
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-page-grid {
    grid-template-columns: 1fr;
  }
  .get-involved-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .donation-tiers-wrapper {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  .section {
    padding: 60px 0;
  }
  .navbar.scrolled {
    height: 70px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open {
    left: 0;
  }
  .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light-alt);
  }
  .nav-link::after {
    display: none;
  }
  .nav-actions {
    display: none; /* In mobile, CTA button will reside at bottom of mobile menu or in header */
  }
  .nav-actions-mobile {
    display: block;
    width: 100%;
    margin-top: 24px;
  }
  .nav-actions-mobile .btn {
    width: 100%;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-badge {
    justify-content: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-graphic {
    order: -1; /* Graphic on top for mobile */
  }
  .hero-image-card {
    height: 320px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2n)::after {
    display: none;
  }
  .stat-item::after {
    top: 20%;
    height: 60%;
  }
  
  .mission-summary-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mission-media {
    height: 300px;
  }
  .mission-features {
    grid-template-columns: 1fr;
  }
  .narrative-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-vision-mission {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .cta-banner h2 {
    font-size: 28px;
  }
  
  .form-box, .contact-form-box {
    padding: 24px;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 36px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-item::after {
    display: none !important;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .donation-card {
    padding: 16px;
    gap: 12px;
  }
  .donation-amount-text {
    font-size: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}
