/*
Theme Name: ICPCR Theme
Theme URI: https://icpcr.org
Author: ICPCR
Author URI: https://icpcr.org
Description: Official theme for the International Consortium for Phytomedicine and Cancer Research (ICPCR).
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: icpcr-theme
*/

/* ========== CSS Custom Properties ========== */
:root {
  --green-deep: #2a5940;
  --green-mid: #3d8060;
  --green-light: #5aa880;
  --blue-deep: #2a4a6b;
  --blue-mid: #3a6a92;
  --gold: #c9a84c;
  --gold-light: #d4b86a;
  --cream: #f7f5f0;
  --cream-dark: #eae6df;
  --charcoal: #1a1a1a;
  --charcoal-light: #2d2d2d;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #6b6b6b;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ========== Utility ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========== Typography ========== */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ========== Dividers ========== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.divider__line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.divider__icon {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* ========== Section Spacing ========== */
.section {
  padding: 7rem 0;
  position: relative;
}

.section--dark {
  background: var(--green-deep);
  color: #fff;
}

.section--charcoal {
  background: var(--charcoal);
  color: #fff;
}

.section--cream-dark {
  background: var(--cream-dark);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold);
}

.section__title {
  margin-bottom: 1.25rem;
}

.section__subtitle {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
}

.section--dark .section__subtitle,
.section--charcoal .section__subtitle {
  color: rgba(255,255,255,0.6);
}

/* ========== Scroll Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(42, 89, 64, 0.97);
  padding: 0.75rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__wordmark-icon {
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-deep) 0%, #1e4030 40%, var(--blue-deep) 100%);
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(10,20,15,0.4) 100%);
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 0.6; }
  90% { opacity: 0; }
  100% { transform: translateY(-200px) scale(0.5); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 2rem;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--gold);
  opacity: 0;
  animation: fadeInUp 1s 0.3s var(--ease-out-expo) forwards;
}

.hero__label::before,
.hero__label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.hero__title {
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s 0.5s var(--ease-out-expo) forwards;
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 1s 0.7s var(--ease-out-expo) forwards;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s 0.9s var(--ease-out-expo) forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll-indicator {
  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.3);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  opacity: 0;
  animation: fadeInUp 1s 1.2s var(--ease-out-expo) forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--green-deep);
  color: #fff;
}

.btn--dark:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,60,42,0.3);
}

/* ========== About Section ========== */
.about__intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.about__mission {
  font-family: var(--font-accent);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.7;
  color: var(--green-deep);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.about__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

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

.stat-card {
  background: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green-light));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

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

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

/* ========== Research Section ========== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.research-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.75rem 2.25rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.research-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.research-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-3px);
}

.research-card:hover::after {
  opacity: 1;
}

.research-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.research-card__number {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.research-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
}

.research-card__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* ========== Global Network ========== */
.network__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.network__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

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

.region-card {
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  transition: all 0.3s var(--ease-out-expo);
}

.region-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.region-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--green-deep);
}

.region-card__detail {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.network__map {
  position: relative;
}

.network__map svg {
  width: 100%;
  height: auto;
}

/* ========== News Section ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s var(--ease-out-expo);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.news-card:hover::before {
  height: 100%;
}

.news-card__type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.news-card__meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: auto;
  padding-top: 1rem;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-top: 1rem;
  transition: gap 0.3s ease;
}

.news-card__link:hover {
  gap: 0.7rem;
  color: var(--green-deep);
}

/* ========== CTA Section ========== */
.cta-section {
  text-align: center;
}

.cta-section__title {
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-section__text {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.cta-categories {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-category {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  min-width: 200px;
  transition: all 0.3s ease;
}

.cta-category:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,0.03);
}

.cta-category__icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  opacity: 0.7;
}

.cta-category__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.cta-category__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
}

.btn--gold-large {
  background: var(--gold);
  color: var(--charcoal);
  padding: 1.1rem 3rem;
  font-size: 0.85rem;
}

.btn--gold-large:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.3);
}

/* ========== Footer ========== */
.footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 4rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
  max-width: 300px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 0;
}

.footer__social-link:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.footer__social-link svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,0.5);
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
}

.footer__bottom a:hover {
  color: var(--gold);
}

/* ========== Botanical Decorations ========== */
.botanical-corner {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.botanical-corner--tl {
  top: 2rem;
  left: 2rem;
}

.botanical-corner--br {
  bottom: 2rem;
  right: 2rem;
  transform: rotate(180deg);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .network__content { grid-template-columns: 1fr; gap: 3rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(42, 89, 64, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    backdrop-filter: blur(12px);
  }

  .nav__links.is-open { display: flex; }
  .nav__mobile-toggle { display: block; }

  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .network__regions { grid-template-columns: 1fr 1fr; }
  .cta-categories { flex-direction: column; align-items: center; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero__ctas { flex-direction: column; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
  .network__regions { grid-template-columns: 1fr; }
}

/* ========== Application Modal ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.is-active { display: flex; }

.modal {
  background: var(--cream);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}
.modal__close:hover { color: var(--text-primary); }

.modal__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--green-deep);
}

.modal__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group label .required { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
}

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

.form-group input[type="file"] {
  padding: 0.5rem;
  font-size: 0.85rem;
  border-style: dashed;
}

.form-group .file-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.3rem;
}

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

.form-submit {
  margin-top: 1.5rem;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

.form-message {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-message.is-visible { display: block; }

.form-message__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-message__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--green-deep);
}

.form-message__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .modal { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ========== WordPress Page/Post Templates ========== */
.wp-content-wrapper {
  padding: 8rem 0 5rem;
  min-height: 60vh;
}

.wp-content-wrapper .entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  color: var(--green-deep);
}

.wp-content-wrapper .entry-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.wp-content-wrapper .entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.wp-content-wrapper .entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.wp-content-wrapper .entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.wp-content-wrapper .entry-content p {
  margin-bottom: 1.5rem;
}

.wp-content-wrapper .entry-content img {
  margin: 2rem 0;
}

.wp-content-wrapper .entry-content blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-deep);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.wp-content-wrapper .entry-content ul,
.wp-content-wrapper .entry-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.wp-content-wrapper .entry-content li {
  margin-bottom: 0.5rem;
}

.wp-content-wrapper .entry-content a {
  color: var(--green-mid);
  text-decoration: underline;
}

.wp-content-wrapper .entry-content a:hover {
  color: var(--green-deep);
}

/* Blog listing styles */
.blog-listing {
  padding: 8rem 0 5rem;
  min-height: 60vh;
}

.blog-listing .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--green-deep);
}

.blog-listing .post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease-out-expo);
}

.blog-listing .post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.blog-listing .post-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.blog-listing .post-card__title a {
  color: var(--charcoal);
}

.blog-listing .post-card__title a:hover {
  color: var(--green-deep);
}

.blog-listing .post-card__meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.blog-listing .post-card__excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.blog-listing .post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-top: 1rem;
  transition: gap 0.3s ease;
}

.blog-listing .post-card__read-more:hover {
  gap: 0.7rem;
  color: var(--green-deep);
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .current {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
