/* ================================================================
   Teaching Basis page  —  page-templates/teaching-basis.php
   ================================================================ */


.pb-container {
  padding: 0;
}
@media (max-width: 991px) {
  .pb-container {
    padding: 0 20px !important;
  }
}

/* ── Shared helpers ────────────────────────────────────────────── */

/* ── 1. Hero ─────────────────────────────────────────────────── */
.tb-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #C8E8F5 0%, #EBF6FF 65%, #FFFFFF 100%);
  min-height: 680px;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 100px;
  margin-top: 0;
}
@media (max-width: 991px) {
  .tb-hero {
    min-height: 0;
    padding-top: 110px;
    padding-bottom: 80px;
  }
}
@media (max-width: 767px) {
  .tb-hero {
    padding-top: 90px;
    padding-bottom: 60px;
  }
}
@media (max-width: 568px) {
  .tb-hero {
    padding-top: 80px;
    padding-bottom: 50px;
  }
}
.tb-hero .pb-container {
  position: relative;
  z-index: 1;
}

.tb-hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: bottom;
  z-index: 0;
  pointer-events: none;
  max-height: 55%;
}
@media (max-width: 767px) {
  .tb-hero-bg {
    max-height: 35%;
  }
}

.tb-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.tb-hero-desc {
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .tb-hero-desc {
    margin-bottom: 28px;
  }
}

.tb-hero-btn {
  max-width: 280px;
  margin: 0 auto;
}
@media (max-width: 568px) {
  .tb-hero-btn {
    max-width: 100%;
  }
}

/* ── 2. Smarter Way ─────────────────────────────────────────── */
.tb-smarter-way {
  padding: 100px 0;
  background: #ECF7FF;
}
@media (max-width: 991px) {
  .tb-smarter-way {
    padding: 70px 0;
  }
}
@media (max-width: 767px) {
  .tb-smarter-way {
    padding: 52px 0;
  }
}
.tb-smarter-way .tb-sw-content p {
  margin-bottom: 16px;
}
.tb-smarter-way .tb-sw-content p:last-child {
  margin-bottom: 0;
}

.tb-sw-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(12, 29, 61, 0.08);
}
.tb-sw-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 3. Pillars ─────────────────────────────────────────────── */
.tb-pillars {
  padding: 100px 0;
  background: #FFFFFF;
}
@media (max-width: 991px) {
  .tb-pillars {
    padding: 70px 0;
  }
}
@media (max-width: 767px) {
  .tb-pillars {
    padding: 52px 0;
  }
}

.tb-pillars-image-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(12, 29, 61, 0.08);
}
.tb-pillars-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.tb-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.tb-pillars-list::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #4D89C7 0, #4D89C7 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
@media (max-width: 767px) {
  .tb-pillars-list::before {
    display: none;
  }
}

.tb-pillar-card {
  background: #FFFFFF;
  border: 1px solid #EBE9E6;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0px 4px 10px 0px rgba(8, 26, 73, 0.04);
  position: relative;
  z-index: 1;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.tb-pillar-card:hover {
  border-color: #4D89C7;
  box-shadow: 0 6px 20px rgba(26, 76, 139, 0.1);
}

.tb-pillar-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #1A4C8B;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  font-family: "PT Serif", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tb-pillar-body {
  flex: 1;
}

.tb-pillar-content { margin: 0; }

.tb-pillar-illustration img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

/* ── 4. Techniques ──────────────────────────────────────────── */
.tb-techniques {
  padding: 100px 0;
  background: #ECF7FF;
}
@media (max-width: 991px) {
  .tb-techniques {
    padding: 70px 0;
  }
}
@media (max-width: 767px) {
  .tb-techniques {
    padding: 52px 0;
  }
}

.tb-techniques-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #EBE9E6;
  border-radius: 8px;
  box-shadow: 0px 4px 10px 0px rgba(8, 26, 73, 0.04);
}

.tb-techniques-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
}

.tb-techniques-head th {
  font-family: "PT Serif", serif;
  font-size: 16px;
  font-weight: 700;
  color: #0C1D3D;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 2px solid #EBE9E6;
  background: #F5F8FD;
  white-space: nowrap;
}
.tb-techniques-head th:first-child {
  border-radius: 8px 0 0 0;
}
.tb-techniques-head th:last-child {
  border-radius: 0 8px 0 0;
}

.tb-techniques-row td {
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid #EBE9E6;
  font-size: 15px;
  color: #6D6969;
  line-height: 1.6;
  background: #FFFFFF;
}
.tb-techniques-row td:first-child {
  font-weight: 700;
  color: #0C1D3D;
  font-family: "PT Serif", serif;
  font-size: 15px;
  white-space: nowrap;
  width: 22%;
}
.tb-techniques-row:last-child td {
  border-bottom: none;
}
.tb-techniques-row:last-child td:first-child {
  border-radius: 0 0 0 8px;
}
.tb-techniques-row:last-child td:last-child {
  border-radius: 0 0 8px 0;
}
.tb-techniques-row:nth-child(even) td {
  background: #FAFBFE;
}

/* ── 5. Validated ───────────────────────────────────────────── */
.tb-validated {
  padding: 100px 0;
  background: #FFFFFF;
}
@media (max-width: 991px) {
  .tb-validated {
    padding: 70px 0;
  }
}
@media (max-width: 767px) {
  .tb-validated {
    padding: 52px 0;
  }
}

.tb-quote-card {
  background: #FFFFFF;
  border: 1px solid #EBE9E6;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0px 4px 10px 0px rgba(8, 26, 73, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.tb-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 76, 139, 0.1);
}

.tb-quote-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}
.tb-quote-stars svg {
  flex-shrink: 0;
}

.tb-quote-mark {
  margin-bottom: 12px;
}

.tb-quote-text {
  font-size: 17px;
  line-height: 1.65;
  color: #6D6969;
  font-style: italic;
  flex: 1;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}
@media (max-width: 767px) {
  .tb-quote-text {
    font-size: 15px;
  }
}

.tb-quote-author {
  font-weight: 700;
  color: #0C1D3D;
  font-size: 15px;
  font-family: "SFProText", sans-serif;
}

.tb-quote-role {
  font-size: 13px;
  color: #6D6969;
}

.tb-quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #EBF6FF;
  flex-shrink: 0;
}

.tb-quote-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ECF7FF;
  border: 2px solid #EBF6FF;
  color: #1A4C8B;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 6. Knowledge Library ───────────────────────────────────── */
.tb-library {
  padding: 100px 0;
  background: #ECF7FF;
}
@media (max-width: 991px) {
  .tb-library {
    padding: 70px 0;
  }
}
@media (max-width: 767px) {
  .tb-library {
    padding: 52px 0;
  }
}

.tb-tabs {
  display: flex;
  border-bottom: 2px solid #EBE9E6;
  margin-bottom: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tb-tabs::-webkit-scrollbar {
  display: none;
}

.tb-tab-btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: "SFProText", sans-serif;
  color: #6D6969;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease;
}
.tb-tab-btn:hover {
  color: #1A4C8B;
}
.tb-tab-btn.active {
  color: #1A4C8B;
  border-bottom-color: #1A4C8B;
}
@media (max-width: 568px) {
  .tb-tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

.tb-tab-panel {
  display: none;
}
.tb-tab-panel.active {
  display: block;
}

.tb-books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .tb-books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 991px) {
  .tb-books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 568px) {
  .tb-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 380px) {
  .tb-books-grid {
    grid-template-columns: 1fr;
  }
}

.tb-book-card {
  background: #FFFFFF;
  border: 1px solid #EBE9E6;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 4px 10px 0px rgba(8, 26, 73, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.tb-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 76, 139, 0.1);
}

.tb-book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.tb-book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #ECF7FF 0%, #EBF6FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-book-cover-placeholder svg {
  opacity: 0.4;
}

.tb-book-info {
  padding: 12px 14px;
}

.tb-book-title {
  font-family: "PT Serif", serif;
  font-size: 13px;
  font-weight: 700;
  color: #0C1D3D;
  margin-bottom: 4px;
  line-height: 1.35;
}

.tb-book-author {
  font-size: 12px;
  color: #6D6969;
  line-height: 1.4;
}

/* ── 7. Featured Quote ──────────────────────────────────────── */
.tb-featured-quote {
  padding: 80px 0;
  background: #0C1D3D;
}
@media (max-width: 767px) {
  .tb-featured-quote {
    padding: 52px 0;
  }
}
.tb-featured-quote .pb-container {
  padding: 0;
}
@media (max-width: 991px) {
  .tb-featured-quote .pb-container {
    padding: 0 20px !important;
  }
}

.tb-fq-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.tb-fq-mark {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.tb-fq-text {
  font-family: "PT Serif", serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0 0 24px;
  border: none;
  padding: 0;
}
@media (max-width: 991px) {
  .tb-fq-text {
    font-size: 22px;
  }
}
@media (max-width: 767px) {
  .tb-fq-text {
    font-size: 18px;
  }
}

.tb-fq-author {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  font-style: normal;
  font-family: "SFProText", sans-serif;
}

/* ── 8. CTA ─────────────────────────────────────────────────── */
.tb-cta {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #EBF6FF 100%);
}
@media (max-width: 991px) {
  .tb-cta {
    padding: 70px 0 100px;
  }
}
@media (max-width: 767px) {
  .tb-cta {
    padding: 52px 0 80px;
  }
}

.tb-cta-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  max-height: 45%;
}
@media (max-width: 767px) {
  .tb-cta-bg {
    max-height: 25%;
    opacity: 0.6;
  }
}

.tb-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.tb-cta-btn {
  max-width: 280px;
  margin: 0 auto;
}
@media (max-width: 568px) {
  .tb-cta-btn {
    max-width: 100%;
  }
}

/* ── Responsive adjustments ─────────────────────────────────── */
@media (max-width: 767px) {
  .tb-pillars-list::before {
    display: none;
  }
  .tb-pillar-card .pb-flex {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 568px) {
  .tb-hero-inner {
    text-align: left;
  }
  .tb-hero-btn {
    margin-left: 0;
  }
  .tb-cta-inner {
    text-align: left;
  }
  .tb-cta-btn {
    margin-left: 0;
  }
  .tb-cta-desc {
    margin-left: 0;
  }
}
