/* Main section styles */
.vision-mission-section {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align image to the top */
  width: 100%;
  padding: 0;
  background-color: #f4f4f4; /* Neutral background for the section */
}

/* Container for content */
.container {
  width: 90%;
  max-width: 1200px; /* Controls the max width of the container */
  margin: 0 auto;
}

/* Wrapper for content and image */
.vision-mission-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem; /* Reduced gap between image and content */
  width: 100%;
  flex-wrap: wrap; /* Allows content and image to wrap on smaller screens */
  padding: 15px; /* Reduced padding */
  box-sizing: border-box;
  align-items: center;
}

/* Image section */
.vision-mission-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    border-radius: 21px;
}

.vision-mission-image img {
  width: 100%; /* Image takes up full width of the container */
  height: 100%; /* Image height adjusts accordingly */
  object-fit: cover; /* Ensures the image maintains its aspect ratio and covers the container */
  object-position: top left; /* Ensures the image is aligned from top and left */
}

/* Content section for vision and mission */
.vision-mission-content {
  flex: 1; /* Content takes remaining space */
  padding: 20px; /* Reduced padding for better text alignment */
  background-color: #333; /* Dark background for text section */
  color: #f4f4f4; /* Light text color for contrast */
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced gap between elements */
  max-width: 100%; /* Ensures content doesn't overflow */
  box-sizing: border-box;
}

/* Heading styles */
h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px; /* Reduced margin */
  color: #fff; /* White text for contrast on dark background */
  font-weight: 700;
  line-height: 1.3; /* Adjust line height for better readability */
}

/* Vision and Mission Boxes */
.vision-box, .mission-box {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Reduced gap */
  margin-bottom: 20px; /* Reduced margin */
}

.vision-box-icon, .mission-box-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px; /* Reduced margin */
}

.vision-box-text, .mission-box-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e0e0e0; /* Slightly lighter text color for readability */
}

/* List items inside Vision & Mission */
ul {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  color: #d1d1d1; /* Light text color for list items */
}

li {
  margin-bottom: 8px; /* Reduced margin between list items */
}

/* Adjustments for Arabic content */
[dir="rtl"] .vision-box-text,
[dir="rtl"] .mission-box-text {
  text-align: right;
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
  .vision-mission-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .vision-mission-content,
  .vision-mission-image {
    flex: none;
    width: 100%;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 2rem; /* Smaller font size for mobile */
    margin-bottom: 10px; /* Reduced margin for smaller screens */
  }

  .vision-box, .mission-box {
    margin-bottom: 15px; /* Reduced margin */
  }

  .vision-mission-content {
    padding: 15px; /* Reduced padding for smaller screens */
  }

  .vision-box-text, .mission-box-text {
    font-size: 1rem; /* Adjust font size for smaller screens */
  }
}

/* Large Screens: Enhance for readability */
@media (min-width: 1200px) {
  h1 {
    font-size: 3rem; /* Larger font size for large screens */
  }

  .vision-box-text, .mission-box-text {
    font-size: 1.4rem; /* Larger text for better readability */
  }

  .vision-mission-content {
    padding: 35px; /* Larger padding for spacious layout */
  }

  .vision-mission-wrapper {
    gap: 2rem; /* Increased gap for larger screens */
  }
}
