/* Main layout elements */
main, header, footer {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}


/* Container for the about page content */

img {                  /* Center in inline image element */
  display: block;
  margin-left: auto;
  margin-right: auto;
    border: 1px solid red;      /* Thin red border */
  border-radius: 8px;         /* Rounded corners */
}


.learn-header-container {
  width: 100%;
  display: flex;           /* enable flex for horizontal centering */
  justify-content: center; /* center the header block */
}
.learn-header {
  background-color: #007BFF;
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 12px 15px 12px 12px;
  text-align: center;      /* centers the H1 by default */
  width: 100%;
}

.learn-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.highlight-box {
  background-color: #Eb2E09;
  color: white;
  padding: 10px 15px;
  margin-right: 40px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;  /* or left if you prefer */
}


.about-container {
  display: flex;
  align-items: top;  /* Vertically center the content */
  justify-content: flex-start; /* Align the content to the left */
  margin: 20px; /* Adjust as needed */
}

/* Photo container takes 20% width */
.photo-container {
  width: 20%;
  padding-right: 20px; /* Add some space between the image and text */
}

.photo-container img {
  width: 100%; /* Ensure image takes full container width */
  height: auto; /* Adjust height automatically to maintain aspect ratio */
  object-fit: cover; /* Ensure image doesn’t stretch */
  border-radius: 8px; /* Optional: adds rounded corners to the image */
}

/* Text container takes the remaining 80% */
.text-container {
  width: 80%;
  padding-left: 20px; /* Add some space between the text and image */
  font-size: 18px;
  line-height: 1.6;
  background-color: #3bccd4;   /* White content background for contrast */
  border: 2px solid #f52a27;  /* border around column */
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Soft shadow for separation */
  border-radius: 8px;        /* Rounded corners */
}

.text-container h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.text-container p {
  margin-bottom: 15px;
}

/* Text container full (no photo on left) takes 100% */
.text-container-full {
  width: 97%;
  box-sizing: border-box; /* ensures padding doesn't add to total width */
  margin: 20px auto;      /* centers it */
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  border-radius: 8px;
  background-color: #3bccd4;   /* White content background for contrast */
  border: 2px solid #f52a27;  /* border around column */
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Soft shadow for separation */
  border-radius: 8px;        /* Rounded corners */
}

.text-container-full h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.text-container-full p {
  margin-bottom: 15px;
}

.highlight-yellow {
  background-color: #FFD700; /* deep yellow */
  color: black;
  padding: 0.1em 0.3em;
  border-radius: 4px; /* optional for rounded highlight */
}

/* ============= RESPONSIVE BEHAVIOR ============ */



@media (max-width: 500px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  ul {
  margin-left: 1.2em;
  padding-left: 1.2em;
}

  .photo-container {
    width: 50%;
    padding: 0;
    margin-bottom: 20px;
  }

  .text-container {
    width: 103%;
    padding: 10px;
    font-size: 16px;
  }

  .text-container h1 {
    font-size: 1.5rem;
  }

  .text-container-full {
    flex-direction: column;
    align-items: center;
    text-align: left;
      box-sizing: border-box;
    width: 95%;
    padding: 10px;
    margin: 10px;
    font-size: 16px;
  }

 .text-container-full h1 {
    font-size: 1.5rem;
  }

}
