/* Adjust the logo size */
.navbar-brand img {
  height: auto; /* Increase size if needed */
  width: auto; /* Maintain aspect ratio */
}

/* Set navbar background to white and adjust padding for items */
.navbar {
  background-color: #fff; /* White background */
}

/* Align navbar items to the right */
.navbar-collapse {
  justify-content: center; /* Align nav items to the right */
}


/* Ensure navbar items align correctly */
.navbar-nav .nav-item {
  margin-right: 1rem; /* Add space between nav items */
}

.navbar-nav .nav-item + .nav-item {
  margin-left: 1rem; /* Add space between nav items if needed */
  color:#082567;
}
/* Ensure navbar items align correctly */

/* .navbar-nav .nav-item + .nav-item {
  margin-left: 0rem; /* Add space between nav items */
  /* */
/* }
*/
/* Adjustments for mobile view */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 70px; /* Adjust if needed for smaller devices */
  }

  .navbar-nav .nav-link {
    color: #082567; /* Adjust the color to match the design */
  }
  
  .navbar-nav .nav-link.active {
    font-weight: bold; /* Make the active link bold */
  }
  
  .navbar .btn-success {
    color: #fff; /* Ensure button text is white */
    margin-left: 4rem; /* Add space before the 'Contact Us' button */
    margin-top: 0; /* Align button with nav items */
  }

  .d-grid {
    justify-content: center; /* Center the button horizontally in mobile view */
  }
}



/* Mobile styles */
@media (max-width: 767px) {
  .navbar {
    padding: 1rem; /* Add padding to the navbar */
  }

  .navbar-collapse {
    justify-content: flex-start; /* Align items to the start in mobile view */
  }

  .navbar-brand img {
    max-height: 50px; /* Adjust logo size for mobile */
  }

  .navbar-nav .nav-item {
    margin-right: 0.5rem; /* Adjust spacing for nav items on mobile */
  }

  .navbar .btn-success {
    margin-left: 0; /* Adjust button spacing for mobile */
    margin-top: 0.5rem; /* Add top margin for button on mobile */
  }
}

  /* Adjust the custom button color */
.custom-enroll-button {
    background-color: #1e3d34; /* Custom red color */
    border-color: #1e3d34; /* Red border to match */
    /* Ensure text color is white for contrast */
    color: #fde3d6;
  }
  
.custom-enroll-button:hover {
    background-color: #1E3D34; /* Darker shade of red for hover state */
    border-color: #1E3D34; /* Darker border for hover state */
    color: #fde3d6;
  }
  

    /* Adjust the custom button color */
.preschool-enroll-button {
  background-color: #FF1493; /* Custom red color */
  border-color: #FF1493; /* Red border to match */
  /* Ensure text color is white for contrast */
  color: #FFD1DC;
}

.preschool-enroll-button:hover {
  background-color: #E3256B; /* Darker shade of red for hover state */
  border-color: #E3256B; /* Darker border for hover state */
  color: #FFD1DC;
}

/* Adjust the custom button color */
.primary-enroll-button {
  background-color: #4C2882; /* Custom red color */
  border-color: #4C2882; /* Red border to match */
  /* Ensure text color is white for contrast */
  color: #E0B0FF;
}

.primary-enroll-button:hover {
  background-color: #522D80; /* Darker shade of red for hover state */
  border-color: #522D80; /* Darker border for hover state */
  color: #E0B0FF;
}

  /* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 0rem;
  margin-right: 0rem;
}

/* Ensuring all carousel items have a consistent minimum and maximum height */
.carousel-item {
  min-height: 625px; /* Set a minimum height for all items */
  max-height: 625px; /* Set a maximum height for all items */
  overflow: hidden; /* Hide content that exceeds the container */
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 0rem;
  z-index: 0;
}

.carousel-item {
  /* Adjust the padding to reduce height, set to your preference */
  padding-top: 120px; /* top padding */
  padding-bottom: 120px; /* bottom padding */
}

/* Adjust the size of the image if necessary */
.carousel-item img {
  max-height: 100%; /* maximum height for large screens */
  object-fit: cover; /* cover the area without stretching */
  width: auto; /* maintain aspect ratio */
  margin: 0 auto; /* center the image if it's not full width */
}


/* Adjust the text alignment and padding for the content */
.carousel-item .container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center the content vertically */
  align-items: center; /* Center the content horizontally */
  height: 100%; /* Full height of the carousel item */
  padding: 1rem;
}


.carousel-item {
  position: relative; /* Ensure position is set to relative */
  text-align: center; /* Center text for all devices */
}

/* If the text is taking too much vertical space */
.carousel-caption {
  padding-top: 0; /* reduce top padding */
  padding-bottom: 0; /* reduce bottom padding */
}

.carousel-control-prev,
.carousel-control-next {
  filter: invert(50%); /* Adjust the color of the arrows if necessary */
}


/* Responsive adjustments if the height is too much on larger screens */
@media (max-width: 992px) {
  .carousel-item {
    min-height: 700px; /* Adjust the minimum height for smaller screens */
    max-height: 700px; /* Adjust the maximum height for smaller screens */
    padding-top: 60px; /* less padding on large screens */
    padding-bottom: 60px;
  }

  .carousel-item img {
    max-height: 500px; /* adjust the max height as per your design */
  }
  .carousel-item .preschool-hero {
    order: 1;
  }
}

/* The rest of your CSS here */


/* If you're using a full-width carousel and it's still not full-width, check if container is limiting it */
.container, .container-fluid {
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}

.preschool-carousel {
  background-color: #FFD1DC; /* Dark green background */
  color: #FF1493; /* White text color */
  height: auto;
  padding: 0px;
  /* ... other styles ... */
}

.primaryschool-carousel {
  background-color: #E0B0FF; /* Dark green background */
  color: #4C2882; /* White text color */
  height: auto;
  padding: 0px;
  /* ... other styles ... */
}


.mttc-carousel {
  background-color: #fde3d6; /* Dark green background */
  color: #1E3D34; /* White text color */
  height: auto;
  padding: 0px;
  /* ... other styles ... */
}

  /* Image styling */
.preschool-carousel.primaryschool-carousel .mttc-carousel img {
    max-width: 100%; /* Ensure the image is not larger than the container */
    height: auto; /* Maintain aspect ratio */
  }
  
  /* Text styling for improved readability */
.preschool-carousel.primaryschool-carousel .mttc-carousel h1,
.preschool-carousel.primaryschool-carousel .mttc-carousel p {
    /* These styles are subjective and could be adjusted to match the design */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
  }
  
  /* Responsive tweaks if necessary */
  @media (max-width: 991px) {
 
    
    /* More space around the elements on smaller screens */
.preschool-carousel.primaryschool-carousel .mttc-carousel  .container {
      padding: 2rem;
    }
  }

  /* ... existing styles ... */

@media (max-width: 768px) {
  .preschool-carousel.primaryschool-carousel .mttc-carousel .container {
    padding: 2rem 1rem; /* Adjust padding for smaller screens */
  }

  .preschool-carousel.primaryschool-carousel .mttc-carousel .row {
    /* This ensures no extra space is added to the row itself */
    margin-right: 0;
    margin-left: 0;
  }

  .preschool-carousel.primaryschool-carousel .mttc-carousel img {
    max-width: 100%; /* This ensures the image is never larger than its container */
    height: auto; /* This ensures the image height scales in proportion to its width */
  }
  
  /* If the image needs to be smaller than the full width of its container: */
  .preschool-carousel.primaryschool-carousel .mttc-carousel .col-12 {
    padding: 0; /* Removes padding from the column containing the image, if necessary */
  }
  
  
/* Adjust heading and button sizes for smaller screens */
.preschool-carousel.primaryschool-carousel .mttc-carousel h1 {
  font-size: 1.75rem; /* Smaller font size for the heading */
}

.preschool-carousel.primaryschool-carousel .mttc-carousel  .btn {
  padding: .5rem 1rem; /* Smaller padding for buttons */
  font-size: 1rem; /* Smaller font size for buttons */
}
}


.mttc-hr {
  width: 60px;
  border: 2px solid #1E3D34;
  margin: 0;
  margin-bottom: 1rem;
}


.title-underline, .card-underline {
  width: 60px;
  border: 2px solid white;
  margin: 0;
  margin-bottom: 1rem;
}

.preschool-title-underline {
  width: 60px;
  border: 2px solid white;
  margin: 0;
  margin-bottom: 1rem;
}



.icon-image {
  width: 50px; /* Adjust the width as needed */
  height: 50px; /* Adjust the height as needed */
  object-fit: contain;
}

/* For the list without bullet points */
.list-unstyled {
  padding-left: 0;
}

.mttc-section h2 {
    color: #1E3D34 !important;
  }

/* Styling for the Learn More button */
.mttc-section .btn-primary {
  background-color: #3C7764; /* Custom color for your button */
  border: none;
}
.mttc-section .btn-primary:hover {
  background-color: #1E3D34; /* Slightly darker color on hover */
}

/* This will target only the first container within the .top-section */
.top-section > .container:first-child .row {
  --bs-gutter-y: 0.75rem; /* Reduce vertical gutter between rows */
}


.top-section {
  background-color: #f8f9fa; /* Dark green background */
  /* color: #1E3D34; /* White text color */
  /* height: 652px; */ 
  padding: 0px;
  /* ... other styles ... */
}

.top-section-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), /* primary shadow */
               0 1px 3px rgba(0, 0, 0, 0.08); /* secondary shadow for more depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth transition for hover effect */
}

/* Optional: Add a hover effect to lift the card */
.top-section-card:hover {
  transform: translateY(-5px); /* lifts the card up */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), /* increased shadow size */
               0 3px 6px rgba(0, 0, 0, 0.08); /* increased secondary shadow */
}


/* This targets the images in the first container and removes bottom margin on mobile */
@media (max-width: 768px) {
  .top-section > .container:first-child .card-img-top {
    margin-bottom: 0; /* Remove the margin below the image */
  }
  
  /* Adjust the padding within the card body for mobile */
  .top-section > .container:first-child .card-body {
    padding: 1rem; /* Adjust padding within the card, if necessary */
  }

  /* Further reduce the bottom margin of each card in the first container if needed */
  .top-section > .container:first-child .card {
    margin-bottom: 1rem; /* Adjust the bottom margin between stacked cards */
  }
}

.my-gutter-space {
  height: 0.5rem; /* Adjust the height to control the size of the gutter space */
  background-color: #f8f9fa; /* This is Bootstrap's 'bg-light' color, adjust as needed */
}

.mttc-section {
  background-color: #fde3d6;
}

.training-card {
  background-color: #fff; /* White background */
  border-radius: 10px; /* Rounded corners */
  padding: 20px; /* Padding inside the card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for depth */
  text-align: left; /* Centering the text */
  height: auto; /* Automatic height */
}

.icon-container {
  background-color: #f0f0f0; /* Light gray background for the icon */
  border-radius: 10%; /* Circular shape */
  width: 120px; /* Width of the icon container */
  height: 120px; /* Height of the icon container */
  display: inline-flex; /* Flex display to center content */
  align-items: center; /* Center icon vertically */
  justify-content: center; /* Center icon horizontally */
  margin: 0 auto 20px; /* Center the icon container and add space below */
}

.training-icon {
  width: 30px; /* Width of the icon */
  height: auto; /* Maintain aspect ratio */
}

.training-title {
  font-size: 1.25rem; /* Title font size */
  color: #333; /* Title color */
  margin-bottom: 0.2rem; /* Space below the title */
}

.training-hr {
  width: 50px; /* Width of the horizontal line */
  border: 2px solid #4CAF50; /* Green line, 2 pixels thick */
  margin: 0; /* Center the line and add space below */
  margin-bottom: 2rem; /* Add bottom margin, adjust value as needed */
}

.training-text {
  font-size: 1rem; /* Text font size */
  color: #666; /* Text color */
}

.fa-certificate {
  font-size: 36px; /* Set to the desired size */
}

.fa-briefcase {
  font-size: 36px; /* Set to the desired size */
}



.preschool-section {
  background-color: #FFD1DC; /* Your provided background color */
  color:#333;
}


.preschool-section h2 {
  color: #FF1493 !important;
}

.preschool-section .title-underline {
  border-color: #FF1493;
  margin-bottom: 1rem; /* Margin below the underline */
}

.preschool-section .btn-primary {
  background-color: #FF1493; /* Custom color for your button */
  border: none;
}



.custom-card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); /* This adds the shadow effect */
  transition: 0.3s;
}

.custom-card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); /* This enhances the shadow on hover for a 3D effect */
}

.custom-icon {
  font-size: 2rem; /* Adjust the icon size */
  color: #FF1493; /* Icon color - you can change this as needed */
}

/* Add some padding inside the card and set the background color */
.card.custom-card .card-body {
  padding: 20px;
  background-color: #ffffff; /* Card background color */
}

/* If using Font Awesome icons */
.fas {
  margin-bottom: 1rem; /* Add space below the icon */
}

/* Styling for titles and text inside the card */
.card-title {
  color: #000; /* Adjust as per your design */
  margin-bottom: 0.5rem; /* Space below the title */
}

.card-text {
  color: #000; /* Adjust as per your design */
  
}

.primary-section {
  background-color: #E0B0FF; /* Your provided background color */
}


/* This ensures the underline element in the title is white */
.primary-section .title-underline {
  border-color: #4C2882;
  margin-bottom: 1rem; /* Margin below the underline */
}

.primary-section h2 {
  color: #4C2882 !important;
}


.primary-section .btn-primary {
  background-color: #4C2882 !important; /* Custom color for your button */
  border: none;
}

/* White text for the titles */
.text-white {
  color: #fff;
}

.learning-structure {
  background-color: #C6E6FB;
}

.learning-structure h2 {
  color: #034694 !important;
}
.learning-structure h3 {
  position: relative;
  padding-left: 40px; /* Adjust space for icon */
}

.learning-structure h3:before {
  font-family: 'Font Awesome 5 Free'; /* Font Awesome's font family */
  content: '\f058'; /* Unicode for the specific icon */
  position: absolute;
  left: 0;
  /* Adjust 'top' value to align the icon with the text of the h2 element */
  top: 50%;
  transform: translateY(-50%); /* This centers the icon vertically */
  font-weight: 900; /* Required for solid icons */
}

/* Custo034694m CSS to adjust the icon color, size, etc. */
.learning-structure h3:before {
  color: #4CAF50; /* Icon color */
  font-size: 24px; /* Icon size */
}


.learning-structure .description-container {
  min-height: 100px; /* Set a minimum height, adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: center; /* This vertically centers text in the container */
}

.learning-structure-underline {
  width: 60px;
  border: 2px solid #034694;
  margin: 0;
  margin-bottom: 1rem; /* Margin below the underline */
}

.gallery h2 {
  color: #7851A9 !important;
}

.gallery-underline {
  width: 60px;
  border: 2px solid #7851A9; 
  margin: 0;
  margin-bottom: 1rem; /* Margin below the underline */
}

.gallery-image-container {

  height: auto;/* Keep the container height auto to wrap the content */
  width: 400px; /* Set a fixed width or use percentages as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
  margin: auto; /* Centers the container within the column if it's smaller than the column width */
}


.gallery-img {

  width: 100%;
  height: auto;
  object-fit: cover; /* Cover the container, cropping as necessary */
}

  @media (min-width: 768px) {
    .gallery-image-container {
      /* Remove the max-height if you want the images to scale with their content */
      max-height: none;
     
    }
    .gallery-img {
      /* This will cover the container, cropping as necessary */
      object-fit: cover;
    }
}
.page-footer {
  background-color: #CCCFFF;
  color: #333;
}

.footer-logo {
  max-width: 120px; /* Adjust to fit the logo size */
}

.page-footer .container {
  padding: 1rem;
}

.page-footer h5 {
  color: #333;
  margin-bottom: 1rem;
}

.page-footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-footer ul li a {
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.page-footer ul li a:hover {
  color: #000;
}

.page-footer p {
  font-size: 0.875rem; /* Smaller font size for footer text */
}

/* Align the Quick Links, Enquiry, and Get In Touch to center on mobile */
@media (max-width: 767.98px) {
  .page-footer .row > div {
    text-align: center;
    margin-bottom: 1rem;
  }

  .page-footer .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Center the copyright text on mobile */
@media (max-width: 767.98px) {
  .page-footer .row > div:first-child,
  .page-footer .row > div:nth-child(2) {
    text-align: center;
  }
}

/* Footer social icons */
.page-footer .fab {
  font-size: 1.5rem;
  color: #333; /* Icon color */
}

.page-footer .fab:hover {
  color: #000; /* Icon hover color */
}


/* Mobile view adjustments */

@media (max-width: 768px) {
  h2 {
    font-size:20px; /* Decrease font size for small screens */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add an ellipsis to text that's too long */
    
  }


  h3 {
    font-size:18px; /* Decrease font size for small screens */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add an ellipsis to text that's too long */
    margin-top: 1rem;
  }
  h4 {
    font-size:16px; /* Decrease font size for small screens */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add an ellipsis to text that's too long */
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  section {
    padding: 1rem 0.5rem; /* Top and bottom padding of 1rem, left and right padding of 0.5rem */
  }
}


/* Mobile styles */
@media (max-width: 767px) {
  .navbar {
    padding: 1rem; /* Add padding to the navbar */
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0; /* Add top and bottom margin to nav links for spacing */
  }

  .navbar-brand {
    margin-right: 1rem; /* Add margin to the right of the navbar brand/logo */
  }

  /* Adjust the toggler button if needed */
  .navbar-toggler {
    margin-right: 1rem; /* Add margin to the right of the toggler */
  }
}

@media (max-width: 767px) {
  .navbar-collapse {
    padding: 1rem; /* Add padding within the collapsed content */
  }
}

.copyright .rights {
  padding-top: 2rem ;
}
.social-icons .social-icon {
  display: inline-block;
  margin-right: 10px; /* Adjust the spacing between icons */
}

.social-icons .social-icon a {
  text-decoration: none;
  color: #fff; /* Default text color */
  font-size: smaller;
  padding: 1px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

/* Base styles for social icons */
.social-icons .social-icon.  {
  display: inline-block;
  margin: 5px; /* Smaller margin for mobile */
  font-size: 0.9rem; /* Smaller font size for text */
}


/* Colors for each Facebook page */
.social-icons .facebook-preschool {
  background-color: #C13584;
  box-sizing: 1rem;
}

.social-icons .facebook-primary {
  background-color: #8C55AA;
}

.social-icons .facebook-training {
  background-color: #3C7764;
}

.social-icons .social-icon a {
  text-decoration: none;
  color: #fff;
  padding: 8px 12px; /* Adjusted padding */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons .social-icon i {
  margin-right: 5px;
  font-size: 1.2rem; /* Adjust icon size */
}

/* Hover effects for social icons */
.social-icons .social-icon a:hover {
  opacity: 0.9;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .social-icons .social-icon {
    margin: 4px; /* Even smaller margin for very small screens */
    font-size: 0.8rem; /* Further reduce font size for text */
  }

  .social-icons .social-icon a {
    padding: 6px 10px; /* Slightly reduce padding */
    font-size: 0.8rem; /* Match text size to icon size */
  }

  .social-icons .social-icon i {
    margin-right: 4px;
    font-size: 1rem; /* Reduce icon size for very small screens */
  }
}

.fa-facebook-f {
  color: white;
}