/* ===== 241 Runners Awareness - Unified Stylesheet ===== */
/* 
 * This stylesheet contains ALL styles for the 241 Runners Awareness website.
 * Features include: responsive design, dark mode support, cross-browser compatibility,
 * and optimized performance for missing persons awareness platform.
 * 
 * Version: 20250724b - Unified and Cleaned
 */

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box; /* Safari/Chrome */
  -moz-box-sizing: border-box; /* Firefox */
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ff0000; /* Default red background - brand color */
  color: #000;
  -webkit-transition: background-color 0.3s ease, color 0.3s ease; /* Safari/Chrome */
  -moz-transition: background-color 0.3s ease, color 0.3s ease; /* Firefox */
  -o-transition: background-color 0.3s ease, color 0.3s ease; /* Opera */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth theme transitions */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh; /* Full viewport height */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  align-items: center;
  justify-content: flex-start;
}

/* ===== Dark Mode Support ===== */
body.dark-mode {
  background: #1a1a1a; /* Dark background */
  color: #fff; /* Light text for contrast */
}

/* ===== Header & Navigation ===== */
header {
  background: #000; /* Black header background */
  color: #fff; /* White text */
  padding: 0 20px 10px;
  position: -webkit-sticky; /* Safari */
  position: sticky; /* Stays at top when scrolling */
  top: 0;
  z-index: 1000; /* High z-index to stay above content */
  -webkit-transition: all 0.3s ease; /* Safari/Chrome */
  -moz-transition: all 0.3s ease; /* Firefox */
  -o-transition: all 0.3s ease; /* Opera */
  transition: all 0.3s ease; /* Smooth transitions */
  width: 100%;
  margin: 0;
}

/* Sticky header with scroll effect */
header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px); /* Safari */
  backdrop-filter: blur(10px);
  -webkit-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); /* Safari/Chrome */
  -moz-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); /* Firefox */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0 20px 5px;
}

/* Dark mode header */
body.dark-mode header {
  background: #2d2d2d;
}

body.dark-mode header.scrolled {
  background: rgba(45, 45, 45, 0.95);
}

.header-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
  padding-top: 15px;
  position: relative;
  width: 100%;
  margin: 0;
}

/* Global image styles - only for logo and small images */
.logo {
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
}

/* Reset for other images */
img {
  max-width: 100%;
  height: auto;
}

/* ===== Navbar ===== */
nav {
  background: #111;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 12px 0;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* Dark mode navigation */
body.dark-mode nav {
  background: #333;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  -webkit-transition: 0.3s; /* Safari/Chrome */
  -moz-transition: 0.3s; /* Firefox */
  -o-transition: 0.3s; /* Opera */
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  -webkit-transform: rotate(-45deg) translate(-5px, 6px); /* Safari/Chrome */
  -ms-transform: rotate(-45deg) translate(-5px, 6px); /* IE */
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  -webkit-transform: rotate(45deg) translate(-5px, -6px); /* Safari/Chrome */
  -ms-transform: rotate(45deg) translate(-5px, -6px); /* IE */
  transform: rotate(45deg) translate(-5px, -6px);
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  -webkit-transition: all 0.3s ease; /* Safari/Chrome */
  -moz-transition: all 0.3s ease; /* Firefox */
  -o-transition: all 0.3s ease; /* Opera */
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

/* Traffic light color system for navigation */
nav a:nth-child(9):hover {
  background-color: #ff4d4d; /* Bright Red */
  color: #fff;
}
nav a:nth-child(8):hover {
  background-color: #e63946; /* Medium Red */
  color: #fff;
}
nav a:nth-child(7):hover {
  background-color: #b00020; /* Dark Red */
  color: #fff;
}
nav a:nth-child(6):hover {
  background-color: #ffcc00; /* Bright Yellow */
  color: #000;
}
nav a:nth-child(5):hover {
  background-color: #f4c430; /* Gold Yellow */
  color: #000;
}
nav a:nth-child(4):hover {
  background-color: #ffdd57; /* Light Yellow */
  color: #000;
}
nav a:nth-child(3):hover {
  background-color: #33cc33; /* Bright Green */
  color: #fff;
}
nav a:nth-child(2):hover {
  background-color: #28a745; /* Medium Green */
  color: #fff;
}
nav a:nth-child(1):hover {
  background-color: #20c997; /* Light Green */
  color: #fff;
}

nav a:hover {
  -webkit-transform: translateY(-2px); /* Safari/Chrome */
  -ms-transform: translateY(-2px); /* IE */
  transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Firefox */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== Main Content ===== */
main {
  -webkit-box-flex: 1; /* Safari/Chrome */
  -ms-flex: 1; /* IE */
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  -webkit-box-sizing: border-box; /* Safari/Chrome */
  -moz-box-sizing: border-box; /* Firefox */
  box-sizing: border-box;
}

section {
  background: #fff;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Firefox */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 1.6;
}

body.dark-mode section {
  background: #374151;
  color: #f9fafb;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Firefox */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  position: absolute;
  right: 80px;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease; /* Safari/Chrome */
  -moz-transition: all 0.3s ease; /* Firefox */
  -o-transition: all 0.3s ease; /* Opera */
  transition: all 0.3s ease;
  z-index: 1001;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  -webkit-transform: scale(1.1); /* Safari/Chrome */
  -ms-transform: scale(1.1); /* IE */
  transform: scale(1.1);
}

body.dark-mode .theme-toggle {
  color: #fff;
}

/* ===== Footer ===== */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  -webkit-box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Safari/Chrome */
  -moz-box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Firefox */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode footer {
  background: #2d2d2d;
}

.footer-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  -webkit-transition: color 0.3s ease; /* Safari/Chrome */
  -moz-transition: color 0.3s ease; /* Firefox */
  -o-transition: color 0.3s ease; /* Opera */
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #dc2626;
}

/* ===== Form Header Group ===== */
.form-header-group {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header-group .form-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== Back Button ===== */
.back-button {
  text-align: left;
  margin: 10px 0;
}

.back-button a {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  -webkit-transition: background 0.3s ease; /* Safari/Chrome */
  -moz-transition: background 0.3s ease; /* Firefox */
  -o-transition: background 0.3s ease; /* Opera */
  transition: background 0.3s ease;
  font-weight: 500;
}

.back-button a:hover {
  background: #b91c1c;
  -webkit-transform: translateY(-1px); /* Safari/Chrome */
  -ms-transform: translateY(-1px); /* IE */
  transform: translateY(-1px);
}

/* ===== Form Styles ===== */
.login-container,
.signup-container {
  background: #ffffff;
  border-radius: 16px;
  -webkit-box-shadow: 0 8px 32px rgba(0,0,0,0.12); /* Safari/Chrome */
  -moz-box-shadow: 0 8px 32px rgba(0,0,0,0.12); /* Firefox */
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-width: 480px;
  width: 95%;
  margin: 2rem auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.1);
}

.google-btn-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.divider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0 1rem 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.divider::before, .divider::after {
  content: '';
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.divider:not(:empty)::before {
  margin-right: 1rem;
}

.divider:not(:empty)::after {
  margin-left: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  -webkit-transition: border-color 0.3s ease; /* Safari/Chrome */
  -moz-transition: border-color 0.3s ease; /* Firefox */
  -o-transition: border-color 0.3s ease; /* Opera */
  transition: border-color 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  -webkit-box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); /* Safari/Chrome */
  -moz-box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); /* Firefox */
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input[type="submit"],
.form-group button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: all 0.3s ease; /* Safari/Chrome */
  -moz-transition: all 0.3s ease; /* Firefox */
  -o-transition: all 0.3s ease; /* Opera */
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); /* Safari/Chrome */
  -moz-box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); /* Firefox */
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.form-group input[type="submit"]:hover,
.form-group button:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  -webkit-transform: translateY(-2px); /* Safari/Chrome */
  -ms-transform: translateY(-2px); /* IE */
  transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); /* Firefox */
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ===== About Us Page Styles ===== */
.about-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); /* Safari/Chrome */
  -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); /* Firefox */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  text-align: left;
  line-height: 1.6;
  margin: 0 auto;
}

.about-content h2 {
  color: #000;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  font-weight: bold;
}

.about-content h3 {
  color: #d32f2f; /* Brand red color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: bold;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Mission Statement Section */
.mission-statement {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); /* Brand gradient */
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 40px 0;
  text-align: center;
  -webkit-box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3); /* Safari/Chrome */
  -moz-box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3); /* Firefox */
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
  border: 3px solid #fff;
  -webkit-border-radius: 16px; /* Safari/Chrome */
  -moz-border-radius: 16px; /* Firefox */
}

.mission-statement h3 {
  color: white;
  margin-top: 0;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.mission-statement p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0;
  font-weight: 500;
}

/* Israel's Legacy Section */
.israel-legacy-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%); /* Dark gradient */
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 40px 0;
  text-align: center;
  -webkit-box-shadow: 0 8px 32px rgba(31, 41, 55, 0.3); /* Safari/Chrome */
  -moz-box-shadow: 0 8px 32px rgba(31, 41, 55, 0.3); /* Firefox */
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.3);
  border: 3px solid #dc2626; /* Brand red border */
  -webkit-border-radius: 16px; /* Safari/Chrome */
  -moz-border-radius: 16px; /* Firefox */
}

.israel-legacy-section h3 {
  color: #dc2626;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.israel-legacy-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0;
  font-weight: 500;
  opacity: 0.9;
}

/* Team Grid Layout */
.who-we-are-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns for 6 team members */
  gap: 25px;
  margin: 30px 0;
  contain: layout style paint; /* Performance optimization */
}

/* Team Headshot Images */
.who-we-are-images img {
  max-height: 280px; /* Slightly reduced to ensure faces fit */
  width: auto; /* Let width adjust automatically */
  max-width: 100%;
  object-fit: contain; /* Show full faces without cropping */
  object-position: center center; /* Center the image content */
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Firefox */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease; /* Safari/Chrome */
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease; /* Firefox */
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease; /* Opera */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f8f9fa; /* Light background for better contrast */
  display: block;
  will-change: transform; /* Optimizes GPU acceleration */
  backface-visibility: hidden; /* Prevents flickering */
  transform: translateZ(0); /* Forces hardware acceleration */
  opacity: 1; /* Fixed: Make images visible by default */
  border: 2px solid #e5e7eb; /* Added border for better definition */
  padding: 15px; /* Added padding to ensure faces aren't cut off */
}

/* Specific styling for Tina and Ralph's images to ensure faces are visible */
.who-we-are-images img[src*="IMG_1468"],
.who-we-are-images img[src*="IMG_0834"] {
  object-fit: contain;
  object-position: center top; /* Position faces at the top */
  background-color: #f3f4f6; /* Slightly different background for better contrast */
  padding: 20px; /* Extra padding for these specific images */
  max-height: 260px; /* Slightly smaller to ensure faces fit */
}

.who-we-are-images img:hover {
  -webkit-transform: translateY(-5px); /* Safari/Chrome */
  -ms-transform: translateY(-5px); /* IE */
  transform: translateY(-5px);
  -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Safari/Chrome */
  -moz-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Firefox */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: #dc2626; /* Brand red border on hover */
}

/* Team Member Container */
.team-member {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  contain: layout style paint; /* Performance optimization */
  text-align: center;
  min-height: 350px; /* Ensure consistent height for all team members */
}

/* Image Caption Styling */
.image-caption {
  text-align: center;
  margin-top: 15px;
  font-size: 1rem;
  color: #374151;
  font-weight: 600;
  line-height: 1.4;
}

/* What We Do Section */
.what-we-do-section {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  margin: 30px 0;
  border-left: 4px solid #dc2626;
}

.what-we-do-section ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.what-we-do-section li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-left: 25px;
}

.what-we-do-section li:before {
  content: "✓";
  color: #dc2626;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 10px;
}

.what-we-do-section li:last-child {
  border-bottom: none;
}

/* Technology Section */
.technology-section {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 2rem;
  border-radius: 12px;
  margin: 30px 0;
  border: 2px solid #d1d5db;
}

/* Get Involved Section */
.get-involved-section {
  background: #dc2626;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 30px 0;
  text-align: center;
}

.get-involved-section h3 {
  color: white;
  margin-top: 0;
}

.get-involved-section ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.get-involved-section li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.get-involved-section li:before {
  content: "→";
  color: white;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 8px;
}

/* ===== Features Section ===== */
.features-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 2rem 0;
  -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Safari/Chrome */
  -moz-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Firefox */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.dark-mode .features-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.features-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  width: 100%;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Firefox */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease; /* Safari/Chrome */
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease; /* Firefox */
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease; /* Opera */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
}

body.dark-mode .feature-card {
  background: #374151;
  border-color: #4b5563;
}

.feature-card:hover {
  -webkit-transform: translateY(-8px); /* Safari/Chrome */
  -ms-transform: translateY(-8px); /* IE */
  transform: translateY(-8px);
  -webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Safari/Chrome */
  -moz-box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Firefox */
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

body.dark-mode .feature-card h3 {
  color: #f9fafb;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

body.dark-mode .feature-card p {
  color: #d1d5db;
}

.feature-btn {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  -webkit-transition: all 0.3s ease; /* Safari/Chrome */
  -moz-transition: all 0.3s ease; /* Firefox */
  -o-transition: all 0.3s ease; /* Opera */
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); /* Safari/Chrome */
  -moz-box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); /* Firefox */
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.feature-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  -webkit-transform: translateY(-2px); /* Safari/Chrome */
  -ms-transform: translateY(-2px); /* IE */
  transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); /* Safari/Chrome */
  -moz-box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); /* Firefox */
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .theme-toggle {
    right: 70px;
    top: 15px;
  }
  
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: left 0.3s ease; /* Safari/Chrome */
    -moz-transition: left 0.3s ease; /* Firefox */
    -o-transition: left 0.3s ease; /* Opera */
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  nav.active {
    left: 0;
  }
  
  nav a {
    font-size: 1.2rem;
    padding: 15px 20px;
    margin: 5px 0;
  }
  
  .header-bar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 5px;
  }
  
  .header-bar h1 {
    font-size: 1.5rem;
  }
  
  main {
    padding: 10px;
  }
  
  section {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  /* About Us responsive */
  .about-content {
    padding: 20px;
    margin: 10px;
  }
  
  .who-we-are-images {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 20px;
  }
  
  .who-we-are-images img {
    max-height: 220px; /* Adjusted for tablet */
  }
  
  .who-we-are-images img[src*="IMG_1468"],
  .who-we-are-images img[src*="IMG_0834"] {
    max-height: 200px; /* Smaller for Tina and Ralph on tablet */
  }
  
  .mission-statement,
  .israel-legacy-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .about-content {
    padding: 15px;
    margin: 5px;
  }
  
  .who-we-are-images {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }
  
  .who-we-are-images img {
    max-height: 180px; /* Adjusted for mobile */
  }
  
  .who-we-are-images img[src*="IMG_1468"],
  .who-we-are-images img[src*="IMG_0834"] {
    max-height: 160px; /* Smaller for Tina and Ralph on mobile */
  }
  
  .about-content h2 {
    font-size: 1.8rem;
  }
  
  .mission-statement h3,
  .israel-legacy-section h3 {
    font-size: 1.5rem;
  }
}
