:root {
  --softbeige: #F4E1D2;
  --skyblue: #87c5e7;
  --forestgreen: #2c5f2d;
  --terracotta: #d2816a;
  --golden: #f4c542;
  --text-gray: #333333;
  --max-width: 1200px;
  --heading: "playfair display", serif;
  --text: "roboto", sans-serif;
  --quotes: "dancing script", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section_container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1rem;
}

.section_header {
  font-family: var(--heading);
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  color: var(--forestgreen);
}

.section_subheader {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  color: #333333;
  letter-spacing: 2px;
}

.btn {
  padding: 1rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: white;
  background-color: rgb(251, 99, 124);
  border-radius: 5rem;
  cursor: pointer;
}

.btn a {
  color: white;
}

.btn:hover {
  background-color: rgb(253, 125, 147);
  transition: 0.6s ease-in;
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: var(--text);
  background-color: #fff1de;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav_logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav_logo img {
  max-width: 40px;
}

.nav_logo span {
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--forestgreen);
}

.nav_links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  padding: 5px;
  color: var(--text-gray);
}

.link a:hover {
  color: var(--golden);
  transition: 0.3s ease-out;
}

header {
  position: relative;
  font-family: var(--text);
  margin-top: 50px;
}

header::before {
  position: absolute;
  content: "";
  left: -25%;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.header_container {
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.header_content {
  z-index: 1;
}

.header_content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-family: var(--heading);
  color: var(--forestgreen);
  font-weight: bolder;
}

.header_content h2 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 300;
  font-family: var(--quotes);
  color: var(--terracotta);
}

.header_image {
  z-index: -1;
}

.header_image img {
  max-width: 500px;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.15);
}

.why_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 5rem;
}

.why_container {
  display: flex;
  align-items: stretch; /* Ensures equal height for both image and content */
  justify-content: space-between;
}

.why_image {
  flex: 1;
}

.why_image img {
  width: 100%;
  height: 100%; /* Makes the image stretch to fill the container */
  object-fit: cover; /* Ensures the image maintains its aspect ratio while filling the space */
  object-position: center;
  margin-left: -50px;
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.15);
}

.why_content {
  flex: 1;
  background-color: var(--softbeige);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures content is distributed evenly */
}

.why_content section_header {
  font-family: var(--heading);
  margin-bottom: 1.5rem;
  text-align: left;
}

.why_content p {
  margin-bottom: 2rem;
  line-height: 1.5rem;
  color: brown;
}

.why_content ul {
  list-style: none;
}

.why_content li {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-gray);
}

.abcards{
  background-color: var(--softbeige);
  color: #333333;
  margin-left: 30px;
  margin-right: 30px;
  border-radius: 20px;
}

.abcardscontainer{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap:2rem;
  margin-bottom: 30px;
}

.about_cards{
  margin:30px;
  padding: 10px;
}

.about_cards span{
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  aspect-ratio: 1;
  background-color: var(--forestgreen);
  border-radius: 100%;
}

.about_cards span img{
  max-width: 40px;
}

.about_cards h4{
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-family: var(--heading);
  font-weight: bolder;
  color: #2c5f2d;
}

.about_cards p{
  line-height: 1.5rem;
  color: #333333;
  font-family: var(--text);
}

.programs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section_header {
  text-align: center;
  font-family: var(--heading);
  font-size: 2rem;
  color: var(--forestgreen);
  margin-bottom: 2rem;
}

/* Grid layout only applies to the card container */
.program_card_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program_card {
  background-color: var(--softbeige);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: space-between;
}

.program_card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.pname {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--forestgreen);
  margin-bottom: 1rem;
  display: block;
}

.pdesc {
  font-family: var(--text);
  font-size: 1rem;
  color: #333333;
  margin-bottom: 1rem;
  line-height: 1.5rem;
  flex-grow: 1;
}

.pbtn {
  border: none;
  background-color: var(--forestgreen);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.pbtn a {
  color: white;
  text-decoration: none;
}

.pbtn:hover {
  background-color: var(--terracotta);
}

/* Contact */

.contact_container {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

.contact_form {
  flex: 1;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact_form h2 {
  font-family: 'Playfair Display', serif;
  color: #2c5f2d;
  margin-bottom: 1rem;
}

.contact_form hr {
  border: none;
  border-top: 2px solid #f4c542;
  margin-bottom: 1rem;
}

.contact_form .form_group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 20px;
}

textarea {
  height: 140px;
}

.contact_inputs {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
}

.contact_inputs:focus {
  outline: none;
  border-color: #2c5f2d;
}

.btn:hover {
  background-color: #f4c542;
  color: #333;
}

/* Contact Right Section */
.contact_right {
  flex: 1;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact_right h2, .contact_right h3 {
  font-family: 'Playfair Display', serif;
  color: #2c5f2d;
  margin-bottom: 1rem;
}

.contact_right p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact_right a {
  color: #2c5f2d;
  text-decoration: none;
}

.contact_right a:hover {
  color: #f4c542;
}







