/* ========================================
   ISMPH DESIGN SYSTEM — UNIFIED
   ======================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  /* Colors */
  --bg: #fefdfc;
  --black: #0b0706;
  --white: #ffffff;

  --primary-text: #1d2130;
  --secondary-text: #525560;

  --green-accent: #20731b;
  --green-accent-hover: #258020;
  --green-dark: #162314;
  --green-darker: #0f1a0e;

  --green-light: #639b02;
  --green-light-bg: #dfeed6;

  --border: #e8f0e6;

  --red-btn: #ff0000;
  --red-btn-hover: #cc0000;

  /* Typography */
  --ff-primary: 'Inter', sans-serif;
  --ff-accent: 'Courgette', cursive;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;

  /* Layout */
  --side-pad: 110px;
  --max-w: 1280px;

  /* Spacing */
  --section-lg: 100px;
  --section-md: 80px;
  --section-sm: 60px;

  /* Effects */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.09);

  /* Radius */
  --radius: 12px;
  --radius-sm: 12px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--ff-primary);
  background: var(--bg);
  color: var(--primary-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

@media(max-width:1024px){ .container{ padding:0 40px; } }
@media(max-width:600px){ .container{ padding:0 20px; } }

/* ========================================
   GLOBAL COMPONENTS
   ======================================== */

/* Buttons */
.btn-primary,
.btn-news-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: var(--red-btn);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary:hover,
.btn-news-read:hover {
  background: var(--red-btn-hover);
  transform: translateY(-1px);
}

/* Cards */
.card,
.news-card,
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: 0.25s;
}

.card:hover,
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Sections */
.section { padding: var(--section-lg) 0; }
.section-dark { background: var(--green-darker); color: var(--white); }
.section-soft { background: #f6faf5; }

/* Labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.section-label .line {
  width: 72px;
  height: 2px;
  background: currentColor;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 735px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url('../images/hero.jpeg') center/cover no-repeat;
  padding: 0 var(--side-pad);
  color: var(--white);
}

.hero h1 {
  font-size: 64px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: var(--text-md);
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 32px;
}

/* ========================================
   IMPACT BAR
   ======================================== */
.impact-bar {
  background: var(--green-accent);
  padding: var(--section-sm) 0;
}

.impact-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.impact-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.impact-number {
  font-size: 2.5rem;
  color: var(--white);
}

.impact-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.7);
}

/* ========================================
   WHAT WE DO
   ======================================== */
.whatwedo-section {
  background: var(--green-darker);
  padding: var(--section-lg) 0;
  color: var(--white);
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
}

.wwd-card {
  padding: 3rem 2.5rem;
  background: var(--green-darker);
}

.wwd-card:hover {
  background: var(--green-dark);
}

.wwd-card--accent {
  background: var(--green-accent);
}

.wwd-card--accent:hover {
  background: var(--green-accent-hover);
}

/* ========================================
   NEWS
   ======================================== */
.news-section { padding: var(--section-lg) 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}

.news-card-body {
  padding: 1.25rem 1.5rem;
}

.news-date { font-size: var(--text-xs); color: #999; }
.news-excerpt { font-size: var(--text-sm); color: #555; }

/* ========================================
   PROJECTS
   ======================================== */
.projects-section { padding: var(--section-lg) 0; }

.project-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
  background: #f6faf5;
  padding: var(--section-lg) 0;
}

.testimonial-card {
  padding: 2rem;
  border-top: 3px solid var(--green-light);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   EVENTS
   ======================================== */
.events-section { padding: var(--section-md) 0; }

.event-card {
  background: var(--green-accent);
  padding: 32px;
  color: var(--primary-text);
  transition: 0.3s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(32,115,27,0.2);
}

/* ========================================
   CTA
   ======================================== */
.cta-banner {
  min-height: 384px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url('../images/cta-bg.png') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media(max-width:900px){
  .news-grid,
  .project-row,
  .wwd-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 40px; }
}

@media(max-width:600px){
  .hero h1 { font-size: 32px; }
}/* ======================================================
   HOMEPAGE ADDITIONS
   ====================================================== */

/* ---- Hero sub-heading ---- */
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 1rem 0 2rem;
  opacity: 0.85;
}

/* ======================================================
   IMPACT BAR
   ====================================================== */

.impact-bar {
  background: #20731B;
  padding: 3rem 0;
}

.impact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.impact-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.impact-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impact-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .impact-grid { gap: 2rem; }
  .impact-divider { display: none; }
  .impact-item { min-width: calc(50% - 1rem); }
}

/* ======================================================
   WHAT WE DO
   ====================================================== */

.wwd-section {
  background: #0f1a0e;
  padding: 100px 0;
}

.wwd-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.wwd-section .section-label .line {
  background: rgba(255, 255, 255, 0.3);
}

.wwd-section .section-label span {
  color: rgba(255, 255, 255, 0.55);
}

.wwd-intro {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  max-width: 480px;
  margin: 0;
  text-align: right;
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wwd-card {
  position: relative;
  padding: 3rem 2.5rem 2.5rem;
  background: #0f1a0e;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s ease;
}

.wwd-card:hover {
  background: #162314;
}

.wwd-card--accent {
  background: #20731B;
}

.wwd-card--accent:hover {
  background: #258020;
}

.wwd-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.wwd-icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.wwd-card--accent .wwd-icon {
  color: rgba(255, 255, 255, 0.9);
}

.wwd-icon svg {
  width: 100%;
  height: 100%;
}

.wwd-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.wwd-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  flex: 1;
}

.wwd-card--accent p {
  color: rgba(255, 255, 255, 0.8);
}

.wwd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  transition: color 0.2s, gap 0.2s;
}

.wwd-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.wwd-card:hover .wwd-link {
  color: #ffffff;
  gap: 0.75rem;
}

.wwd-card:hover .wwd-link svg {
  transform: translateX(3px);
}

.wwd-card--accent .wwd-link {
  color: rgba(255, 255, 255, 0.7);
  border-top-color: rgba(255, 255, 255, 0.2);
}

.wwd-card--accent:hover .wwd-link {
  color: #ffffff;
}

@media (max-width: 900px) {
  .wwd-section { padding: 70px 0; }
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .wwd-intro {
    text-align: left;
    font-size: 1.25rem;
  }
}

/* ======================================================
   NEWS SECTION
   ====================================================== */

.news-section {
  padding: 5rem 0;
  background: #ffffff;
}

.news-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.news-title-row h2 { margin: 0; }

.news-view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: #20731B;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.news-view-all:hover { color: #639B02; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8f0e6;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.news-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card-thumb img,
.news-thumb-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.04);
}

.news-thumb-fallback {
  width: 100%;
  height: 100%;
  background: #DFEED6;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

.news-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
}

.news-headline {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.news-headline a {
  color: #1D2130;
  text-decoration: none;
  transition: color 0.2s;
}

.news-headline a:hover { color: #20731B; }

.news-excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
  flex: 1;
}

.btn-news-read {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: #FF0000;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.btn-news-read:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 3rem 0;
}

@media (max-width: 992px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid .news-card:last-child { display: none; }
}

@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:last-child { display: flex; }
  .news-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================================
   PROJECTS CTA
   ====================================================== */

.projects-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.projects-section .btn-secondary,
.projects-section .btn-primary {
  border-radius: 0 !important;
}
/* ======================================================
   TESTIMONIALS
   ====================================================== */

.testimonials-section {
  background: #f6faf5;
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 3px solid #639B02;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
  font-size: 0.975rem;
  line-height: 1.75;
  color: #3a3a3a;
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #20731B;
}

.author-role {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 992px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   ARTICLES PAGE
   ====================================================== */

.articles-page-section {
  padding: 80px 0 100px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.articles-grid .news-card {
  flex-direction: row;
  min-height: 200px;
}

.articles-grid .news-card-thumb {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: unset;
}

.articles-grid .news-card-body {
  padding: 1.25rem 1.5rem;
}

.articles-empty {
  text-align: center;
  color: #888;
  padding: 4rem 0;
  font-size: 1rem;
}

/* ---- Pagination ---- */
.articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d0d0d0;
  color: #1D2130;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.page-arrow:hover {
  border-color: #20731B;
  background: #20731B;
  color: #ffffff;
}

.page-arrow svg {
  width: 18px;
  height: 18px;
}

.page-arrow--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1D2130;
  text-decoration: none;
  border: 1px solid #d0d0d0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.page-num:hover {
  border-color: #20731B;
  background: #f0f7ec;
  color: #20731B;
}

.page-num--active {
  background: #20731B;
  border-color: #20731B;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  color: #999;
  user-select: none;
}

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid .news-card { flex-direction: column; }
  .articles-grid .news-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .page-num,
  .page-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}
/* ==============================================
   PARTNERS LOGO STRIP
   Add to style.css (or your design-tokens file)
   ============================================== */

.partners-section {
  padding: 72px 0;
  background: var(--color-bg, #fff);
  overflow: hidden;
}

.partners-heading {
  margin-block-end: 40px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--color-heading, #1D2130);
}

/* The outer mask: fades logos in/out at edges */
.partners-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.partners-strip::before,
.partners-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg, #fff), transparent);
}

.partners-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg, #fff), transparent);
}

/* The scrolling track (rendered twice in PHP for seamless loop) */
.partners-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: partners-scroll 36s linear infinite;
}

.partners-strip:hover .partners-track {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Each logo item */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  border-right: 1px solid var(--color-border, #E8E9EF);
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.partner-logo:hover {
  opacity: 0.7;
}

.partner-logo img {
  max-width: 160px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.partner-logo:hover img,
.partner-logo:focus img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback text when no logo image is set */
.partner-name-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted, #6B7280);
  white-space: nowrap;
}

/* Reduced motion: pause the animation */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}


/* ==============================================
   EVENTS SECTION (updated)
   ============================================== */

.events-section {
  padding: 80px 0;
  background: var(--color-surface, #F7F8FC);
}

.events-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 40px;
}

.events-title-row h2 {
  margin: 0;
}

.events-view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent, #005B9F);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.events-view-all:hover {
  opacity: 0.75;
}

.events-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #E8E9EF);
  border-radius: 10px;
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.event-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border-color: var(--color-accent, #005B9F);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 10px 8px;
  background: var(--color-accent, #005B9F);
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
}

.event-date .day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 3px;
  opacity: 0.85;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-end: 6px;
}

.event-dateline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted, #6B7280);
  letter-spacing: 0.02em;
}

.event-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--color-muted, #6B7280);
}

.event-location svg {
  flex-shrink: 0;
}

.event-info h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-heading, #1D2130);
  margin: 0 0 6px;
}

.event-info h3 a {
  color: inherit;
  text-decoration: none;
}

.event-info h3 a:hover {
  color: var(--color-accent, #005B9F);
}

.event-excerpt {
  font-size: 0.85rem;
  color: var(--color-body, #4B5563);
  margin: 0;
  line-height: 1.55;
}

.event-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-border, #E8E9EF);
  border-radius: 50%;
  color: var(--color-heading, #1D2130);
  flex-shrink: 0;
  margin-top: 2px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.event-card:hover .event-arrow {
  background: var(--color-accent, #005B9F);
  border-color: var(--color-accent, #005B9F);
  color: #fff;
}

.events-empty {
  color: var(--color-muted, #6B7280);
  font-size: 0.95rem;
  padding: 32px 0;
}

@media (max-width: 600px) {
  .events-row {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-wrap: wrap;
  }

  .event-arrow {
    display: none;
  }
}
/* ==============================================
   SHARED: Project Tags + Area Tag on homepage card
   ============================================== */

.project-area-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-block-end: 8px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 10px;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--color-accent-light, #E8F1FA);
  color: var(--color-accent, #005B9F);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.project-tag:hover {
  background: var(--color-accent, #005B9F);
  color: #fff;
}

.project-tags--hero .project-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.project-tags--hero .project-tag:hover {
  background: rgba(255,255,255,0.3);
}

.projects-empty {
  color: var(--color-muted, #6B7280);
  font-size: 0.95rem;
  padding: 40px 0;
}


/* ==============================================
   ARCHIVE: Page hero
   ============================================== */

.page-hero {
  padding: 80px 0 56px;
  background: var(--color-bg, #fff);
  border-bottom: 1px solid var(--color-border, #E8E9EF);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-block: 12px 16px;
  color: var(--color-heading, #1D2130);
  max-width: 680px;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--color-body, #4B5563);
  max-width: 600px;
  line-height: 1.65;
}


/* ==============================================
   ARCHIVE: Filter bar
   ============================================== */

.projects-filter-bar {
  background: var(--color-surface, #F7F8FC);
  border-bottom: 1px solid var(--color-border, #E8E9EF);
  position: sticky;
  top: 0;
  z-index: 10;
}

.projects-filter-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.projects-filter-nav::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-body, #4B5563);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent, #005B9F);
  color: #fff;
}


/* ==============================================
   ARCHIVE: Project grid cards
   ============================================== */

.projects-archive-grid {
  padding: 64px 0 80px;
  background: var(--color-bg, #fff);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.project-archive-card {
  border: 1px solid var(--color-border, #E8E9EF);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg, #fff);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-archive-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--color-accent, #005B9F);
}

.project-archive-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-archive-card:hover .project-archive-thumb img {
  transform: scale(1.04);
}

.project-thumb-fallback {
  width: 100%;
  height: 100%;
  background: var(--color-surface, #F0F2F8);
}

.project-archive-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-archive-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--color-heading, #1D2130);
}

.project-archive-title a {
  color: inherit;
  text-decoration: none;
}

.project-archive-title a:hover {
  color: var(--color-accent, #005B9F);
}

.project-archive-excerpt {
  font-size: 0.88rem;
  color: var(--color-body, #4B5563);
  line-height: 1.6;
  flex: 1;
  margin-block-end: 16px;
}

.project-archive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border, #E8E9EF);
}

.project-meta {
  font-size: 0.78rem;
  color: var(--color-muted, #6B7280);
  font-weight: 500;
}

.project-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent, #005B9F);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s;
}

.project-read-link:hover { gap: 8px; }

/* Pagination */
.projects-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.projects-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border, #E8E9EF);
  font-size: 0.9rem;
  color: var(--color-body, #4B5563);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.projects-pagination .page-numbers.current,
.projects-pagination .page-numbers:hover {
  background: var(--color-accent, #005B9F);
  border-color: var(--color-accent, #005B9F);
  color: #fff;
}


/* ==============================================
   SINGLE: Project hero
   ============================================== */

.project-hero {
  padding: 96px 0 64px;
  background: var(--color-heading, #1D2130);
  position: relative;
  overflow: hidden;
}

.project-hero--image {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29,33,48,0.55) 0%,
    rgba(29,33,48,0.80) 100%
  );
}

.project-hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-block-end: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.4); }

.breadcrumb [aria-current] { color: rgba(255,255,255,0.55); }

.project-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  max-width: 760px;
  margin-block: 14px 20px;
  line-height: 1.2;
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}


/* ==============================================
   SINGLE: Layout (body + sidebar)
   ============================================== */

.project-content-wrap {
  padding: 64px 0 80px;
  background: var(--color-bg, #fff);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.project-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-body, #4B5563);
}

.project-body h2 {
  font-size: 1.5rem;
  color: var(--color-heading, #1D2130);
  margin-block: 2em 0.6em;
}

.project-body h3 {
  font-size: 1.15rem;
  color: var(--color-heading, #1D2130);
  margin-block: 1.6em 0.5em;
}

.project-body p { margin-block-end: 1.2em; }

.project-body img {
  max-width: 100%;
  border-radius: 8px;
  margin-block: 1.5em;
}

/* Sidebar */
.project-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border, #E8E9EF);
}

.sidebar-block:first-child { padding-top: 0; }

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted, #6B7280);
  margin-block-end: 6px;
}

.sidebar-block p {
  font-size: 0.9rem;
  color: var(--color-body, #4B5563);
  margin: 0;
}

.sidebar-block--cta {
  background: var(--color-surface, #F7F8FC);
  border-radius: 10px;
  padding: 20px;
  border: none;
  margin-top: 24px;
}

.sidebar-block--cta .sidebar-label {
  margin-block-end: 8px;
  color: var(--color-heading, #1D2130);
}

.sidebar-block--cta p {
  font-size: 0.85rem;
  margin-block-end: 16px;
  line-height: 1.6;
}

.sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted, #6B7280);
  text-decoration: none;
  margin-top: 20px;
  transition: color 0.2s;
}

.sidebar-back-link:hover { color: var(--color-accent, #005B9F); }


/* ==============================================
   SINGLE: Related projects strip
   ============================================== */

.related-projects {
  padding: 64px 0;
  background: var(--color-surface, #F7F8FC);
  border-top: 1px solid var(--color-border, #E8E9EF);
}


/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .sidebar-block--cta,
  .sidebar-back-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    grid-template-columns: 1fr;
  }

  .project-archive-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
