.logos {
  overflow: hidden;
  padding: 60px 0;
  background: white;
  position: relative;
  display: flex; /* use flex so inner slides can be wide and scroll */
  align-items: center;
  gap: 0;
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logos:hover .logos-slide {
  animation-play-state: paused;
}

.logos-slide {
  display: inline-block;
  width: max-content; /* ensure the slide container is as wide as its content */
  animation: 35s slide infinite linear;
  will-change: transform;
}

.logos-slide img {
  height: 50px;
  margin: 0 40px;
}

/* Prevent the logos from stacking vertically. Some global rules set img {display:block},
   so use a more specific selector here to ensure logos remain inline and don't wrap. */
.logos .logos-slide { white-space: nowrap; }
.logos .logos-slide img { display: inline-block; vertical-align: middle; }

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.feature-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Use the same slideshow structure and styles as home.css so the JS and
   responsive rules behave consistently across pages. These rules intentionally
   match the site's slideshow selectors and allow translate-based stepping. */
/* Scroll-driven slideshow styles */
.slideshow-section { 
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slideshow-spacer { 
    height: 100vh;
    width: 100%;
}

.slideshow-inner { 
    position: sticky; 
    top: 0;
    height: 100vh;
    width: 100%;
    display: block; 
    overflow: hidden;
}

.slides { 
    width: 100%; 
    height: 100vh;
    display: block;
    position: relative;
}

.slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    height: 100vh;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-media, .slide-content { 
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.slide-media { 
    display: block;
}

.slide-media img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 6px; 
    box-shadow: 0 8px 18px rgba(0,0,0,0.08); 
    display: block;
}

.slide-content { 
    height: 100%;
    min-height: 300px;
    display: grid;
    place-items: center;
}

.dark-card { 
    background: rgba(9, 36, 40, 0.95); 
    color: #fff; 
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.slide-content-inner {
    padding: 2.5rem;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dark-card h3 { 
    color: #ef6b3a; 
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dark-card p { 
    color: rgba(255,255,255,0.95); 
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Animation classes for slides */
.slide-enter {
    opacity: 0;
    transform: translateY(20px);
}

.slide-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-exit {
    opacity: 1;
    transform: translateY(0);
}

.slide-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slideshow-dots { 
    position: absolute; 
    right: 1.5rem; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex; 
    flex-direction: column; 
    gap: 0.6rem; 
    z-index: 10; 
}

.slideshow-dots .dot { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background: #ef6b3a; 
    opacity: 0.35; 
    border: none; 
    cursor: pointer;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.slideshow-dots .dot.active { 
    opacity: 1; 
    box-shadow: 0 6px 16px rgba(239,107,58,0.2); 
}

/* Responsive styles */
@media (max-width: 991px) {
    .slides { grid-template-columns: 1fr; }
    .slide { 
        height: auto;
        min-height: 600px;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .slide-media { 
        height: 300px;
    }
    .slide-media img { 
        height: 100%;
        border-radius: 6px;
        object-fit: cover;
    }
    .slide-content { 
        height: 300px;
        min-height: 300px;
        display: grid;
        place-items: center;
    }
    .dark-card {
        height: 100%;
        min-height: 300px;
        width: 100%;
    }
    .slide-content-inner {
        padding: 2rem;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .slideshow-inner { 
        position: static; 
        height: auto; 
        overflow: visible; 
    }
    .slides { 
        transform: none !important; 
        transition: none !important; 
    }
    .slide { 
        display: block; 
        grid-template-columns: 1fr; 
        height: auto; 
        padding: 0; 
        margin-bottom: 1.25rem; 
    }
    .slide-media img { 
        width: 100%; 
        height: 200px; 
        object-fit: cover; 
    }
    .slide-content { 
        padding: 1rem; 
    }
    .slideshow-dots { 
        position: relative; 
        right: auto; 
        top: auto; 
        transform: none; 
        left: 50%; 
        bottom: auto; 
        justify-content: center; 
        align-items: center; 
        flex-direction: row; 
        gap: 0.5rem; 
        margin: 0.75rem auto 0 auto; 
    }
}

.content-card{
  background-color: #f17c1529;
  border: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.slide-content {
  background-color: #092428;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}