/* Global Styles */
*{

}

body {
  font-family: Arial, sans-serif;
  margin: 0 auto;
  padding: 0;
  padding-top: 60px; /* Adjust this value to the height of your header */
  overflow-x: hidden;
  max-width: 1280px;
}

header {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav {
  margin: auto;
}

nav a {
  color: #fff;
  margin-right: 30px;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 18px;
}

nav a:hover {
  color: #FED700;
}

.social-icons a {
  margin-right: 20px;
  transition: filter 0.3s ease;
}

.social-icons a:hover {
  filter: brightness(0.8);
}

/* Main Banner Styles */
.main-banner {
  display: flex;
  position: relative;
  height: 450px; /* Adjust the height as needed */
  background-color: #FED700;
}

.banner-image {
  flex: 1;
  overflow: hidden;
  position: relative;
  transition: opacity 1s ease-in-out;
}

.banner-image.active {
  opacity: 1;
}

.banner-image-1{
  transform: skewX(-15deg);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 2s forwards;
}


.banner-image-2{
  transform: skewX(-15deg);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 6s forwards;
}

.banner-image-3 {
  transform: skewX(-15deg);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 10s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(15deg) scale(1.6);
}

/* Section Styles */
section {
  padding: 40px 20px;
  min-height: 2%; /* Ensuring a minimum height for each section */
  text-align: center;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px #FED700;
}

.location{
  margin: 5%;
}


.company-info,
.news,
.locations {
  background-color: #87CEFA;
}

.company-info{
background-image: url(img/Vector.png);
height: 400px;
}


.faq,
.staff-intro,
.latest-news {
  background-color: #fff;
}

.company-info h2,
.news h2,
.locations h2 {
  color: #fff;
  font-size: 32px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 1);
}

.staff-intro h2,
.faq h2,
.latest-news h2 {
  color: #000;
  font-size: 32px;
  text-shadow: 1px 1px 5px #FED700;
}

.company-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  position: relative;
  max-width: 800px; /* Center the content */
  margin: 0 auto; /* Center the content */

}

.company-text {
  flex: 1;
  position: absolute;
  top: 40%;
  left: 61%; /* Adjusted to overlap more */
  transform: translate(-80%, -50%);
  padding: 20px;
  color: #000;
  text-shadow: 0 4px 8px #FED700;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  width: 30%;
}

/* Staff Introduction */
.staff-intro .staff-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #000;
  margin-right: 10%;
}

.staff-intro .staff-image {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.staff-intro .staff-image img {
  width: 100%;
  height: auto;
}

.staff-intro .staff-text p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.staff-career {
  margin-top: 20px;
  text-align: center; /* Center align the text */
}

.staff-career h3 {
  font-size: 28px;
  color: #000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.staff-career ul {
  list-style-type: none;
  padding: 0;
  display: inline-block;
  text-align: left; /* Center align the list */
}

.staff-career ul li {
  color: #000;
  padding: 5px;
  margin-bottom: 2px;
  border-radius: 5px;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  transition: transform 0.5s ease;
}

.review-flex{
  display: flex;
  transition: transform 0.5s ease;
  justify-content: space-between;
	flex-wrap: wrap;
}

.carousel-item {
  flex: 0 0 30%;
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 0 10px;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #87CEFA;
  border: 2px solid #222;
  color: #FED700;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px #222;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.carousel-button:hover {
  background-color: #FED700;
  transform: translateY(-50%) scale(1.1);
}

.news {
  text-align: center;
}

.latest-news .news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.latest-news .news-item {
  background-color: #fff;
  margin: 10px;
  padding: 20px;
  width: calc(33.33% - 20px); /* Adjust the width to fit three in a row with some margin */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  text-align: center;
}

.latest-news .news-item h3 {
  color: #000;
}

.latest-news .news-item p {
  color: #666;
}

.latest-news .read-more{
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #87CEFA;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.latest-news .read-more:hover {
  background-color: #FED700;
}

.read-more a{
  color: #fff;
  text-decoration:none;
}

.news-more{
  display: inline-block;
  padding: 10px 25%;
  margin-top: 10px;
  background-color: #fff;
  color: #87CEFA;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.news-more:hover {
  background-color: #FED700;
  color: #fff;
}

/* FAQ Styles */
.faq-item p {
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.faq-item p::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #FED700;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.faq-item p:hover {
  color: #FED700;
}

.faq-item p:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* reviews Styles */
.reviews {
  text-align: center;
  padding: 20px;
  background-color: #87CEFA;
  border-radius: 10px;
  margin: 20px;
  
}

.reviews h2 {
  color: #fff;
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.review {
  display: flex;
  justify-content: space-between;
	flex-wrap: wrap;
  margin: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
  border-radius: 10px;
  width: calc(33.33% - 20px); /* Ensure three items fit in a row */
  box-sizing: border-box;
}

.review:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* border-radius: 20px; */
}

.review-image {
  width: 100%;
  padding-top: 56.25%; /* Maintain aspect ratio 16:9 */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.review:hover .review-image {
  border-radius: 20px;
}



/* Footer Styles */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer .social-icons a {
  margin: 0 10px;
  color: #FED700;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

footer p {
  margin-top: 10px;
  font-size: 14px;
  color: #aaa;
}

.flex {
  display: flex;
  position: relative;
  justify-content: center;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  nav a {
    font-size: 16px;
    margin-right: 20px;
  }

  .banner-image img {
    object-fit: contain;
  }

  .carousel-item {
    flex: 0 0 45%;
  }

  .latest-news .news-item {
    width: calc(45% - 20px);
  }
}

@media (max-width: 768px) {
  nav a {
    font-size: 14px;
    margin-right: 10px;
  }

  .main-banner {
    flex-direction: column;
    height: auto;
  }

  .banner-image {
    margin-bottom: 10px;
  }

  .company-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .company-image {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .company-text {
    position: static;
    transform: none;
    width: 100%;
  }

  .staff-intro .staff-content {
    margin-right: 0;
  }

  .staff-career ul {
    text-align: center;
  }

  .carousel-item {
    flex: 0 0 80%;
    margin: 0 auto;
  }

  .locations {
    display: block;
  }

  .location {
    width: 100%;
  }

  .main-banner {
    height: 300px;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin: 10px 0;
  }

  nav a {
    font-size: 12px;
    margin-right: 5px;
  }

  .company-text {
    font-size: 16px;
    width: 100%;
  }

  .carousel-item {
    flex: 0 0 100%;
  }

  .latest-news .news-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .location {
    width: 100%;
  }

  .main-banner {
    height: 200px;
    width: 100%;
    display: block;
  }

  .banner-image {
    width: 100%;
    height: 360px;
  }

  .flex {
    display: block;
    position: relative;
  }
}


/* News Detail Styles */
.news-detail {
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  background-color: #87CEFA;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-detail h1 {
  font-size: 32px;
  color: #000;
}

.news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.news-detail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-content {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}