/* =====================================================
   Edzorb Law · "Experience Edzorb Law" tabs section
   Sits right after "Edzorb features".
   Mobile first: base styles are the phone design (up to 425px).
   ===================================================== */

.experience {
  --exp-cyan: #00A8D0;               /* logo cyan */
  padding: 40px 0 44px;
  /* background: linear-gradient(180deg, var(--sky-light) 0%, #F2FAFF 100%); */
  scroll-margin-top: 62px;
}

.experience-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.14;
}

/* ---------- Tabs (pills, scroll sideways inside their own row) ---------- */
.exp-tabs {
  display: flex;
  gap: 10px;
  margin: 20px calc(var(--gutter) * -1) 0;
  padding: 6px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.exp-tabs::-webkit-scrollbar {
  display: none;
}

.exp-tab {
  flex: 0 0 auto;
  /* min-height: 44px; */
  padding: 10px 20px;
  border: 1.5px solid rgb(0 90 141 / 27%);
  border-radius: 999px;
  background: #fff;
  /* color: var(--muted); */
  font: 700 15px Lato, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .2s, color .2s, box-shadow .2s;
}

.exp-tab:hover {
  color: var(--navy);
}

.exp-tab[aria-selected="true"] {
  background-color: #ffb514;
  border-color: var(--exp-cyan);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 6px 16px -10px rgba(0, 168, 208, .9);
}

/* ---------- Panel ---------- */
.exp-panel {
  margin-top: 18px;
}

.exp-panel[hidden] {
  display: none;
}

/* the blue card that holds the picture */
.exp-stage {
  position: relative;
  padding: 0px 0px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--navy-hi) 0%, #0A86B8 55%, var(--exp-cyan) 100%);
  box-shadow: var(--shadow-card);
}

.exp-track {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.exp-track::-webkit-scrollbar {
  display: none;
}

.exp-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* every picture sits in the same 720 x 1024 frame, so nothing jumps between tabs */
.exp-frame {
  aspect-ratio: 720 / 1024;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
}

.exp-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* arrows sit on the edges of the card (visible on phone too) */
.exp-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .2s;
}

.exp-arrow:hover {
  transform: scale(1.06);
}

.exp-arrow img {
  width: 18px;
  height: 18px;
}

.exp-prev { left: -52px; }
.exp-next { right: -52px; }

/* only one picture in this tab: no arrows, no dots */
.exp-panel.is-single .exp-arrow,
.exp-panel.is-single .exp-dots {
  display: none;
}

.exp-dots {
  margin-top: 14px;
}

/* ---------- Text under the card ---------- */
.exp-caption {
  margin-top: 16px;
  text-align: center;
}

.exp-caption-title {
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}

.exp-caption-text {
  margin: 6px auto 0;
  max-width: 340px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Tablet and desktop (601px and up) ---------- */
@media (min-width: 601px) {
  .experience {
    padding: 56px 0 60px;
  }

  .experience-title {
    font-size: 34px;
  }

  .exp-tabs {
    justify-content: center;
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .exp-stage {
    max-width: 460px;
    margin: 0 auto;
  }

  .exp-caption-title {
    font-size: 22px;
  }
}

@media (min-width: 961px) {
  .experience-title {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-tab,
  .exp-arrow {
    transition: none;
  }

  .exp-arrow:hover {
    transform: none;
  }
}

.exp-stage {
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding: 0;
  border-radius: 30px;
  border: 2px solid transparent;

  background:
    linear-gradient(
      180deg,
      var(--navy-hi) 0%,
      #0A86B8 55%,
      var(--exp-cyan) 100%
    ) padding-box,
    linear-gradient(
      135deg,
      #007BFF 0%,
      #FF69B4 33%,
      #FF9800 66%,
      #FF3030 100%
    ) border-box;

  box-shadow: var(--shadow-card);
}




/* ========================================= */






/* =====================================
   Experience section - feature cards
   ===================================== */

.exp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  width: 100%;
}

.exp-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 165px;
  padding: 18px 10px;
  border: 1px solid rgba(237, 164, 4, 0.2);
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 5px 14px rgba(1, 50, 78, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exp-feature-card img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.exp-feature-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.exp-feature-qbank {
  background: #e4f0ff;
}

.exp-feature-mains {
  background: #f0e5ff;
}

.exp-feature-mentor {
  background: #ffead9;
}

.exp-feature-visual {
  background: #ddf5e9;
}

.exp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(1, 50, 78, 0.12);
}

@media (min-width: 768px) {
  .exp-feature-grid {
    gap: 18px;
  }

  .exp-feature-card {
    min-height: 180px;
  }

  .exp-feature-card h3 {
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .exp-feature-grid {
    gap: 10px;
  }

  .exp-feature-card {
    min-height: 145px;
    padding: 14px 7px;
    border-radius: 20px;
  }

  .exp-feature-card img {
    width: 48px;
    height: 48px;
  }

  .exp-feature-card h3 {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-feature-card {
    transition: none;
  }

  .exp-feature-card:hover {
    transform: none;
  }
}

/* ==========================================
   Free Resources Tabs - Yellow Variation
   ========================================== */

/* Inactive tabs */
.resources .resource-tab,
.resources .tab-btn {
  background: #fff;
  color: #111;
  border: 1px solid #b7d5e8;
  border-radius: 999px;
  transition: all 0.25s ease;
}

/* Active tab - Yellow fill */
.resources .resource-tab.active,
.resources .tab-btn.active,
.resources .resource-tab[aria-selected="true"],
.resources .tab-btn[aria-selected="true"] {
  background: #ffb514;
  color: #000;
  border: 1.5px solid #00a8d0;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(0, 168, 208, 0.18);
}

/* Hover effect */
.resources .resource-tab:hover,
.resources .tab-btn:hover {
  border-color: #00a8d0;
  color: #01324e;
}

/* Active tab hover */
.resources .resource-tab.active:hover,
.resources .tab-btn.active:hover,
.resources .resource-tab[aria-selected="true"]:hover,
.resources .tab-btn[aria-selected="true"]:hover {
  background: #ffc533;
  color: #000;
}

/* Keyboard focus */
.resources .resource-tab:focus-visible,
.resources .tab-btn:focus-visible {
  outline: 3px solid #eda404;
  outline-offset: 3px;
}
