@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;400;700&display=swap");

* {
  font-family: "Lato", sans-serif;
}

body {
  font-family: "Lato", sans-serif;
}

.company-name-landing {
  color: black;
  font-weight: 600;
}

.landing-container-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem;
  margin-right: 4rem;
  margin-left: 4rem;
}

.landing-container-top-text {
  font-size: 36px;
  font-weight: 600;
}

.landing-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid lightgrey;
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #fff; /* Optional: Add background color if needed */
  max-width: 70%;
}

.landing-container-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 20rem;
}

.landing-left {
  font-size: 36px;
  font-weight: 700;
  color: #aabfda; /* Matching the color from the example */
  margin-right: 1rem; /* Space between text and divider */
}

.divider {
  height: 100px; /* Adjust as needed */
  width: 1px;
  background-color: #aabfda; /* Matching the color from the example */
  margin: 0 1rem; /* Space between divider and text */
}

.landing-container-right {
  font-size: 18px;
  line-height: 1.5;
  color: #333;
  margin-left: 1rem;
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
  .landing-container {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the left */
    max-width: 90%; /* Use more screen space */
    padding: 1rem;
    margin: 2rem auto;
  }

  .landing-container-left {
    min-width: 100%; /* Take full width */
    margin-bottom: 1rem; /* Add spacing between sections */
  }

  .landing-left {
    font-size: 28px; /* Adjust font size for smaller screens */
    margin: 0; /* Remove right margin */
    text-align: center; /* Center text */
  }

  .divider {
    display: none; /* Hide the divider on small screens */
  }

  .landing-container-right {
    font-size: 16px; /* Smaller text for readability */
    line-height: 1.4;
    margin-left: 0; /* Remove left margin */
    text-align: center; /* Center the text */
  }

  .landing-container-top {
    margin: 2rem 1rem; /* Reduce margins */
  }

  .landing-container-top-text {
    font-size: 28px; /* Smaller heading font */
    text-align: center; /* Center the heading */
  }
}

/* ---------------------------LATEST NEWS---------------------------------- */

.news-container {
  padding: 2rem;
  background-color: #fff; /* Optional: Add background color if needed */
  border: 1px solid lightgrey;
  margin-top: 2rem;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
}

.news-cards {
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-more-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #aabfda;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.view-more-button:hover {
  background-color: #5b7492;
}

@media (max-width: 900px) {
  .news-cards {
    flex-direction: column; /* Stack the cards vertically */
    align-items: center; /* Center the cards in the container */
    gap: 1rem; /* Maintain spacing between stacked cards */
  }

  .news-cards .card {
    width: calc(
      100% - 2rem
    ); /* Ensure the card fits within the container's padding */
    max-width: 90%; /* Limit the card width */
    margin: 1rem 0; /* Add vertical spacing between stacked cards */
  }

  .news-cards .card-image-2 {
    width: 100%; /* Make the image fit the card's width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Crop and contain the image within the card */
    max-height: 150px; /* Limit the image height for small screens */
  }

  .view-more-button {
    font-size: 16px; /* Adjust button size */
    padding: 0.4rem 0.8rem; /* Smaller padding for buttons */
  }
}

/* ---------------------------LATEST NEWS ENDS---------------------------------- */
/* ---------------------------CARROUSELL ---------------------------------- */

.landing-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  font-weight: 600;
}

.landing-page {
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.landing-page .landing-slider {
  position: relative;
  width: 100%;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.landing-page .landing-item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.landing-page .landing-item:nth-child(1),
.landing-page .landing-item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.landing-page .landing-item:nth-child(3) {
  left: 50%;
}
.landing-page .landing-item:nth-child(4) {
  left: calc(50% + 220px);
}
.landing-page .landing-item:nth-child(5) {
  left: calc(50% + 440px);
}
.landing-page .landing-item:nth-child(6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.landing-page .landing-content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: none;
}

.landing-page .landing-content .landing-title {
  text-transform: uppercase;
}

.landing-page .landing-content .landing-description {
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
}

.landing-page .landing-content button {
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 0.25rem;
  padding: 0.75rem;
  cursor: pointer;
}

.landing-page .landing-item:nth-of-type(2) .landing-content {
  display: block;
  animation: landing-show 0.75s ease-in-out 0.3s forwards;
}

@keyframes landing-show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.landing-page .landing-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
}

.landing-page .landing-nav .landing-btn {
  background-color: rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(0, 0, 0, 0.6);
  margin: 0 0.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
}

.landing-page .landing-nav .landing-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

@media (width > 650px) and (width < 900px) {
  .landing-page .landing-content .landing-title {
    font-size: 1rem;
  }
  .landing-page .landing-content .landing-description {
    font-size: 0.7rem;
  }
  .landing-page .landing-content button {
    font-size: 0.7rem;
  }
  .landing-page .landing-item {
    width: 160px;
    height: 270px;
  }
  .landing-page .landing-item:nth-child(3) {
    left: 50%;
  }
  .landing-page .landing-item:nth-child(4) {
    left: calc(50% + 170px);
  }
  .landing-page .landing-item:nth-child(5) {
    left: calc(50% + 340px);
  }
  .landing-page .landing-item:nth-child(6) {
    left: calc(50% + 510px);
    opacity: 0;
  }
}

@media (width < 650px) {
  .landing-page .landing-content .landing-title {
    font-size: 0.9rem;
  }
  .landing-page .landing-content .landing-description {
    font-size: 0.65rem;
  }
  .landing-page .landing-content button {
    font-size: 0.7rem;
  }
  .landing-page .landing-item {
    width: 130px;
    height: 220px;
  }
  .landing-page .landing-item:nth-child(3) {
    left: 50%;
  }
  .landing-page .landing-item:nth-child(4) {
    left: calc(50% + 140px);
  }
  .landing-page .landing-item:nth-child(5) {
    left: calc(50% + 280px);
  }
  .landing-page .landing-item:nth-child(6) {
    left: calc(50% + 420px);
    opacity: 0;
  }
}

/* ---------------------------CARROUSELL ENDS---------------------------------- */
/* ---------------------------PRODUCT HIGHLIGHT---------------------------------- */

@media (min-width: 80em) {
  .product-highlight-container {
    text-align: center;
    padding: 2rem;
    background-color: #fff; /* Optional: Add background color if needed */
    border: 1px solid lightgrey;
    margin-top: 2rem;
    max-width: 800px;
    margin: 2rem auto;
  }

  .product-highlight-container h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 1rem;
  }

  .card-highlight {
    min-width: 40rem;
    width: 20rem;
    min-height: 25rem;
    position: relative;
    box-shadow: 2px 2px 8px 0 rgba(51, 51, 51, 0.15);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden; /* Ensures no overflow from children */
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .card-image-highlight {
    background-image: url("../images/landing-highlight.jpg");
    min-width: 70%;
    min-height: 70%;
    background-size: cover;
    background-position: center;
    padding-bottom: 100%;
  }

  .product-content {
    text-align: center;
  }

  .product-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
  }

  .product-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 1rem;
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .product-button {
    background-color: #aabfda;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 2rem;
  }

  .product-button:hover {
    background-color: #5b7492;
  }
}

@media (max-width: 80em) {
  .product-highlight-container {
    text-align: center;
    padding: 1rem; /* Reduced padding for smaller screens */
    background-color: #fff;
    border: 1px solid lightgrey;
    margin-top: 1.5rem; /* Adjusted margin for spacing */
    max-width: 100%; /* Ensure it spans the available width */
    margin: 1.5rem auto;
  }

  .product-highlight-container h2 {
    font-size: 24px; /* Slightly smaller font size */
    color: #333;
    margin-bottom: 0.75rem;
  }

  .card-highlight {
    min-width: 100%; /* Ensure cards adapt to smaller screens */
    width: auto;
    min-height: 20rem; /* Adjusted height for scaling */
    position: relative;
    box-shadow: 2px 2px 6px 0 rgba(51, 51, 51, 0.1); /* Softer shadow */
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 1rem auto; /* Reduced margins for better fit */
  }

  .card-image-highlight {
    background-image: url("../images/landing-highlight.jpg");
    min-width: 100%;
    min-height: 50%; /* Adjusted proportions for smaller viewports */
    background-size: cover;
    background-position: center;
    padding-bottom: 75%; /* Maintain aspect ratio */
  }

  .product-content {
    text-align: center;
    padding: 0.5rem; /* Added padding for better readability */
  }

  .product-content h3 {
    font-size: 20px; /* Reduced font size for headings */
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
  }

  .product-content p {
    font-size: 14px; /* Smaller font for descriptions */
    color: #666;
    margin: 0.5rem 1rem;
  }

  .product-button {
    background-color: #aabfda;
    border: none;
    color: white;
    padding: 8px 16px; /* Adjusted padding for smaller buttons */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px; /* Smaller button text */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1.5rem; /* Adjusted margin */
  }
}

/* ---------------------------PRODUCT HIGHLIGHT ENDS---------------------------------- */
