/*=================================================================
  Global Reset & Base Styles
=================================================================*/
:root {
  --brand: #0d3b66;
  --brand-dark: #0a2e4f;
  --accent: #1fb6ff;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
}

/* Keep images from overflowing on small screens */
img {
  max-width: 100%;
  height: auto;
}

html,
body {
  width: 100%;
  overflow-x: hidden;               /* Prevents sideways scroll */
  scroll-behavior: smooth;          /* Smooth scrolling for better UX */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* Additional base styles (optional) */
a {
  color: var(--brand);
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
  color: var(--brand-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  color: var(--brand);
}

/*=================================================================
  Layout Helpers
=================================================================*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section,
.content {
  margin: 2rem auto;
  margin-top: .5rem;
  margin-bottom: .5rem;
}

.content[id^="comparison"] {
  max-width: 1250px;
}

.product-info-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  flex-grow: 1;
  gap: 0.5rem;
  position: relative;
}

.content {
  padding: 1.2rem; /* Internal spacing in sections */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.content .content {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

section {
  padding: 0px 20px;
}

.buyers-guide {
  margin: 2rem auto;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Headings & Text */
.content h2,
section h2 {
  font-size: 1.8rem;
  color: #0d3b66;
  text-align: center;
  margin-bottom: 0.8rem;
}

.content h3,
section h3 {
  font-size: 1.3rem;
  color: #1e6091;
  margin: 0.9rem 0 0.5rem;
  border-left: 4px solid #1e6091;
  padding-left: 0.5rem;
}

.content p,
section p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.45rem;
}

.content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
}

.ranking-list {
  margin: 0.5rem 0 1.25rem 1.25rem;
  padding-left: 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

.ranking-list li {
  margin-bottom: 0.4rem;
}

.ranking-list a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.ranking-list a:hover {
  text-decoration: underline;
}

.product-more {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.75rem 0.9rem;
}

.product-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-more summary::-webkit-details-marker {
  display: none;
}

.product-more ul {
  margin: 0.4rem 0 0.6rem 1rem;
}

.product-more li {
  margin-bottom: 0.3rem;
}

/*=================================================================
  Header & Navigation
=================================================================*/
header {
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: var(--text);
  text-align: left;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.top-line {
  background: var(--brand-dark);
  color: #e8f1f8;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.top-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-line-text {
  opacity: 0.85;
}

.top-line-actions {
  display: flex;
  gap: 0.5rem;
}

.masthead {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand-mark {
  order: 1;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  object-fit: contain;
  background: #fff;
}

.header-intro {
  background: var(--card);
  margin: 1.4rem auto 1rem;
  padding: 1.6rem 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--brand);
}

header h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--muted);
}
.subhead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid #d8e5f3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn,
.toggle-button,
.pill-link,
.menu-toggle {
  font-family: 'Rubik', sans-serif;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 59, 102, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover {
  box-shadow: 0 14px 28px rgba(13, 59, 102, 0.32);
}

.btn.ghost:hover {
  background: rgba(13, 59, 102, 0.06);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.pill-link.ghost {
  background: rgba(255, 255, 255, 0.12);
}

.header-intro .pill-link {
  color: var(--brand);
  border-color: var(--border);
}

.header-intro .pill-link.ghost {
  background: #eef4fb;
}

.toc {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* TOC collapse (mobile, same breakpoint as main nav) */
.toc-collapse {
  display: block;
}

.toc-collapse .toc-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.toc-collapse .toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toc-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brand);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 899px) {
  .toc-collapse .toc-links {
    display: none;
  }

  .toc-collapse .toc-checkbox:checked ~ .toc-links,
  .toc-collapse .toc-checkbox:checked ~ ul.toc-links {
    display: grid;
  }
}

@media (min-width: 900px) {
  .toc-collapse .toc-checkbox {
    display: none;
  }

  .toc-collapse .toc-title {
    cursor: default;
  }

  .toc-hamburger {
    display: none;
  }

  .toc-collapse .toc-links {
    display: grid;
  }
}

.toc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.toc-links li {
  padding: 0;
  margin: 0;
}

.toc-links li::before {
  content: none;
}

.toc-links a {
  display: block;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.toc-links a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

header p.description {
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Toggle buttons */
.toggle-button,
.menu-toggle {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  margin-left: 0;
  order: 3;
}

.toggle-button:hover,
.menu-toggle:hover {
  background: rgba(13, 59, 102, 0.08);
  transform: translateY(-1px);
}

/* Description toggle visibility on small screens */
#toggleDesc {
  display: inline-block;
}

@media (max-width: 899px) {
  #toggleDesc {
    display: inline-block;
    width: auto;
  }

  .description#siteDesc {
    display: none;
  }

  .description#siteDesc.active {
    display: block;
  }

  #toggleDesc.toggle-button {
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    font-weight: 800;
    line-height: 1;
  }
}

.menu-toggle {
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Back to top button */
.jump-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(13, 59, 102, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 1300;
}
.jump-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.jump-top:hover {
    background: var(--brand-dark);
}
.jump-top:focus-visible {
    outline: 3px solid rgba(31, 182, 255, 0.65);
    outline-offset: 3px;
}

@media (max-width: 900px) {
  .top-line-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-line-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .masthead-row {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* Mobile navigation (slides in) */
.site-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--brand);
  padding: 4rem 1.5rem 2rem;
  transition: right 0.3s ease;
  z-index: 1050;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  padding: 0;
  margin: 0;
}

.site-nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-nav ul li a:hover {
  color: var(--accent);
}

.site-nav.active {
  right: 0;
}

body.menu-open {
  overflow: hidden;
}

/* Desktop Navigation */
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .close-menu{
    display:none
  }

  header p.description {
    display: block;
  }

  
  #toggleDesc {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    transition: none;
    box-shadow: none;
    order: 2;
    flex: 1 1 auto;
  }

  .site-nav ul {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
  }

  .site-nav ul li {
    display: inline-block;
  }

  .site-nav ul li a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
  }

  .site-nav ul li a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
  }
}


/* Content Cards */
.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  padding: 20px;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body p {
  margin-bottom: 1.5rem;
}

.read-more {
  background-color: #0d3b66;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.read-more:hover {
  background-color: #145a9e;
}

/* Related Articles Grid */
.content-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.content-articles article {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.content-articles article:hover {
  transform: translateY(-4px);
}

.index-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

img.small {
    width: 100%;
    max-width: 400px;
    height: 300px;
}

.content-articles h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.content-articles p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.testimonial {
  background: #f4f4f9;
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: left;
}

.testimonial p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Menu Button Wrapper */
.menu-button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 899px) {
  #toggleMenu {
    display: block;
    padding: 10px 14px;
    font-size: 1.1rem;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  #toggleMenu:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
  }
}

.close-menu {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
  /* transform: rotate(180deg);  */
  transition: color 0.3s;
}

/* .close-menu:hover {
  color: #3e92cc; 
} */


/*=================================================================
  Desktop Navigation (Clean, Centered)
=================================================================*/
/* @media (min-width: 1200px) {
  
  #menu-toggle-ham {
    display: none;
  }

  
  header p.description {
    display: block;
  }

  
  #toggleDesc {
    display: none;
  }

  
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    background-color: #06283d;
    padding: 10px 30px;
    transition: none;
  }

  .site-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .site-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
  }

  .site-nav ul li a:hover {
    color: #0d3b66;
    border-bottom: 2px solid #0d3b66;
  }
} */

/* Accessibility improvements */
a:focus,
button:focus {
  outline: 2px solid #0d3b66;
}

/*=================================================================
  Buttons / CTAs
=================================================================*/
.btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.2);
}

.btn:hover {
  background: #0b4a86;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(13, 59, 102, 0.18);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(13, 59, 102, 0.08);
}

.buy-button {
  display: inline-block;
  padding: 2px 3px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to right, #28a745, #218838);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.buy-button:hover {
  background: linear-gradient(to right, #218838, #1c7734);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.buy-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Full-width buy buttons on small screens */
@media (max-width: 600px) {
  .buy-button {
    width: 100%;
    text-align: center;
  }
}

/*=================================================================
  Product Grid
=================================================================*/
#products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-auto-rows: auto;
}

#products > h2,
#products > p,
#products > ol,
#products > p.disclosure {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  #products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product .buy-button {
  margin-top: auto;
  align-self: flex-start;
  background: #28a745;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product .product-more {
  margin-top: auto;               /* keep the toggle consistently aligned */
}

.product .buy-button {
  margin-top: 0.75rem;            /* consistent spacing below the toggle */
}

.product-info-wrapper::after {
  content: "";
  flex: 1 1 auto;
  order: 5;                       /* spacer to push CTA cluster to the bottom */
}

.product-info-wrapper .product-more {
  order: 10;
}

.product .buy-button {
  order: 15;
}

.myPick{
  font-weight: bold;
  text-decoration: solid;
}

.product .buy-button:hover {
  background: #1e7e34;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product figure {
  width: 100%;
  aspect-ratio: 4 / 3;           /* mobile-friendly ratio */
  height: auto;
  overflow: hidden;
  border-radius: 6px;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .product figure {
    aspect-ratio: 10 / 4;         /* wider desktop framing */
  }
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.5rem;
}

.product-description {
  margin: 0.35rem 0 0.75rem;
}

@media (min-width: 900px) {
  /* Keep descriptions aligned when cards sit two-per-row */
  .product-description {
    min-height: 7.5rem;
  }
}

.product-feature-list {
  margin: 0.35rem 0 0.75rem;
}

@media (min-width: 900px) {
  /* Keep descriptions aligned when cards sit two-per-row */
  .product-feature-list {
    min-height: 16.5rem;
  }
}

@media (min-width: 900px) {
  body.page-walkie-talkies .product-feature-list {
    min-height: 10rem;
  }
}

@media (min-width: 900px) {
  body.page-baby-essentials-guide .product-feature-list {
    min-height: 10.5rem;
  }
}

@media (min-width: 900px) {
  body.page-night-vision-thermal .product-feature-list {
    min-height: 10.5rem;
  }
}

@media (min-width: 900px) {
  body.page-radar-guns .product-feature-list {
    min-height: 11.5rem;
  }
}

@media (min-width: 900px) {
  body.page-gaming-computers .product-feature-list {
    min-height: 11.5rem;
  }
}
.product p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.product div {
  flex: 1 1 auto;
}

/* Hide lengthy descriptions on very small screens */

.testing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.testing-gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.testing-gallery figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.author-card .author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #d8e5f3;
  background: #fff;
}

.review-notes {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  margin-top: auto;              /* align review blocks at the bottom of cards */
  margin-bottom: 0;              /* avoid extra bottom creep */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 900px) {
  body.page-walkie-talkies .review-notes {
    min-height: 27rem;
  }
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0.7rem 0;
}

.pros-cons h4 {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 1rem;
}

.pros ul,
.cons ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pros li::before,
.cons li::before {
  content: "";
}

.verdict {
  font-weight: 700;
  margin-top: 0.35rem;
}

/*=================================================================
  Comparison Table – Responsive & Compact Images
=================================================================*/
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border: 1px solid #ddd;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.value-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border: 1px solid #ddd;
}

.value-table th,
.value-table td {
  padding: 0.6rem 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.value-table thead {
  background: #0d3b66;
  color: #fff;
}

@media (max-width: 700px) {
  .value-table {
    min-width: 640px;
  }
}

.comparison-table th,
.comparison-table td {
  padding: 0.6rem 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.88rem;
}

.comparison-table thead {
  background: #0d3b66;
  color: #fff;
}

.comparison-table img {
  max-width: 4.375rem;
  height: 6.875rem;
  border-radius: 4px;
}
/* .comparison-table img {
  max-width: 90px;
  height: auto;
  border-radius: 4px;
} */

.comparison-table .model-cell {
  text-align: center;
}

.comparison-table .model-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.comparison-table .model-link:hover,
.comparison-table .model-link:focus {
  text-decoration: underline;
}

.comparison-table .rank-cell {
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.comparison-table .rank-emoji {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.05rem;
}

.comparison-table .rank-title {
  display: block;
}

.comparison-table .rank-score {
  display: block;
  font-weight: 700;
  color: #0b2f52;
  margin-top: 0.15rem;
}

.comparison-table caption {
  caption-side: bottom;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Horizontal scroll on small screens with sticky first column */
@media (max-width: 900px) {
  .comparison-table {
    min-width: 860px;
    table-layout: auto;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .comparison-table img {
    max-width: 2.375rem;
    height: 2.875rem;
    object-fit: contain;
  }

  .comparison-table th {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .comparison-table .model-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,0.08);
  }

  .comparison-table thead .model-cell,
  .comparison-table thead th:first-child {
    z-index: 4;
    background: #0d3b66;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  }
}

/*=================================================================
  FAQ Block (Answers Visible, Optional JS Accordion)
=================================================================*/
.faq-item {
  border-bottom: 1px solid #ccc;
  padding: 0.75rem 0;
  transition: background 0.3s;
}

.faq-item:hover {
  background: #f9f9f9;
}

.faq-item h3 {
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-item.active h3::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.active p {
  max-height: 1200px;
  opacity: 1;
}

/*=================================================================
  Footer
=================================================================*/
footer {
  background: linear-gradient(135deg, #0d3b66, #3e92cc);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.footer-nav ul li a {
  color: #faf0ca;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-nav ul li a:hover {
  color: #ff6b35;
}

/*=================================================================
  Utility Helpers
=================================================================*/
.text-center {
  text-align: center !important;
}
.mt-1 {
  margin-top: 1rem !important;
}
.mb-1 {
  margin-bottom: 1rem !important;
}

/*=================================================================
  Custom Responsive Adjustments for Tablets & Small Devices
=================================================================*/
@media (max-width: 767px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .content p,
  .content li {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  header h2 {
    font-size: 1.1rem;
  }
  .toggle-button,
  .menu-toggle {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
}

/*=================================================================
  Hero Section
=================================================================*/
.hero {
  background: linear-gradient(to right, #0d3b66, #3e92cc);
  color: white;
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
/* Hero image */
.hero-image {
  margin: 0 0 1.5rem;
  display: block;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px; /* optional */
}

/* Optional: desktop-only size constraint */
@media (min-width: 1024px) {
  .hero-image img {
    max-width: 960px;
  }
}

.hero-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}


/* Small screens */
@media (max-width: 640px) {
  .hero-image img {
    max-width: 100%;
    border-radius: 6px;
  }
  .hero-image figcaption {
    font-size: 0.9rem;
  }
}

/* Reviewer photos */
.reviewer-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.reviewer-photo picture {
  display: block;
  max-width: 420px;
  width: 100%;
}
.reviewer-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/*=================================================================
  Weather Widget (Optional Feature)
=================================================================*/
#weather-widget {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Rubik', sans-serif;
  width: min-content;
  z-index: 1000;
}

#weather-current {
  text-align: center;
  margin-bottom: 0.5rem;
}

#weather-temp {
  font-size: 1.5rem;
  font-weight: 700;
}

#weather-desc {
  display: block;
  font-size: 0.85rem;
  text-transform: capitalize;
  color: #555;
}

#weather-forecast {
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.forecast-day {
  text-align: center;
  font-size: 0.75rem;
}

.forecast-day .day {
  font-weight: 700;
}

.forecast-day .temp {
  display: block;
  margin-top: 0.25rem;
}

/* Gift guide layout */
.gift-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.5rem 0;
}

.gift-card {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.gift-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.gift-card ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0.5rem 0;
}

.gift-card li {
  margin: 0.35rem 0;
}

.price-note {
  font-size: 0.92rem;
  color: #2b6cb0;
  margin-top: 0.5rem;
}

.cta {
  font-weight: 700;
  margin-top: 1rem;
}

.howto-list {
  padding-left: 1.2rem;
  margin: 0.85rem 0;
  display: grid;
  gap: 0.45rem;
}

.howto-list li {
  margin-left: 0.2rem;
  line-height: 1.55;
}

/*=================================================================
  Quiz System Styles
=================================================================*/
.quiz-container {
  margin: 1.5rem 0;
}

.quiz-question {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.quiz-question h3 {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 1.2rem;
  border-left: none;
  padding-left: 0;
}

.quiz-question p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--brand);
  background: rgba(13, 59, 102, 0.03);
  transform: translateY(-2px);
}

.quiz-option.selected {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.08);
}

.quiz-option-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quiz-results {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.quiz-results h3 {
  color: #166534;
  margin: 0 0 0.75rem;
  border-left: none;
  padding-left: 0;
}

.quiz-results p {
  color: #374151;
  margin-bottom: 1rem;
}

.recommended-product {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.recommended-product img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f8f9fa;
}

.recommended-product .product-info {
  flex: 1;
}

.recommended-product .product-info h4 {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 1.05rem;
}

.recommended-product .product-info p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.quiz-reset {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.quiz-reset:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .recommended-product {
    flex-direction: column;
    text-align: center;
  }
  
  .recommended-product img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
}

/*=================================================================
  Quick Picks Grid
=================================================================*/
.quick-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.quick-pick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.quick-pick-card .buy-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.85rem;
  font-size: 1rem;
}

.recommended-product .buy-button {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.quick-pick-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, #0d3b66 0%, #1e6091 100%);
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.quick-pick-image {
  display: block;
  width: 175px;
  height: 175px;
  max-width: 100%;
  margin: 0.5rem auto 0.85rem;
}

.quick-pick-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-pick-card h3 {
  margin: 0.35rem 0;
  font-size: 1.1rem;
  border-left: none;
  padding-left: 0;
}

.quick-pick-card h3 a {
  color: var(--brand);
  text-decoration: none;
}

.quick-pick-card h3 a:hover {
  text-decoration: underline;
}

.quick-pick-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 0.5rem;
}

.quick-pick-reason {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  min-height: 100px;
  margin: 0;
}

/* ===== PRODUCT RATING ===== */
.product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.product-rating .stars {
  display: flex;
  gap: 2px;
  font-size: 18px;
  letter-spacing: 1px;
}

.product-rating .star {
  color: #ddd;
}

.product-rating .star.filled {
  color: #FFA500; /* Amazon orange */
}

.product-rating .star.half {
  background: linear-gradient(90deg, #FFA500 50%, #ddd 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-rating .rating-score {
  font-weight: 700;
  color: #232F3E; /* Amazon dark blue */
  font-size: 16px;
}

.product-rating .review-count {
  color: #007185; /* Amazon link blue */
  font-size: 14px;
  font-weight: 500;
}

/* ===== KEY FEATURES (Bonus) ===== */
.key-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.key-features li {
  padding: 6px 12px;
  background: #f7f7f7;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}

.key-features strong {
  color: #007185;
  font-weight: 600;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .key-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*=================================================================
  Callout Boxes
=================================================================*/
.callout {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1.25rem 0;
  border-left: 4px solid;
}

.callout.info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.callout.warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.callout.success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.callout.danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

.affiliate-note {
  width: min(1200px, 90%);
  margin: 0.85rem auto 1.15rem;
  font-size: 0.9rem;
}

.affiliate-note p {
  margin: 0;
}

.callout.affiliate-note {
  padding: 0.6rem 0.9rem;
  border-left-width: 3px;
  border-color: rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.03);
  color: var(--muted);
}

.callout.affiliate-note strong {
  display: inline;
  margin: 0 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: inherit;
}

.callout.affiliate-note p {
  display: inline;
  font-size: 0.85rem;
  color: inherit;
}

/*=================================================================
  Table of Contents
=================================================================*/
.table-of-contents {
  background: #f8fbff;
}

.table-of-contents h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.table-of-contents li {
  padding: 0;
  margin: 0;
}

.table-of-contents li::before {
  content: none;
}

.table-of-contents a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.table-of-contents a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/*=================================================================
  Disclosure & Legal Text
=================================================================*/
.disclosure {
  font-size: 0.88rem;
  color: var(--muted);
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  line-height: 1.5;
}

/*=================================================================
  Product Data Hidden Elements
=================================================================*/
.quiz-product-data {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/*=================================================================
  Dropdown Navigation
=================================================================*/
/* Dropdown container */
.site-nav > ul > li {
  position: relative;
}

.site-nav .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav .has-dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

/* Dropdown menu */
.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--brand-dark);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-nav .dropdown li {
  display: block;
  width: 100%;
}

.site-nav .dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  border-bottom: none;
}

.site-nav .dropdown li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* Desktop dropdown on hover */
@media (min-width: 900px) {
  .site-nav .has-dropdown:hover > .dropdown,
  .site-nav .has-dropdown:focus-within > .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .site-nav .has-dropdown:hover > a::after {
    transform: rotate(180deg);
  }

  .site-nav > ul {
    gap: 20px;
  }

  .site-nav > ul > li > a {
    font-size: 14px;
  }
}

/* Mobile dropdown styles */
@media (max-width: 899px) {
  .site-nav .dropdown {
    position: static;
    transform: none;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .site-nav .has-dropdown.open > .dropdown {
    display: block;
    max-height: 500px;
  }

  .site-nav .has-dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .site-nav .dropdown li a {
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    font-size: 14px;
  }

  .site-nav .has-dropdown > a {
    cursor: pointer;
  }
}

/*=================================================================
  BLOG PAGE IMPROVEMENTS
  Add this to the END of your styles.css file
  Features: Featured Grid, Category Nav, Accordion Sections
=================================================================*/

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.featured-main {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-main h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
  border-left: none;
  padding-left: 0;
}

.featured-main h3 a {
  color: var(--brand);
  text-decoration: none;
}

.featured-main h3 a:hover {
  text-decoration: underline;
}

.featured-main p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-small {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-small h4 {
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
  border-left: none;
  padding-left: 0;
  line-height: 1.4;
}

.featured-small h4 a {
  color: var(--brand);
  text-decoration: none;
}

.featured-small h4 a:hover {
  text-decoration: underline;
}

.category-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-side {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .featured-small {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
}

/* Category Navigation */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.category-nav strong {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.category-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-nav a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .category-nav {
    justify-content: center;
  }
  
  .category-nav strong {
    width: 100%;
    text-align: center;
    margin-bottom: 0.25rem;
  }
}

/* Accordion Blog Sections */
.blog-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #fff;
  overflow: hidden;
}

.blog-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin: 0;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  border-left: none;
  font-size: 1.1rem;
}

.blog-section-title:hover {
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.blog-section-title span:first-child {
  flex: 1;
}

.blog-section-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: #eef4fb;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-right: 0.75rem;
}

.accordion-icon {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.blog-section:not(.collapsed) .accordion-icon {
  transform: rotate(180deg);
}

.blog-section-content {
  padding: 1rem 1.25rem;
  max-height: 3000px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.blog-section.collapsed .blog-section-content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.blog-section.collapsed .blog-section-title {
  border-bottom: none;
}

.section-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.section-intro a {
  color: var(--brand);
  font-weight: 600;
}

.section-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.section-cta:hover {
  background: var(--brand-dark, #0a2d4d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.25);
  color: #fff;
}

/* Blog Preview Cards */
.blog-section .blog-preview {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f4f8;
}

.blog-section .blog-preview:last-of-type {
  border-bottom: none;
}

.blog-section .blog-preview h4 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  border-left: none;
  padding-left: 0;
}

.blog-section .blog-preview h4 a {
  color: var(--brand);
  text-decoration: none;
}

.blog-section .blog-preview h4 a:hover {
  text-decoration: underline;
}

.blog-section .blog-preview p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Mobile Optimizations for Accordion */
@media (max-width: 600px) {
  .blog-section-title {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  
  .blog-section-count {
    display: none;
  }
  
  .blog-section-content {
    padding: 0.75rem 1rem;
  }
}

/*=================================================================
  INDEX PAGE: Blog Section Header with "See All" Link
=================================================================*/
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.blog-section-header h3 {
  margin: 0;
  border-left: none;
  padding-left: 0;
  font-size: 1.15rem;
}

.blog-section-header a {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.blog-section-header a:hover {
  text-decoration: underline;
}

/*=================================================================
  INDEX PAGE: Blog Card Grid Layout
=================================================================*/
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.blog-card h4 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  border-left: none;
  padding-left: 0;
  line-height: 1.4;
}

.blog-card h4 a {
  color: var(--brand);
  text-decoration: none;
}

.blog-card h4 a:hover {
  text-decoration: underline;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.category-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: #eef4fb;
  color: var(--brand);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

/*=================================================================
  INDEX PAGE: "See All Articles" Button
=================================================================*/
.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.see-all-link:hover {
  background: var(--brand-dark, #0a2d4d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 59, 102, 0.3);
  color: #fff;
}

.see-all-link::after {
  content: "→";
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

.blog-section[id] {
  scroll-margin-top: 80px;
}
