/* ============================================
   NOR GROUP - PAGE SPECIFIC STYLES
   ============================================ */

/* ---- HOME PAGE ---- */
.hero {
  min-height: 100vh;
  background: var(--green-darkest);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background: url('../assets/news-1.png') center/cover no-repeat;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,46,26,0.92) 0%, rgba(10,46,26,0.78) 50%, rgba(10,46,26,0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,115,64,0.18) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--green-light);
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

.hero__title em {
  font-style: italic;
  color: var(--green-light);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- OVERVIEW BAND ---- */
.overview-band {
  background: var(--green-primary);
  padding: 2.5rem 0;
}

.overview-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.overview-band__item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.overview-band__item:last-child { border-right: none; }

.overview-band__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.overview-band__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .overview-band__inner { grid-template-columns: repeat(2, 1fr); }
  .overview-band__item:nth-child(2) { border-right: none; }
}

/* ---- WHO WE ARE ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.about-split__text {
  padding: 6rem 5rem 6rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-split__visual {
  background: linear-gradient(rgba(10,46,26,0.82), rgba(10,46,26,0.82)), url('../assets/gallery-1.png') center/cover no-repeat;
  background-color: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.about-split__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.about-split__quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  text-align: center;
}

.about-split__quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--green-pale);
  margin-top: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-split__visual::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 18rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__text { padding: 4rem 1.5rem; }
  .about-split__visual { min-height: 280px; }
}

/* ---- CAPABILITIES GRID ---- */
.capability-card {
  border-left: 3px solid var(--green-accent);
  padding: 2rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.capability-card:hover {
  border-left-color: var(--green-primary);
  background: var(--green-ghost);
  transform: translateX(4px);
}

.capability-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-pale);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.capability-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

/* ---- VALUES ---- */
.value-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.value-item:last-child { border-bottom: none; }

.value-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.value-item__content h4 { color: var(--white); margin-bottom: 0.3rem; }
.value-item__content p { font-size: 0.9rem; color: var(--green-pale); }

/* ---- SERVICES PAGE ---- */
.services-hero {
  padding: 10rem 2rem 6rem;
  background: var(--green-darkest);
  text-align: center;
}

.services-hero h1 { color: var(--white); }
.services-hero p { color: var(--green-pale); max-width: 580px; margin: 1rem auto 0; font-size: 1.05rem; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}

.service-block:last-child { border-bottom: none; }


.service-block__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-block__tag {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.service-block__content h2 { margin-bottom: 1rem; }
.service-block__content p { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---- ABOUT PAGE ---- */
.page-hero {
  padding: 10rem 2rem 6rem;
  background: var(--green-darkest);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 600px;
  height: 600px;
  border: 120px solid rgba(255,255,255,0.02);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 { color: var(--white); max-width: 700px; }
.page-hero p { color: var(--green-pale); max-width: 580px; margin-top: 1rem; font-size: 1.05rem; }

/* ---- STRUCTURE ---- */
.structure-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.structure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.structure-card:hover::before { transform: scaleX(1); }
.structure-card:hover { box-shadow: 0 8px 32px rgba(10,46,26,0.1); }

.structure-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.structure-card__badge--active {
  background: var(--green-ghost);
  color: var(--green-primary);
}

.structure-card__badge--roadmap {
  background: rgba(192,57,43,0.08);
  color: var(--red-accent);
}

/* ---- LEADERSHIP PAGE ---- */
.leader-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  overflow: hidden;
}

.leader-card:hover { box-shadow: 0 8px 40px rgba(10,46,26,0.12); }

.leader-card__top {
  background: var(--green-dark);
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
}

.leader-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--green-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.leader-card__name { color: var(--white); font-size: 1.05rem; margin-bottom: 0.2rem; }
.leader-card__title { color: var(--green-pale); font-size: 0.82rem; }

.leader-card__body { padding: 1.5rem 2rem; }
.leader-card__body p { font-size: 0.88rem; color: var(--gray-600); }

/* ---- CONTACT PAGE ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 600px;
}

.contact-info {
  background: var(--green-darkest);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 { color: var(--white); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail__text h5 { color: var(--white); font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-detail__text p { font-size: 0.88rem; color: var(--green-pale); }

.contact-form {
  padding: 5rem 4rem;
  background: var(--off-white);
}

.contact-form h2 { margin-bottom: 2rem; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--gray-800);
  border-radius: 2px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(26,115,64,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-info { padding: 3rem 1.5rem; }
  .contact-form { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- PARTNERS SECTION ---- */
.partners-band {
  padding: 3rem 0;
  background: var(--gray-100);
}

.partners-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.partners-band__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.partners-band__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-placeholder {
  background: var(--gray-200);
  height: 40px;
  width: 120px;
  border-radius: 4px;
}

/* ---- ENGAGEMENT SECTION ---- */
.engagement-tabs {
  background: var(--off-white);
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  gap: 0;
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--green-primary);
  border-bottom-color: var(--green-primary);
}

.tab-content { display: none; padding: 3rem; }
.tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

@media (max-width: 768px) {
  .tab-content.active { grid-template-columns: 1fr; }
  .contact-form, .contact-info { padding: 2rem 1.25rem; }
}

/* ---- HERO IMAGE OVERLAY STRIPE ---- */
.stripe-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(26,115,64,0.08) 100%);
  pointer-events: none;
}

/* ---- PAGE TRANSITIONS ---- */
.page-content {
  animation: fadeIn 0.4s ease;
}

/* ============================================
   ENHANCED CONTACT PAGE
   ============================================ */
.contact-hero {
  background: var(--green-darkest);
  padding: 10rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(45,158,92,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,115,64,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  color: var(--white);
  max-width: 600px;
}

.contact-hero p {
  color: var(--green-pale);
  max-width: 480px;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* Contact info cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.contact-info-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.contact-info-card:hover::before {
  transform: scaleX(1);
}

.contact-info-card:hover {
  box-shadow: 0 12px 40px rgba(10,46,26,0.1);
  transform: translateY(-4px);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-ghost);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.contact-info-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--green-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-card h4 {
  margin-bottom: 0.4rem;
  color: var(--green-darkest);
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .contact-info-grid { grid-template-columns: 1fr; margin-top: 2rem; }
}

/* Contact form section */
.contact-form-section {
  padding: 5rem 0;
}

.contact-form-section .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-sidebar {
  padding: 2.5rem 0;
}

.contact-form-sidebar h2 {
  margin-bottom: 1rem;
}

.contact-form-sidebar p {
  margin-bottom: 2rem;
}

.contact-sidebar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-sidebar-item:last-child { border-bottom: none; }

.contact-sidebar-item__icon {
  width: 40px;
  height: 40px;
  background: var(--green-ghost);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-sidebar-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-sidebar-item h5 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--green-darkest);
  margin-bottom: 0.15rem;
}

.contact-sidebar-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Styled Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(10,46,26,0.06);
}

.contact-form-card h3 {
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.contact-form-card .form-group {
  margin-bottom: 1.5rem;
}

.contact-form-card .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.contact-form-card .form-group input,
.contact-form-card .form-group textarea,
.contact-form-card .form-group select {
  border-radius: 4px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  background-color: var(--off-white);
  transition: all var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.contact-form-card .form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus,
.contact-form-card .form-group select:focus {
  background: var(--white);
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px rgba(26,115,64,0.08);
}

.contact-form-card .form-group textarea {
  min-height: 140px;
}

.contact-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.contact-submit-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,46,26,0.2);
}

.contact-submit-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.contact-submit-btn:hover svg {
  transform: translateX(4px);
}

.contact-submit-btn.sent {
  background: var(--green-accent);
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.75rem;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-form-section .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-form-card { padding: 2rem 1.5rem; }
}

/* ============================================
   NEWS & UPDATES — HOME GRID
   ============================================ */
.news-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.news-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-section__header h2 {
  margin-bottom: 0.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 12px 40px rgba(10,46,26,0.1);
  transform: translateY(-4px);
  border-color: var(--green-pale);
}

.news-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.05);
}

.news-card__img-wrap {
  overflow: hidden;
  position: relative;
}

.news-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  z-index: 1;
}

.news-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card__date svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 2;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-darkest);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-primary);
  margin-top: 1rem;
  transition: var(--transition);
}

.news-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.news-card__link:hover {
  color: var(--green-dark);
}

.news-card__link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ============================================
   NEWS LISTING PAGE
   ============================================ */
.news-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.news-listing-grid .news-card__img {
  height: 220px;
}

@media (max-width: 1024px) {
  .news-listing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .news-listing-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-hero {
  background: var(--green-darkest);
  padding: 10rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,115,64,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.article-hero .container {
  position: relative;
  z-index: 1;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-hero__category {
  background: var(--green-accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.article-hero__date {
  color: var(--green-pale);
  font-size: 0.85rem;
}

.article-hero h1 {
  color: var(--white);
  max-width: 700px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.article-hero p {
  color: var(--green-pale);
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
  align-items: start;
}

.article-content {
  max-width: 740px;
}

.article-content__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  margin-bottom: 2.5rem;
  border: 1px solid var(--gray-200);
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
}

.article-content blockquote {
  border-left: 4px solid var(--green-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--green-ghost);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--green-darkest);
}

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.article-sidebar__section {
  margin-bottom: 2.5rem;
}

.article-sidebar__section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

.article-sidebar-card {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.article-sidebar-card:last-child { border-bottom: none; }

.article-sidebar-card:hover {
  padding-left: 0.5rem;
}

.article-sidebar-card__date {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.article-sidebar-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-darkest);
  line-height: 1.35;
  transition: color var(--transition);
}

.article-sidebar-card:hover .article-sidebar-card__title {
  color: var(--green-primary);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.article-back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.article-back-link:hover svg {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-sidebar { position: static; }
  .article-content__img { height: 240px; }
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,46,26,0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease;
}

.gallery-item:hover .gallery-item__caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item__caption h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.gallery-item__caption p {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}



.gallery-item--featured img {
  height: 300px; /* Uniform height with standard items */
}

.gallery-item--tall img {
  height: 300px; /* Uniform height with standard items */
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: pointer;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.35s ease;
}

.gallery-lightbox.active img {
  transform: scale(1);
}

.gallery-lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.gallery-lightbox__close svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.gallery-lightbox__close:hover svg {
  stroke: var(--white);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  /* .gallery-item--featured { grid-column: span 2; } Disabled for uniform sizing */
  .gallery-item img,
  .gallery-item--featured img,
  .gallery-item--tall img { height: 180px; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-weight: 500;
}

.pagination__btn:hover:not(:disabled) {
  background: var(--green-pale);
  color: var(--green-primary);
  border-color: var(--green-pale);
}

.pagination__btn.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

.pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-item.hidden {
  display: none !important;
}

/* ============================================
   PLATFORM MODULES (services page)
   ============================================ */
.modules-section {
  padding: 5rem 0 6rem;
}

.modules-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.modules-intro h2 {
  margin-bottom: 1rem;
}

.modules-intro p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

.modules-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  background: var(--green-ghost);
  border: 1px solid var(--green-pale);
  border-radius: 100px;
  color: var(--green-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modules-counter strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

/* Category section */
.module-category {
  margin-bottom: 4rem;
}

.module-category:last-child {
  margin-bottom: 0;
}

.module-category__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.module-category__title {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.module-category__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-accent);
  line-height: 1;
  letter-spacing: -0.01em;
}

.module-category__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.2;
}

.module-category__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Modules grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Module card */
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--gray-800);
  transition: var(--transition);
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--green-accent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover {
  border-color: var(--green-pale);
  box-shadow: 0 12px 32px -8px rgba(10, 46, 26, 0.12);
  transform: translateY(-3px);
}

.module-card:hover::before {
  width: 100%;
}

.module-card__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-ghost);
  color: var(--green-primary);
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.module-card:hover .module-card__icon {
  background: var(--green-primary);
  color: var(--white);
}

.module-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.module-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.module-card__badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green-pale);
  color: var(--green-primary);
  padding: 2px 8px;
  border-radius: 100px;
}

.module-card__desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0;
  flex: 1;
}

.module-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-primary);
  letter-spacing: 0.02em;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.module-card__arrow svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.module-card:hover .module-card__arrow {
  gap: 0.55rem;
}

.module-card:hover .module-card__arrow svg {
  transform: translateX(3px);
}

@media (max-width: 960px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .modules-section { padding: 3.5rem 0 4rem; }
  .module-category { margin-bottom: 3rem; }
  .module-category__name { font-size: 1.25rem; }
  .module-category__header { padding-bottom: 0.75rem; margin-bottom: 1.25rem; }

  /* Horizontal snap-carousel on mobile */
  .modules-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* Edge-to-edge bleed past the .container padding */
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.5rem 1.25rem 1rem;
    scrollbar-width: none;
  }

  .modules-grid::-webkit-scrollbar { display: none; }

  .module-card {
    flex: 0 0 78%;
    max-width: 320px;
    min-height: 200px;
    scroll-snap-align: start;
  }

  .module-card:last-child {
    /* Trailing whitespace so last card can fully snap to start */
    margin-right: 0.5rem;
  }

  /* Subtle hint that the row is swipeable */
  .module-category__count::after {
    content: ' ›';
    color: var(--green-accent);
    font-weight: 700;
    margin-left: 0.15rem;
  }
}

/* ============================================
   ENGAGEMENT CARDS — horizontal carousel on mobile
   ============================================ */
@media (max-width: 720px) {
  #engagement .grid-3 {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    /* Edge-to-edge bleed past .container padding */
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0.5rem 1.25rem 1rem;
    scrollbar-width: none;
  }

  #engagement .grid-3::-webkit-scrollbar { display: none; }

  #engagement .grid-3 > .card {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: start;
  }
}
