/* Main CSS - English Sites Template */

/* ============================================
   DESIGN SYSTEM - CSS Variables Override
   ============================================ */

:root {
  /* Colors - Softer palette */
  --color-background: #f5f7fa;
  --color-background-alt: #eef1f5;
  --color-surface: #ffffff;

  /* Layout */
  --max-width-wide: 1600px;
  --max-width-content: 1400px;
  --max-width-readable: 1100px;  /* For text-heavy pages */
  --max-width-prose: 800px;      /* For optimal line-length in articles */
  --section-padding: 24px;
  --section-padding-y: 80px;
}

/* Skip Link - Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn--secondary {
  background-color: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
}

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* Hero/CTA buttons - white on colored background */
.hero .btn--primary,
.cta-section .btn--primary {
  background-color: white;
  color: var(--color-primary);
}

.hero .btn--primary:hover,
.cta-section .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Focus States - Accessibility */
a:focus,
button:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Header */
.header {
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--section-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.header__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  gap: var(--space-lg);
}

.header__nav-link {
  color: var(--color-text);
  font-weight: 500;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

/* Dropdown styles */
.header__dropdown {
  position: relative;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
  padding: var(--space-sm) 0;
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.header__dropdown-item:hover {
  background: var(--color-primary);
  color: white;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone {
  color: var(--color-text);
  font-weight: 600;
}

.header__menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  width: 40px;
  height: 40px;
  position: relative;
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px auto;
  transition: all 0.3s ease;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  background-color: var(--color-primary);
  color: white;
  padding: var(--section-padding-y) var(--section-padding);
  text-align: center;
}

.hero__container {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero__tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.375rem);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats */
.stats {
  background: var(--color-primary);
  color: white;
  padding: var(--space-3xl) var(--section-padding);
}

.stats__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stats__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
}

.stats__label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Cards Section */
.cards-section {
  padding: var(--section-padding-y) var(--section-padding);
}

.cards-section__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.cards-section__title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.cards-section__subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.cards-grid {
  display: grid;
  gap: var(--space-lg);
}

.cards-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card__icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card__description {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card__link {
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--color-background-alt);
  padding: var(--section-padding-y) var(--section-padding);
}

.testimonials__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.testimonials__title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.testimonials__subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.testimonial-card__rating {
  color: #fbbf24;
  margin-bottom: var(--space-md);
}

.testimonial-card__quote {
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.testimonial-card__name {
  display: block;
}

.testimonial-card__role {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* FAQ */
.faq {
  padding: var(--section-padding-y) var(--section-padding);
}

.faq__container {
  max-width: var(--max-width-readable);
  margin: 0 auto;
}

.faq__title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  padding: var(--space-md) 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__answer {
  padding-bottom: var(--space-md);
  color: var(--color-text-light);
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  color: white;
  padding: var(--section-padding-y) var(--section-padding);
  text-align: center;
}

.cta-section__container {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.cta-section__title {
  margin-bottom: var(--space-sm);
}

.cta-section__subtitle {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

/* Text Section */
.text-section {
  padding: var(--section-padding-y) var(--section-padding);
}

.text-section__container {
  max-width: var(--max-width-readable);
  margin: 0 auto;
}

/* Remove nested max-width constraint when prose is inside text-section */
.text-section .prose {
  max-width: none;
}

.text-section__title {
  margin-bottom: var(--space-lg);
}

/* Breadcrumb Navigation (general, non-blog pages) */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-text);
}

.prose p {
  margin-bottom: var(--space-md);
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding-y) var(--section-padding);
  background: var(--color-background-alt);
}

.contact-section__container {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.contact-section__title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.contact-section__subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-item {
  margin-bottom: var(--space-lg);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: var(--section-padding-y) var(--section-padding) var(--space-xl);
}

.footer__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.footer__established {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer__heading {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--space-sm);
}

.footer__list a {
  color: rgba(255,255,255,0.8);
}

.footer__list a:hover {
  color: white;
}

.footer__address {
  font-style: normal;
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.footer__phone a,
.footer__email a {
  color: white;
}

.footer__hours {
  opacity: 0.8;
  font-size: 0.875rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  color: rgba(255,255,255,0.8);
}

/* Footer Social Links */
.footer__social {
  text-align: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-lg);
}

.footer__social .footer__heading {
  margin-bottom: var(--space-md);
}

.footer__social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer__social-links a:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-2px);
}

.footer__social-links svg {
  width: 20px;
  height: 20px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* WordPress Block Styles - Imported Content */
.wp-block-image {
  margin: var(--space-lg) 0;
}

.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-image figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--space-sm);
}

.wp-block-heading,
.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.wp-block-paragraph,
.wp-content p {
  margin-bottom: var(--space-md);
}

.wp-block-list,
.wp-content ul,
.wp-content ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.wp-block-list li,
.wp-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.wp-block-quote,
.wp-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: #f9fafb;
  font-style: italic;
}

.wp-block-quote cite,
.wp-content blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-text-light);
}

.wp-block-table,
.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.wp-block-table th,
.wp-block-table td,
.wp-content th,
.wp-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.wp-block-table th,
.wp-content th {
  background: #f3f4f6;
  font-weight: 600;
}

.wp-block-separator,
.wp-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.wp-block-column {
  padding: var(--space-md);
}

.wp-block-button {
  display: inline-block;
  margin: var(--space-md) 0;
}

.wp-block-button__link {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.wp-block-button__link:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Button container */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.wp-block-buttons .wp-block-button {
  margin: 0;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-primary);
  color: white;
}

/* Outline buttons in CTA sections */
.prose .cta-section .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: white;
  color: white;
}

.prose .cta-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: white;
  color: var(--color-primary);
}

.wp-block-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: var(--space-2xl);
  margin: var(--space-lg) 0;
  border-radius: var(--radius);
  color: white;
}

.wp-block-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius);
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
}

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.wp-block-gallery figure {
  margin: 0;
}

.wp-block-gallery img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

/* Prose Styles - For Content Pages */
/* Only apply max-width when prose is a direct child of main or standalone */
main > .prose {
  max-width: var(--max-width-readable);
  margin: 0 auto;
  padding: 0 var(--section-padding);
}

.prose {
  /* No max-width by default - let parent container control width */
}

.prose p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.prose li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.prose h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
}

.prose a:hover {
  text-decoration: none;
}

/* Buttons inside prose should keep their own colors */
.prose .wp-block-button__link {
  color: white;
  text-decoration: none;
}

/* Standard buttons inside prose must retain their colors */
.prose .btn {
  text-decoration: none;
}

.prose .btn--primary {
  color: white;
}

.prose .btn--secondary {
  color: var(--color-primary);
}

.prose .btn--secondary:hover {
  color: white;
}

/* Outline button variants in prose */
.prose .btn--outline {
  color: white;
}

.prose .btn--outline:hover {
  color: var(--color-secondary, var(--color-text));
}

.prose .btn--outline-dark {
  color: var(--color-text);
}

.prose .btn--outline-dark:hover {
  color: white;
}

/* Buttons in CTA/Hero sections within prose keep their inverted colors */
.prose .cta-section .btn--primary,
.prose .hero .btn--primary {
  color: var(--color-primary);
}

.prose img {
  border-radius: var(--radius);
  margin: var(--space-lg) 0;
}

.prose strong {
  font-weight: 600;
}

/* Additional Typography */
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Card Hover Effects */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer Link Hover */
.footer__list a:hover {
  color: white;
  text-decoration: underline;
}

/* WhatsApp Focus State */
.whatsapp-float:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .header__container {
    padding: var(--space-sm) var(--space-md);
  }

  .header__nav {
    gap: var(--space-md);
  }

  .header__nav-link {
    font-size: 0.9rem;
  }

  .header__phone {
    display: none;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__menu-toggle {
    display: block;
  }

  /* Mobile Navigation Panel */
  .header__nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: var(--space-lg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    gap: var(--space-md);
    z-index: 99;
  }

  .header__nav--open .header__nav-link {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  /* Mobile dropdown */
  .header__nav--open .header__dropdown {
    width: 100%;
  }

  .header__nav--open .header__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    padding-left: var(--space-md);
    background: transparent;
  }

  .header__nav--open .header__dropdown-item {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-light);
  }

  .header__nav--open .header__dropdown-item:hover {
    background: transparent;
    color: var(--color-primary);
  }

  .header__cta--open {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-top: 1px solid var(--color-border);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .cards-grid--3,
  .cards-grid--4 {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ============================================
   BLOG POST LAYOUT
   ============================================ */

.blog-post {
  padding: var(--section-padding-y) 0;
}

.blog-post__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--section-padding);
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-3xl);
}

/* Blog content prose - allow it to breathe within the main column */
.blog-post__content.prose {
  max-width: none;
}

.blog-post__main {
  min-width: 0;
}

/* Header */
.blog-post__breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.blog-post__breadcrumb a {
  color: var(--color-text-light);
}

.blog-post__breadcrumb a:hover {
  color: var(--color-primary);
}

.blog-post__title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.blog-post__author {
  font-weight: 600;
  color: var(--color-text);
}

.blog-post__category {
  margin-bottom: var(--space-lg);
}

.blog-post__category a {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Featured Image */
.blog-post__featured-image {
  margin-bottom: var(--space-xl);
}

.blog-post__featured-image img {
  width: 100%;
  border-radius: var(--radius);
}

.blog-post__featured-image figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Experience Callout (E-E-A-T) */
.blog-post__experience-callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Content */
.blog-post__content {
  line-height: 1.8;
}

.blog-post__content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
}

.blog-post__content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.375rem;
}

.blog-post__content p {
  margin-bottom: var(--space-lg);
}

.blog-post__content ul,
.blog-post__content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.blog-post__content li {
  margin-bottom: var(--space-sm);
}

/* Expert Quote Block (E-E-A-T) */
.blog-post__content blockquote,
.expert-quote {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.expert-quote p {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.expert-quote cite {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: normal;
  display: block;
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.toc__header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.toc__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc__item {
  margin-bottom: var(--space-xs);
}

.toc__item--h3 {
  padding-left: var(--space-lg);
}

.toc__item--h4 {
  padding-left: var(--space-2xl);
}

.toc__link {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: block;
  padding: var(--space-xs) 0;
  transition: color 0.15s ease;
}

.toc__link:hover {
  color: var(--color-primary);
}

.toc__item--h3 .toc__link::before,
.toc__item--h4 .toc__link::before {
  content: "– ";
  color: var(--color-text-light);
}

/* Article History (E-E-A-T freshness) */
.blog-post__history {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius);
  margin: var(--space-3xl) 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.blog-post__history h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.blog-post__history ul {
  list-style: none;
  padding: 0;
}

.blog-post__history li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.blog-post__history li:last-child {
  border-bottom: none;
}

/* CTA Section */
.blog-post__cta {
  background: var(--color-primary);
  color: white;
  padding: var(--space-2xl);
  border-radius: var(--radius);
  text-align: center;
  margin: var(--space-3xl) 0;
}

.blog-post__cta h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.blog-post__cta p {
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.blog-post__cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.blog-post__cta .btn--primary {
  background: white;
  color: var(--color-primary);
}

.blog-post__cta .btn--secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.blog-post__cta .btn--secondary:hover {
  background: white;
  color: var(--color-primary);
}

/* Author Box (E-E-A-T) */
.blog-post__author-box {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius);
  margin-top: var(--space-2xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.blog-post__author-box h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.blog-post__author-box p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* Sidebar */
.blog-post__sidebar {
  position: sticky;
  top: var(--space-xl);
  height: fit-content;
}

.sidebar-widget {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

.sidebar-widget--latest-posts a {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.sidebar-widget--latest-posts a:last-child {
  border-bottom: none;
}

.view-all-link {
  display: block;
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ============================================
   AD PLACEHOLDERS
   ============================================ */

.ad-container {
  margin: var(--space-xl) 0;
  text-align: center;
}

.ad-placeholder {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-placeholder--tall {
  min-height: 300px;
}

.ad-placeholder__label {
  opacity: 0.5;
}

.ad-container--header .ad-placeholder {
  max-width: 728px;
  margin: 0 auto;
  min-height: 90px;
}

.ad-container--in-article {
  margin: var(--space-2xl) auto;
  max-width: 300px;
}

.ad-container--in-article .ad-placeholder {
  min-height: 250px;
}

.ad-container--after-content .ad-placeholder {
  max-width: 300px;
  margin: 0 auto;
  min-height: 250px;
}

.ad-container--sidebar-sticky {
  margin-bottom: var(--space-xl);
}

.ad-container--sidebar-sticky .ad-placeholder {
  min-height: 600px;
}

/* In-article ad injection point */
.ad-injection-point {
  margin: var(--space-2xl) 0;
}

/* ============================================
   BLOG POST RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .blog-post__container {
    grid-template-columns: 1fr;
  }

  .blog-post__sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }

  .ad-container--sidebar-sticky .ad-placeholder {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .blog-post__title {
    font-size: 1.75rem;
  }

  .blog-post__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-post__cta-buttons {
    flex-direction: column;
  }

  .ad-container--header .ad-placeholder {
    min-height: 60px;
  }
}

/* ============================================
   BLOG LISTING PAGE
   ============================================ */

.blog-listing {
  padding: var(--section-padding-y) 0;
}

.blog-listing__container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--section-padding);
}

.blog-listing__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: var(--space-lg);
}

.blog-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--color-text);
}

.blog-card__title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.blog-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ============================================
   SIMPLIFIED UTILITY CLASSES
   (Replaces verbose wp-block-* patterns)
   ============================================ */

/* Content Card - white bg with padding and rounded corners */
.content-card {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 30px;
}

.content-card--bordered-green {
  border: 2px solid #10b981;
}

.content-card--bordered-blue {
  border: 2px solid #0284c7;
}

/* Columns layout */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.column {
  padding: var(--space-md);
}

/* Button group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.button-group--center {
  justify-content: center;
}

/* Content sections (from wp-block-group) */
.content-section {
  margin: var(--space-2xl) 0;
}

.bg-light {
  background: var(--color-background-alt);
  padding: var(--space-xl);
  border-radius: var(--radius);
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Hero section in prose */
.hero-section {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.hero-section .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.hero-section .trust-badges {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

/* Inline CTA section */
.prose .cta-section {
  background: var(--color-primary);
  color: white;
  padding: var(--space-2xl);
  border-radius: var(--radius);
  text-align: center;
  margin: var(--space-2xl) calc(-1 * var(--space-lg));
}

.prose .cta-section h2 {
  color: white;
  margin-top: 0;
}

.prose .cta-section .trust-line {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: var(--space-lg);
}

.prose .cta-section .btn-white a {
  background: white;
  color: var(--color-primary);
}

/* Stats Counter Section (for About/Course pages) */
.prose .stats-counter {
  background: var(--color-primary);
  color: white;
  padding: var(--space-2xl);
  border-radius: var(--radius);
  margin: var(--space-2xl) calc(-1 * var(--space-lg));
}

.prose .stats-counter h2 {
  color: white;
  text-align: center;
  margin-top: 0;
  margin-bottom: var(--space-xl);
}

.prose .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.prose .stat-item {
  padding: var(--space-md);
}

.prose .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.prose .stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .prose .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prose .stat-number {
    font-size: 2rem;
  }
}

/* All buttons in CTA/green sections should be white */
.prose .cta-section .wp-block-button__link,
.prose .stats-counter .wp-block-button__link {
  background: white;
  color: var(--color-primary);
}

.prose .cta-section .wp-block-button__link:hover,
.prose .stats-counter .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   RESOURCE PAGE STYLES
   ============================================ */

.resource-page {
  padding: var(--space-xl) 0;
  background: var(--color-background);
}

.resource-page__container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--section-padding);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
}

.resource-page__main {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.resource-page__breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.resource-page__breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.resource-page__breadcrumb a:hover {
  text-decoration: underline;
}

.resource-page__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.resource-page__type {
  margin-bottom: var(--space-lg);
}

.resource-page__type span {
  background: var(--color-primary-light, #e8f5e9);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.resource-page__intro {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.resource-page__how-to-use {
  background: var(--color-background-alt, #f8f9fa);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
}

.resource-page__how-to-use h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

/* Columnar content for word lists */
.resource-page__content {
  margin-bottom: var(--space-xl);
}

.resource-page__content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-xs);
}

.resource-page__content h2:first-child {
  margin-top: 0;
}

/* Column layout for numbered lists */
.resource-page__content--columns ol,
.resource-page__content--columns ul {
  columns: 3;
  column-gap: var(--space-lg);
  list-style-position: inside;
}

.resource-page__content--columns[data-columns="4"] ol,
.resource-page__content--columns[data-columns="4"] ul {
  columns: 4;
}

.resource-page__content--columns[data-columns="2"] ol,
.resource-page__content--columns[data-columns="2"] ul {
  columns: 2;
}

.resource-page__content--columns li {
  break-inside: avoid;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-light, #eee);
}

/* FAQ Styles */
.resource-page__faqs {
  margin: var(--space-xl) 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.resource-page__faqs h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-md);
  background: var(--color-background-alt, #f8f9fa);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '+';
  margin-right: var(--space-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.faq-item[open] .faq-question::before {
  content: '−';
}

.faq-answer {
  padding: var(--space-md);
  background: var(--color-surface);
}

/* Related Resources */
.resource-page__related {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--color-background-alt, #f8f9fa);
  border-radius: var(--radius);
}

.resource-page__related h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.resource-page__related-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.resource-page__related-list a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.875rem;
}

.resource-page__related-list a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* CTA Section */
.resource-page__cta {
  background: var(--color-primary);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius);
  text-align: center;
  margin-top: var(--space-xl);
}

.resource-page__cta h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.resource-page__cta p {
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

.resource-page__cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.resource-page__cta .btn--secondary {
  background: white;
  color: var(--color-primary);
}

/* Sidebar */
.resource-page__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.resource-page__sidebar .sidebar-widget {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.resource-page__sidebar .sidebar-links {
  list-style: none;
}

.resource-page__sidebar .sidebar-links li {
  padding: var(--space-xs) 0;
}

.resource-page__sidebar .sidebar-links li strong {
  display: block;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--color-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resource-page__sidebar .sidebar-links li:first-child strong {
  margin-top: 0;
}

.resource-page__sidebar .sidebar-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.resource-page__sidebar .sidebar-links a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .resource-page__container {
    grid-template-columns: 1fr;
  }

  .resource-page__sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .resource-page__content--columns ol,
  .resource-page__content--columns ul {
    columns: 2;
  }

  .resource-page__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .resource-page__content--columns ol,
  .resource-page__content--columns ul {
    columns: 1;
  }
}
