/* General text styling */
body {
  font-family: 'Lato', sans-serif;
  background-color: #02065b;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
}

h2, h3 {
  text-align: left;
  margin-bottom: 1rem;
}

/* Increase line height for better readability */
p, ul, li {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Header Styling */
header {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 1rem;
  background-color: #02065b;
  color: white;
  margin-bottom: 2rem;
}

header h1 {
  margin-top: 0;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
}

/* Container Styling */
.container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #02065b;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

section {
  margin-bottom: 2rem;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea,
form button {
  padding: 0.8rem;
  border: 1px solid #fff;
  border-radius: 5px;
}

form button {
  background-color: #fff;
  color: #02065b;
  cursor: pointer;
}

form button:hover {
  background-color: #ddd;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #02065b;
  color: white;
  width: 100%;
  max-width: 1200px;
  margin-top: 2rem;
}

footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 1rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav a {
    font-size: 1rem;
  }

  form input,
  form textarea,
  form button {
    width: 100%;
  }
}

/* Add this style to adjust the image sizes and alignment */
.left-aligned-img {
  width: 40%; /* Adjust the width to make the image smaller */
  float: left;
  margin-right: 1rem; /* Space between image and text */
  margin-bottom: 1rem; /* Add space below the image */
}

p, ul, li {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Responsive image adjustment */
@media (max-width: 768px) {
  .left-aligned-img {
    width: 80%; /* Make image larger on smaller screens */
    margin-right: 0; /* Remove right margin on small screens */
    display: block;
    margin: 0 auto 1rem auto; /* Center the image on small screens */
  }
}

/* Apply to the 'hannah-makin.jpg' image */
.left-aligned-img-hannah {
  width: 30%; /* Reduce the size of the image */
  float: left;
  margin-right: 1rem; /* Space between image and text */
  margin-bottom: 1rem; /* Add space below the image */
}

/* Responsive image adjustment */
@media (max-width: 768px) {
  .left-aligned-img-hannah {
    width: 60%; /* Adjust image size on small screens */
    margin-right: 0; /* Remove right margin on small screens */
    display: block;
    margin: 0 auto 1rem auto; /* Center the image on small screens */
  }
}

/* Resize and align the 'hannah-makin.jpg' image */
img[src*="hannah-makin.jpg"] {
  width: 30%; /* Change this percentage to adjust the size */
  float: left; /* Align it to the left */
  margin-right: 1rem; /* Space between image and text */
  margin-bottom: 1rem; /* Space below the image */
  display: block;
}

/* Apply to the 'equine-therapy2.jpg' image */
.left-aligned-img-therapy {
  width: 30%; /* Reduce the size of the image */
  float: left;
  margin-right: 1rem; /* Space between image and text */
  margin-bottom: 1rem; /* Add space below the image */
}

/* Responsive image adjustment */
@media (max-width: 768px) {
  .left-aligned-img-therapy {
    width: 30%; /* Adjust image size on small screens */
    margin-right: 0; /* Remove right margin on small screens */
    display: block;
    margin: 0 auto 1rem auto; /* Center the image on small screens */
  }
}

/* Resize and align the 'equine-therapy2.jpg' image */
img[src*="equine-therapy2.jpg"] {
  width: 30%; /* Change this percentage to adjust the size */
  float: left; /* Align it to the left */
  margin-right: 1rem; /* Space between image and text */
  margin-bottom: 1rem; /* Space below the image */
  display: block;
}

/* Ensure responsive behavior */
@media (max-width: 768px) {
  img[src*="hannah-makin.jpg"] {
    width: 60%; /* Adjust image size for small screens */
    margin-right: 0; /* Remove right margin on small screens */
    display: block;
    margin: 0 auto 1rem auto; /* Center the image on small screens */
  }
}

/* Ensure responsive behavior */
@media (max-width: 768px) {
  img[src*="equine-therapy2.jpg"] {
    width: 60%; /* Adjust image size for small screens */
    margin-right: 5; /* Remove right margin on small screens */
    display: block;
    margin: 0 auto 1rem auto; /* Center the image on small screens */
  }
}

.therapy-img {
  display: block;
  margin: 0 auto 2rem auto; /* center horizontally, add spacing below */
  width: 80%;
  max-width: 900px; /* maximum width on large screens */
  height: auto;
  border-radius: 8px; /* optional: adds rounded corners */
}
