/* ==================================================
   Main Colors
================================================== */
:root {
  --primary-bg: #ffffff; /* White for main background */
  --primary-text: #0b3981; /* Rich blue for primary text */
  --accent: #0b3981; /* Deep blue for accent elements */
  --secondary-text: #d9d9d9; /* Neutral dark gray for secondary text */
  --hover-accent: #4a78b7; /* Lighter blue for hover effects */
  --hero-bg: #f5f5f5; /* Light gray for hero sections */
  --error-text: #ff4c4c; /* Bright red for errors */
  --card-bg: #ffffff; /* White for cards and containers */
  --border-color: #dddddd; /* Light gray for subtle borders */
  --button-bg: #0b3981; /* Deep blue for buttons */
  --button-hover: #12509b; /* Lighter blue for button hover */
}

/* ==================================================
   Global Styles
================================================== */
body {
  font-family: Poppins, sans-serif;
  margin: 0;
}

/* ==================================================
   About Page
================================================== */
/* About Hero Section */
.about-hero {
  border-radius: 5rem;
  margin: 0 10px 0 10px;
  border: 5px solid var(--accent);
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg) url("../Imgs/about.png") no-repeat center center /
    cover;
  color: var(--primary-text);
  overflow: hidden; /* Ensure child elements don't exceed boundaries */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Uniform overlay color */
  z-index: 1; /* Ensure it sits above the background but below content */
}

.about-hero-content {
  position: relative;
  text-align: center;
  z-index: 2; /* Ensure it appears above the overlay */
  color: var(--border-color);
  padding: 1rem; /* Add padding for better text placement */
}

.about-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* About Content Section */
.about-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  background-color: var(--hero-bg);
  padding: 1.5rem;
  border-radius: 2rem;
  border: 3px solid var(--accent);
  color: var(--button-hover);
  background: var(--secondary-text);
  transition: background-color 0.3s;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-text);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.5;
}

.about-text:hover {
  background-color: var(--hover-accent);
  color: var(--primary-text);
}

/* ==================================================
   Responsive Design
================================================== */
@media (max-width: 768px) {
  .about-hero {
    border-radius: 3rem;
    margin: 0 10px 0 10px;
    border: 5px solid var(--accent);
  }
  .about-hero-content h1 {
    font-size: 2rem;
  }

  .about-hero-content p {
    font-size: 1rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }
}
