/* ==========================================================
   SERC — Inner page & content component styles
   Extends assets/css/style.css (uses its --serc-* variables)
   ========================================================== */

/* ---------- Inner banner ---------- */
.inner-banner {
  padding: 190px 0 90px;
  position: relative;
  text-align: center;
  color: #fff;
  background: var(--serc-dark) center/cover no-repeat;
}

.inner-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1, 97, 48, 0.82), rgba(0, 72, 60, 0.92));
}

.inner-banner .container {
  position: relative;
  z-index: 2;
}

.inner-banner h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.inner-banner .banner-lead {
  max-width: 760px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: var(--serc-accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Page content shell ---------- */
.page-content {
  padding: 80px 0;
}

.page-content--tight {
  padding: 56px 0;
}

.page-content--alt {
  background: var(--serc-light-bg);
}

/* ---------- Prose ---------- */
.prose {
  max-width: 860px;
  color: var(--serc-text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.prose.prose--wide {
  max-width: none;
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 42px 0 16px;
}

.prose h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--serc-dark);
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.prose ol {
  counter-reset: serc-ol;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--serc-primary);
}

.prose ol li {
  counter-increment: serc-ol;
}

.prose ol li::before {
  content: counter(serc-ol);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--serc-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose strong {
  color: var(--serc-heading);
  font-weight: 600;
}

.prose a {
  color: var(--serc-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Section heading ---------- */
.block-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.block-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--serc-primary);
  margin-bottom: 8px;
}

.block-intro {
  max-width: 780px;
  color: var(--serc-text);
  margin-bottom: 34px;
  line-height: 1.75;
}

.block-head--center {
  text-align: center;
}

.block-head--center .block-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Callout / highlight ---------- */
.callout {
  border-left: 4px solid var(--serc-primary);
  background: #f2f8f4;
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
  margin: 26px 0;
}

.callout h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-dark);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Vision / mission pair ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin: 34px 0;
}

.vm-card {
  background: #fff;
  border: 1px solid #e7ecea;
  border-top: 4px solid var(--serc-primary);
  border-radius: 12px;
  padding: 30px 28px;
  box-shadow: 0 2px 14px rgba(16, 48, 40, 0.05);
}

.vm-card .vm-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eaf5ee;
  color: var(--serc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.vm-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.vm-card p {
  color: var(--serc-text);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.stat-card {
  background: #fff;
  border: 1px solid #e7ecea;
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--serc-primary);
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--serc-slate);
  line-height: 1.5;
}

/* ---------- Technology / feature cards ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.tech-card {
  background: #fff;
  border: 1px solid #e7ecea;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(16, 48, 40, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(16, 48, 40, 0.11);
}

.tech-card__img {
  aspect-ratio: 4 / 3;
  background: #eef2f0;
  overflow: hidden;
}

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

.tech-card__body {
  padding: 22px 24px 26px;
  flex: 1;
}

.tech-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--serc-primary);
  background: #eaf5ee;
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.tech-card__body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.tech-card__body p {
  color: var(--serc-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Unit / list cards (no image) ---------- */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.unit-card {
  background: #fff;
  border: 1px solid #e7ecea;
  border-radius: 12px;
  padding: 28px 26px;
}

.unit-card .unit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--serc-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.unit-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.unit-card p {
  color: var(--serc-text);
  font-size: 0.95rem;
  line-height: 1.72;
  margin: 0;
}

/* ---------- Split media + text ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
  align-items: center;
  margin: 44px 0;
}

.split__media img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 22px rgba(16, 48, 40, 0.12);
}

.split__body h2 {
  margin-top: 0;
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 767px) {
  .split--reverse .split__media {
    order: 0;
  }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin: 36px 0;
  padding-left: 34px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #d9e5df;
}

.timeline__item {
  position: relative;
  margin-bottom: 30px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--serc-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #d9e5df;
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline__item p {
  color: var(--serc-text);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Org chart ---------- */
.orgchart {
  margin: 34px 0;
}

.orgchart__level {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.orgchart__node {
  background: #fff;
  border: 1px solid #dbe6e0;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  min-width: 190px;
}

.orgchart__node .node-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: 1rem;
}

.orgchart__node .node-sub {
  font-size: 12.5px;
  color: var(--serc-slate);
  margin-top: 3px;
}

.orgchart__node--primary {
  background: var(--serc-primary);
  border-color: var(--serc-primary);
}

.orgchart__node--primary .node-title {
  color: #fff;
}

.orgchart__node--primary .node-sub {
  color: rgba(255, 255, 255, 0.82);
}

.orgchart__node--accent {
  background: var(--serc-dark);
  border-color: var(--serc-dark);
}

.orgchart__node--accent .node-title {
  color: #fff;
}

.orgchart__node--accent .node-sub {
  color: rgba(255, 255, 255, 0.8);
}

.orgchart__connector {
  width: 2px;
  height: 20px;
  background: #cddbd4;
  margin: 0 auto 14px;
}

.orgchart__caption {
  text-align: center;
  font-size: 13px;
  color: var(--serc-slate);
  margin-top: 12px;
}

/* ---------- Data table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid #e2eae6;
  border-radius: 12px;
}

.serc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

.serc-table th {
  background: var(--serc-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.serc-table td {
  padding: 14px 18px;
  border-top: 1px solid #e8efec;
  color: var(--serc-text);
  vertical-align: top;
  line-height: 1.65;
}

.serc-table tbody tr:nth-child(even) {
  background: #fafbfa;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7ecea;
}

.gallery-item__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f0;
}

.gallery-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-item__img img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
  font-size: 0.9rem;
  color: var(--serc-text);
  line-height: 1.55;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.gallery-filter {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d7e2dc;
  background: #fff;
  color: var(--serc-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter:hover {
  border-color: var(--serc-primary);
  color: var(--serc-primary);
}

.gallery-filter.is-active {
  background: var(--serc-primary);
  border-color: var(--serc-primary);
  color: #fff;
}

/* ---------- Contact / info panel ---------- */
.info-panel {
  background: var(--serc-dark);
  border-radius: 14px;
  padding: 34px 32px;
  color: #fff;
}

.info-panel h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.info-panel .info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.info-panel .info-row i {
  color: var(--serc-accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Notice (content pending) ---------- */
.notice {
  border: 1px dashed #c8d6cf;
  background: #f7faf8;
  border-radius: 12px;
  padding: 34px 30px;
  text-align: center;
  color: var(--serc-text);
}

.notice i {
  font-size: 30px;
  color: var(--serc-primary);
  margin-bottom: 14px;
  display: block;
}

.notice h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--serc-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.notice p {
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

@media (max-width: 767px) {
  /* Swiper arrows sit on top of the hero headline on narrow screens;
     the slider is still swipeable by touch. */
  .hero-section .swiper-button-prev,
  .hero-section .swiper-button-next {
    display: none;
  }

  .inner-banner {
    padding: 150px 0 60px;
  }

  .page-content {
    padding: 56px 0;
  }

  .split {
    gap: 30px;
  }
}
