/* ============================================================
   about.css — styles ONLY for about.php
   Loaded in addition to style.css. Does NOT modify anything
   in style.css (nav, footer, header, hero, etc.).
   ============================================================ */

/* ── PAGE BANNER ─────────────────────────────────────────── */
.page-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #1a2a3a;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: brightness(0.65);
}

.page-banner-title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 18px 40px;
  font-size: 28px; /* Increased from 26px */
  font-weight: 700;
  color: #fff;
}

/* ── QUICK LINKS BAR ─────────────────────────────────────── */
.quick-links-bar {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  padding: 16px 0;
}

.quick-links-inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.quick-links-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-links-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: #aaa;
  flex-shrink: 0;
}

.quick-tab {
  background: none;
  border: none;
  font-size: 16.5px;
  font-weight: 500;
  color: #333;
  padding: 8px 14px; /* Increased vertical padding for better touch targets */
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  flex: none;
  text-align: center;
}

.quick-tab:hover {
  color: #1A427E;
}

.quick-tab.active {
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .about-us-grid {
    grid-template-columns: 1fr;
  }

  .about-highlight-wrap {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .page-banner {
    height: 160px;
  }

  .page-banner-title {
    font-size: 22px;
    padding: 12px 20px;
  }

  /* Quick links responsive fixes */
  .quick-links-inner {
    flex-direction: column; /* Stack vertically on mobile */
    align-items: stretch; /* Stretch to full width */
    gap: 8px;
  }

  .quick-links-label {
    margin-bottom: 4px;
    justify-content: center; /* Center the label with its line */
  }

  .quick-links-label::before {
    width: 40px; /* Slightly longer line for better visual balance */
  }

  .quick-tab {
    font-size: 15px; /* Slightly smaller than desktop but still readable */
    padding: 10px 12px; /* Larger touch target for mobile */
    text-align: left; /* Left align for better readability in stack */
    border-bottom: 1px solid #e8ecf0; /* Add separator between stacked tabs */
    width: 100%; /* Full width */
    flex: none; /* Remove flex:1 behavior */
  }

  .quick-tab:last-child {
    border-bottom: none; /* Remove border from last item */
  }

  .quick-tab.active {
    text-decoration: none; /* Remove underline on mobile */
    background: #f0f4f9; /* Light background to indicate active state */
    border-radius: 6px; /* Rounded corners for active state */
  }

  .timeline-cols {
    grid-template-columns: 1fr;
  }

  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exec-last-row {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .advisory-table th:nth-child(2),
  .advisory-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 480px) {
  .exec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exec-last-row {
    grid-template-columns: 1fr;
  }
  
  /* Even smaller screens */
  .quick-tab {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* ── TAB SHOW / HIDE ─────────────────────────────────────── */
.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

/* ── TAB 1 · ABOUT US ────────────────────────────────────── */
.about-us-wrap {
  background: #edf2f8;
  padding: 50px 0 60px;
}

/* Heading sits above the grid */
.about-content-tag {
  display: inline-block;
  background: #1A427E;
  color: #fff;
  padding: 7px 20px;
  border-radius: 25px;
  font-size: 15px; /* Increased from 13px */
  font-weight: 600;
  margin-bottom: 14px;
}

.about-main-heading {
  font-family: 'Merriweather', serif;
  font-size: 30px; /* Increased from 28px */
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-us-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.about-img-box {
  border-radius: 100px 12px 100px 12px;
  overflow: hidden;
  background: #c8d8ea;
  min-height: 280px;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  padding-top: 4px;
}

.about-body {
  font-size: 16px; /* Increased from 14px */
  color: #444;
  line-height: 1.8;
  margin: 0;
}

/* Highlight box: offset to align under the right text column */
.about-highlight-wrap {
  /* Push it right to align under the text column */
  margin-left: calc((100% / 2.3) + 20px);
  margin-top: 24px;
}

.about-highlight {
  background: #1A427E;
  color: #c8d8f0;
  padding: 22px 26px;
  border-radius: 12px 12px 100px 12px;
  font-size: 15.5px; /* Increased from 13.5px */
  line-height: 1.75;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .about-us-grid {
    grid-template-columns: 1fr;
  }

  .about-highlight-wrap {
    margin-left: 0;
  }
}

/* ── TAB 2 · OUR JOURNEY ─────────────────────────────────── */
.journey-intro-wrap {
  background: #edf2f8;
  padding: 50px 0 44px;
}

.journey-intro-wrap h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px; /* Increased from 30px */
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 18px;
}

.journey-intro-wrap p {
  font-size: 16.5px; /* Increased from 14.5px */
  color: #333;
  line-height: 1.8;
  max-width: 900px;
}

.timeline-wrap {
  background: #1A427E;
  padding: 50px 0 60px;
}

.timeline-wrap h2 {
  font-family: 'Merriweather', serif;
  font-size: 30px; /* Increased from 28px */
  font-weight: 900;
  color: #fff;
  margin-bottom: 38px;
}

.timeline-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
}

.t-col {
  display: flex;
  flex-direction: column;
}

.t-year-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px; /* Increased from 22px */
  font-weight: 800;
  color: #D9C512;
  margin-bottom: 12px;
  position: relative;
}

.t-dot {
  width: 18px;
  height: 18px;
  background: #D9C512;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

/* Vertical line flowing down from the dot */
.t-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0.5px;
  background: #fff;
  /* Extend far enough to run alongside all cards below */
  height: 180px;
}

/* For columns with 2 year sections, the first dot line should be shorter */
.t-year-row--spaced .t-dot::after {
  height: 0px;
}

.t-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.t-card h4 {
  font-size: 16px; /* Increased from 14px */
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.t-card p {
  font-size: 15px; /* Increased from 13px */
  color: #555;
  line-height: 1.55;
}

.t-spacer {
  margin-top: 38px;
}

.t-spacer-sm {
  margin-top: 20px;
}

/* ── TAB 3 · EXECUTIVE COMMITTEE MEMBERS ────────────────── */
.exec-wrap {
  background: #fff;
  padding: 50px 0 60px;
}

.exec-heading {
  text-align: center;
  margin-bottom: 6px;
}

.exec-heading h2 {
  font-size: 25px; /* Increased from 23px */
  font-weight: 700;
  color: #1A427E;
}

.exec-sub {
  text-align: center;
  font-size: 16px; /* Increased from 14px */
  color: #666;
  margin-bottom: 30px;
}

.exec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.exec-card {
  background: #edf3fb;
  border: 1px solid #dce8f5;
  border-radius: 6px;
  padding: 15px 14px;
  text-align: center;
}

.exec-card .m-name {
  font-size: 16px; /* Increased from 14px */
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.exec-card .m-role {
  font-size: 14.5px; /* Increased from 12.5px */
  color: #666;
}

.exec-last-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 68%;
  margin: 0 auto 40px;
}

/* Advisory Board */
.advisory-title {
  font-size: 22px; /* Increased from 20px */
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
}

.advisory-table {
  width: 100%;
  border-collapse: collapse;
}

.advisory-table thead tr {
  border-bottom: 2px solid #e0e5ee;
}

.advisory-table th {
  text-align: left;
  padding: 11px 18px;
  font-size: 16px; /* Increased from 14px */
  font-weight: 700;
  color: #1a1a1a;
}

.advisory-table th.th-country {
  text-align: right;
}

.advisory-table td {
  padding: 12px 18px;
  font-size: 15.5px; /* Increased from 13.5px */
  color: #333;
  border-bottom: 1px solid #edf0f5;
}

.advisory-table td.td-country {
  text-align: right;
  font-size: 14px; /* Increased from 12px */
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advisory-table tr:last-child td {
  border-bottom: none;
}

.advisory-table tr:hover td {
  background: #f8faff;
}

/* ── TAB 4 · OUR COMMITMENTS ─────────────────────────────── */
.commitments-wrap {
  background: #fff;
  padding: 50px 0 60px;
}

/* Make commitments section wider */
.commitments-wrap .container {
  max-width: 1300px;
  /* increase width */
}

.commitments-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.commitments-left h2 {
  font-family: 'Merriweather', serif;
  font-size: 30px; /* Increased from 28px */
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.commitments-left p {
  font-size: 16.5px; /* Increased from 14.5px */
  color: #333;
  line-height: 1.8;
}

.commitments-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.commit-btn {
  display: block;
  width: 100%;
  background: #1A427E;
  color: #fff;
  padding: 13px 24px;
  border-radius: 30px;
  font-size: 16px; /* Increased from 14px */
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.commit-btn:hover {
  background: #15336a;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .about-us-grid {
    grid-template-columns: 1fr;
  }

  .timeline-cols {
    grid-template-columns: 1fr 1fr;
  }

  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exec-last-row {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .commitments-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .page-banner {
    height: 160px;
  }

  .page-banner-title {
    font-size: 22px; /* Increased from 20px */
    padding: 12px 20px;
  }

  .timeline-cols {
    grid-template-columns: 1fr;
  }

  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exec-last-row {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-tab {
    font-size: 14.5px; /* Increased from 12.5px */
    padding: 4px 8px;
  }

  .advisory-table th:nth-child(2),
  .advisory-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 480px) {
  .exec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exec-last-row {
    grid-template-columns: 1fr;
  }
}