.slideshow {
  width: 100%;
  max-width: 2500px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 650px;
}

.slideshow-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease;
}

.mySlides {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  padding: 0;
  line-height: 1;
}

.prev-btn:hover, .next-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { 
  left: 20px; 
}

.next-btn { 
  right: 20px; 
}

.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 20;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: #fff;
}

.about-us-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-container {
  margin: 0;
  padding: 0;
}

.content-border {
  background-color: #f4eedf;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.content-border .logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-border .logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

#secondary img {
  width: 100%;
  max-width: 500px;
  margin: 30px;
}

.content-border .about {
  flex: 1;
  font-size: clamp(14px, 1.8vw, 18px);
  margin-right: 100px;
  line-height: 1.8;
  color: #333;
  animation: aboutFadeIn 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

#bottom {
  flex: 1;
  font-size: clamp(14px, 1.8vw, 18px);
  margin-left: 100px;
  line-height: 1.8;
  color: #333;
  animation: aboutFadeIn 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.content-border .about a {
  color: #8b4513;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.content-border .about a:hover {
  opacity: 0.7;
}

.image-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  min-height: 1200px;
  margin: 0;
  padding: 0;
}

.image-collage span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: none;
  margin: 0;
  padding: 0;
  min-height: 500px;
}

.image-collage span img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.image-collage span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: background 0.6s ease;
  pointer-events: none;
}

.image-collage span::after {
  content: attr(data-text);
  position: absolute;
  z-index: 3;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  padding: 0 20px;
  max-width: 90%;
}

.image-collage span:hover img {
  transform: scale(1.15);
}

.image-collage span:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

.block {
  height: 5em;
  line-height: 5em;
  width: 10em;
  background: #464646;
  color: #fdfdfd;
  text-align: center;
  margin: 1em auto;
  text-shadow: 0 0 1px #333;
}

.animatable {
  visibility: hidden;
  animation-play-state: paused;
}

.animated {
  visibility: visible;
  animation-fill-mode: both;
  animation-duration: 3s;
  animation-play-state: running;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-2000px);
  }
  60% {
    transform: translateX(20px);
  }
  80% {
    transform: translateX(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes aboutFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated.fadeInUp {
  animation-name: fadeInUp;
}

.animated.bounceInLeft {
  animation-name: bounceInLeft;
}

@media (max-width: 1024px) {
  .content-border .logo {
    min-width: clamp(120px, 20vw, 250px);
  }
  
  .image-collage {
    min-height: clamp(500px, 80vh, 900px);
  }
}

@media (max-width: 768px) {
  /* Mobile: Reduce width and maintain 16:9 */
  .slideshow {
    width: 100%; /* Significantly smaller width for mobile */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Keep 16:9 ratio */
    max-height: none;
  }
  
  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain cover for proper 16:9 display */
  }

  .about-us-img {
    display: block !important;
    position: relative;
    width: 95%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  }

  .prev-btn, .next-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .prev-btn { 
    left: 12px; 
  }

  .next-btn { 
    right: 12px; 
  }

  .content-border {
    flex-direction: column;
    text-align: center;
    padding: clamp(30px, 6vw, 50px) clamp(20px, 5vw, 40px);
    gap: clamp(20px, 4vw, 30px);
  }
  
  .content-border .logo {
    margin-bottom: 0;
    width: 15px;
    min-width: 50px;
  }
  
  .content-border .about {
    font-size: clamp(15px, 2.2vw, 17px);
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  #bottom {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  .image-collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    min-height: auto;
    height: auto;
  }
  
  .image-collage span {
    min-height: clamp(280px, 50vh, 400px);
  }
  
  .image-collage span::after {
    font-size: clamp(20px, 4vw, 24px);
  }
}

@media (max-width: 480px) {
  /* Smaller mobile: Even more compact width */
  .slideshow {
    width: 100%; /* More compact for smaller screens */
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  
  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .prev-btn, .next-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .prev-btn { 
    left: 8px; 
  }

  .next-btn { 
    right: 8px; 
  }

  .prev-btn:hover, .next-btn:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .dot {
    height: 6px;
    width: 6px;
    margin: 0 3px;
  }

  .content-border {
    padding: clamp(25px, 6vw, 40px) clamp(15px, 5vw, 30px);
    gap: 20px;
  }
  
  .content-border .logo {
    min-width: clamp(150px, 50vw, 220px);
  }
  
  .content-border .about {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.7;
  }

  #bottom {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  .image-collage span {
    min-height: clamp(250px, 45vh, 350px);
  }
  
  .image-collage span::after {
    font-size: clamp(18px, 5vw, 22px);
    padding: 0 15px;
  }
  
  .image-collage span:hover img {
    transform: scale(1.1);
  }
}

@media (max-width: 360px) {
  /* Very small screens: Most compact */
  .slideshow {
    width: 80%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .prev-btn, .next-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .prev-btn { 
    left: 6px; 
  }

  .next-btn { 
    right: 6px; 
  }

  .dot {
    height: 5px;
    width: 5px;
    margin: 0 2px;
  }

  .content-border .logo {
    min-width: clamp(130px, 55vw, 180px);
  }
  
  .content-border .about {
    font-size: 14px;
  }

  #bottom {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  .image-collage span {
    min-height: clamp(220px, 40vh, 300px);
  }
  
  .image-collage span::after {
    font-size: 16px;
  }
}