:root {
  --green: #0A3D22;
  --green-dark: #062615;
  --green-soft: rgba(10, 61, 34, 0.05);
  --gold: #C29B38;
  --gold-dark: #A17F2C;
  --gold-soft: rgba(194, 155, 56, 0.08);
  --bg: #FDFCF7;
  --bg-tint: #F6F4EB;
  --card: #FFFFFF;
  --text: #1C2B21;
  --muted: #5C6B60;
  --border: #E6E0D2;
  --shadow-card: 0 6px 20px -10px rgba(10, 30, 20, 0.1);
  --shadow-soft: 0 12px 35px -15px rgba(10, 30, 20, 0.15);
  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;
  --radius-sm: 0.5rem;
}

/* --- Dark Theme Overrides --- */
html.dark-theme, body.dark-theme {
  --green: #89C79A; /* Glowing mint/sage green */
  --green-dark: #A5DCB4;
  --green-soft: rgba(137, 199, 154, 0.08);
  --gold: #DAB459; /* Bright warm gold */
  --gold-dark: #F2D27E;
  --gold-soft: rgba(218, 180, 89, 0.1);
  --bg: #0F1713; /* Deep forest charcoal background */
  --bg-tint: #16201A;
  --card: #1A251F;
  --text: #E5EDE9;
  --muted: #95A99C;
  --border: #28392F;
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Smooth background color transitions */
body, .feature-card, .topic-card, .article-card, .site-header, .site-footer, 
.contact-form, .contact-quote, .brand, .main-nav a, input, textarea, .btn, .num, .tick {
  transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--green);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

a {
  color: var(--green);
  text-decoration: none;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(10, 61, 34, 0.2);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 61, 34, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 247, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border);
}

html.dark-theme .site-header {
  background: rgba(15, 23, 19, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
  min-width: 0;
  color: inherit;
}

.brand img.custom-logo {
  max-height: 52px;
  width: auto;
  border-radius: 0.35rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand-name .txt-green {
  color: var(--green);
}

.brand-name .txt-gold {
  color: var(--gold-dark);
}

html.dark-theme .brand-name .txt-gold {
  color: var(--gold);
}

.brand-tag {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--green);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
  width: 1.25rem;
}

.main-nav .current-menu-item > a {
  color: var(--green);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn {
  padding: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--green);
  background: var(--green-soft);
}

/* Theme Toggle icons */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

html.dark-theme .theme-toggle .sun-icon {
  display: block;
  color: var(--gold);
}
html.dark-theme .theme-toggle .moon-icon {
  display: none;
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 0;
  box-shadow: 0 10px 15px -10px rgba(0,0,0,0.05);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--green-soft);
  color: var(--green);
}

/* Hero Section */
.hero {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--border) 50%, transparent 95%);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green);
}

.hero-text .lead {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 35rem;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 200px 200px 0 0;
  padding: 8px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(194, 155, 56, 0.2) 100%);
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
}

html.dark-theme .hero-frame {
  box-shadow: 0 12px 35px -15px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, var(--gold) 0%, rgba(218, 180, 89, 0.2) 100%);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 200px 200px 0 0;
  display: block;
  border: 4px solid var(--bg);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Sections */
.section {
  padding: 4rem 0;
}

@media (min-width: 900px) {
  .section {
    padding: 5.5rem 0;
  }
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--green);
}

.topics-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.topics-ornament h2 {
  display: inline-block;
  color: var(--green);
  margin: 0 0.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-card);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

.feature-icon-green {
  background: var(--green);
  color: var(--card);
}

.feature-icon-gold {
  background: var(--gold);
  color: var(--card);
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.feature-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text);
}

.feature-list .tick {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green-soft);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list-gold .tick {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.feature-pillars {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.feature-pillars li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.feature-pillars .num {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}

.feature-pillars div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.feature-pillars strong {
  color: var(--green);
  font-size: 0.92rem;
}

.feature-pillars span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1px;
}

.feature-quote {
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  text-align: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(194, 155, 56, 0.15);
  font-size: 0.88rem;
}

.feature-quote strong {
  display: block;
  color: var(--green);
  margin-bottom: 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}

.feature-quote em {
  color: var(--muted);
  font-style: italic;
}

.feature-more {
  margin-top: auto;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.feature-more:hover {
  color: var(--green);
}

/* Featured Topics */
.topics-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .topics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .topics-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  color: inherit;
  display: block;
}

.topic-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  color: inherit;
}

.topic-icon {
  color: var(--green);
  margin-bottom: 0.75rem;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-card:hover .topic-icon {
  color: var(--gold-dark);
  transform: scale(1.1);
}

.topic-card h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.topic-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Articles layout */
.articles-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .articles-layout {
    grid-template-columns: 1fr 310px;
    gap: 3rem;
  }
}

.articles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.articles-head h2 {
  color: var(--green);
  font-size: 1.75rem;
}

.articles-view-all {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.articles-view-all:hover {
  color: var(--green);
}

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

@media (min-width: 560px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.article-card:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.article-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card:hover .thumb img {
  transform: scale(1.05);
}

.article-card .body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

.article-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

.article-card .more {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.84rem;
  margin-top: auto;
}

.article-card:hover .more {
  color: var(--green);
}

.articles-side {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-tint) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.articles-side h3 {
  color: var(--green);
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.articles-side p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.side-illust {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 90%;
  color: var(--green);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

/* Contact Section */
.section-contact {
  background: var(--bg-tint);
  position: relative;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 3.5rem;
  }
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
}

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

@media (min-width: 560px) {
  .contact-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(10, 61, 34, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

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

.contact-form button[type="submit"] {
  background: var(--green);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(10,61,34,0.15);
}

.contact-form button[type="submit"]:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 16px rgba(10,61,34,0.25);
}

.contact-quote {
  background: linear-gradient(185deg, var(--card) 0%, var(--bg-tint) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  text-align: center;
  border: 1.5px solid var(--gold);
  position: relative;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.contact-quote .q-mark {
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}

.contact-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.contact-quote cite {
  color: var(--gold-dark);
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.quote-book-illust {
  position: absolute;
  right: -10px;
  bottom: -15px;
  width: 140px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #DBE5DE;
  position: relative;
}

html.dark-theme .site-footer {
  background: #080D0B;
}

.site-footer .brand .brand-name .txt-green {
  color: #fff;
}

.site-footer .brand .brand-name .txt-gold {
  color: var(--gold);
}

.site-footer .brand .brand-tag {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-grid {
  padding: 4.5rem 0 3.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }
}

.footer-about {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
}

.footer-socials a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-socials a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-grid li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.footer-grid li a:hover {
  color: var(--gold);
}

.newsletter-col p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

@media (min-width: 480px) and (max-width: 639px), (min-width: 1024px) {
  .newsletter {
    flex-direction: row;
  }
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

.newsletter button:hover {
  background: var(--gold-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumbs & Page Hero */
.breadcrumb {
  padding: 1.5rem 0 0.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
  align-items: center;
}

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

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb .sep {
  color: #C0C8C3;
}

.breadcrumb .current {
  color: var(--green);
  font-weight: 500;
}

.page-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--green);
  font-weight: 700;
}

.page-hero p {
  color: var(--muted);
  max-width: 42rem;
  margin: 1.2rem auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Article Body */
.article-body {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--green);
}

/* Inner Page Cards */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 580px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  display: block;
  color: inherit;
}

.card:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card .more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.card:hover .more {
  color: var(--green);
}

.card-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* Forms generic */
.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 38rem;
  margin: 0 auto;
}

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--green);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  font: inherit;
  color: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--card);
}

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

.form-success {
  background: var(--green-soft);
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 500;
}

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

.pagination .page-numbers {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--card);
  font-weight: 500;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* 404 */
.not-found {
  text-align: center;
  padding: 6rem 1.5rem;
}

.not-found h1 {
  font-size: 6rem;
  color: var(--green);
  font-weight: 800;
  line-height: 1;
}

.not-found p {
  color: var(--muted);
  margin: 1.5rem 0 2.5rem;
  font-size: 1.1rem;
}

/* --- Dark Theme Overrides & Toggle Styling --- */
html.dark-theme, body.dark-theme {
  --green: #89C79A; /* Glowing mint/sage green */
  --green-dark: #A5DCB4;
  --green-soft: rgba(137, 199, 154, 0.08);
  --gold: #DAB459; /* Bright warm gold */
  --gold-dark: #F2D27E;
  --gold-soft: rgba(218, 180, 89, 0.1);
  --bg: #0F1713; /* Deep forest charcoal background */
  --bg-tint: #16201A;
  --card: #1A251F;
  --text: #E5EDE9;
  --muted: #95A99C;
  --border: #28392F;
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* Smooth background color transitions */
body, .feature-card, .topic-card, .article-card, .site-header, .site-footer, 
.contact-form, .contact-quote, .brand, .main-nav a, input, textarea, .btn, .num, .tick {
  transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

/* Theme Toggle Button Visibility */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

html.dark-theme .theme-toggle .sun-icon,
body.dark-theme .theme-toggle .sun-icon {
  display: block;
  color: var(--gold);
}

html.dark-theme .theme-toggle .moon-icon,
body.dark-theme .theme-toggle .moon-icon {
  display: none;
}

/* Adjustments for dark mode elements */
html.dark-theme .hero-frame,
body.dark-theme .hero-frame {
  box-shadow: 0 12px 35px -15px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, var(--gold) 0%, rgba(218, 180, 89, 0.2) 100%);
}

html.dark-theme .site-footer,
body.dark-theme .site-footer {
  background: #080D0B; /* Darker background in footer */
}

html.dark-theme .brand-name .txt-green,
body.dark-theme .brand-name .txt-green {
  color: var(--green);
}

html.dark-theme .brand-name .txt-gold,
body.dark-theme .brand-name .txt-gold {
  color: var(--gold);
}
