/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.cs-section {
  padding: 60px 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   HEADING
══════════════════════════════════════ */
.cs-heading {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #111111;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 48px 0;
}

[data-theme="dark"] .cs-heading {
  color: #ffffff;
}

/* ══════════════════════════════════════
   LOGO BAR — SWIPER WITH PROGRESS
══════════════════════════════════════ */

.cs-logo-bar {
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* NAVIGATION ARROWS - DESKTOP ONLY */
.cs-nav-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  z-index: 10;
}

.cs-nav-arrow:hover {
  background: rgba(0,0,0,0.08);
}

.cs-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

[data-theme="dark"] .cs-nav-arrow {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

[data-theme="dark"] .cs-nav-arrow:hover {
  background: rgba(255,255,255,0.12);
}

.cs-logos {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.cs-logos .swiper-wrapper {
  display: flex;
  align-items: center;
  transition-timing-function: linear;
}

/* PROGRESS BAR */
.cs-progress-container {
  height: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.cs-progress-bar {
  height: 100%;
  background: #7b4cfc !important;
  width: 0%;
  transition: width 0.15s ease-out;
  border-radius: 2px;
}

[data-theme="dark"] .cs-progress-container {
  background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .cs-progress-bar {
  background: #7b4cfc !important;
}

/* ══════════════════════════════════════
   TABS — SWIPER SLIDES
══════════════════════════════════════ */

.cs-tab {
  flex: 0 0 auto;
  width: 140px;
  height: 80px;
  background: transparent !important;
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  padding: 8px 12px;
  transition: background .25s ease, border-color .25s ease;
  margin-right: 12px;
}

.cs-tab:hover {
  background: rgba(76,167,159,0.08) !important;
  border-color: rgba(0,0,0,0.12);
}

.cs-tab.active {
  background: rgba(76,167,159,0.06) !important;
  border: 1px solid rgba(0,0,0,0.12);
  border-bottom: 2px solid #7b4cfc !important;
}

/* Remove border in dark mode */
[data-theme="dark"] .cs-tab {
  border: 1px solid transparent;
}

[data-theme="dark"] .cs-tab:hover {
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .cs-tab.active {
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid #7b4cfc !important;
}

/* LOGO IMAGES — LIGHT MODE: BLACK BY DEFAULT, COLOR ON HOVER/ACTIVE */
.cs-tab img {
  width: 120px;
  height: 48px;
  object-fit: contain;
  transition: opacity .3s ease, filter .3s ease;
  opacity: 0.75;
  filter: brightness(0);
}

.cs-tab:hover img,
.cs-tab.active img {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* DARK MODE: LOGOS WHITE BY DEFAULT, COLOR ON HOVER/ACTIVE */
[data-theme="dark"] .cs-tab img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

[data-theme="dark"] .cs-tab:hover img,
[data-theme="dark"] .cs-tab.active img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* WHITE LOGO TABS — light gray bg in light mode to prevent white elements from blending */
.cs-tab.has-white-logo {
  background: #f5f5f5 !important;
  border-radius: 12px;
}

.cs-tab.has-white-logo:hover,
.cs-tab.has-white-logo.active {
  background: #eeeeee !important;
}

/* WHITE LOGO TABS — dark bg in dark mode for visibility */
[data-theme="dark"] .cs-tab.has-white-logo {
  background: #1a1a1a !important;
}

/* Scale up tiny logos - can be controlled via custom class */
.cs-tab.scale-logo img {
  transform: scale(2.5) !important;
}

/* ══════════════════════════════════════
   CARDS — LIGHT MODE BASE
══════════════════════════════════════ */

.cs-card {
  display: none;
  animation: csFadeUp .4s ease both;
}
.cs-card.active { display: block; }

.cs-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 0;
  align-items: stretch;
  background: #ffffff !important;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.cs-grid > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.cs-grid-text {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff !important;
}

.cs-grid-text h2 {
  font-size: 20px;
  font-weight: 600;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111111 !important;
  margin: 0 0 16px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cs-grid-text p {
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #64748b !important;
  line-height: 1.625;
  margin: 0;
  letter-spacing: 0;
  font-weight: 400;
}

/* GRADIENT BUTTON — matching Elementor style */
.cs-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF !important;
  fill: #FFFFFF;
  background-image: linear-gradient(180deg, #5F40FF 0%, #9282E3 100%) !important;
  background-color: transparent !important;
  border-radius: 7px !important;
  padding: 10px 20px !important;
  text-decoration: none;
  border: none !important;
  box-shadow: none !important;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}

.cs-btn:hover {
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.2) !important;
  text-decoration: none;
  opacity: 1;
}

.cs-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,.15) !important;
}

/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */

[data-theme="dark"] .cs-grid {
  background: #232325 !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35) !important;
}

[data-theme="dark"] .cs-grid-text {
  background: #232325 !important;
}

[data-theme="dark"] .cs-grid-text h2 {
  color: #ffffff !important;
}

[data-theme="dark"] .cs-grid-text p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .cs-btn {
  color: #FFFFFF !important;
}

[data-theme="dark"] .cs-btn:hover {
  color: #000000 !important;
}

/* ══════════════════════════════════════
   ANIMATION
══════════════════════════════════════ */

@keyframes csFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   TABLET
══════════════════════════════════════ */

@media (max-width: 900px) {
  .cs-section { padding: 0px 0px; }
  
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-grid > img {
    height: 260px;
  }
  .cs-grid-text {
    padding: 28px 28px 32px;
    justify-content: flex-start;
  }
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */

@media (max-width: 768px) {
  .cs-heading { 
    font-size: 32px; 
    margin-bottom: 20px;
  }

  /* Hide navigation arrows on mobile */
  .cs-nav-arrow {
    display: none;
  }

  .cs-logo-bar {
    gap: 0;
  }

  .cs-tab {
    flex: 0 0 auto;
    width: 120px;
    height: 68px;
  }
  .cs-tab img {
    width: 90px;
    height: 36px;
    transform: none !important;
  }
  .cs-tab.scale-logo img {
    transform: scale(2.5) !important;
  }

  .cs-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .cs-grid > img {
    height: 185px;
    border-radius: 16px 16px 0 0;
  }
  .cs-grid-text {
    padding: 24px 20px;
    justify-content: flex-start;
  }
  .cs-grid-text h2 {
    font-size: 20px;
    font-weight: 600;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  .cs-grid-text p {
    font-size: 14px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.42 !important;
    color: #64748b !important;
    font-weight: 600 !important;
  }
}
