/* ================================================================
   CASES SLIDER — shared styles
   ================================================================ */

/* ── Variables ── */
:root {
  --about-max-width: 1400px;
  --about-blue: #268cf6;
  --about-blue-dark: #1a6fc4;
  --about-blue-deep: #0a2a4a;
  --about-accent: #c0de3d;
  --about-accent-hover: #b0cc36;
  --about-text: #0f172a;
  --about-text-secondary: #475569;
  --about-border: rgba(38, 140, 246, 0.12);
  --about-card-shadow: 0 4px 20px rgba(10, 42, 74, 0.04), 0 1px 3px rgba(10, 42, 74, 0.02);
  --about-card-shadow-hover: 0 16px 40px rgba(10, 42, 74, 0.08), 0 4px 12px rgba(38, 140, 246, 0.06);
  --about-radius: 24px;
  --about-radius-sm: 12px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
}

/* ── Headline subtitle full-width ── */
.landing-services-block .headline p {
  grid-column: 1 / -1;
  max-width: none;
  text-align: left;
}

/* ── Base ── */
.page-about-sections .about-container {
  width: min(var(--about-max-width), calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

/* ── Section header ── */
.page-about-sections .about-sec-head {
  text-align: center;
  margin-bottom: var(--s5);
  position: relative;
}

.page-about-sections .about-sec-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(192, 222, 61, 0.2);
  color: #4a5c0d;
  border: 1px solid rgba(192, 222, 61, 0.4);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
  transition: transform 0.3s ease;
}

.page-about-sections .about-sec-label:hover {
  transform: translateY(-2px);
}

.page-about-sections .about-sec-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--about-blue-deep);
}

.page-about-sections .about-sec-desc {
  margin: 16px auto 0;
  max-width: 56ch;
  text-align: center;
  color: var(--about-text-secondary);
  font-size: 18px;
  line-height: 1.5;
}

/* ── Cases block ── */
.page-about-sections .about-cases-block {
  padding: 40px 0;
  background: radial-gradient(circle at top right, #f4f8ff 0%, #ffffff 100%);
  position: relative;
}

.page-about-sections .about-cases-block .about-container {
  width: min(85rem, calc(100% - 40px));
}

.page-about-sections .about-cases-slider {
  margin-top: var(--s4);
}

.page-about-sections .about-cases-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.page-about-sections .about-cases-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(38, 140, 246, 0.4);
  background: #ffffff;
  color: #0a2a4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 42, 74, 0.12);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-about-sections .about-cases-arrow:hover:not(:disabled) {
  background: var(--about-blue);
  border-color: var(--about-blue);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(38, 140, 246, 0.25);
  transform: translateY(-2px);
}

.page-about-sections .about-cases-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f8fafc;
}

/* ── Viewport & Track ── */
.page-about-sections .about-cases-viewport {
  overflow: hidden;
  padding: 10px 0 30px;
  margin: -10px 0 -30px;
}

.page-about-sections .about-cases-list {
  margin-top: 0;
  display: flex;
  gap: var(--s4);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* ── Pagination ── */
.page-about-sections .about-cases-pagination {
  margin-top: var(--s2);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-about-sections .about-cases-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: rgba(38, 140, 246, 0.2);
  transition: all 0.3s ease;
}

.page-about-sections .about-cases-dot.is-active {
  width: 32px;
  background: var(--about-blue);
}

/* ── Case Card ── */
.page-about-sections .about-case-card {
  flex: 0 0 calc((100% - var(--s4)) / 2);
  background: #ffffff;
  border: 1px solid var(--about-border);
  border-radius: var(--about-radius);
  overflow: hidden;
  box-shadow: var(--about-card-shadow);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.page-about-sections .about-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--about-card-shadow-hover);
  border-color: rgba(38, 140, 246, 0.25);
}

.page-about-sections .about-case-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.page-about-sections .about-case-media img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.page-about-sections .about-case-card:hover .about-case-media img {
  transform: scale(1.03);
}

.page-about-sections .about-case-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 42, 74, 0.6) 100%);
  pointer-events: none;
}

.page-about-sections .about-case-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--about-accent);
  color: var(--about-blue-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-about-sections .about-case-body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-about-sections .about-case-body h3 {
  margin: 0;
  color: var(--about-blue-deep);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
}

.page-about-sections .about-case-body p {
  margin: 12px 0 0;
  color: var(--about-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.page-about-sections .about-case-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-about-sections .about-case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--about-radius-sm);
  padding: 0 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.page-about-sections .about-case-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--about-blue) 0%, var(--about-blue-dark) 100%);
  box-shadow: 0 10px 24px rgba(38, 140, 246, 0.25);
  flex: 1;
}

.page-about-sections .about-case-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(38, 140, 246, 0.35);
  background: linear-gradient(135deg, #3a98f7 0%, var(--about-blue) 100%);
}

/* ── Responsive ── */
@media (max-width: 360px) {
  .page-about-sections .about-sec-title {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .page-about-sections .about-cases-list {
    gap: var(--s3);
  }
  .page-about-sections .about-case-card {
    flex: 0 0 calc((100% - var(--s3)) / 2);
  }
}

@media (max-width: 900px) {
  .page-about-sections .about-cases-list {
    grid-template-columns: 1fr;
  }
  .page-about-sections .about-case-card {
    flex-basis: 100%;
  }
  .page-about-sections .about-sec-title {
    font-size: clamp(28px, 5.5vw, 40px);
  }
}

@media (max-width: 640px) {
  .page-about-sections .about-sec-head {
    margin-bottom: var(--s4);
  }
  .page-about-sections .about-sec-desc {
    font-size: 16px;
    margin-top: 12px;
  }
  .page-about-sections .about-container {
    padding: 0 16px;
  }
  .page-about-sections .about-cases-block .about-container {
    width: min(var(--about-max-width), calc(100% - 28px));
  }
  .page-about-sections .about-case-media img {
    height: 220px;
  }
  .page-about-sections .about-case-body {
    padding: 24px;
  }
  .page-about-sections .about-case-body h3 {
    font-size: 22px;
  }
  .page-about-sections .about-case-body p {
    font-size: 15px;
  }
  .page-about-sections .about-case-actions {
    flex-direction: column;
  }
  .page-about-sections .about-case-btn {
    width: 100%;
  }
  .page-about-sections .about-cases-controls {
    justify-content: center;
  }
  .page-about-sections .about-cases-arrow {
    width: 44px;
    height: 44px;
  }
  .page-about-sections .about-cases-slider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "viewport viewport viewport"
      "prev pagination next";
    row-gap: 14px;
    align-items: center;
  }
  .page-about-sections .about-cases-viewport {
    grid-area: viewport;
  }
  .page-about-sections .about-cases-controls {
    display: contents;
    margin-bottom: 0;
  }
  .page-about-sections [data-cases-prev] {
    grid-area: prev;
    justify-self: start;
  }
  .page-about-sections [data-cases-next] {
    grid-area: next;
    justify-self: end;
  }
  .page-about-sections .about-cases-pagination {
    grid-area: pagination;
    margin-top: 0;
  }
}
