/*Authors:Erinn Mouton, Nathan Just*/
/*Date: 7 September 2024*/
/*Description: This page includes styles for the header, navigation menu, main content, criteria section, table, contact section, and footer*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --first-color: hsl(224.4, 78.3%, 27.1%);
  --title-color: hsl(230, 75%, 15%);
  --text-color: hsl(230, 12%, 40%);
  --body-color: hsl(230, 100%, 98%);
  --container-color: hsl(230, 100%, 97%);
  --border-color: hsl(230, 25%, 80%);

  /*========== Font and typography ==========*/
  --body-font: "Syne", sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
  --z-modal: 1000;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1023px) {
  :root {
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins";
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: rgb(255, 253, 254);
  color: var(--text-color);
}

input,
button {
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin: 0 auto;
}

.main {
  position: relative;
}

.main__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 2px 16px hsla(230, 75%, 32%, 0.15);
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__logo img {
  max-width: 100%;
  height: 70px; /* Default height for the logo */
  width: auto;
  display: block;
}

:is(.nav__logo, .nav__search, .nav__login, .nav__toggle, .nav__link):hover {
  color: var(--first-color);
}

/* Hamburger menu styles */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.nav__toggle-icon {
  width: 25px;
  height: 2px;
  background-color: var(--title-color);
  display: block;
  position: relative;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  width: 25px;
  height: 2px;
  background-color: var(--title-color);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.nav__toggle-icon::before {
  top: -8px;
}

.nav__toggle-icon::after {
  top: 8px;
}

/* Responsive menu visibility */
.nav__menu {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.nav__menu.hidden {
  display: none;
}

.nav__menu.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  right: 0;
  background-color: var(--body-color);
  width: 100%;
  padding: 1rem;
  box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.1);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
    padding-right: 50px;
  }

  .nav__menu {
    display: none; /* Hidden by default */
  }

  .nav__menu.show {
    display: flex; /* Show when toggled */
  }
}

/* Adjust size for tablets */
@media (max-width: 768px) {
  .nav__logo img {
    height: 50px;
    padding-left: 50px;
  }
}

/* Adjust size for smaller devices like phones */
@media (max-width: 480px) {
  .nav__logo img {
    height: 45px;
  }
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    box-shadow: 0 8px 16px hsla(230, 75%, 32%, 0.15);
    width: 100%;
    padding-block: 4.5rem 4rem;
    transition: top 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
  text-align: center;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

/*============= MAIN CONTENT ===========*/
.content {
  font-family: "Poppins", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
    sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-left-side {
  flex: 1;
  padding: 20px;
  margin: 1cm 0;
  padding-top: 2cm;
  text-align: left; /* Default alignment for larger screens */
}

.content-left-side h1 {
  font-size: 2.7rem;
  color: rgb(29, 28, 28);
  margin-bottom: 0.5cm;
}

.content-left-side p {
  color: rgb(29, 28, 28);
  margin-bottom: 0.9cm;
}

.content-right-side {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: 3cm;
  margin-bottom: 1cm;
}

.content-right-side img {
  height: 500px;
  width: 450px;
  border-radius: 6px;
  padding-top: 20px;
}

.button {
  background-color: #1a2d7a;
  border: none;
  border-radius: 7px;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin: 4px 9px; /* Horizontal spacing for larger screens */
  cursor: pointer;
  width: 250px; /* Fixed width for buttons */
}

/* Button container for better layout */
.button-container {
  display: flex;
  flex-direction: column; /* Default to horizontal for larger screens */
  justify-content: flex-start; /* Align buttons to the left */
  margin-top: 0.3cm;
}

/* Media query for smaller devices */
@media (max-width: 768px) {
  .content {
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center content */
    text-align: center; /* Center text */
  }

  .content-left-side {
    align-items: center;
  }

  .content-right-side {
    display: none; /* Hide image on smaller devices */
  }

  .content-left-side h1 {
    font-size: 2rem; /* Smaller font size for smaller screens */
  }

  .content-left-side p {
    font-size: 0.9rem; /* Adjust font size */
  }

  /* Adjust button container and button styles */
  .button-container {
    flex-direction: column; /* Stack buttons vertically on small screens */
    width: 100%; /* Full width on small screens */
    align-items: center;
  }

  .button {
    width: 100%; /* Full width buttons on small screens */
    max-width: 250px; /* Set max width for buttons */
    margin: 4px 0; /* Vertical margin only for spacing */
  }
}

/* Media query for even smaller devices */
@media (max-width: 480px) {
  .content-left-side h1 {
    font-size: 2rem; /* Smaller font size for even smaller screens */
    text-align: center;
  }

  .content-left-side p {
    font-size: 0.9rem; /* Adjust font size */
  }
}

/*=========== About Us =================*/
.aboutUs-container {
  color: black;
  background-color: rgb(255, 255, 255);
  padding: 20px;
  box-sizing: border-box; /* Ensure padding is included in total width */
}

.container {
  display: flex;
  /*flex-direction: column;  Default to column layout */
}

/* Right Side Styles */
.aboutUs-right-side {
  padding: 20px;
}

.aboutUs-right-side h1 {
  font-size: 2.7rem;
  color: rgb(29, 28, 28);
  margin-bottom: 0.5cm;
}

.aboutUs-right-side p {
  color: rgb(29, 28, 28);
  margin-bottom: 0.9cm;
}

.aboutUs-left-side {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 20px 0; /* Adjust margin for better spacing */
}

/* Image Styles */
.aboutUs-left-side img {
  width: 100%;
  max-width: 1000px; /* Increased max width for a larger image */
  border-radius: 6px;
}

/* Mission Section Styles */
.mission {
  margin-top: 20px;
}

.mission h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mission p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Vision and Values Section */
.vision-values {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  margin-top: 20px;
  justify-content: space-between; /* Space out vision and values */
}

.vision,
.values {
  display: flex;
  align-items: center;
  flex: 1; /* Allow equal distribution */
  margin: 10px; /* Margin around each item */
}

/* Square Block Styles */
.square-block {
  width: 50px; /* Set width */
  height: 50px; /* Set height */
  background-color: #1a2d7a;
  border-radius: 8px; /* Default border-radius */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 20px;
}

.square-block span {
  display: block;
}

/* Heading Styles */
.vision h3,
.values h3 {
  margin-bottom: 10px;
}

/* Content Styles */
.vision-content,
.values-content {
  margin-left: 10px; /* Reduced margin for better spacing */
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .aboutUs-left-side {
    margin-right: 20px; /* Add space between image and text */
  }

  .vision-content,
  .values-content {
    margin-top: 0; /* Reset margin-top for larger screens */
  }

  .aboutUs-left-side img {
    width: 400px;
    border-radius: 6px;
  }
}

/* Adjustments for Smaller Devices */
@media (max-width: 767px) {
  .square-block {
    width: 50px; /* Keep width the same */
    height: 50px; /* Keep height the same */
    padding: 20px;
  }

  /* Optional: Ensure that the vision and values sections can handle the circular blocks */
  .vision,
  .values {
    flex-basis: 100%; /* Allow them to take full width */
    justify-content: center; /* Center content within the flex items */
  }
}

/*=============== Services ===============*/
.service-container {
  background-image: url("../img/Services_bg.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 70px;
  background-color: #161e3a;
  position: relative;
  text-align: center; /* Center align text for better readability */
  box-sizing: border-box;
}

.service-container h1 {
  font-size: 2.5rem;
  margin-bottom: 30px; /* Space below the heading */
}

.services {
  display: flex;
  flex-direction: column; /* Stack cards vertically by default */
  gap: 20px; /* Space between cards */
}

/* Service card styling */
.service-card {
  width: 100%; /* Full width on small screens */
  max-width: 350px; /* Limit max width for cards */
  padding: 20px;
  border-radius: 10px;
  background-color: #1a2d7a;
  border: #687194 solid 1px;
  margin: 0 auto; /* Center cards in column layout */
}

/* Responsive adjustments for medium and larger screens */
@media (min-width: 768px) {
  .services {
    flex-direction: row; /* Change to row layout for larger screens */
    justify-content: center; /* Center cards in the row */
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
  }

  .service-card {
    width: calc(33.333% - 20px); /* Three cards in a row */
  }
}

/* Adjustments for smaller screens */
@media (max-width: 480px) {
  .service-container {
    padding: 40px;
  }

  .service-container h1 {
    font-size: 2rem;
  }

  .service-card p {
    font-size: 0.9rem; /* Adjust font size for paragraphs */
  }
}

/* Service card heading styling */
.medical-care h2,
.dietary-services h2,
.recreational-activities h2 {
  color: white;
}

/*==============FACILITIES====================*/

.facilities-container {
  background-color: #d3dcf6;
  color: black;
  padding: 50px 20px; /* Added horizontal padding for mobile devices */
  text-align: center;
}

.facilities {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping of cards on smaller screens */
}

.facilities-card {
  width: calc(50% - 40px); /* Adjust width for responsive spacing */
  padding: 20px;
  display: flex;
  background-color: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for better visual separation */
  border-radius: 6px; /* Slight rounding for aesthetics */
  transition: transform 0.3s ease; /* Smooth scaling effect */
}

.facilities-card img {
  width: 100%;
  max-width: 500px;
  height: auto; /* Maintain aspect ratio */
  margin-top: 20px;
  border-radius: 6px; /* Round the corners of the image */
}

.facilities-container h1 {
  margin-bottom: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .facilities-card {
    width: 100%; /* Full width on mobile */
    margin-bottom: 20px; /* Space between cards on mobile */
  }

  .facilities-container h1 {
    font-size: 2rem; /* Reduce title size for smaller screens */
  }
}

/*=============== Testimonial ===============*/
.testimonial-container {
  background-color: #1a2d7a; /* Dark blue background */
  color: #ffffff;
  padding: 70px;
  position: relative;
  text-align: center; /* Center text for better readability */
  box-sizing: border-box;
}

.testimonial-container h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.testimonial {
  display: flex;
  flex-direction: column; /* Stack cards vertically by default */
  gap: 20px; /* Space between cards */
}

/* Testimonial card styling */
.testimonial-card {
  width: 100%;
  max-width: 350px; /* Limit max width for cards */
  padding: 20px;
  border-radius: 5px;
  background-color: #162769;
  border: #3e508f solid 0.5px;
  margin: 0 auto; /* Center cards in the column layout */
}

/* Responsive adjustments for medium and larger screens */
@media (min-width: 768px) {
  .testimonial {
    flex-direction: row; /* Change to row layout for larger screens */
    justify-content: center; /* Center cards */
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
  }

  .testimonial-card {
    width: calc(33.333% - 20px); /* Three cards in a row */
  }
}

/* Adjustments for smaller screens */
@media (max-width: 480px) {
  .testimonial-container {
    padding: 40px;
  }

  .testimonial-container h1 {
    font-size: 2rem;
  }

  .testimonial-card p {
    font-size: 0.9rem; /* Adjust font size for paragraphs */
  }
}

/*================= FAQ ====================*/
.faq-container {
  background-color: white;
  color: black;
  padding: 50px 20px; /* Added horizontal padding for smaller screens */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-title {
  font-size: 2.5rem; /* Slightly reduced font size for better fit */
  margin: 2rem 0;
  font-family: "Poppins", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS";
}

.faq {
  max-width: 700px;
  width: 100%; /* Ensure the FAQ section takes full width */
  margin-top: 1.5rem; /* Adjusted margin */
  padding-bottom: 1rem;
  border-bottom: 2px solid #000000;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.faq-answer {
  text-align: left;
  padding-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  line-height: 1.6;
}

.faq.active .faq-answer {
  padding-top: 1rem;
  max-height: 200px; /* Ensure max-height accommodates content */
}

.arrow {
  transition: transform 0.3s ease;
}

.arrow.rotate-down {
  transform: rotate(180deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-title {
    font-size: 2rem; /* Reduce title size for smaller screens */
  }

  .faq {
    padding: 10px; /* Reduced padding for smaller screens */
  }

  .faq-question h3 {
    font-size: 1.2rem; /* Adjust question size */
  }

  .faq-answer p {
    font-size: 1rem; /* Adjust answer size */
  }
}

/*=============== Contact Us ===============*/
.contact-section {
  background-color: #1a2d7a; /* Dark blue background */
  color: white;
  padding: 80px;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-section h1 {
  margin: 0;
  font-size: 2.7rem;
}

.contact-section p {
  margin: 15px 0;
  font-size: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

/* Contact info layout for larger screens */
@media (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: space-around;
  }

  .contact-info p {
    width: auto;
    flex: 1;
    text-align: left;
  }
}

/* Icons for contact info */
.contact-info p::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
}

.contact-info p:first-child::before {
  background-image: url("../img/tel_img.png");
}

.contact-info p:nth-child(2)::before {
  background-image: url("../img/email_img.png");
}

.contact-info p:last-child::before {
  background-image: url("../img/location_img.png");
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-section h1 {
    font-size: 2rem;
  }

  .contact-info p {
    font-size: 1rem;
    text-align: center;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 40px;
  }

  .contact-section h1 {
    font-size: 1.8rem;
  }

  .contact-section p {
    font-size: 0.9rem;
  }

  .contact-info p {
    font-size: 0.8rem;
  }
}

/*================Footer====================*/

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  font-family: "Poppins", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
    sans-serif;
  font-size: 0.8rem;
}

/*=============== DIFFERENT DEVICES ===============*/
/* For large devices */
@media screen and (min-width: 1023px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
    column-gap: 3rem;
  }
  .nav__menu {
    margin-left: auto;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
}

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
}
