/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f7f7f7;
  line-height: 1.8;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: url('moralitygap_hero.webp') no-repeat center center/cover;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Adds a dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2; /* Ensures content appears above the overlay */
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* Section Styles */
.section {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section.alt {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
  font-size: 2.5rem;
  color: #495867;
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1.1rem;
  color: #555;
}

/* Cards Layout */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card i {
  font-size: 2.5rem;
  color: #ef8354; /* Muted orange accent */
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #495867;
}

.card p {
  font-size: 1rem;
  color: #555;
}

/* Why Does It Matter Layout */
.why-matters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: left; /* Align text left for readability */
}

.why-matter-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #495867;
  margin-bottom: 0.5rem;
}

.why-matter-item p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: #495867;
  color: white;
}

.footer a {
  color: #ef8354;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: #ffffff;
}
