/* ===============================
   Global Styles
=============================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.date-time {
  font-size: 18px;
}

/* ===============================
   Quotes Slider (16:9)
=============================== */
.quotes-slider .slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  height: 200px; /* Fixed height */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px 2px navy;
}

.quotes-slider .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.quotes-slider .slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

/* Image: full size with lower opacity */
.quotes-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7; /* Lower opacity for overlay effect */
}

/* Overlay Container for Quote Text */
.quotes-slider .quote-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Vertical center */
  align-items: center;      /* Horizontal center */
  text-align: center;
  padding: 10px;
  color: #fff;
}

/* Quote Text Styling */
.quotes-slider .quote-overlay .quote-text {
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
  color: navy;
}

/* Author Text Styling: placed on a new line, right aligned */
.quotes-slider .quote-overlay .quote-author {
  font-size: 14px;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  margin-left: 200px;
  color: rgb(12, 100, 54);
}

/* ===============================
   Featured Project Section
=============================== */
/* Mobile: swipeable slider (1 per view) */
.featured-project #featuredProject {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
}
.featured-project #featuredProject > div {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

/* Desktop: 4 items per row */
@media (min-width: 900px) {
  .featured-project #featuredProject {
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .featured-project #featuredProject > div {
    flex: 1 0 calc(25% - 10px);
    scroll-snap-align: none;
  }
}

.featured-project #featuredProject img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

/* ===============================
   All Projects Section
=============================== */
/* Mobile: 3 columns */
.projects .project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.projects .project-item {
  flex: 1 0 calc(33.33% - 10px);
}

.projects .project-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: navy 1px solid;
}

/* Desktop: 6 columns */
@media (min-width: 900px) {
  .projects .project-item {
    flex: 1 0 calc(16.66% - 10px);
  }
}

/* ===============================
   Team Members Section
=============================== */
/* Mobile: swipeable slider (1 per view) */
.team .team-members {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  border-radius: 10px;
}

.team .team-member {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: navy !important;
  background-color: antiquewhite;
  padding-top: 30px; /* Increase top padding for extra space */
  border-radius: 10px;
  box-shadow: 0 0 10px 2px navy;
}

.team .team-member h3 {
  margin: 0;
  padding: 0;
}


.team .team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

/* Desktop: 3 columns */
@media (min-width: 900px) {
  .team .team-members {
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .team .team-member {
    flex: 1 0 calc(33.33% - 20px);
    scroll-snap-align: none;
  }
}


/* ===============================
   Affiliates (1:1)
=============================== */
.affiliates .affiliate-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 20px 0;
}

.affiliates .affiliate-logo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 150px;
  border-radius: 10px;
}

/* Desktop views */
@media (min-width: 900px) {
  /* Affiliates: adjust logo size for larger screens */
  .affiliates .affiliate-logo img {
    max-width: 120px;
  }
}

main {
  margin: 0 auto 4.9rem auto;
}