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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 3rem;
}

/* Header */
.header {
  background: #4b1e33;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Story Section */
.story-section {
  padding: 1rem 0;
  background: white;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text h2 {
  color: #4b1e33;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.story-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Story Section Image */
.story-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 2;
  display: flex;
}

.story-image img {
  width: 100%;
  height: 100%; /* Changed from 400px to 100% to follow the aspect-ratio */
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Community Section Image (Matching the Story Section) */
.community-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 2; /* Keeps this card identical in height/width to the one above */
  display: flex;
}

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

/* Hover effect for both */
.story-image:hover img,
.community-image:hover img {
  transform: scale(1.05);
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.values-section h2 {
  text-align: center;
  color: #4b1e33;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 3px solid transparent;

  /* Flex basis of 30% ensures 3 fit on row 1, or center on row 2 if screen shrinks */
  flex: 1 1 320px;
  max-width: 380px;
  min-height: 420px; /* Increased slightly to ensure plenty of room for text */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #4b1e33;
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.value-card h3 {
  color: #4b1e33;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card p {
  color: #666;
  font-size: 1rem;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: white;
}

.team-section h2 {
  text-align: center;
  color: #4b1e33;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #666;
}

.team-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the items if they wrap */
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-item {
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;

  /* Logic for 2x2: 45% width allows only two per row with gap */
  flex: 1 1 45%;
  max-width: 500px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #4b1e33;
  display: block;
}

.stat-label {
  color: #666;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Credentials Section */
.credentials-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.credentials-section h2 {
  text-align: center;
  color: #4b1e33;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.credential-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.credential-card:hover {
  transform: translateY(-3px);
}

.credential-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.credential-card h3 {
  color: #4b1e33;
  margin-bottom: 1rem;
}

.credential-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Community Section Overhaul */
.community-section {
  padding: 5rem 0;
  background: white;
}

.community-main-title {
  text-align: center;
  color: #4b1e33;
  font-size: 2.8rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.community-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center; /* Aligns both sides to the top */
}

.community-intro {
  font-size: 1.2rem; /* Larger font to take up more space */
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

/* Community Highlights Overhaul */
.community-highlights {
  list-style: none;
  margin-top: 2.5rem;
  padding: 0;
}

.community-highlights li {
  padding: 1.25rem 0; /* Increased from 1rem to stretch the height */
  padding-left: 3.5rem;
  position: relative;
  color: #444;
  font-size: 1.1rem; /* Slightly larger text */
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.community-highlights li::before {
  content: "✓"; /* Cleaner look than the SVG mask */
  position: absolute;
  left: 0;
  top: 1.25rem; /* Matches the new top padding */
  width: 30px;
  height: 30px;
  background-color: #4b1e33;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.community-highlights li:last-child {
  border-bottom: none;
}

.community-highlights li strong {
  color: #4b1e33;
  display: block; /* Puts the headline on its own line for better readability */
  font-size: 1.1rem;
}

/* Hover effect to make the list feel interactive */
.community-highlights li:hover {
  background: #fdfafb;
  padding-left: 3.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-primary {
  background-color: white;
  color: #4b1e33;
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .story-content,
  .community-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .value-card {
    padding: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-card,
.credential-card {
  animation: fadeInUp 0.6s ease-out;
}

.value-card:nth-child(2) {
  animation-delay: 0.2s;
}

.value-card:nth-child(3) {
  animation-delay: 0.4s;
}
