/* ============================================================
   SVA Course Categories — custom layout
   Used on: index.html, courses/index.html
   Brand: primary #1A1A1A  secondary/purple #51197C
          accent #D2B2EA   bg #EDF3F4  font Manrope
   ============================================================ */

/* ── wrapper injected into the page ──────────────────────────── */
.sva-cat-section {
  padding: 60px 0;
  background: #fff;
}

.sva-cat-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ── section header ───────────────────────────────────────────── */
.sva-cat-label {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #51197C;
  margin: 0 0 8px;
}

.sva-cat-heading {
  font-family: "Manrope", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.25;
  margin: 0 0 48px;
}

@media (max-width: 767px) {
  .sva-cat-heading { font-size: 26px; margin-bottom: 32px; }
}

/* ── category group headings (courses page tabs only) ────────── */
.sva-cat-group-title {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #51197C;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EDF3F4;
}

/* ── card grid (1 or 2 columns) ──────────────────────────────── */
.sva-cat-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;   /* default: 1 card */
}

.sva-cat-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .sva-cat-grid--two {
    grid-template-columns: 1fr;
  }
}

/* ── individual card ──────────────────────────────────────────── */
.sva-cat-card {
  background: #EDF3F4;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sva-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(81, 25, 124, 0.12);
}

/* ── image (fixed 3:2 ratio, covers the frame) ───────────────── */
.sva-cat-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #d8d8d8;
}

.sva-cat-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

/* ── card body ────────────────────────────────────────────────── */
.sva-cat-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* card title — used in courses page tabs; not shown on homepage grid */
.sva-cat-card-title {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sva-cat-desc {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

/* ── Enquire Now button ───────────────────────────────────────── */
.sva-cat-btn {
  display: inline-block;
  align-self: flex-start;
  background: #51197C;
  color: #fff !important;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 12px 28px;
  border-radius: 30px;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.3px;
}

.sva-cat-btn:hover {
  background: #3a1060;
  transform: translateY(-1px);
}

/* ── courses-page standalone (inside the tab) ────────────────── */
.sva-tab-cat-wrap {
  padding: 32px 0 12px;
}

/* Guarantee breathing room above the Enquire Now button in tab cards */
.sva-tab-cat-wrap .sva-cat-btn {
  margin-top: 24px;
}

/* Also increase the gap between desc and highlights */
.sva-tab-cat-wrap .sva-cat-desc {
  margin-bottom: 16px;
}

.sva-tab-cat-wrap .sva-cat-highlights {
  margin-bottom: 0;
}

/* sva-cat-highlights: course feature bullets in tab panes */
.sva-cat-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.sva-cat-highlights li {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  color: #51197C;
  padding: 3px 0 3px 18px;
  position: relative;
}
.sva-cat-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #51197C;
}

/* ── Mobile course tabs: horizontal single-row with short labels ──────────── */
.sva-tab-short { display: none; }

@media (max-width: 767px) {
  /* Show short labels, hide full labels */
  .elementor-189 .elementor-element-02be711 .sva-tab-full  { display: none; }
  .elementor-189 .elementor-element-02be711 .sva-tab-short { display: inline; }

  /* Hide globe icons on mobile */
  .elementor-189 .elementor-element-02be711 .elementskit-tab-icon { display: none !important; }

  /* Force single-row horizontal tab nav */
  .elementor-189 .elementor-element-02be711 .elementkit-tab-nav {
    flex-wrap: nowrap !important;
    width: 100%;
  }
  .elementor-189 .elementor-element-02be711 .elementkit-nav-item {
    flex: 1 1 0;
  }
  .elementor-189 .elementor-element-02be711 .elementkit-nav-link {
    padding: 10px 8px !important;
    font-size: 13px;
    justify-content: center;
    white-space: nowrap;
  }
}
