/* ============================================
   Advisory Board Page — Modern Redesign
   Matches news-page.css & modern-home.css palette
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;600;700&display=swap");

/* ---- Page background ---- */
.ab-page {
  background: #f4f1eb !important;
  padding-top: 0 !important;
}

/* ---- Page Header ---- */
.ab-page-header {
  background: linear-gradient(135deg, #800000 0%, #440306 100%);
  padding: 3.5rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ab-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.ab-page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.ab-page-header h1 {
  color: #f5e6a3;
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.ab-header-accent {
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f5e6a3, #d4af37);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

/* ---- Layout wrapper ---- */
.ab-body {
  padding: 2.5rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ---- Sidebar ---- */
.ab-sidebar-col {
  flex: 0 0 240px;
  min-width: 0;
}

/* Bootstrap's col-sm-4 adds float + 33% width — neutralise inside flex */
.ab-sidebar-col .col-sm-4 {
  width: 100%;
  float: none;
  padding: 0;
}

/* ---- Main content ---- */
.ab-main-col {
  flex: 1;
  min-width: 0;
}

/* ---- Year Tabs ---- */
.ab-year-tabs {
  display: flex !important;
  list-style: none;
  padding: 0;
  margin: 0 0 0 !important;
  gap: 4px;
  border-bottom: 2px solid #800000 !important;
}

.ab-year-tabs > li > a {
  display: block;
  padding: 13px 32px !important;
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #800000 !important;
  background: rgba(128, 0, 0, 0.05);
  border: 1px solid rgba(128, 0, 0, 0.2) !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

.ab-year-tabs > li > a:hover {
  background: rgba(128, 0, 0, 0.1) !important;
  color: #6b0000 !important;
}

.ab-year-tabs > li.active > a,
.ab-year-tabs > li.active > a:hover,
.ab-year-tabs > li.active > a:focus {
  background: #800000 !important;
  color: #f5e6a3 !important;
  border-color: #800000 !important;
  border-bottom: none !important;
  cursor: default;
}

/* ---- Standalone content card (pages without year tabs) ---- */
.ab-content-card {
  background: #ffffff;
  border: 1px solid rgba(128, 0, 0, 0.15);
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

/* ---- Tab Content Card ---- */
.ab-tab-content {
  background: #ffffff;
  border: 1px solid rgba(128, 0, 0, 0.15);
  border-top: none;
  border-radius: 0 8px 12px 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.ab-pane-inner {
  padding: 2rem 2.25rem 2.25rem;
}

/* ---- Intro text (centred bold line at top of each pane) ---- */
.ab-intro {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  color: #4a4a4a;
  line-height: 1.9;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

/* ---- Section label (e.g. "අනුශාසක මණ්ඩලය") ---- */
.ab-section-label {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #800000;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-section-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, rgba(212, 175, 55, 0.5), transparent);
  border-radius: 1px;
}

.ab-section-label:first-of-type {
  margin-top: 0;
}

/* ---- Tables ---- */
.ab-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.ab-table thead tr th {
  background: #800000;
  color: #f5e6a3;
  padding: 14px 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  font-size: 1.45rem;
}

.ab-table tbody tr td {
  padding: 14px 20px;
  color: #333;
  vertical-align: middle;
  border-bottom: 1px solid rgba(128, 0, 0, 0.07);
}

.ab-table tbody tr:nth-child(even) td {
  background: rgba(212, 175, 55, 0.05);
}

.ab-table tbody tr:last-child td {
  border-bottom: none;
}

.ab-table tbody tr:hover td {
  background: rgba(128, 0, 0, 0.04);
  transition: background 0.15s ease;
}

.ab-table small {
  font-size: 1.1rem;
  color: #888;
  display: block;
  margin-top: 2px;
}

/* ---- 2023/2024 free-text content ---- */
.ab-text-block {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1.9;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}

.ab-text-block:last-child {
  margin-bottom: 0;
}

.ab-text-block b {
  color: #800000;
  font-weight: 700;
}

/* ---- Objectives list ---- */
.ab-list {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1.9;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.ab-list li {
  margin-bottom: 0.75rem;
}

.ab-list li:last-child {
  margin-bottom: 0;
}

/* ---- Download button ---- */
.ab-download-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #800000 0%, #6b0000 100%);
  color: #f5e6a3;
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ab-download-btn:hover,
.ab-download-btn:focus {
  background: linear-gradient(135deg, #6b0000 0%, #550000 100%);
  color: #fff7cc;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ab-body {
    flex-direction: column;
    padding: 1.5rem 1.25rem 3rem;
  }

  .ab-sidebar-col {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ab-page-header h1 {
    font-size: 1.6rem;
  }

  .ab-page-header {
    padding: 2.5rem 1rem 2rem;
  }

  .ab-year-tabs > li > a {
    padding: 11px 18px !important;
    font-size: 1.3rem;
  }

  .ab-pane-inner {
    padding: 1.25rem 1rem 1.5rem;
  }
}
