/* MENAMUN Static Site Styles */
/* Created By Youssef Shamas */
/* CSS Variables for theme colors and spacing */
:root {
  --accent: #8B0000; /* deep maroon - CTAs and accents */
  /* Youssef Shamas */
  --bg: #F9F6F2; /* light warm background */
  --text: #1f1f1f; /* main text color */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Container */
  --container-max-width: 1100px;
  --container-padding: 20px;
  
  /* Breakpoints */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
}

/* Reset and base styles */
/* Youssef Shamas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: #D2B48C; /* dark tan */
  line-height: 1.6;
  /* Made By Youssef Shamas */
}

/* Typography */
/* Created By Youssef Shamas */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* Container */
/* Youssef Shamas Development */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header and Navigation */
.header {
  background-color: #5e2400;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  position: relative;
}

.logo {
  height: 45px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cta-button {
  background-color: var(--accent);
  color: var(--white);
  padding: calc(var(--spacing-sm) + 2px) calc(var(--spacing-xl));
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.05rem;
}

.cta-button:hover {
  background-color: #6B0000;
  transform: translateY(-2px);
}

.cta-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  margin-left: var(--spacing-md);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #5e2400;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-md);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-list {
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Hero Section */
.hero {
  background-image: url('../images/sahara.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center; /* vertically center */
  position: relative;
  padding-top: var(--spacing-xxl); /* push a bit lower from navbar */
  padding-bottom: var(--spacing-xl);
  /* Youssef Shamas Development */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-left: 0;
}

.hero-welcome-box {
  background-color: #E67E22; /* orange box around text */
  border-radius: 8px;
  padding: var(--spacing-xxl) var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
  transform: translateX(-100px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: inline-block;
  margin-right: 0;
}

.hero-welcome-box.animate-in {
  transform: translateX(0);
  opacity: 1;
}

.hero-preheading {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
  color: #8B4513;
  font-weight: 600;
  font-family: var(--font-body);
}

.hero-heading {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  color: #5e2400; /* dark text like screenshot */
  font-weight: 700;
}

.text-menamun {
  color: #fff; /* MENAMUN in white */
  font-weight: 800;
  background: none;
}

.text-apostrophe {
  color: #ffd8b0; /* light peach for ’s */
  font-weight: 700;
}

.hero-subheading {
  font-size: 1.75rem;
  margin-bottom: 0;
  color: #8B4513;
  font-weight: 600;
  font-family: var(--font-body);
}

.hero-cta-button {
  background-color: transparent;
  color: #fff;
  padding: calc(var(--spacing-md) + 2px) calc(var(--spacing-xxl));
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  margin-top: var(--spacing-md);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease 0.3s;
  font-size: 1.05rem;
  border: 2px solid #fff; /* outline style */
}

.hero-cta-button.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.hero-cta-button:hover {
  background-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--accent);
}

/* Meet The Team hero background */
.team-hero {
  position: relative;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/barouk-mountain.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

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

.team-hero .section-title,
.team-hero p {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Chairs hero background */
.chairs-hero {
  position: relative;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.chairs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/background-chairs.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

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

.chairs-hero .section-title,
.chairs-hero p {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* What We Do Section */
.what-we-do-section {
  position: relative;
  min-height: 50vh;
  overflow: visible;
  z-index: 10;
}

.what-we-do-background {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 50vh;
  background-image: url('../images/hero-desert.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.what-we-do-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url('../images/light-backdrop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 1;
}

.what-we-do-content {
  position: relative;
  width: 100%;
  min-height: 50vh;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.what-we-do-text {
  max-width: 60%;
  padding: var(--spacing-lg);
  text-align: center;
}

.what-we-do-text h2 {
  color: #5e2400;
  margin-bottom: var(--spacing-sm);
  font-size: 2.5rem;
}

.what-we-do-text p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
  font-size: 1.15rem;
  color: #8B4513;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.two-column-content h2 {
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

.two-column-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

/* Founder section */
#founder {
  background-color: transparent;
}

.founder-section {
  background-color: rgba(139, 0, 0, 0.28); /* glossy red tint */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  padding: 5rem 3rem; /* reduced padding for smaller visual footprint */
  border: 6px solid rgba(139, 0, 0, 0.6); /* maroon theme border */
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  min-height: 45vh; /* smaller minimum height */
}

/* Backdrop only for Founder section */
.founder-section {
  position: relative;
  overflow: hidden;
}

.founder-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/founder-backdrop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transform: scale(5); /* enlarge without affecting layout */
  transform-origin: center;
}

/* Removed founder-only backdrop; now using global backdrop */

.founder-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* left text, right image */
  gap: 2.5rem; /* ~40px gutter */
  align-items: center;
  position: relative; /* ensure above backdrop */
  z-index: 5;
}

.founder-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem; /* ~32px */
  color: #F5F5DC;
  margin-bottom: 0.5rem;
}

.founder-subheading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem; /* ~24px */
  color: #F5F5DC;
  margin-bottom: 1rem;
}

.founder-text p {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.6;
  color: #F5F5DC;
}

.founder-image-container {
  display: flex;
  justify-content: center;
}

.founder-image {
  width: 100%;
  max-width: 420px; /* larger portrait */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* Specific layout for meet.html - 3x3x4 grid using row containers */
body:has(.team-hero) .team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Row containers for 3x3x4 layout */
body:has(.team-hero) .team-row {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

body:has(.team-hero) .team-row:nth-child(1) {
  grid-template-columns: repeat(3, 1fr);
}

body:has(.team-hero) .team-row:nth-child(2) {
  grid-template-columns: repeat(3, 1fr);
}

body:has(.team-hero) .team-row:nth-child(3) {
  grid-template-columns: repeat(4, 1fr);
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 360px;
}

/* removed left-middle modifier */

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.18) 40%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.team-card-image {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: inherit;
  transform: scale(1.02);
  filter: brightness(0.8) saturate(1.05) contrast(1.05);
}

/* Specific adjustments for individual chairs */
.team-card[aria-label*="Joud Abi Semaan"] .team-card-image {
  top: 0%;
}

.team-card[aria-label*="Mia Bacho"] .team-card-image {
  top: 0%;
}

.team-card[aria-label*="Kamal Daou"] .team-card-image {
  top: 0%;
}

.team-card[aria-label*="Diana Bitar"] .team-card-image {
  top: 0%;
}

/* Fine-tune focal point for specific images without affecting layout/text */
.team-card-image.image-left-center {
  object-position: 20% center !important;
  transform: scale(1.08);
}

.team-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 200px;
}

.team-card-name {
  position: relative;
  z-index: 2;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-top: auto;
}

.team-card-role {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-top: 0;
}

.team-card-quote {
  position: relative;
  z-index: 2;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--spacing-sm);
  margin-top: auto;
}

.team-card:hover .team-card-quote,
.team-card.active .team-card-quote {
  opacity: 1;
}

/* Chairs sections */
.chairs-section {
  margin-bottom: var(--spacing-xl);
}

.chairs-section h3 {
  color: var(--accent);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--accent);
}

.chairs-list {
  list-style: none;
  padding-left: var(--spacing-md);
}

.chairs-list li {
  margin-bottom: var(--spacing-xs);
  padding: var(--spacing-xs);
  background-color: var(--light-gray);
  border-radius: 4px;
}

/* Conference section */
.conference-hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.conference-title {
  font-size: 3rem;
  font-weight: 800;
}

.conference-title .word-our {
  color: #FFF8DC; /* light yellow (cornsilk-like) */
}

.conference-title .word-conference {
  color: #ffffff;
}

/* Our Conference hero background */
.conference-hero-bg {
  position: relative;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.conference-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/aou-badaro-backdrop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

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

.conference-hero-bg .section-title,
.conference-hero-bg .conference-theme,
.conference-hero-bg p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.conference-date {
  background-color: var(--accent);
  color: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  margin: var(--spacing-lg) 0;
  display: inline-block;
}

.conference-theme {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.where-section {
  position: relative;
  background-image: url('../images/light-backdrop.jpg');
  background-size: cover;
  background-position: center;
}

.where-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.where-text {
  color: #1f1f1f;
}

.where-heading {
  font-size: 3.5rem;
  color: #D2691E; /* warm heading color similar to design */
  margin-bottom: var(--spacing-sm);
}

.where-subline {
  font-size: 1.5rem;
  color: #2f6b4f; /* greenish like design */
}

.where-subline-big {
  font-size: 1.75rem;
  font-weight: 700;
}

/* removed link + hint per new design */

.where-visual {
  position: relative;
}

/* removed decorative pin */

.where-map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.where-map-container iframe {
  display: block;
  border: 0;
}

.where-section .container {
  position: relative;
}

/* removed green line */

.where-actions {
  text-align: center;
  margin-top: var(--spacing-md);
}

.directions-button {
  margin-top: 0;
}

.location-section {
  background-color: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  margin-top: var(--spacing-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container {
  margin-top: var(--spacing-md);
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Apply section */
.apply-hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.apply-steps {
  background-color: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  margin: var(--spacing-xl) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.apply-steps ol {
  padding-left: var(--spacing-lg);
}

.apply-steps li {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.file-upload {
  background-color: var(--light-gray);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: var(--spacing-xl);
  text-align: center;
  margin-top: var(--spacing-lg);
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--accent);
  background-color: rgba(139, 0, 0, 0.05);
}

.file-upload input[type="file"] {
  margin-top: var(--spacing-md);
}

/* Footer */
/* Created By Youssef Shamas */
.footer {
  background-color: var(--text);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-contact {
  text-align: center;
}

.footer-contact p {
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.footer-social {
  text-align: right;
}

.social-icon {
  width: 40px;
  height: 40px;
  margin-left: var(--spacing-sm);
}

.footer-copyright {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (min-width: 1400px) {
  .what-we-do-section {
    min-height: 60vh;
  }
  
  .what-we-do-background {
    min-height: 60vh;
  }
  
  .what-we-do-content {
    min-height: 60vh;
  }
  
  .what-we-do-text {
    max-width: 50%;
  }
}

@media (max-width: 1200px) {
  .what-we-do-text {
    max-width: 70%;
  }
  
  .what-we-do-text h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 1024px) {
  .hero-heading {
    font-size: 3rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team page row responsiveness */
  body:has(.team-hero) .team-row:nth-child(1),
  body:has(.team-hero) .team-row:nth-child(2),
  body:has(.team-hero) .team-row:nth-child(3) {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .what-we-do-section {
    min-height: 50vh;
    overflow: visible;
  }
  
  .what-we-do-background {
    min-height: 50vh;
  }
  
  .what-we-do-content {
    min-height: 50vh;
  }
  
  .what-we-do-text {
    max-width: 75%;
  }
}

@media (max-width: 900px) {
  .what-we-do-section {
    min-height: 55vh;
  }
  
  .what-we-do-background {
    min-height: 55vh;
  }
  
  .what-we-do-content {
    min-height: 55vh;
  }
  
  .what-we-do-text {
    max-width: 80%;
  }
  
  .what-we-do-text h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: flex;
    gap: var(--spacing-sm);
  }
  
  .nav .nav-list {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    margin-right: var(--spacing-md);
  }
  
  .hero {
    min-height: 40vh;
  }
  
  .hero-content {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    max-width: 100%;
    padding-left: 0;
  }
  
  .hero-welcome-box {
    transform: translateY(50px);
    margin: 0 auto var(--spacing-lg) auto;
    padding: var(--spacing-lg) var(--spacing-xl);
  }
  
  .hero-welcome-box.animate-in {
    transform: translateY(0);
  }
  
  .hero-heading {
    font-size: 2.5rem;
  }
  
  .hero-subheading {
    font-size: 1.25rem;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .what-we-do-section {
    min-height: 50vh;
    overflow: visible;
  }
  
  .what-we-do-background {
    min-height: 50vh;
  }
  
  .what-we-do-content {
    padding: var(--spacing-lg);
    justify-content: center;
    min-height: 50vh;
  }
  
  .what-we-do-text {
    max-width: 85%;
    padding: var(--spacing-md);
  }
  
  .what-we-do-text h2 {
    font-size: 2.25rem;
  }
  
  .what-we-do-text p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .where-grid {
    grid-template-columns: 1fr;
  }
  .where-heading {
    font-size: 2.75rem;
  }
  
  .founder-section {
    padding: 2rem; /* tighter padding on mobile devices */
    border-width: 4px;
    border-radius: 12px;
  }
  .founder-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .founder-image-container {
    order: -1; /* stack image above text */
  }
  .founder-heading {
    font-size: 1.75rem;
  }
  .founder-subheading {
    font-size: 1.25rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Team page row responsiveness - mobile */
  body:has(.team-hero) .team-row:nth-child(1),
  body:has(.team-hero) .team-row:nth-child(2),
  body:has(.team-hero) .team-row:nth-child(3) {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .footer-social {
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .conference-theme {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-welcome-box {
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-content {
    padding-left: var(--spacing-md);
  }
  
  .hero-heading {
    font-size: 2rem;
  }
  
  .hero-subheading {
    font-size: 1.1rem;
  }
  
  .hero-preheading {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .what-we-do-section {
    min-height: 60vh;
    overflow: visible;
  }
  
  .what-we-do-background {
    min-height: 60vh;
  }
  
  .what-we-do-content {
    padding: var(--spacing-md);
    min-height: 60vh;
  }
  
  .what-we-do-text {
    max-width: 90%;
    padding: var(--spacing-sm);
  }
  
  .what-we-do-text h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
  }
  
  .what-we-do-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
  }
  
  .founder-section,
  .apply-steps,
  .location-section {
    padding: var(--spacing-lg);
  }
  
  .team-card {
    padding: var(--spacing-md);
  }
  
  /* Ensure stacked layout and full-cover images on small phones */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Team page row responsiveness - small phones */
  body:has(.team-hero) .team-row:nth-child(1),
  body:has(.team-hero) .team-row:nth-child(2),
  body:has(.team-hero) .team-row:nth-child(3) {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .team-card {
    min-height: 420px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile fallback: always show content if JS/observers fail on some browsers */
@media (max-width: 768px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.show,
  * {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .cta-button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
