/* ==========================================================================
   LexVanguard - Graceful Modern Blog Styling
   Typography: 16px Montserrat body, Cormorant Garamond headings
   Palette: White #FFFFFF, Charcoal #222222, Top Bar #F0F3FA, Border #EEEEEE / #E1E1E1, Accent Gold #C5A059, Navy #0F172A
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #222222;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Garamond, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
h4 { font-size: 1.25rem; margin-top: 1.25rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #C5A059;
}

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

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* --- Accessibility: Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header Architecture: Two Full-Width Bars + Text Brand
   ========================================================================== */

/* 1. Top Bar (~41px, #F0F3FA, 1px #EEEEEE border) */
.header-top-bar {
  width: 100%;
  min-height: 41px;
  background-color: #F0F3FA;
  border-bottom: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.legal-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  padding: 0;
  margin: 0;
}

.legal-menu li {
  margin: 0;
  display: flex;
  align-items: center;
}

.legal-menu li::after {
  content: "·";
  margin-left: 24px;
  color: #94A3B8;
  font-weight: bold;
}

.legal-menu li:last-child::after {
  content: "";
  margin: 0;
}

.legal-menu a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.legal-menu a:hover {
  color: #0F172A;
  text-decoration: underline;
}

/* 2. Brand Section: Between the Bars (Site name + Tagline as text, no image logo) */
.brand-masthead {
  padding: 36px 0 32px 0;
  text-align: center;
  background-color: #FFFFFF;
}

.site-title {
  font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0F172A;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: #0F172A;
}

.site-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748B;
  margin-top: 8px;
  margin-bottom: 0;
}

/* 3. Main Bar (~61px, White, 1px #E1E1E1 border) */
.header-main-bar {
  width: 100%;
  min-height: 61px;
  background-color: #FFFFFF;
  border-top: 1px solid #E1E1E1;
  border-bottom: 1px solid #E1E1E1;
  position: relative;
  display: flex;
  align-items: center;
}

.main-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 20px;
}

.main-nav-wrapper {
  display: flex;
  align-items: center;
}

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

.main-menu li {
  margin: 0;
}

.main-menu a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: 0.03em;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.main-menu a:hover,
.main-menu a.active {
  color: #C5A059;
}

/* Header Search Form */
.header-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#searchform {
  display: flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  overflow: hidden;
  background: #FFFFFF;
}

#searchform input[type="text"] {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  width: 170px;
  color: #1E293B;
}

#searchform input[type="text"]::placeholder {
  color: #94A3B8;
}

#searchform button[type="submit"] {
  background: #0F172A;
  border: none;
  color: #FFFFFF;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: background 0.2s ease;
}

#searchform button[type="submit"]:hover {
  background: #C5A059;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #0F172A;
  cursor: pointer;
}

/* ==========================================================================
   Home Page Specific Sections (In Required Order)
   ========================================================================== */

/* 1. Featured Slider */
.featured-slider-section {
  padding: 30px 0 20px 0;
}

.featured-slider-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #0F172A;
  color: #FFFFFF;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.slider-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  filter: brightness(0.5) contrast(1.1);
}

.slider-content-overlay {
  position: relative;
  z-index: 2;
  padding: 50px 40px;
  max-width: 820px;
  background: linear-gradient(90deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.85) 65%, rgba(15,23,42,0.25) 100%);
  width: 100%;
}

.slider-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C5A059;
  background: rgba(197, 160, 89, 0.15);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.slider-post-title {
  font-size: 2.3rem;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.slider-post-title a {
  color: #FFFFFF;
}

.slider-post-title a:hover {
  color: #E2E8F0;
}

.btn-read-more {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0F172A;
  background: #C5A059;
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn-read-more:hover {
  background: #FFFFFF;
  color: #0F172A;
}

/* 2. Featured Cards (~1024x585 aspect ratio, title, one-line excerpt) */
.featured-cards-section {
  padding: 30px 0;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #0F172A;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 8px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.featured-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.featured-card {
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 1024 / 585;
  overflow: hidden;
  background: #0F172A;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .card-img-wrapper img {
  transform: scale(1.03);
}

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

.card-category {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C5A059;
  margin-bottom: 8px;
}

.featured-card-title {
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.featured-card-title a {
  color: #0F172A;
}

.featured-card-title a:hover {
  color: #C5A059;
}

.one-line-excerpt {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3. Favorite Categories (BUSINESS, GUIDES, BLOG) */
.fav-categories-section {
  padding: 25px 0 35px 0;
}

.fav-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fav-cat-card {
  display: block;
  background: #F0F3FA;
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.fav-cat-card:hover {
  background: #0F172A;
  border-color: #0F172A;
  transform: translateY(-2px);
}

.fav-cat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0F172A;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.fav-cat-card:hover .fav-cat-title {
  color: #FFFFFF;
}

.fav-cat-count {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #64748B;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.fav-cat-card:hover .fav-cat-count {
  color: #C5A059;
}

/* 4. Trending Posts */
.trending-posts-section {
  padding: 25px 0;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trending-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 12px;
  border-bottom: 1px solid #EEEEEE;
}

.trending-thumb {
  width: 90px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #0F172A;
}

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

.trending-info h4 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0;
}

.trending-info h4 a {
  color: #1E293B;
}

.trending-info h4 a:hover {
  color: #C5A059;
}

/* 5. Guides Section */
.guides-section {
  padding: 25px 0 35px 0;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.guide-card {
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 22px;
  background: #FAFAFA;
}

.guide-card-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.guide-card-title a {
  color: #0F172A;
}

.guide-card-title a:hover {
  color: #C5A059;
}

.guide-excerpt {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

.guide-link {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F172A;
}

.guide-link:hover {
  color: #C5A059;
}

/* 6, 7. Main Content + Recent Posts Sidebar Layout */
.home-main-layout,
.inner-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 30px 0 50px 0;
}

/* Latest list — Continue Reading */
.latest-posts-stream {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.latest-post-item {
  border-bottom: 1px solid #EEEEEE;
  padding-bottom: 30px;
}

.latest-post-thumb {
  width: 100%;
  aspect-ratio: 1024 / 585;
  margin-bottom: 16px;
  border-radius: 3px;
  overflow: hidden;
  background: #0F172A;
}

.latest-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-post-title {
  font-size: 1.85rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.latest-post-title a {
  color: #0F172A;
}

.latest-post-title a:hover {
  color: #C5A059;
}

.latest-post-excerpt {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.btn-continue-reading {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0F172A;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.btn-continue-reading:hover {
  color: #C5A059;
  border-color: #C5A059;
}

/* 7. Recent Posts Sidebar */
.primary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #FAFAFA;
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  padding: 24px;
}

.sidebar-widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0F172A;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.sidebar-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 14px;
  margin: 0;
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-thumb {
  width: 75px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #0F172A;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-item h4 {
  font-size: 0.9375rem;
  line-height: 1.35;
  margin: 0;
}

.sidebar-post-item h4 a {
  color: #1E293B;
}

.sidebar-post-item h4 a:hover {
  color: #C5A059;
}

/* 8. Numbered Pagination */
.pagination-wrapper {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #EEEEEE;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
  transition: all 0.2s ease;
}

.pagination-item:hover,
.pagination-item.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* ==========================================================================
   Single Post Specific Styling
   ========================================================================== */
.post-header {
  margin-bottom: 25px;
}

.post-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C5A059;
  background: rgba(197, 160, 89, 0.15);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.post-title-main {
  font-size: 2.75rem;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 20px;
}

.post-featured-image {
  width: 100%;
  aspect-ratio: 1140 / 651;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 30px;
  background: #0F172A;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Key Takeaways Box */
.key-takeaways-box {
  background: #F0F3FA;
  border-left: 4px solid #C5A059;
  padding: 24px;
  border-radius: 0 4px 4px 0;
  margin: 30px 0;
}

.takeaways-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-takeaways-box ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.key-takeaways-box li {
  font-size: 0.9375rem;
  color: #1E293B;
  margin-bottom: 8px;
}

/* Sticky Table of Contents (TOC) with Toggle */
.toc-box {
  background: #FAFAFA;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 18px 24px;
  margin: 30px 0;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.toc-toggle-btn {
  background: none;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 0;
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.toc-list.collapsed {
  display: none;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list li.toc-level-3 {
  padding-left: 18px;
}

.toc-list a {
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
}

.toc-list a:hover {
  color: #C5A059;
  text-decoration: underline;
}

/* Article Body Typography */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #222222;
}

.lead-paragraph {
  font-size: 1.1875rem;
  line-height: 1.85;
  color: #1E293B;
  font-weight: 400;
}

.article-content h2 {
  font-size: 1.9rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #EEEEEE;
  padding-bottom: 6px;
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* FAQ Accordion / Cards */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.faq-card {
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  padding: 18px 22px;
  background: #FAFAFA;
}

.faq-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: #0F172A;
}

.faq-card p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: #475569;
}

/* Previous & Next Navigation */
.post-navigation-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #EEEEEE;
}

.nav-link-card {
  padding: 16px;
  border: 1px solid #E2E8F0;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.nav-link-card:hover {
  background: #F0F3FA;
  border-color: #CBD5E1;
}

.nav-direction {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 4px;
}

.nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

/* ==========================================================================
   Tool Pages & Interactive Widgets
   ========================================================================== */
.tool-container {
  background: #FFFFFF;
}

.tool-widget-card {
  background: #FAFAFA;
  border: 2px solid #E2E8F0;
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.widget-header h2 {
  font-size: 2.2rem;
  color: #0F172A;
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
}

.widget-subtitle {
  text-align: center;
  font-size: 0.9375rem;
  color: #64748B;
  margin-bottom: 25px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.dropzone.dragover {
  border-color: #C5A059;
  background: #FFFDF9;
}

.dropzone-icon {
  font-size: 2.5rem;
  color: #94A3B8;
  margin-bottom: 10px;
}

.dropzone p {
  margin: 0;
  font-weight: 600;
  color: #334155;
}

.dropzone span {
  font-size: 0.8125rem;
  color: #94A3B8;
  font-weight: 400;
}

/* Tool Controls Grid */
.tool-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.control-group input[type="number"],
.control-group select,
.control-group input[type="text"] {
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.875rem;
  color: #1E293B;
  background: #FFFFFF;
  outline: none;
}

.control-group input:focus,
.control-group select:focus {
  border-color: #0F172A;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.checkbox-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

/* Tool Buttons & Output */
.btn-tool-action {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-tool-action:hover {
  background: #C5A059;
}

.btn-tool-secondary {
  background: #E2E8F0;
  color: #1E293B;
  border: none;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-tool-secondary:hover {
  background: #CBD5E1;
}

.tool-output-box {
  margin-top: 25px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 20px;
  display: none;
}

.output-textarea {
  width: 100%;
  height: 140px;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.8125rem;
  resize: vertical;
  margin-bottom: 12px;
  outline: none;
}

.tool-preview-wrapper {
  margin-top: 15px;
  text-align: center;
  max-height: 300px;
  overflow: auto;
  border: 1px dashed #CBD5E1;
  padding: 15px;
  background: #F8FAFC;
}

.tool-preview-wrapper img {
  max-height: 260px;
  margin: 0 auto;
}

.tool-stats-bar {
  display: flex;
  justify-content: space-around;
  background: #F0F3FA;
  padding: 12px;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
}

/* Tool Editorial Copy */
.tool-editorial-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #222222;
}

.tool-summary-lead {
  font-size: 1.15rem;
  color: #1E293B;
  margin-bottom: 25px;
}

/* ==========================================================================
   Static Pages (About, Privacy, Terms, DMCA, Disclaimer, Contact)
   ========================================================================== */
.page-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #222222;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1E293B;
  margin-bottom: 25px;
}

.address-card {
  background: #F0F3FA;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 20px 0;
}

.address-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #1E293B;
}

/* ==========================================================================
   Ad Slots (Empty In-Content & Sidebar Only on Home & Posts)
   ========================================================================== */
.ad-slot {
  display: block;
  min-height: 90px;
  margin: 25px 0;
  text-align: center;
  position: relative;
}

.in-content-ad {
  width: 100%;
  max-width: 728px;
  margin: 30px auto;
}

.sidebar-ad {
  width: 100%;
  min-height: 250px;
}

/* ==========================================================================
   Footer
   Footer #F7F7F7, text #333, one line:
   Copyright © {Brand} ({start} - {year}) - ALL RIGHTS RESERVED
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: #F7F7F7;
  border-top: 1px solid #EEEEEE;
  padding: 22px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #333333;
  margin: 0;
  letter-spacing: 0.04em;
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #C5A059;
  transform: translateY(-3px);
}

/* 404 Page */
.page-404-container {
  text-align: center;
  padding: 70px 20px;
  max-width: 650px;
  margin: 0 auto;
}

.page-404-container h1 {
  font-size: 3.5rem;
  color: #0F172A;
  margin-bottom: 12px;
}

.page-404-container p {
  font-size: 1.1rem;
  color: #64748B;
  margin-bottom: 30px;
}

.page-404-container #searchform {
  max-width: 400px;
  margin: 0 auto;
}

.page-404-container #searchform input[type="text"] {
  width: 100%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .home-main-layout,
  .inner-page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-cards-grid,
  .trending-grid,
  .fav-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-title-main {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #E1E1E1;
    padding: 15px 20px;
    z-index: 999;
  }

  .main-nav-wrapper.active {
    display: block;
  }

  .main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-title {
    font-size: 2.4rem;
  }

  .site-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .featured-cards-grid,
  .trending-grid,
  .fav-categories-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation-links {
    grid-template-columns: 1fr;
  }

  .legal-menu {
    gap: 6px 14px;
  }

  .legal-menu li::after {
    margin-left: 14px;
  }

  .slider-post-title {
    font-size: 1.6rem;
  }

  .slider-content-overlay {
    padding: 20px;
  }
}

/* Keep full tool names together; open the compact menu before they crowd search. */
@media (max-width: 1199px) and (min-width: 769px) {
  .mobile-nav-toggle { display: block; }
  .main-nav-wrapper { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #E1E1E1; padding: 20px; z-index: 100; }
  .main-nav-wrapper.active { display: block; }
  .main-menu { flex-direction: column; align-items: flex-start; gap: 16px; }
}
.btn-tool-action,.btn-tool-secondary { white-space: nowrap; }
