/*--------------------------------------------------------------
# Page Title / Hero Banner
--------------------------------------------------------------*/
.page-title-pillar {
  position: relative;
  width: 100%;
  min-height: 62vh;
  min-height: 62dvh;
  display: flex;
  align-items: center;
  padding: 150px 0 70px 0;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.page-title-pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 24, 54, 0.95) 0%, rgba(9, 24, 54, 0.75) 45%, rgba(9, 24, 54, 0.20) 100%);
  z-index: 1;
}

body.dark-mode .page-title-pillar::before {
  background: linear-gradient(90deg, rgba(6, 16, 38, 0.98) 0%, rgba(6, 16, 38, 0.85) 50%, rgba(6, 16, 38, 0.30) 100%);
}

.page-title-pillar .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.pp-kicker {
  display: inline-block;
  color: #ffffff;
  background-color: #00a5d7;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pp-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff !important;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.pp-subtitle {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  color: #e2e8f0 !important;
  max-width: 720px;
  margin-bottom: 26px;
  text-align: justify;
}

.pp-divider {
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, #00a5d7 0%, #ffffff 100%);
  border-radius: 3px;
}

/*--------------------------------------------------------------
# Pillar Detail Section
--------------------------------------------------------------*/
.pillar-page-intro {
  font-size: 15.5px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  text-align: justify;
  margin-bottom: 32px;
}

.pillar-page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pillar-page-desc p {
  font-size: 15.5px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  text-align: justify;
  margin-bottom: 16px;
}

.pillar-gallery {
  margin: 40px 0 48px;
}

.pillar-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

.pillar-gallery-item figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-top: 0;
  text-align: center;
}

.pillar-panel {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 6px;
  padding: 24px;
  height: 100%;
}

.pillar-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-panel-title i {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Other Research Pillars
--------------------------------------------------------------*/
.other-pillars-heading {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.other-pillars-sub {
  text-align: center;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 40px;
}

/* Spotlight feature card */
.pillar-feature {
  display: flex;
  align-items: stretch;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pillar-feature-media {
  flex: 0 0 40%;
  position: relative;
  min-height: 280px;
}

.pillar-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pillar-feature-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillar-feature-kicker {
  display: inline-block;
  align-self: flex-start;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pillar-feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pillar-feature-text {
  font-size: 15px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  text-align: justify;
  margin-bottom: 24px;
}

.btn-pillar-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background-color: var(--accent-color);
  color: var(--contrast-color, #ffffff);
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent-color);
  transition: all 0.25s ease-in-out;
}

.btn-pillar-feature:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
  border-color: color-mix(in srgb, var(--accent-color), black 10%);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .pillar-feature {
    flex-direction: column;
  }

  .pillar-feature-media {
    flex: 0 0 220px;
  }

  .pillar-feature-content {
    padding: 28px 22px;
  }
}

/* Stats strip */
.pp-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 56px;
  margin: 36px 0;
  padding: 30px 24px;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 8px;
  text-align: center;
}

.pp-stat-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.15;
}

.pp-stat-label {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/*--------------------------------------------------------------
# Project Features & ID Tags
--------------------------------------------------------------*/
.project-feature {
  display: flex;
  align-items: stretch;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-left: 5px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  height: 100%;
}

.project-feature.c1 {
  border-left-color: #00a5d7;
}

.project-feature.c2 {
  border-left-color: #66ab57;
}

.project-feature.c3 {
  border-left-color: #3f9e93;
}

.project-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.project-feature-media {
  flex: 0 0 34%;
  position: relative;
  min-height: 175px;
  overflow: hidden;
}

.project-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-feature-content {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.project-feature-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-feature-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.project-feature-institution {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 16px;
}

.project-feature-institution i {
  color: var(--accent-color);
}

.project-feature-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  transition: border-color 0.25s ease-in-out;
}

.project-feature-link:hover {
  border-color: var(--accent-color);
}

@media (max-width: 767px) {
  .project-feature {
    flex-direction: column;
  }

  .project-feature-media {
    flex: 0 0 190px;
  }

  .project-feature-content {
    padding: 18px 18px;
  }
}

.project-id-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.project-id-tag.c1 {
  background-color: #00a5d7;
}

.project-id-tag.c2 {
  background-color: #66ab57;
}

.project-id-tag.c3 {
  background-color: #3f9e93;
}

.project-count-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background-color: color-mix(in srgb, #00a5d7, transparent 88%);
  color: #00a5d7;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
}

.project-count-badge.halal {
  background-color: color-mix(in srgb, #66ab57, transparent 88%);
  color: #66ab57;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 24px;
}

.back-link:hover {
  text-decoration: underline;
}