/* ═══════════════════════════════════════════════════════════════
   Sectors Carousel — WordPress Theme Styles
   ═══════════════════════════════════════════════════════════════ */

.sectors-carousel .carousel-section {
  width: 100%;
  background-color: white;
  padding: 0 0 3rem;
}

.sectors-carousel .carousel-header {
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.sectors-carousel .carousel-title {
  font-size: 2.25rem;
  color: #111827;
}

.sectors-carousel .carousel-wrapper {
  position: relative;
}

.sectors-carousel .carousel-container {
  overflow: hidden;
  padding-right: 80px; /* desktop peek amount */
}

/* Tune peek by breakpoint */
@media (max-width: 1024px) {
  .sectors-carousel .carousel-container { padding-right: 48px; }
}
@media (max-width: 640px) {
  .sectors-carousel .carousel-container { padding-right: 24px; }
}


.sectors-carousel .carousel-track {
  display: flex;
  /* gap and transform are set by JS */
}

.sectors-carousel .carousel-slide {
  min-width: 0;
}

/* Failsafe: ensure slides are visible even if JS sizing fails */
.sectors-carousel .carousel-slide {
  flex: 0 0 320px;
  min-width: 280px;
}

/* Safe: visible by default */
.sectors-carousel .carousel-section {
  opacity: 1;
}

/* Optional: if JS adds .is-ready, we can fade-in */
.sectors-carousel .carousel-section.is-ready {
  opacity: 1;
}

@media (max-width: 640px) {
  .sectors-carousel .carousel-slide {
    flex-basis: 80vw;
    min-width: 240px;
  }
}


/* ── Navigation Arrows ─────────────────────────────────── */

.sectors-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  background-color: white;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background-color: #f9fafb;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow svg {
  color: #1f2937;
  transition: color 0.2s ease;
}

.carousel-arrow:hover svg {
  color: #000000;
}

.carousel-arrow-prev { left: 8px; }
.carousel-arrow-next { right: 8px; }

@media (min-width: 640px) {
  .carousel-arrow-prev { left: 16px; }
  .carousel-arrow-next { right: 16px; }
}

@media (min-width: 1024px) {
  .carousel-arrow-prev { left: 32px; }
  .carousel-arrow-next { right: 32px; }
}

@media (min-width: 1280px) {
  .carousel-arrow-prev { left: 56px; }
  .carousel-arrow-next { right: 56px; }
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
  .carousel-header {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .carousel-title {
    font-size: 1.5rem;
  }
}

/* ── Sector Card ───────────────────────────────────────── */

.sector-card {
  position: relative;
  display: block;
  height: 20rem;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  text-decoration: none; /* for <a> cards */
  color: inherit;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .sector-card { height: 28rem; }
}

@media (min-width: 1025px) {
  .sector-card { height: 20rem; }
}

.sector-card-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sector-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
  -webkit-user-drag: none;
  user-select: none;
}

.sector-card:hover .sector-card-image {
  transform: scale(1.1);
}

/* Blue overlay — left-to-right on hover */
.sector-card-overlay-blue {
  position: absolute;
  inset: 0;
  background-color: #231F2030; /* 30% opacity */
  transform: translateX(-100%);
  transition: transform 0.7s ease-out;
  pointer-events: none;
}

.sector-card:hover .sector-card-overlay-blue {
  transform: translateX(0);
}

/* Dark gradient for text readability */
.sector-card-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

/* Card content */
.sector-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.sector-card-title {
  color: white;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 640px) {
  .sector-card-content { padding: 1rem; }
  .sector-card-title   { font-size: 1rem; }
}

@media (max-width: 480px) {
  .sector-card-title { font-size: 0.9rem; }
}