/* 
   WoodCraftGuide.com - Core Design System 
   Author: Sarah Cole & UX Team
   Version: 1.0.0 (2026)
*/

@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');

:root {
  --primary: #2C5F2E;         /* dark forest green */
  --secondary: #97BC62;       /* light green */
  --accent: #D4A017;          /* golden wood tone */
  --bg: #FAFAF7;              /* off-white */
  --text: #1A1A1A;            /* near black */
  --text-light: #555555;      /* slate cool gray */
  --border: #E0DDD5;          /* elegant border tone */
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.85rem;
  margin-top: 2.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: underline;
  transition: var(--transition);
}

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

/* Full-width and constrained Page Layouts */
/* ===== HEADER & NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #2C5F2E;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  color: white;
  font-size: 16px;
  font-family: Georgia, serif;
  white-space: nowrap;
}

.logo-text strong {
  color: #D4A017;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}

.nav-item > a {
  display: block;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
  line-height: 1;
}

.nav-item > a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-review-btn {
  background: #D4A017 !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
}

.nav-review-btn:hover {
  background: #c49015 !important;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  list-style: none;
  margin: 0;
  z-index: 3000;
  min-width: 220px;
}

/* Invisible hover bridge */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown-inner,
ul.nav-dropdown {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
  padding: 8px 0;
  border: 1px solid #E0DDD5;
  list-style: none;
  margin: 0;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.is-open .nav-dropdown {
  display: block !important;
}

.nav-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  white-space: nowrap;
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus {
  background: #f5f5f0;
  color: #2C5F2E;
  padding-left: 22px;
}

.nav-dropdown li:first-child a {
  font-weight: 700;
  color: #2C5F2E;
  border-bottom: 1px solid #f0ede8;
  margin-bottom: 4px;
}

/* Group header inside dropdown */
.nav-dropdown li.dropdown-group-header {
  padding: 8px 18px 4px 18px;
  margin-top: 4px;
  border-top: 1px solid #f0ede8;
}

.dropdown-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888888;
  display: block;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile (<=820px) */
@media (max-width: 820px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #2C5F2E;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.12);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.is-open {
    display: flex !important;
  }

  .nav-item > a {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown {
    display: none;
  }

  .has-dropdown.is-open .nav-dropdown {
    display: block !important;
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
    border: none;
    min-width: unset;
    margin: 4px 0 8px 0;
    padding: 4px 0;
  }

  .has-dropdown.is-open .nav-dropdown-inner,
  .has-dropdown.is-open ul.nav-dropdown {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 6px;
    padding: 2px 0;
  }

  .nav-dropdown li a {
    color: rgba(255,255,255,0.92);
    padding: 11px 18px;
    font-size: 14px;
    white-space: normal;
    display: block;
    text-decoration: none;
  }

  .nav-dropdown li a:hover,
  .nav-dropdown li a:active {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    padding-left: 22px;
  }

  .nav-dropdown li:first-child a {
    color: #D4A017;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .nav-dropdown li.dropdown-group-header {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px 2px 18px;
  }

  .dropdown-group-title {
    color: rgba(255,255,255,0.6);
  }
}

/* Desktop Reset (>820px) */
@media (min-width: 821px) {
  .nav-hamburger {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px !important;
  }
}

/* Card Visual Category Cards CSS */
.card-visual {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}
.card-visual.plans {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.card-visual.projects {
  background: linear-gradient(135deg, #2C5F2E 0%, #4c8c4a 100%);
}
.card-visual.guides {
  background: linear-gradient(135deg, #714316 0%, #a46d37 100%);
}
.card-visual.reviews {
  background: linear-gradient(135deg, #D4A017 0%, #e8b830 100%);
}
.card-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.card-category {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  color: #ffffff !important;
  display: inline-block;
  line-height: 1.2;
}

/* Global Content Constraint (SEO Optimized readability) */
.max-width-content {
  max-width: 760px;
  margin: 0 auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 20px;
}

/* Trust Bar Component */
.trust-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px auto;
  max-width: 1100px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.trust-item span {
  color: var(--accent);
}

/* Call to Action Button */
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.3);
  transition: var(--transition);
  text-align: center;
}

.cta-button:hover {
  background-color: #bfa110;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 160, 23, 0.4);
}

.cta-container {
  text-align: center;
  margin: 35px 0;
}

/* Author Box Component */
.author-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  padding: 20px;
  border-radius: var(--radius);
  margin: 35px 0;
  display: flex;
  gap: 20px;
}

.author-image {
  flex-shrink: 0;
}

.author-image img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.author-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 3px;
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
}

/* Sticky Table Of Contents */
.toc-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  margin: 30px 0;
}

.toc-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 8px;
  font-size: 0.925rem;
}

.toc-list a {
  text-decoration: none;
  color: var(--text-light);
}

.toc-list a:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* Verdict Box (for money pages) */
.verdict-box {
  border-radius: var(--radius);
  border-left: 6px solid var(--primary);
  background-color: #eaf1eb;
  padding: 24px;
  margin: 35px 0;
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 12px;
}

.verdict-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.verdict-rating {
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.15rem;
}

/* FAQ Accordion */
.faq-box {
  margin-top: 40px;
}

.faq-title {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  background-color: #ffffff;
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  font-size: 1.05rem;
  color: var(--primary);
}

.faq-question:hover {
  background-color: #f7f6f2;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* Grid Layouts to support desktop expandability */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--card-gap, 24px);
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

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

.article-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-decoration: none;
  font-family: Georgia, serif;
}

.article-card-title a {
  text-decoration: none;
  color: var(--primary);
}

.article-card-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.article-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Breadcrumb Styles */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.breadcrumb-separator {
  margin: 0 8px;
}

/* Pros and Cons table */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

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

.pros-box, .cons-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.pros-box {
  border-top: 4px solid var(--primary);
}

.cons-box {
  border-top: 4px solid #cc3333;
}

.pros-cons-title {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 15px;
  font-family: Georgia, serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-cons-title.pro {
  color: var(--primary);
}

.pros-cons-title.con {
  color: #cc3333;
}

.pros-cons-list {
  list-style-type: none;
}

.pros-cons-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.pros-cons-list li::before {
  position: absolute;
  left: 0;
  font-weight: bold;
}

.pros-box .pros-cons-list li::before {
  content: "✓";
  color: var(--primary);
}

.cons-box .pros-cons-list li::before {
  content: "✗";
  color: #cc3333;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background-color: var(--primary);
  color: #ffffff;
  font-family: Georgia, serif;
}

tr:nth-child(even) {
  background-color: #fcfcf9;
}

/* Hero elements for specific template views */
.hero {
  background: linear-gradient(135deg, #1b3d1d 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 760px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

/* Final CTA Section Style */
.final-cta-section {
  background: linear-gradient(135deg, #1b3d1d 0%, var(--primary) 100%);
  color: #ffffff;
  text-align: center;
  padding: 70px 20px;
  border-radius: var(--radius);
  margin: 50px 0;
}

.final-cta-section h2 {
  color: #ffffff;
  border: none;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.final-cta-section p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

/* Footer layout */
footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 50px 20px 25px 20px;
  font-size: 0.9rem;
  border-top: 5px solid var(--accent);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col p {
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid #333333;
  padding-top: 25px;
  font-size: 0.8rem;
  color: #888888;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-disclosure {
  font-size: 12px;
  color: #aaaaaa;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-disclosure a {
  color: #cccccc;
  text-decoration: underline;
}

/* Global Dropdown Navigation Menu styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu li {
  margin-bottom: 0;
}

.dropdown-menu a {
  display: block !important;
  padding: 8px 16px !important;
  color: var(--text-light) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.dropdown-menu a:hover {
  background-color: #f5f7f3 !important;
  color: var(--primary) !important;
}

/* Show on hover for desktop navigation */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block !important;
  }
}

/* Mobile dropdown navigation behavior */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 15px !important;
    background-color: transparent !important;
  }
  .dropdown.active-mobile .dropdown-menu {
    display: block !important;
  }
}


/* ===== MOBILE CONTENT FIX ===== */

/* Fix overall page padding on mobile */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Main content wrapper */
.content-wrapper,
.article-content,
.main-content,
article,
main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix H1 on mobile */
h1 {
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0;
  margin-left: 0;
}

/* Fix all headings */
h2 {
  font-size: clamp(20px, 4vw, 32px);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(17px, 3.5vw, 26px);
  word-wrap: break-word;
}

/* Fix article container padding */
@media (max-width: 768px) {

  /* Page container */
  .page-wrapper,
  .container,
  .article-container,
  .content-area {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Article layout — disable sidebar on mobile */
  .article-layout,
  .content-with-sidebar {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Hide sidebar on mobile */
  .sidebar,
  aside {
    display: none !important;
  }

  /* H1 specific mobile fix */
  h1 {
    font-size: clamp(22px, 6vw, 36px) !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Article hero banner on mobile */
  .article-hero {
    height: 160px !important;
    border-radius: 8px !important;
    margin: 16px 0 24px 0 !important;
    width: 100% !important;
  }

  .hero-icon {
    font-size: 48px !important;
  }

  /* Featured images on mobile */
  img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
  }

  /* Byline on mobile */
  .byline,
  .article-meta {
    font-size: 13px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* Breadcrumb on mobile */
  .breadcrumb {
    font-size: 12px !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
  }

  /* Project cards on mobile */
  .project-card,
  .profit-card,
  .product-card {
    padding: 16px !important;
    margin: 16px 0 !important;
  }

  .project-header {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Tables on mobile — horizontal scroll */
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 13px !important;
    width: 100% !important;
  }

  /* CTA buttons on mobile */
  .btn-primary,
  .btn-secondary,
  a[href="/go/teds/"],
  a[href="/go/ryan/"] {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  /* CTA blocks on mobile */
  .cta-block,
  .cta-section,
  [class*="cta"] {
    padding: 24px 16px !important;
    border-radius: 10px !important;
    margin: 24px 0 !important;
  }

  /* Author box on mobile */
  .author-box {
    padding: 16px !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Expert note on mobile */
  .expert-note {
    padding: 16px !important;
    margin: 24px 0 !important;
  }

  /* Skills grid on mobile */
  .skill-guide {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Product comparison on mobile */
  .product-comparison {
    padding: 16px !important;
  }

  /* Table of contents on mobile */
  .toc,
  .table-of-contents {
    padding: 16px !important;
    margin: 16px 0 24px 0 !important;
    font-size: 14px !important;
  }

  /* Related articles grid on mobile */
  .related-articles,
  .articles-grid,
  .guide-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Footer on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
  }

  /* Profit table on mobile */
  .profit-table {
    grid-template-columns: 1fr 1fr !important;
    font-size: 13px !important;
  }

  /* Dual button CTA on mobile */
  .dual-cta,
  .cta-buttons {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* Extra small screens (iPhone SE etc) */
@media (max-width: 380px) {
  h1 {
    font-size: 20px !important;
  }

  .project-number {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .hero-icon {
    font-size: 40px !important;
  }
}
