body.page-template-template-csr-program {visibility: hidden; overflow: visible;}
body.page-template-template-csr-program.loaded {visibility: visible;}

/* ==========================================================================
   CSR PROGRAM Page Styles
   ========================================================================== */

.page-template-template-csr-program .breadcrumb {
  z-index: 1;
}

.page-template-template-csr-program .banner { 
  position: relative;
  overflow: hidden;
  --header: 157px;
  top: calc(var(--header) * -1);
  padding-top: calc(var(--header) + 24px);
  margin-bottom: calc(var(--header) * -1);
  text-align: center;
  color: #fff;
  padding-bottom: 96px;
}

.page-template-template-csr-program .banner .background {
  position: absolute;
  inset: 0;
}

.page-template-template-csr-program .banner .background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-template-template-csr-program .banner .background:after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(3deg, rgba(0, 0, 0, 0.00) 22.7%, rgba(0, 0, 0, 0.65) 97.4%), linear-gradient(180deg, rgba(0, 0, 0, 0.00) 13.47%, rgba(0, 0, 0, 0.65) 100%);
}

.page-template-template-csr-program .banner .container p:has(strong) {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 44px;
}

/* ========================================
   TAB NAVIGATION - Overlaps Hero
   ======================================== */

.csr-program-tabs .container {
  width: 80%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Tab Wrapper */
.csr-program-tab-wrapper {
  display: flex;
  gap: 18px;
  padding: 30px;
  border-bottom: 1px solid transparent;
  border-image-source: linear-gradient(90deg, rgba(255, 110, 0, 0) 0%, rgba(255, 110, 0, 1) 57%, rgba(255, 110, 0, 0) 100%);
  border-image-slice: 1;
  margin-bottom: 42px;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #fff;
  border-radius: 10px;
}

.csr-program-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  border: 1px solid #8d8d8d;
  background: #fff;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.csr-program-tab-item span {
  color: #737373;
}
.csr-program-tab-item.active span {
  color: #FF6E00;
  font-weight: 600;
}

.csr-program-tab-item.active {
  background: #FFF1E6;
  border-color: rgba(255, 110, 0, 0.35);
}

.csr-program-tab-item i {
  font-size: 16px;
}

/* ========================================
   MAIN CONTENT SECTION
   ======================================== */

.csr-program-content-box {
  position: relative;
  z-index: 0;
  top: -30px;
}

/* Safety containment: ensure content (images, paragraphs, tables) cannot
   visually escape the main card. Keep box-sizing and wrap long words. */
/* .csr-program-content-box,
.csr-program-full-content {
  box-sizing: border-box;
  overflow: hidden;
} */
.csr-program-content-box img,
.csr-program-content img,
figure.wp-block-table.solution-table img,
.solution-table img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure table-based solution cells wrap long text and don't overflow */
figure.wp-block-table.solution-table td,
.solution-table td {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Defensive: make sure figures and tables inside the content respect container */
.csr-program-content-box figure,
.csr-program-content-box table,
.csr-program-content figure,
.csr-program-content table {
  max-width: 100%;
  box-sizing: border-box;
}

/* ========================================
   LAYOUT GRID - Sidebar + Content
   ======================================== */

.csr-program-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 32px;
  align-items: start;
  padding-left: 30px;
  padding-right: 30px;
}
.csr-program-layout.no-children {
  display: block;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.csr-program-sidebar {
  padding: 0;
  position: sticky;
  top: 149px;
}

.csr-program-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e0e0e0;
}

.csr-program-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.csr-program-nav-list li {
  border-bottom: 1px solid #e0e0e0;
}

.csr-program-nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.csr-program-nav-list a:hover {
  background: #f5f5f5;
  color: #333;
}

.csr-program-nav-list a.active {
  background: transparent;
  color: #FF6E00;
}

.csr-program-nav-list a .icon-active {
  display: none;
}

.csr-program-nav-list a.active .icon-active {
  display: block;
}

.csr-program-nav-list a.active .icon-inactive {
  display: none;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.csr-program-content {
  padding: 0;
}

.csr-program-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #105962;
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.csr-program-content h2,
.csr-program-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 32px 0 16px 0;
  line-height: 1.4;
}

.csr-program-content > p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.csr-program-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

/* ========================================
   FULL WIDTH LAYOUT (No Sidebar)
   ======================================== */

.csr-program-full-content {
  padding: 0;
}

.csr-program-full-content h1,
.csr-program-full-content h2,
.csr-program-full-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #105962;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.csr-program-full-content > p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ========================================
   STATS ROW
   ======================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #FF6E00;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   VILLAGES GRID (22 Villages)
   ======================================== */

.villages-intro {
  margin-bottom: 32px;
}

.villages-intro h2 {
  font-size: 28px;
  font-weight: 700;
  color: #105962;
  margin: 0 0 12px 0;
}

.villages-intro p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.villages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.village-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.village-card:hover {
  border-color: #FF6E00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.village-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.village-card-icon i {
  color: #FF6E00;
  font-size: 32px;
}

.village-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.village-card p {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px 0;
}

.village-district {
  display: inline-block;
  font-size: 11px;
  color: #999;
  background: #e0e0e0;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ========================================
   BEST PRACTICES GRID
   ======================================== */

.best-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.best-practice-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.best-practice-card:hover {
  border-color: #FF6E00;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.best-practice-card-image {
  height: 180px;
  overflow: hidden;
}

.best-practice-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.best-practice-card-content {
  padding: 20px;
}

.best-practice-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #FF6E00;
  background: rgba(255, 110, 0, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.best-practice-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.best-practice-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   5 PILLARS FEATURE SECTION
   ======================================== */

.pillars-5-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
  align-items: center;
}

.pillars-5-feature-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.pillars-5-feature-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
  .csr-program-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .csr-program-hero-wrapper {
    margin-top: -100px;
    padding-top: 100px;
  }
  
  .csr-program-hero {
    padding: 30px 0 50px;
  }
  
  .csr-program-hero h1 {
    font-size: 24px;
  }
  
  .csr-program-hero p {
    font-size: 13px;
  }
  
  .csr-program-tabs .container {
    width: 95%;
  }
  
  .csr-program-tab-wrapper {
    overflow-x: scroll;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px 0;
    margin-bottom: 0;
    border-radius: 0;
  }
  
  .csr-program-tab-item {
    white-space: nowrap;
  }
  
  .csr-program-content-box {
    top: 0;
  }
  
  .csr-program-layout {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }
  
  .pillars-5-feature {
    grid-template-columns: 1fr;
  }
  
  .villages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .best-practices-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .csr-program-hero-wrapper {
    margin-top: -84px;
    padding-top: 84px;
  }
  
  /* .csr-program-tab-item {
    flex: 1 1 100%;
  } */
  
  .villages-grid {
    grid-template-columns: 1fr;
  }
  
  .csr-program-breadcrumb ul {
    font-size: 11px;
  }
}

/* ==========================================================================
   EDUCATION PILLAR SPECIFIC STYLES
   ========================================================================== */

/* Challenge Items */
.education-challenges {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.challenge-item {
  display: flex;
  gap: 24px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  align-items: center;
}

.challenge-number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FF6E00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.challenge-content h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.challenge-content p {
  margin: 8px 0 0 0;
  color: #666;
  font-size: 14px;
}

/* Solution Box styles removed — presentation now handled by table-based styles
   or by content-level classes. */

/* ======= Table-based solution box (map table markup to same visual style) ======= */
/* Use class `solution-table` on the figure (Block → Advanced → Additional CSS class(es))
   Example: <figure class="wp-block-table solution-table"> ... */
figure.wp-block-table.solution-table,
.solution-table {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

figure.wp-block-table.solution-table table,
.solution-table table {
  width: 100%;
  border-collapse: separate;
  border: 0;
}

figure.wp-block-table.solution-table tbody,
.solution-table tbody {
  display: table-row-group;
}

figure.wp-block-table.solution-table td,
.solution-table td {
  padding: 8px 0;
  border: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

/* First cell (main paragraph) keep normal paragraph spacing */
figure.wp-block-table.solution-table tbody tr:first-child td,
.solution-table tbody tr:first-child td {
  padding-bottom: 12px;
}

/* Style the quote row to match `.solution-quote` */
/* Ensure the last row cell (quote) matches the `.solution-quote` styling
   whether the author used a plain text cell or a nested <blockquote>. */
figure.wp-block-table.solution-table tbody tr:last-child td,
.solution-table tbody tr:last-child td {
  display: block;
  margin: 0 auto;
  max-width: 900px;
  font-size: 15px;
  font-weight: 500;
  color: #105962;
  background: #E7EEEF;
  padding: 16px 24px;
  border-radius: 6px;
  text-align: center;
}

/* If the quote is wrapped in a <blockquote>, normalize its margins so the
   cell styles are visible and consistent. */
figure.wp-block-table.solution-table tbody tr:last-child td blockquote,
.solution-table tbody tr:last-child td blockquote {
  margin: 0;
  padding: 0;
  background: transparent;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

/* Keep responsive padding smaller on narrow screens */
@media (max-width: 768px) {
  figure.wp-block-table.solution-table,
  .solution-table {
    padding: 20px;
  }
  figure.wp-block-table.solution-table td,
  .solution-table td { font-size: 14px; }
}

/* Improve horizontal breathing room on medium-width laptops (e.g. 13") */
@media (min-width: 1000px) and (max-width: 1400px) {
  .csr-program-content-box,
  .csr-program-full-content {
    padding-left: 36px;
    padding-right: 56px;
  }
  .csr-program-content {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
  }
  figure.wp-block-table.solution-table,
  .solution-table {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* Ensure table cells have horizontal padding so text doesn't touch edges */
figure.wp-block-table.solution-table td,
.solution-table td {
  padding-left: 14px;
  padding-right: 14px;
}

/* Programs Grid */
.education-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.program-card {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.program-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #FF6E00;
}

.program-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.program-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 16px 0 12px 0;
}

.program-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Achievements Stats */
.education-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 40px 0;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
}

.achievement-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #FF6E00;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Impact Stories */
.education-impact-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.impact-story {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.impact-story h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #FF6E00;
}

.impact-story p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .education-programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .education-achievements {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .education-impact-stories {
    grid-template-columns: 1fr;
  }
  
  .challenge-item {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .education-programs-grid {
    grid-template-columns: 1fr;
  }
  
  .education-achievements {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .program-card {
    padding: 20px 16px;
  }
  
  .education-solution-box {
    padding: 20px;
  }
}

/* ==========================================================================
   EDUCATION GALLERY - Real Story From the Field
   ========================================================================== */

.education-gallery-wrapper {
  margin: 40px 0;
}

.education-gallery-page {
  margin-bottom: 32px;
}

.gallery-item {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Education Gallery Pagination */
.education-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

/* ===== Education Story Grid (table -> 2x3 paginated) ===== */
.education-story-grid { margin: 24px 0; width: 100%; }
.education-story-pages { width: 100%; }
.education-story-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; justify-items: stretch; }
.story-tile { display: block; width: 100%; padding: 0; }
.story-tile img { width: 100%; max-width: none; height: auto; display: block; object-fit: cover; border-radius: 8px; }

.edu-pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:16px; }
.edu-prev, .edu-next { background:#fff; border:1px solid #e0e0e0; width:36px; height:36px; padding:0; display:flex; align-items:center; justify-content:center; border-radius:6px; cursor:pointer; font-size:16px; }
.edu-dots { display:flex; gap:8px; }
.edu-dot { 
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #E0E0E0;
  color: #333;
  font-weight: 600;
  cursor: pointer;
}
.edu-dot.active { background: #FFEEE1; color: #FF6E00; border-color: #FFEEE1; box-shadow: none; }

@media (max-width: 1200px) {
  .education-story-page { gap: 16px; }
}
@media (max-width: 900px) {
  .education-story-page { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .story-tile img { height: auto; }
}
@media (max-width: 480px) {
  .education-story-page { grid-template-columns: 1fr 1fr; gap:10px; }
  .story-tile img { max-width: 100%; height: auto; margin: 0 }
  .edu-prev, .edu-next { width:36px; height:36px; padding:0; }
}

.education-pagination .page-arrow,
.education-pagination .page-num {
  background: #fff;
  border: 1px solid #E0E0E0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: all 0.15s ease;
}

.education-pagination .page-arrow:hover:not(.disabled),
.education-pagination .page-num:hover {
  border-color: #FF6E00;
  color: #FF6E00;
  background: #FFF5F0;
}

.education-pagination .page-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.education-pagination .page-num.active {
  background: #FFEEE1;
  color: #FF6E00;
  border-color: #FFEEE1;
  font-weight: 700;
}

@media (max-width: 768px) {
  .education-gallery-page {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .education-gallery-page {
    grid-template-columns: 1fr !important;
  }

  .gallery-item {
    height: 180px;
  }
}

/* Ensure header and dropdown sub-menus appear above main page content
   (fixes sub-menu being covered by page sections/cards). Increase header
   stacking and explicitly keep main CSR program sections beneath it. */
.site-header,
.header,
.site-header .header-inner,
.main-navigation,
.nav-primary {
  position: relative;
  z-index: 100000 !important;
}

.main-navigation .sub-menu,
.site-header .sub-menu,
.menu .sub-menu,
.sub-menu {
  position: absolute;
  z-index: 100001 !important;
}

/* Lower stacking for main CSR program sections so header/menu overlay works */
.csr-program-hero-wrapper,
.csr-program-hero,
.csr-program-tabs,
.csr-program-content-box,
.csr-program-layout,
.csr-program-full-content,
.pillars-5-feature,
.best-practices-grid,
.villages-grid,
.stats-row {
  position: relative;
  z-index: 0 !important;
}

/* Specific tab/button container sometimes floats above header; ensure it's under */
/* .csr-program-tab-wrapper,
.csr-program-tab-item {
  position: relative;
  z-index: 0 !important;
} */

/* Convert simple education tables into compact numbered cards
   Markup expected: figure.wp-block-table > table.has-fixed-layout
   Scopes to common CSR program content wrappers to avoid global table changes. */
.education-program-content .wp-block-table.has-fixed-layout,
.csr-program-content .wp-block-table.has-fixed-layout,
.csr-program-full-content .wp-block-table.has-fixed-layout,
.education-program-content figure.wp-block-table,
.csr-program-content figure.wp-block-table,
.csr-program-full-content figure.wp-block-table {
  width: 100%;
}
.education-program-content .wp-block-table.has-fixed-layout table,
.csr-program-content .wp-block-table.has-fixed-layout table,
.csr-program-full-content .wp-block-table.has-fixed-layout table {
  width: 100%;
  border: 0;
  border-collapse: separate;
}
.education-program-content .wp-block-table.has-fixed-layout thead,
.csr-program-content .wp-block-table.has-fixed-layout thead,
.csr-program-full-content .wp-block-table.has-fixed-layout thead {
  display: none;
}
.education-program-content .wp-block-table.has-fixed-layout tbody,
.csr-program-content .wp-block-table.has-fixed-layout tbody,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.education-program-content .wp-block-table.has-fixed-layout tbody tr,
.csr-program-content .wp-block-table.has-fixed-layout tbody tr,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody tr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.education-program-content .wp-block-table.has-fixed-layout tbody td:first-child,
.csr-program-content .wp-block-table.has-fixed-layout tbody td:first-child,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody td:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  background: #FF6E00;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.education-program-content .wp-block-table.has-fixed-layout tbody td:last-child,
.csr-program-content .wp-block-table.has-fixed-layout tbody td:last-child,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody td:last-child {
  color: #000000;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .education-program-content .wp-block-table.has-fixed-layout tbody tr,
  .csr-program-content .wp-block-table.has-fixed-layout tbody tr,
  .csr-program-full-content .wp-block-table.has-fixed-layout tbody tr {
    padding: 10px 12px;
    gap: 12px;
  }
  .education-program-content .wp-block-table.has-fixed-layout tbody td:first-child,
  .csr-program-content .wp-block-table.has-fixed-layout tbody td:first-child,
  .csr-program-full-content .wp-block-table.has-fixed-layout tbody td:first-child {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .education-program-content .wp-block-table.has-fixed-layout tbody td:last-child,
  .csr-program-content .wp-block-table.has-fixed-layout tbody td:last-child,
  .csr-program-full-content .wp-block-table.has-fixed-layout tbody td:last-child {
    font-size: 14px;
  }
}

/* Fallback: apply the same numbered-card styling when the table has the
   explicit class `education-challenges-table` (add this in Block → Advanced). */
.wp-block-table.education-challenges-table,
figure.wp-block-table.education-challenges-table {
  width: 100%;
}
.wp-block-table.education-challenges-table table {
  width: 100%;
  border: 0;
  border-collapse: separate;
}
.wp-block-table.education-challenges-table thead { display: none; }
.wp-block-table.education-challenges-table tbody {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.wp-block-table.education-challenges-table tbody tr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.wp-block-table.education-challenges-table tbody td:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  background: #FF6E00;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.wp-block-table.education-challenges-table tbody td:last-child {
  color: #000000;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .wp-block-table.education-challenges-table tbody tr { padding: 10px 12px; gap: 12px; }
  .wp-block-table.education-challenges-table tbody td:first-child { width: 40px; height: 40px; font-size: 14px; }
  .wp-block-table.education-challenges-table tbody td:last-child { font-size: 14px; }
}

  /* Education stats table: alternating left-cell boxes and fixed-number box on right
     Use class `education-stats-table` on the Table block (Block → Advanced).
     Fallback matches tables with inline background-color:#f1f1f1 inside CSR wrappers. */
  .wp-block-table.education-stats-table,
  figure.wp-block-table.education-stats-table,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"],
  .csr-program-full-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] {
    width: 100%;
    border-collapse: separate;
    border: 8px solid #ffffff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    margin: 18px 0;
  }
  .wp-block-table.education-stats-table table,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] table {
    width: 100%;
    border-collapse: separate;
  }
  .wp-block-table.education-stats-table tbody tr td,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] tbody tr td {
    padding: 12px 16px;
    vertical-align: middle;
  }

  /* Left column alternating box colors */
  .wp-block-table.education-stats-table tbody tr td:first-child,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] tbody tr td:first-child {
    background: #E7EEEF;
    color: #105962;
  }
  .wp-block-table.education-stats-table tbody tr:nth-child(even) td:first-child,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] tbody tr:nth-child(even) td:first-child {
    background: #B5CCCE;
  }

  /* Right column: single box color for numbers */
  .wp-block-table.education-stats-table tbody tr td:last-child,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] tbody tr td:last-child {
    background: #F1F1F1;
    color: #000000;
    text-align: center;
  }

  @media (max-width: 480px) {
    .wp-block-table.education-stats-table tbody tr td,
    .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] tbody tr td {
      padding: 10px 12px;
    }
  }

  /* Strong overrides to ensure the education-stats-table styling applies
     regardless of whether the class was added to the <figure> or the <table>. */
  figure.wp-block-table.education-stats-table > table,
  figure.wp-block-table.education-stats-table table,
  .wp-block-table.education-stats-table > table,
  table.education-stats-table {
    width: 100% !important;
    border-collapse: separate !important;
    border: 8px solid #ffffff !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
  }

  /* Make every stats table cell have a white separator so each box is outlined */
  figure.wp-block-table.education-stats-table table,
  table.education-stats-table,
  figure.wp-block-table.education-stats-table > table,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] table {
    border-spacing: 0 !important;
  }

  figure.wp-block-table.education-stats-table table,
  table.education-stats-table,
  figure.wp-block-table.education-stats-table > table,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  /* If the stats table is placed inside a page 'card' wrapper, make that
     wrapper visually transparent so the table appears standalone. Uses
     :has() where supported and fallbacks targeting the figure/table itself. */
  /* .csr-program-content-box:has(.education-stats-table),
  .csr-program-content-box:has(figure.wp-block-table.education-stats-table) {
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
    border: none !important;
    padding: 32px !important;
    border-radius: 12px !important;
  } */

  /* Fallbacks: remove background/shadow from the figure/table itself */
  figure.wp-block-table.education-stats-table,
  figure.wp-block-table.education-stats-table > table,
  .wp-block-table.education-stats-table,
  table.education-stats-table {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  /* If the table has been wrapped by an extra .wp-block-group or similar,
     ensure direct parent groups are also cleared when they contain the class. */
  .wp-block-group:has(.education-stats-table),
  .wp-block-group:has(figure.wp-block-table.education-stats-table) {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  /* Strong collapsed white borders on every cell */
  figure.wp-block-table.education-stats-table table tbody tr td,
  table.education-stats-table tbody tr td,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] table tbody tr td {
    border: 6px solid #ffffff !important;
    box-sizing: border-box !important;
    background-clip: padding-box !important;
  }

  /* Ensure header cells (if any) match the style */
  figure.wp-block-table.education-stats-table table thead th,
  table.education-stats-table thead th {
    border: 6px solid #ffffff !important;
  }

  /* Final enforcement: make every cell (th/td) show a thick white border
     regardless of where the class was placed. Put this at the end to win. */
  figure.wp-block-table.education-stats-table > table,
  figure.wp-block-table.education-stats-table table,
  .wp-block-table.education-stats-table > table,
  table.education-stats-table,
  .csr-program-content figure.wp-block-table.education-stats-table > table,
  .csr-program-full-content figure.wp-block-table.education-stats-table > table {
    border-collapse: collapse !important;
  }

  figure.wp-block-table.education-stats-table th,
  figure.wp-block-table.education-stats-table td,
  table.education-stats-table th,
  table.education-stats-table td,
  .csr-program-content figure.wp-block-table.education-stats-table th,
  .csr-program-content figure.wp-block-table.education-stats-table td {
    border: 8px solid #ffffff !important;
    padding: 12px 16px !important;
    background-clip: padding-box !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* If WP adds inner wrappers (groups) around the figure/table, ensure those
     inner backgrounds don't hide the white cell borders by adding inner padding. */
  figure.wp-block-table.education-stats-table,
  figure.wp-block-table.education-stats-table > table {
    background: transparent !important;
    margin: 12px 0 !important;
  }

  /* Remove double-border effect at table edges by collapsing inner cell borders visually
     while keeping the outer table white border prominent. */
  figure.wp-block-table.education-stats-table table tbody tr td:first-child,
  table.education-stats-table tbody tr td:first-child,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] table tbody tr td:first-child {
    border-left: 4px solid #ffffff !important;
  }
  figure.wp-block-table.education-stats-table table tbody tr td:last-child,
  table.education-stats-table tbody tr td:last-child,
  .csr-program-content .wp-block-table.has-background.has-fixed-layout[style*="background-color:#f1f1f1"] table tbody tr td:last-child {
    border-right: 4px solid #ffffff !important;
  }

  figure.wp-block-table.education-stats-table table tbody tr td:first-child,
  table.education-stats-table tbody tr td:first-child,
  figure.wp-block-table.education-stats-table tbody tr td:first-child {
    background: #E7EEEF !important;
    color: #000 !important;
  }
  figure.wp-block-table.education-stats-table table tbody tr:nth-child(even) td:first-child,
  table.education-stats-table tbody tr:nth-child(even) td:first-child {
    background: #B5CCCE !important;
  }

  figure.wp-block-table.education-stats-table table tbody tr td:last-child,
  table.education-stats-table tbody tr td:last-child {
    background: #F1F1F1 !important;
    color: #000000 !important;
    text-align: center !important;
  }

  /* Ensure cell padding/formatting also enforced */
  figure.wp-block-table.education-stats-table table tbody tr td,
  table.education-stats-table tbody tr td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border: none !important;
    text-align: center !important;
  }

/* Remove any leftover cell borders or background boxes that may show
   as black outlines around the challenge text. Keep spacing handled by TR. */
.education-program-content .wp-block-table.has-fixed-layout tbody td,
.csr-program-content .wp-block-table.has-fixed-layout tbody td,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody td,
.wp-block-table.education-challenges-table tbody td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Journey / Timeline Table for CSR Program pages (carousel-like cards) */
.csr-program-content .wp-block-table.journey-table {
  margin: 40px 0 !important;
  border: none !important;
  overflow: visible !important;
}

.csr-program-content .wp-block-table.journey-table figure { margin: 0 !important; }

.csr-program-content .wp-block-table.journey-table table {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  border: none !important;
  width: 100% !important;
  border-collapse: separate !important;
}

.csr-program-content .wp-block-table.journey-table thead { display: none !important; }

.csr-program-content .wp-block-table.journey-table tbody { display: contents !important; }

/* Each row becomes a horizontal card: image | years | points */
.csr-program-content .wp-block-table.journey-table tbody tr {
  display: grid !important;
  grid-template-columns: 300px 160px 1fr !important;
  gap: 32px !important;
  align-items: start !important;
  padding: 24px 0 !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

.csr-program-content .wp-block-table.journey-table tbody tr:last-child { border-bottom: none !important; padding-bottom: 0 !important; }

/* Image column */
.csr-program-content .wp-block-table.journey-table td:nth-child(1) {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  height: 220px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f5f5f5 !important;
  display: block !important;
}

.csr-program-content .wp-block-table.journey-table td:nth-child(1) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Years column - center with accent */
.csr-program-content .wp-block-table.journey-table td:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #FF6E00 !important;
  text-transform: uppercase !important;
}

/* Points / description column */
.csr-program-content .wp-block-table.journey-table td:nth-child(3) {
  padding: 0 !important;
  margin: 0 !important;
  color: #333 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* Decorative timeline dot (left of each card) */
.csr-program-content .wp-block-table.journey-table tbody tr::after {
  content: '' !important;
  position: absolute !important;
  left: 16px !important;
  top: 16px !important;
  width: 16px !important;
  height: 16px !important;
  background: #FF6E00 !important;
  border-radius: 50% !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 0 0 6px rgba(255,110,0,0.08) !important;
}

@media (max-width: 900px) {
  .csr-program-content .wp-block-table.journey-table tbody tr {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 18px 0 !important;
  }
  .csr-program-content .wp-block-table.journey-table td:nth-child(2) {
    justify-content: flex-start !important;
    font-size: 13px !important;
  }
  .csr-program-content .wp-block-table.journey-table td:nth-child(1) { height: 180px !important; }
}

/* Carousel styles for JS-driven slider */
.journey-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 8px 20px 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.journey-slider::-webkit-scrollbar { height: 10px; }
.journey-slide {
  flex: 0 0 94%;
  max-width: 980px;
  scroll-snap-align: center;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  padding: 8px 12px;
  display: grid;
  /* row 1 = year (full width), row 2 = image + points */
  grid-template-columns: min(380px, 45%) 1fr;
  /* row 1: (optional) year header; row 2: image + points; row 3: indicator */
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  align-items: start;
  box-sizing: border-box;
  /* min-width: 300px; */
}
.journey-slide-year { grid-column: 1 / -1; grid-row: 1; display:block; font-weight:700; color:#000; font-size:20px; margin:0 0 12px 0; text-align:center; }
.journey-slide-image { grid-column: 1; grid-row: 2; border-radius: 10px; overflow: hidden; background: transparent; align-self: start; }
.journey-slide-image img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.journey-slide-points { grid-column: 2; grid-row: 2; color:#333; line-height:1.7; }

/* Indicator below points: perfect circle and year text below it */
.journey-slide-indicator { display: none !important; }

/* Year spans full width above image+points */
/* Year appears above the points column (right side) on desktop.
   Render a perfect circular indicator above the year text. */
.journey-slide-year {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  text-align: center;
  z-index: 3;
}

/* Hide legacy timeline pseudo-elements (orange dots/lines)
   that are defined in other theme CSS (e.g. tentang-csr.css). */
.csr-main-content .wp-block-table.journey-table tbody tr::before,
.csr-main-content .wp-block-table.journey-table tbody tr::after,
.csr-program-content .wp-block-table.journey-table tbody tr::before,
.csr-program-content .wp-block-table.journey-table tbody tr::after {
  display: none !important;
  content: none !important;
}

/* Hide any remaining legacy timeline dots/lines coming from other theme CSS */
.wp-block-table.journey-table tbody tr::before,
.wp-block-table.journey-table tbody tr::after {
  display: none !important;
  content: none !important;
}

/* Ensure the year indicator bubble is positioned within the points column only */
/* .journey-slide { position: relative; } */
.journey-slide > .journey-slide-year { position: relative; left: 0; }
/* .journey-slide .journey-slide-points { position: relative; } */
.journey-slide-year::before { position: relative; display: block; margin: 0 auto; }

/* Circle bubble above the year text */

/* Year indicator removed per user request - hide any remaining elements */
.journey-slide-year { display: none !important; }
.journey-slide-year::before { display: none !important; content: none !important; }

/* Safe defaults to avoid overlap */
.journey-slide-year, .journey-slide-points { box-sizing: border-box; }
.journey-slide-year { background: transparent; }
.journey-slider-dots { display:flex; gap:18px; justify-content:center; margin-top:18px; align-items:flex-start; }
.journey-dot { background: transparent; border: none; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap:6px; cursor: pointer; }
.journey-dot:focus { outline: 2px solid rgba(16,89,98,0.12); outline-offset: 4px; }
.journey-dot .dot-circle { width: 48px; height: 48px; border-radius: 50%; background: #FF6E00; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(255,110,0,0.06); display:block; }
.journey-dot .journey-dot-year { display:block; color:#000; font-weight:700; font-size:13px; line-height:1; margin-top:4px; }
.journey-dot.active .dot-circle { box-shadow: 0 0 0 6px rgba(255,110,0,0.18); }

@media (max-width: 900px) {
  .journey-slide { flex: 0 0 96%; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding: 12px; }
  .journey-slide-image { grid-column: 1; grid-row: 2; height: auto; max-height: 320px; }
  .journey-slide-points { grid-column: 1; grid-row: 3; display:block; width:100%; margin-left:0; }
  .journey-slide-year { grid-column: 1; grid-row: 1; display:block; width:100%; margin-bottom:6px; }
  .journey-slide-indicator { grid-column: 1; grid-row: 4; }
  .journey-slide-indicator .indicator-circle { width: 44px; height: 44px; }
}

/* Prevent any accidental overflow from legacy table pseudo-elements */
.csr-program-content .wp-block-table.journey-table tbody tr::before,
.csr-program-content .wp-block-table.journey-table tbody tr::after {
  left: auto !important;
  display: none !important;
}

/* Ensure original table cannot force page width (hidden by JS but safer) */
.csr-program-content .wp-block-table.journey-table { max-width: 100% !important; overflow: hidden !important; }

/* Avoid body horizontal overflow caused by long slides */
.journey-slider { max-width: 100%; box-sizing: border-box; }
.journey-slider .journey-slide { max-width: 100%; }


/* Ensure paragraph margins inside cells don't create visual boxes */
.education-program-content .wp-block-table.has-fixed-layout tbody td > p,
.csr-program-content .wp-block-table.has-fixed-layout tbody td > p,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody td > p,
.wp-block-table.education-challenges-table tbody td > p {
  margin: 0;
}

/* Re-enable and protect the orange circular number badge for the first cell.
   This must come after the generic reset so it wins via specificity + !important. */
.education-program-content .wp-block-table.has-fixed-layout tbody td:first-child,
.csr-program-content .wp-block-table.has-fixed-layout tbody td:first-child,
.csr-program-full-content .wp-block-table.has-fixed-layout tbody td:first-child,
.wp-block-table.education-challenges-table tbody td:first-child {
  background: #FF6E00 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.csr-program-content.our-5-pillars {
  color: #000;
}
.csr-program-content.our-5-pillars h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #105962;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}
.csr-program-content.our-5-pillars h2+p {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 24px;
}
.csr-program-content.our-5-pillars p:has(strong) {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 8px;
}
.csr-program-content.our-5-pillars p:has(strong) strong {
  font-weight: 600;
}
.csr-program-content.our-5-pillars p:has(strong)+p {
  font-size: 12px;
  line-height: 18px;
}
.csr-program-content.our-5-pillars .wp-block-table th {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.csr-program-content.our-5-pillars .wp-block-table td {
  text-align: center;
  font-size: 16px;
}
.csr-program-content.our-5-pillars .wp-block-table th,
.csr-program-content.our-5-pillars .wp-block-table td {
  padding: 18px 24px;
  border: 4px solid #fff;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(1) th {
  background-color: #105962;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(2) th {
  background-color: #FF6F6E;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(3) th {
  background-color: #003B99;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(1) tr:nth-child(odd) td:first-child {
  background-color: #E7EEEF;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(1) tr:nth-child(even) td:first-child {
  background-color: #B5CCCE;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(2) tr:nth-child(odd) td:first-child {
  background-color: #FFE5E5;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(2) tr:nth-child(even) td:first-child {
  background-color: #FFC8C7;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(3) tr:nth-child(odd) td:first-child {
  background-color: #E6F0FF;
}
.csr-program-content.our-5-pillars .wp-block-table:nth-of-type(3) tr:nth-child(even) td:first-child {
  background-color: #CEE1FF;
}
.csr-program-content.our-5-pillars .wp-block-table td:first-child {
  font-weight: 500;
}
.csr-program-content.our-5-pillars .wp-block-table td:last-child {
  background-color: #F1F1F1;
}

#content-22-villages .content-block .wp-block-table th,
#content-22-villages .content-block>.wp-block-table td:last-child {
  display: none;
}

#content-22-villages .content-block .wp-block-table thead,
#content-22-villages .content-block .wp-block-table th,
#content-22-villages .content-block .wp-block-table td {
  border: 0;
}

#content-22-villages .content-block p:has(strong) {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 16px;
  color: #105962;
}

#content-22-villages .content-block p:has(strong) strong,
#content-22-villages .content-block p:has(strong) em {
  font-weight: 600;
  font-style: normal;
}

#content-22-villages .content-block p:has(strong)+p {
  line-height: 24px;
  margin-bottom: 24px;
}

#content-22-villages .villages-footer {
  display: inline-flex;
  gap: 80px;
  align-items: center;
  border-radius: 12px;
  background: #FF6E00;
  padding: 32px 40px;
  color: #fff;
  text-align: left;
}

#content-22-villages .villages-footer-wrapper {
  text-align: center;
}

#content-22-villages .villages-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

#content-22-villages .villages-footer-item img {
  width: 60px;
  height: 60px;
}

#content-22-villages .villages-footer-item .heading {
  font-size: 30px;
  line-height: 38px;
  margin-bottom: 4px;
  font-weight: 700;
}

#content-22-villages .villages-footer-item .desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

#content-22-villages .content-block>.wp-block-table td img {
  width: 100% !important;
}

#content-best-practices {

}

#content-best-practices p:has(strong) {
  color: #105962;
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 16px;
}

#content-best-practices .best-practice-main-wrapper {
  display: grid;
  grid-template-columns: 2.24fr 1fr;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 32px;
  height: 458px;
}

#content-best-practices .best-practice-main:first-child {
  grid-row: 1/3;
  grid-column: 1;
}

#content-best-practices .best-practice-main {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
}

#content-best-practices .best-practice-main .background {
  position: absolute;
  inset: 0;
}

#content-best-practices .best-practice-main .background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

#content-best-practices .best-practice-main .background:after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 28.6%, #000 100%);
}

#content-best-practices .best-practice-main .content {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

#content-best-practices .best-practice-main .title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 14px;
  color: #fff;
}

#content-best-practices .best-practice-main:first-child .title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 10px;
}

#content-best-practices .best-practice-main:not(:first-child) .desc {
  display: none;
}

#content-best-practices .best-practice-main .desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;      /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 12px;
  line-height: 18px;
  color: #E5E5E5;
  margin-bottom: 10px;
}

#content-best-practices .best-practice-main .date {
  color: #C9C9C9;
  font-size: 12px;
}

#content-best-practices .latest-header {
  color: #202020;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  margin-bottom: 16px;
}

#content-best-practices .best-practice-small-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 16px;
  margin-top: 16px;
}

#content-best-practices .best-practice-small {
  border-radius: 14px;
  border: 1px solid #E2E3EA;
  background: #FFF;
  padding: 8px;
}

#content-best-practices .best-practice-small .attachment-post-thumbnail {
  aspect-ratio: 1.77;
  width: 100%;
  object-fit: cover;
  margin-top: 0;
  margin-bottom: 16px;
}

#content-best-practices .best-practice-small .content {
  padding: 0 8px;
}

#content-best-practices .best-practice-small .title {
  color: #000;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 4px;
}

#content-best-practices .best-practice-small .date {
  color: #525252;
  font-size: 10px;
}

#content-best-practices .best-practice-small .desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 12px;
  line-height: 18px;
  color: #313131;
  margin-bottom: 16px;
}

.page-template-template-csr-program .pagination {
    display: flex;
    width: fit-content;
    column-gap: 20px;
    align-items: center;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
    margin-bottom: 32px;
}
.page-template-template-csr-program .pagination .pages {display: flex; column-gap: 6px;}
.page-template-template-csr-program .pagination .prev,
.page-template-template-csr-program .pagination .next {
    font-size: 0;
    padding: 4px;
    border-radius: 6px;
    background-color: #F2F2F2;
    color: #CCCCCC;
    cursor: pointer;
}
.page-template-template-csr-program .pagination .prev.active,
.page-template-template-csr-program .pagination .next.active {background-color: #FF6E00; color: #fff;}
.page-template-template-csr-program .pagination .page-item {
    color: #737373;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}
.page-template-template-csr-program .pagination .page-item.active {color: #FF6E00; background-color: #FFEEE1;}

.page-template-template-csr-program .inactive-page,
.page-template-template-csr-program .inactive-filter {
    display: none !important;
}

.page-template-template-csr-program .wp-block-table.education-stats-table td:empty {padding: 1px !important;}
.page-template-template-csr-program .wp-block-table.education-stats-table tr:has(td:empty)+tr>td:nth-child(1) {background-color: #FFD2B0 !important;}
.page-template-template-csr-program .wp-block-table.education-stats-table tr:has(td:empty)+tr>td:nth-child(2) {background-color: #FFF1E6 !important;}

#content-our-5-pillars p:has(strong) {
  font-size: 24px;
  line-height: 32px;
  color: #105962;
  margin-bottom: 16px;
}
#content-our-5-pillars p:has(strong) em {
  font-style: normal;
}
#content-our-5-pillars p:has(strong)+p {
  font-size: 14px;
  line-height: 20px;
  color: #000;
  margin-bottom: 24px;
}
#content-our-5-pillars .card-bg {
  position: absolute;
  inset: 0;
}
#content-our-5-pillars .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#content-our-5-pillars .card-bg:after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.75) 100%);
}
#content-our-5-pillars .card-item .content {
  position: relative;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 45px 1fr;
  column-gap: 16px;
}
#content-our-5-pillars .card-item .content .logo {
  grid-row: 1/3;
  grid-column: 1;
  align-self: center;
  width: 100%;
}
#content-our-5-pillars .card-item .content .heading {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}
#content-our-5-pillars .card-item .content .desc {
  font-size: 14px;
  line-height: 20px;
}

#content-our-5-pillars .card-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

#content-our-5-pillars .card-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3/2;
  color: #fff;
  cursor: pointer;
}

#content-our-5-pillars .card-item:nth-child(-n+3) {
  grid-column: span 2;
}

/* Row 2: Each item spans 3 columns (3/6 = 50%) */
#content-our-5-pillars .card-item:nth-child(n+4) {
  grid-column: span 3;
  aspect-ratio: 2.3;
}

@media (max-width: 768px) {
  .page-template-template-csr-program .banner {
    /* --header: 128px; */
    padding-top: calc(var(--header));
    padding-bottom: 20px;
  }

  .page-template-template-csr-program .banner .container p:has(strong) {
    font-size: 24px;
    line-height: 32px;
  }

  .page-template-template-csr-program .banner .container {
    font-size: 12px;
    line-height: 18px;
  }

  .page-template-template-csr-program .csr-program-sidebar-nav {
    display: none;
  }

  .csr-program-sidebar {
    padding-top: 24px;
    background-color: #fff;
    top: 104px;
  }

  .slider-wrapper {
    width: 95vw;
  }

  .journey-slider {
    padding: 0;
  }

  .journey-slide {
    padding: 0;
    gap: 0;
  }

  .journey-slide-points ul {
    margin: 0;
    padding-inline-start: 16px;
  }

  .csr-program-content h1 {
    font-size: 20px;
    line-height: 30px;
  }

  .csr-program-content p,
  .csr-program-content li {
    font-size: 12px;
    line-height: 18px;
  }

  .education-stats-table {
    font-size: 12px;
  }

  .csr-program-content.our-5-pillars .wp-block-table th {
    font-size: 14px;
    padding: 8px;
  }
  .csr-program-content.our-5-pillars .wp-block-table td {
    font-size: 12px;
    padding: 8px;
  }
  .csr-program-content.our-5-pillars h2 {
    font-size: 20px;
  }

  #content-22-villages {
    padding-top: 20px;
    padding-bottom: 32px;
  }
  #content-22-villages .content-block p:has(strong) strong,
  #content-22-villages .content-block p:has(strong) em {
    font-size: 20px;
  }
  #content-22-villages .content-block p:has(strong)+p {
    font-size: 14px;
    line-height: 20px;
  }

  #content-22-villages .villages-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 24px;
    padding: 16px 24px;
  }

  #content-22-villages .content-block>.wp-block-table td:first-child {
    display: none;
  }

  #content-22-villages .content-block>.wp-block-table td:last-child {
    display: table-cell;
  }

  #content-22-villages .villages-footer-item img {
    display: none;
  }

  #content-22-villages .villages-footer-item .heading {
    font-size: 24px;
    line-height: 28px;
  }

  #content-22-villages .villages-footer-item .desc {
    font-size: 12px;
    line-height: 18px;
  }

  #content-22-villages .villages-footer-item:nth-child(3) {
    grid-column: 1/3;
  }

  #content-best-practices p:has(strong) {
    margin-top: 16px;
  }

  #content-best-practices .best-practice-main-wrapper {
    grid-template-columns: 1fr;
    height: unset;
  }

  #content-best-practices .best-practice-main:first-child {
    grid-row: unset;
    grid-column: unset;
  }

  #content-best-practices .best-practice-main:first-child .title {
    font-size: 16px;
    line-height: normal;
  }

  #content-best-practices .best-practice-main:not(:first-child) .desc {
    display: -webkit-box;
  }

  #content-best-practices .best-practice-main .content {
    padding: 12px;
    padding-top: 100px;
  }

  #content-best-practices .best-practice-small-wrapper {
    margin-top: 8px;
    grid-template-columns: 1fr;
  }

  #content-our-5-pillars .card-item .content {
    padding: 11px 6px;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
  }
  #content-our-5-pillars .card-item .content .heading {
    font-size: 16px;
    line-height: 24px;
  }
  #content-our-5-pillars .card-item .content .desc {
    font-size: 10px;
    line-height: 15.8px;
  }

  #content-our-5-pillars {
    padding-top: 0;
    padding-bottom: 37px;
    overflow: hidden;
  }

  #content-our-5-pillars .content-header > p:first-child {
    margin-bottom: 16px;
  }

  #content-our-5-pillars .card-wrapper {
    overflow: hidden;
  }

  #content-our-5-pillars .card-container {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    transition: transform 0.4s ease;
  }

  #content-our-5-pillars .card-item {
    flex: 0 0 280px;
    border-radius: 12px;
    padding: 9px;
  }

  #content-our-5-pillars .content-header {
    display: block;
  }

  #content-our-5-pillars .content-header > p:nth-child(2) {
    text-align: left;
  }
  #content-our-5-pillars .card-item:last-child .content a {
    font-size: 12px;
    line-height: 14.4px;
  }
  #content-our-5-pillars .card-item:last-child .content a:after {
    width: 14px;
    height: 14px;
    margin-left: 6px;
  }
  #content-our-5-pillars .content-header > p:first-child {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (max-width: 380px) {
  #content-22-villages .villages-footer-item .heading {
    font-size: 20px;
  }

  #content-22-villages .villages-footer-item .desc {
    font-size: 10px;
  }
}
