/* ================================================================
   Ajanta BOD Table v2 — Basel-proof stylesheet
   All critical rules use !important to override Basel/WPBakery.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;500;700&display=swap');

/* ── Scoped reset: everything inside our wrapper ─────────────── */
.ajanta-bod-wrap,
.ajanta-bod-wrap *,
.ajanta-bod-wrap *::before,
.ajanta-bod-wrap *::after {
  box-sizing: border-box !important;
}

/* ── Outer wrapper ───────────────────────────────────────────── */
.ajanta-bod-wrap {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
  color: #2c2c2c !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 40px 20px 52px !important;
  background: transparent !important;
}

/* ── Section heading ─────────────────────────────────────────── */
.ajanta-bod-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 36px !important;
}
.ajanta-bod-header__line {
  flex: 1 !important;
  height: 2px !important;
  background: #C8973A !important;
  opacity: .45 !important;
  border-radius: 2px !important;
  display: block !important;
}
.ajanta-bod-header__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: #1B2A4A !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* ── Table wrapper ───────────────────────────────────────────── */
.ajanta-bod-table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 10px !important;
  border: 1px solid #e8ddd0 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 28px rgba(27,42,74,.12) !important;
}

/* ── Table reset ─────────────────────────────────────────────── */
table.ajanta-bod-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ══ THEAD — full navy background (Basel-proof) ══════════════════ */
table.ajanta-bod-table thead,
table.ajanta-bod-table thead tr,
table.ajanta-bod-table > thead,
table.ajanta-bod-table > thead > tr {
  background-color: #1B2A4A !important;
  background: #1B2A4A !important;
}

table.ajanta-bod-table thead th,
table.ajanta-bod-table > thead > tr > th {
  background-color: #1B2A4A !important;
  background: #1B2A4A !important;
  color: #f0c870 !important;
  font-family: 'Lato', Arial, sans-serif !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  padding: 18px 24px !important;
  text-align: left !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

table.ajanta-bod-table thead th.col-action,
table.ajanta-bod-table > thead > tr > th.col-action {
  text-align: center !important;
}

/* ══ TBODY rows ═════════════════════════════════════════════════ */
table.ajanta-bod-table tbody tr,
table.ajanta-bod-table > tbody > tr {
  border-bottom: 1px solid #e8ddd0 !important;
  transition: background .25s ease, box-shadow .25s ease !important;
  background: #ffffff !important;
}
table.ajanta-bod-table tbody tr:last-child,
table.ajanta-bod-table > tbody > tr:last-child {
  border-bottom: none !important;
}
table.ajanta-bod-table tbody tr:nth-child(even),
table.ajanta-bod-table > tbody > tr:nth-child(even) {
  background: #FBF7F0 !important;
}
table.ajanta-bod-table tbody tr:hover,
table.ajanta-bod-table > tbody > tr:hover {
  background: #fef9f0 !important;
  box-shadow: 0 2px 16px rgba(200,151,58,.14) !important;
}

/* ══ TBODY cells ════════════════════════════════════════════════ */
table.ajanta-bod-table tbody td,
table.ajanta-bod-table > tbody > tr > td {
  padding: 20px 24px !important;
  vertical-align: middle !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  font-size: .95rem !important;
  line-height: 1.4 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Index column ────────────────────────────────────────────── */
table.ajanta-bod-table .col-index {
  width: 64px !important;
}

.ajanta-bod-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #C8973A !important;
  color: #ffffff !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 2px 8px rgba(200,151,58,.35) !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

/* ── Title column ────────────────────────────────────────────── */
table.ajanta-bod-table .col-title {
  width: auto !important;
}

.ajanta-bod-title {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #1B2A4A !important;
  display: block !important;
  transition: color .25s ease !important;
  font-family: 'Lato', Arial, sans-serif !important;
}
table.ajanta-bod-table tbody tr:hover .ajanta-bod-title {
  color: #C8973A !important;
}

/* ── Action column ───────────────────────────────────────────── */
table.ajanta-bod-table .col-action {
  width: 170px !important;
  text-align: center !important;
}

/* ══ DOWNLOAD BUTTON (gold #f3bf45, Basel-proof) ════════════════ */
.ajanta-bod-wrap .ajanta-bod-btn,
.ajanta-bod-wrap a.ajanta-bod-btn,
.ajanta-bod-wrap span.ajanta-bod-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  background: #f3bf45 !important;
  background-color: #f3bf45 !important;
  color: #1B2A4A !important;
  font-family: 'Lato', Arial, sans-serif !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(243,191,69,.35) !important;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.ajanta-bod-wrap .ajanta-bod-btn svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.ajanta-bod-wrap .ajanta-bod-btn:hover,
.ajanta-bod-wrap a.ajanta-bod-btn:hover,
.ajanta-bod-wrap .ajanta-bod-btn:focus {
  background: #e6b030 !important;
  background-color: #e6b030 !important;
  color: #1B2A4A !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 20px rgba(243,191,69,.45) !important;
}
.ajanta-bod-wrap .ajanta-bod-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(243,191,69,.25) !important;
}

/* ── Scroll-in animation ─────────────────────────────────────── */
.ajanta-bod--animate table.ajanta-bod-table tbody tr {
  opacity: 0 !important;
  transform: translateY(14px) !important;
  transition: opacity .45s ease var(--row-delay, 0ms),
              transform .45s ease var(--row-delay, 0ms),
              background .25s ease,
              box-shadow .25s ease !important;
}
.ajanta-bod--animate.is-visible table.ajanta-bod-table tbody tr {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Mobile: card stack ──────────────────────────────────────── */
@media (max-width: 640px) {
  .ajanta-bod-header {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .ajanta-bod-header__title {
    white-space: normal !important;
    font-size: 1.2rem !important;
    text-align: center !important;
  }
  .ajanta-bod-header__line {
    width: 50px !important;
    flex: none !important;
  }
  .ajanta-bod-table-wrap {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
  }
  table.ajanta-bod-table thead {
    display: none !important;
  }
  table.ajanta-bod-table,
  table.ajanta-bod-table tbody,
  table.ajanta-bod-table tbody tr,
  table.ajanta-bod-table tbody td {
    display: block !important;
    width: 100% !important;
  }
  table.ajanta-bod-table tbody tr {
    border-bottom: 2px solid #C8973A !important;
    padding: 4px 0 !important;
  }
  table.ajanta-bod-table tbody td {
    padding: 8px 16px !important;
    text-align: left !important;
  }
  table.ajanta-bod-table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    font-size: .63rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
    color: #7a7060 !important;
    margin-bottom: 4px !important;
  }
  table.ajanta-bod-table .col-action {
    text-align: left !important;
  }
}
