/* TournamentPK blog. Mobile first, white, clean, premium. Navy + gold theme. */
/* Self-hosted fonts (Poppins + Inter, latin). No external font request. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800.woff2') format('woff2'); }
:root {
  --bg: #ffffff;
  --section-bg: #f4f6f8;
  --gold: #f2b705;
  --gold-dark: #d9a404;
  --gold-deep: #b8860b;
  --gold-soft: #fdf6d8;
  --gold-pale: #fef9e7;
  --navy: #0a1b2e;
  --navy-steel: #1b3a5c;
  --navy-deep: #06121f;
  --amber: #f5c542;
  --text: #1a2a3a;
  --muted: #5b6b7c;
  --white: #ffffff;
  --border: #e2e8ee;
  --radius: 12px;
  /* Category accents, one per category by position (navy/gold family only) */
  --cat-1: #f2b705;
  --cat-2: #0a1b2e;
  --cat-3: #d9a404;
  --cat-4: #1b3a5c;
  --cat-5: #f5c542;
  --cat-6: #06121f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: Poppins, Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.25; color: var(--navy); }
a { color: var(--navy); }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; }

/* Header: navy, sticky, gold hover/active */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--navy-deep); box-shadow: 0 2px 12px rgba(6,18,31,.25); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 26px rgba(6,18,31,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.site-logo img { height: 38px; width: auto; }
.site-logo svg { height: 38px; width: auto; display: block; }
.site-logo .logo-text { color: #fff; }
.site-logo .logo-text span { color: var(--gold); }
.main-nav { display: none; }
.main-nav.open { display: block; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); padding: 8px 16px 16px; border-top: 1px solid rgba(242,183,5,.35); box-shadow: 0 16px 24px rgba(6,18,31,.35); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid rgba(255,255,255,.12); }
.main-nav li:last-child { border-bottom: 0; }
.main-nav a { display: block; padding: 11px 4px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
.menu-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* Buttons: gold background, navy text */
.btn { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 24px; border-radius: 8px; border: 0; cursor: pointer; font-family: Poppins, Inter, sans-serif; position: relative; overflow: hidden; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,183,5,.35); }
.btn::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-light:hover { background: var(--gold-soft); color: var(--navy); }

/* Small hero: compact, centered, navy background, live search only */
.hero { background: var(--navy); color: #fff; text-align: center; padding: 28px 16px 32px; position: relative; z-index: 10; }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 8px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0 0 20px; }
.hero .btn { font-size: 1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero h1, .hero p { animation: heroRise .7s cubic-bezier(.22,.61,.36,1) both; }
.hero p { animation-delay: .12s; }
.hero .btn { animation: heroRise .7s cubic-bezier(.22,.61,.36,1) .24s both; }
.hero .eyebrow { animation: heroRise .7s cubic-bezier(.22,.61,.36,1) both; color: var(--gold); border-color: rgba(242,183,5,.45); background: rgba(242,183,5,.12); }

/* Hero search: input + live results dropdown */
.hero-search { position: relative; display: flex; gap: 10px; max-width: 560px; margin: 0 auto; animation: heroRise .7s cubic-bezier(.22,.61,.36,1) .36s both; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--border); font-size: 1rem; font-family: Inter, sans-serif; color: var(--navy); background: #fff; }
.hero-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,183,5,.45); }
.hero .hero-search .btn { animation: heroRise .7s cubic-bezier(.22,.61,.36,1) .36s both; }
.hero-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px rgba(10,27,46,.16); overflow: hidden; text-align: left; }
.hero-search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--navy); text-decoration: none; border-bottom: 1px solid #eef1f4; }
.hero-search-result:hover { background: var(--section-bg); }
.hero-search-result-title { font-weight: 600; font-size: .95rem; }
.hero-search-result:hover .hero-search-result-title { color: var(--gold-deep); }
.hero-search-result .badge { flex-shrink: 0; }
.hero-search-none { padding: 14px 16px; color: var(--muted); font-size: .95rem; }
.hero-search-all { display: block; padding: 12px 16px; color: var(--gold-deep); font-weight: 700; font-size: .95rem; text-decoration: none; background: var(--gold-soft); }
.hero-search-all:hover { background: var(--gold-pale); }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section { padding: 48px 0; }
.section-title { text-align: center; font-size: 1.75rem; letter-spacing: -.01em; margin: 0 0 8px; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }
.section.light-section { background: var(--section-bg); }
.featured-band { background: var(--section-bg); color: var(--navy); padding: 48px 0; }
.featured-band h2.section-title, .featured-band .section-title { color: var(--navy); }
.featured-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 860px; margin: 0 auto; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10,27,46,.12); border-color: var(--gold); }
.featured-card .card-body { padding: 22px; }
.featured-card h2, .featured-card h3 { color: var(--navy); margin: 10px 0; font-size: 1.4rem; }
.featured-card h2 a, .featured-card h3 a { color: var(--navy); text-decoration: none; }
.featured-card h2 a:hover, .featured-card h3 a:hover { color: var(--gold-deep); }
.featured-card .card-date { color: var(--muted); }
.featured-card .card-excerpt { color: var(--muted); }
.featured-card .read-more { color: var(--gold-deep); }
.featured-media { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-steel)); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.featured-card:hover .featured-media img { transform: scale(1.04); }
.featured-card .badge { font-size: .8rem; padding: 6px 12px; }
.dark-section { background: var(--section-bg); color: var(--navy); }
.dark-section h2 { color: var(--navy); }
.dark-section p { color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(10,27,46,.12); border-color: #dcc168; }
.card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-steel)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #fff; font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 1.05rem; background: linear-gradient(135deg, var(--navy), var(--navy-steel)); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h2, .card-body h3 { margin: 0; font-size: 1.15rem; }
.card-body h2 a, .card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--gold-deep); }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-excerpt { margin: 0; }
.badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 20px; text-decoration: none; align-self: flex-start; transition: background .25s ease, transform .25s ease; box-shadow: 0 2px 8px rgba(10,27,46,.12); }
.badge:hover { background: var(--gold-dark); color: var(--navy); transform: translateY(-1px); }
/* Category accent colors, one per category by position (navy/gold family only) */
.cat-accent-1 { background: var(--cat-1); color: var(--navy); }
.cat-accent-2 { background: var(--cat-2); color: #fff; }
.cat-accent-3 { background: var(--cat-3); color: var(--navy); }
.cat-accent-4 { background: var(--cat-4); color: #fff; }
.cat-accent-5 { background: var(--cat-5); color: var(--navy); }
.cat-accent-6 { background: var(--cat-6); color: #fff; }
.card-date { color: var(--muted); font-size: .85rem; }
.card-date::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: 7px; vertical-align: middle;
}
.read-more { color: var(--gold-deep); font-weight: 700; text-decoration: none; margin-top: auto; padding-top: 6px; transition: color .25s ease; }
.read-more:hover { color: var(--gold-dark); }

/* Category buttons: one navy/gold accent per position */
.cat-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat-buttons a { background: #fff; border: 1px solid var(--border); color: var(--navy); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 30px; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.cat-buttons a:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(10,27,46,.12); }
.cat-buttons a::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); margin-right: 8px; vertical-align: middle;
}
.cat-buttons a .cat-count { color: var(--muted); font-weight: 600; font-size: .85rem; margin-left: 6px; }
.cat-buttons a:hover .cat-count { color: var(--gold-deep); }
.cat-buttons a.cat-accent-1::before { background: var(--cat-1); }
.cat-buttons a.cat-accent-2::before { background: var(--cat-2); }
.cat-buttons a.cat-accent-3::before { background: var(--cat-3); }
.cat-buttons a.cat-accent-4::before { background: var(--cat-4); }
.cat-buttons a.cat-accent-5::before { background: var(--cat-5); }
.cat-buttons a.cat-accent-6::before { background: var(--cat-6); }
.cat-buttons a.cat-accent-1:hover { background: var(--cat-1); border-color: var(--cat-1); color: var(--navy); }
.cat-buttons a.cat-accent-2:hover { background: var(--cat-2); border-color: var(--cat-2); color: #fff; }
.cat-buttons a.cat-accent-3:hover { background: var(--cat-3); border-color: var(--cat-3); color: var(--navy); }
.cat-buttons a.cat-accent-4:hover { background: var(--cat-4); border-color: var(--cat-4); color: #fff; }
.cat-buttons a.cat-accent-5:hover { background: var(--cat-5); border-color: var(--cat-5); color: var(--navy); }
.cat-buttons a.cat-accent-6:hover { background: var(--cat-6); border-color: var(--cat-6); color: #fff; }
.cat-buttons a.cat-accent-1:hover::before, .cat-buttons a.cat-accent-3:hover::before, .cat-buttons a.cat-accent-5:hover::before { background: var(--navy); }
.cat-buttons a.cat-accent-2:hover::before, .cat-buttons a.cat-accent-4:hover::before, .cat-buttons a.cat-accent-6:hover::before { background: #fff; }
.cat-buttons a.cat-accent-1:hover .cat-count, .cat-buttons a.cat-accent-3:hover .cat-count, .cat-buttons a.cat-accent-5:hover .cat-count { color: rgba(10,27,46,.7); }
.cat-buttons a.cat-accent-2:hover .cat-count, .cat-buttons a.cat-accent-4:hover .cat-count, .cat-buttons a.cat-accent-6:hover .cat-count { color: rgba(255,255,255,.85); }

/* Browse Categories marquee: pills scroll right in a seamless loop.
   The pill list is rendered 4 times in the markup; the track is exactly
   two copies wide at -50%, so the -50% to 0 sweep loops seamlessly. */
.cat-marquee { overflow: hidden; }
.cat-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: cat-scroll 30s linear infinite; }
/* Pause a marquee only on a real mouse hover. On touch screens a tap
   would otherwise pause it and it would stay paused. */
@media (hover: hover) {
  .cat-marquee:hover .cat-track { animation-play-state: paused; }
}
.cat-marquee:focus-within .cat-track { animation-play-state: paused; }
@keyframes cat-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Free Tools marquee on the homepage: tool cards scroll right to left in a
   seamless loop, like the Browse Categories pills. Each group track holds
   two copies of its cards, and the shared cat-scroll keyframes sweep from
   translateX(0) to translateX(-50%), so the loop is seamless. Cards are
   300px wide, so about 3 show at a time on desktop. Hover pauses it. */
.tool-marquee { overflow: hidden; }
.tool-marquee-track { display: flex; gap: 1rem; width: max-content; animation: cat-scroll 30s linear infinite; }
.tool-marquee-item { flex: 0 0 300px; width: 300px; }
/* Pause a marquee only on a real mouse hover. On touch screens a tap
   would otherwise pause it and it would stay paused. */
@media (hover: hover) {
  .tool-marquee:hover .tool-marquee-track { animation-play-state: paused; }
}
.tool-marquee:focus-within .tool-marquee-track { animation-play-state: paused; }

/* Info strips */
.info-strip { text-align: center; max-width: 760px; margin: 0 auto; }
.info-strip h2 { margin-top: 0; }
.info-strip h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }
.info-strip p { color: var(--muted); margin-bottom: 22px; }
.info-strip.dark { color: var(--navy); }
.info-strip.dark h2 { color: var(--navy); }
.info-strip.dark p { color: var(--muted); }
.contact-panel {
  background: var(--section-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 24px; max-width: 760px; margin: 0 auto;
}
.contact-panel .btn { margin-top: 6px; }

/* View-all link under a grid: gold outline pill button */
.view-all { text-align: center; margin: 22px 0 0; }
.view-all a {
  display: inline-block; font-weight: 700; color: var(--navy); text-decoration: none;
  border: 2px solid var(--gold); background: #fff; padding: 10px 22px; border-radius: 30px;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.view-all a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,183,5,.35); }

/* Generic eyebrow label (hero, category header, contact card) */
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(242,183,5,.5); background: var(--gold-soft);
  padding: 6px 14px; border-radius: 20px; margin: 0 0 18px;
}

/* Page header, article */
.page-header { background: var(--section-bg); color: var(--navy); padding: 36px 0; text-align: center; border-bottom: 1px solid var(--border); }
.page-header h1 { color: var(--navy); margin: 0 0 8px; font-size: 2rem; }
.page-header p { color: var(--muted); margin: 0; }
.page-header .eyebrow { margin-bottom: 14px; }
.page-header .header-desc { max-width: 640px; margin: 10px auto 0; }
.page-header h1, .page-header p { animation: heroRise .6s cubic-bezier(.22,.61,.36,1) both; }
.page-header p { animation-delay: .1s; }
.count-pill {
  display: inline-block; margin-top: 14px;
  background: var(--gold-soft); border: 1px solid rgba(242,183,5,.55); color: var(--navy);
  font-size: .85rem; font-weight: 700; padding: 5px 14px; border-radius: 20px;
}
.article-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 28px auto; }
/* Post images: hero and in-article pictures sit slightly inside the card
   with rounded corners, so they never touch the card edges. */
.article-hero { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-steel)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0 16px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 1.2rem; background: linear-gradient(135deg, var(--navy), var(--navy-steel)); }
.article-body { padding: 22px; }
.article-body-head { padding-bottom: 22px; }
.article-body h1 { font-size: 1.9rem; margin: 0 0 12px; }
.article-head-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.article-head-meta .read-time { color: var(--muted); font-size: .9rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.article-content h2 { font-size: 1.35rem; margin: 28px 0 10px; border-left: 4px solid var(--gold); padding-left: 12px; }
.article-content h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--navy); }
.article-content > p:first-of-type { font-size: 1.08rem; color: #33475c; }
.article-content p { margin: 0 0 16px; }
.article-content a { color: var(--navy); }
.article-content a:hover { color: var(--gold-deep); }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 22px; }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.article-content ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.article-content ol li { margin-bottom: 6px; }
.article-content ol li::marker { color: var(--gold-deep); font-weight: 700; }
.article-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.article-content td:first-child { font-weight: 700; color: var(--navy); }
/* Tables on phones: a little smaller so more columns fit without scrolling. */
@media (max-width: 767px) {
  .article-content table { font-size: .88rem; }
  .article-content th, .article-content td { padding: 10px; }
}
.article-content th, .article-content td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.article-content th { background: var(--gold); color: var(--navy); }
.article-content tbody tr:nth-child(even) td { background: #f8fafc; }
.article-content blockquote { border-left: 4px solid var(--gold); margin: 0 0 16px; padding: 8px 16px; background: var(--gold-pale); font-style: italic; font-size: 1.05rem; }
.article-content { overflow-wrap: break-word; }
.article-content figure { overflow: hidden; border-radius: 12px; position: relative; margin: 0 8px 20px; }
/* Hint under every article picture: tells readers the image opens full size. */
.article-content figure::after {
  content: "Click or tap the image to see it full size";
  display: block;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  padding: 8px 0 2px;
}
.article-content img { border-radius: 12px; }
/* Image hover zoom: hero, article pictures, cards and slider thumbnails
   animate on hover, and on tap (:active) on phones where there is no hover. */
.article-hero img, .article-content figure img, .card-media img, .slider-slide img { transition: transform .4s ease; }
.article-hero img:hover, .article-content figure img:hover, .card-media img:hover, .slider-slide img:hover { transform: scale(1.04); }
.article-hero img:active, .article-content figure img:active, .card-media img:active, .slider-slide img:active { transform: scale(1.04); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 20px 0 0; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); text-decoration: underline; }
.related { margin: 10px 0 44px; }
.related h2 { font-size: 1.4rem; }
.related h2.section-title { margin-bottom: 28px; }

/* Share row under the article */
.share-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--border);
}
.share-row .share-label { font-family: Poppins, Inter, sans-serif; font-weight: 700; color: var(--navy); margin-right: 4px; }
.share-btn {
  display: inline-block; padding: 9px 16px; border-radius: 20px;
  border: 1px solid var(--border); background: #fff; color: var(--navy);
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.share-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-1px); }

/* Round brand icon share buttons, same as the tool pages, so blog posts
   show icons too. (Tool pages also load these from tools.css; the rules
   are identical, so there is no conflict.) */
.tool-share-btn { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg); color: #fff; cursor: pointer; padding: 0; transition: transform .15s, box-shadow .15s; flex: none; }
.tool-share-btn svg { width: 20px; height: 20px; display: block; }
.tool-share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(10,27,46,.20); }
.tool-share-btn.wa { background: #25D366; border-color: #25D366; }
.tool-share-btn.fb { background: #1877F2; border-color: #1877F2; }
.tool-share-btn.x { background: #000; border-color: #000; }
.tool-share-btn.tg { background: #229ED9; border-color: #229ED9; }
.tool-share-btn.li { background: #0A66C2; border-color: #0A66C2; }
.tool-share-btn.copy { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.tool-share-btn.copied { background: #1e9e4a; border-color: #1e9e4a; color: #fff; }

/* Search */
.search-page-form { display: flex; gap: 10px; max-width: 560px; margin: 24px auto 0; }
.search-page-form input { flex: 1; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); font-size: 1rem; }
.search-page-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,183,5,.4); }
.no-results { text-align: center; color: var(--muted); padding: 32px 0; }

/* Footer: navy with gold accents, brand + link columns + copyright bar */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); border-top: 3px solid var(--gold); font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer-brand .footer-logo { font-family: Poppins, Inter, sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand p { margin: 12px 0 0; color: rgba(255,255,255,.7); line-height: 1.6; max-width: 340px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; text-align: center; color: rgba(255,255,255,.65); font-size: .9rem; }
/* Mobile footer: extra side space so footer links never touch the screen edge.
   The grid already sits inside .container (16px), this adds 20px more on
   phones so the gap is clear even with large text. */
@media (max-width: 767px) {
  .footer-grid { padding-left: 20px; padding-right: 20px; text-align: center; }
  .footer-bottom { padding-left: 20px; padding-right: 20px; }
  /* Footer on phones: centred layout so brand, headings and links all sit
     in the middle and look organised. */
  .footer-brand p { margin-left: auto; margin-right: auto; }
  /* Slider on phones: sits inside the container with side space (no
     negative margins) and rounded corners, so it never touches the
     screen edges. Smaller overlay text (max 2 lines) so the thumbnail
     stays visible. */
  .slider-viewport { border-radius: 12px; }
  .slider-overlay { padding: 36px 16px 14px; gap: 6px; }
  .slider-title { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .article-body h1 { font-size: 1.6rem; }
  /* Free Tools on phones: scrolling marquee again, same as desktop.
     The grid overrides were removed, so the base marquee rules apply:
     the track is a flex row with the loop animation and the duplicated
     items visible. Cards are 260px wide on phones (one card plus a
     peek of the next on a 390px screen). */
  .tool-marquee-item { flex: 0 0 260px; width: 260px; }
  .tool-card .card-body { padding: 16px 14px; }
  .tool-card h3 { font-size: 1rem; }
  .tool-card .card-excerpt { font-size: .9rem; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-top: 48px; padding-bottom: 40px; }
}

/* Not found */
.notfound { text-align: center; padding: 64px 16px; }
.notfound h1 { font-size: 2.4rem; margin-bottom: 8px; }
.big-404 {
  font-family: Poppins, Inter, sans-serif; font-size: 5rem; font-weight: 800;
  color: var(--gold-dark); line-height: 1; margin: 0 0 8px;
}
.notfound .search-page-form { margin-bottom: 8px; }
.notfound .browse-label { color: var(--muted); margin: 22px 0 14px; }

/* Static pages: comfortable reading width */
.article-wrap.page-narrow { max-width: 780px; }

/* Empty states */
.empty-state {
  text-align: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 24px; max-width: 640px; margin: 0 auto;
}
.empty-state h3 { margin: 0 0 8px; font-size: 1.3rem; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }
.empty-state .cat-buttons { margin-top: 4px; }

/* Blog pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 32px 0 8px; }
.page-link { display: inline-block; min-width: 40px; padding: 9px 14px; text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--navy); font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.page-link:hover { border-color: var(--gold); color: var(--gold-deep); }
.page-link.current { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.page-link.disabled { color: var(--muted); opacity: .55; cursor: default; }
.page-link.disabled:hover { border-color: var(--border); color: var(--muted); }
.page-link.page-dots { border: 0; min-width: 0; padding: 9px 2px; color: var(--muted); }

/* Back to top button: fixed gold circle, hidden at the top of the page */
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(10,27,46,.3); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease; }
.back-to-top svg { width: 24px; height: 24px; display: block; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 767px) {
  .back-to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; }
  .back-to-top svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* Latest Posts slider: one full image slide at a time, swipe, auto-rotate */
.slider { position: relative; }
.slider-viewport { overflow: hidden; border-radius: 12px; }
.slider-track { display: flex; transition: transform .5s ease; }
.slider-slide { flex: 0 0 100%; position: relative; display: block; text-decoration: none; }
.slider-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.slider-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-steel)); color: #fff; font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 1.1rem; padding: 24px; text-align: center; }
.slider-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 56px 20px 20px; background: linear-gradient(to top, rgba(10,27,46,.88) 0%, rgba(10,27,46,.45) 55%, rgba(10,27,46,0) 100%); }
.slider-title { color: #fff; font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.3; text-align: left; }
@media (min-width: 768px) {
  .slider { max-width: 800px; margin-left: auto; margin-right: auto; }
  .slider-slide img, .slider-fallback { height: auto; aspect-ratio: 16 / 9; }
  .slider-overlay { padding: 72px 28px 28px; }
  .slider-title { font-size: 1.6rem; }
}

/* Free Tools groups: premium group header, layered card shadows, pill view-all */
.tool-group { margin: 0 0 44px; }
.tool-group:last-child { margin-bottom: 0; }
.tool-group-head { text-align: center; margin: 0 0 22px; }
.tool-group-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(242,183,5,.5); background: var(--gold-soft);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 10px;
}
.tool-group-title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.tool-group-title::after { content: ""; display: block; width: 44px; height: 4px; background: var(--gold); border-radius: 2px; margin: 10px auto 0; }
/* Tool cards: soft layered shadow at rest, gold top bar + deeper shadow on hover.
   Scoped to .tool-card so blog post cards are untouched. */
.tool-card { position: relative; box-shadow: 0 2px 6px rgba(10,27,46,.06), 0 12px 28px rgba(10,27,46,.07); }
.tool-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  border-radius: var(--radius) var(--radius) 0 0; opacity: 0; transition: opacity .3s ease;
}
.tool-card:hover { box-shadow: 0 6px 14px rgba(10,27,46,.08), 0 24px 44px rgba(10,27,46,.16); border-color: var(--gold); }
.tool-card:hover::before { opacity: 1; }
.tool-card .card-body { padding: 24px 22px; }
.tool-card h3 { font-size: 1.2rem; }
.tool-card .read-more { display: inline-flex; align-items: center; }
.tool-card .read-more::after { content: "\2192"; margin-left: 6px; transition: transform .25s ease; }
.tool-card:hover .read-more { color: var(--gold-dark); }
.tool-card:hover .read-more::after { transform: translateX(4px); }

/* Post page: clear space below the More Blogs row, before the footer */
.more-blogs { margin-top: 2.5rem; margin-bottom: 56px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Wider screens */
@media (min-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .card-grid.two-col { grid-template-columns: 1fr 1fr; }
  .card-grid.three-col { grid-template-columns: 1fr 1fr; }
  .article-body { padding: 32px 40px; }
  .article-hero { margin: 0 24px; }
  .article-body h1 { font-size: 2.1rem; }
  .article-body-head { padding-bottom: 28px; }
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav li { border-bottom: 0; }
  .main-nav a { padding: 8px 12px; position: relative; }
  .main-nav a.active::after, .main-nav a:hover::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
    height: 3px; background: var(--gold); border-radius: 2px;
  }
  .card-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
  .hero { padding: 36px 16px 40px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.1rem; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.9rem; }
}
@media (min-width: 1600px) {
  .container { max-width: 1200px; }
}

/* Reduced motion: everything still, content always visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* NOTE: no global animation/transition kill-switch here on purpose.
   The marquees, hero and slider must keep animating on phones exactly
   like they do on desktop, even when the phone has "Remove animations"
   turned on (user order 2026-11-23). */

/* Theme toggle button (sun/moon) in the header */
.theme-toggle { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Dark mode: same navy + gold brand, dark surfaces, light text.
   Light mode above is untouched; these rules only apply when the
   visitor picks dark mode (saved in localStorage). */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1622;
  --section-bg: #111f31;
  --text: #e6edf5;
  --muted: #9fb0c3;
  --border: #26374e;
  --gold-soft: rgba(242,183,5,.14);
  --gold-pale: rgba(242,183,5,.08);
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: #f2f6fa; }
html[data-theme="dark"] a { color: #c3d5e8; }
html[data-theme="dark"] a:hover { color: var(--gold); }
html[data-theme="dark"] .card, html[data-theme="dark"] .featured-card, html[data-theme="dark"] .empty-state { background: #16283e; border-color: #26374e; }
html[data-theme="dark"] .tool-card { box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 12px 28px rgba(0,0,0,.4); }
html[data-theme="dark"] .tool-card:hover { box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 24px 44px rgba(0,0,0,.5); border-color: var(--gold); }
html[data-theme="dark"] .tool-group-eyebrow { color: var(--gold); }
html[data-theme="dark"] .card-body h2 a, html[data-theme="dark"] .card-body h3 a, html[data-theme="dark"] .featured-card h2 a, html[data-theme="dark"] .featured-card h3 a { color: #f2f6fa; }
html[data-theme="dark"] .card-body h2 a:hover, html[data-theme="dark"] .card-body h3 a:hover, html[data-theme="dark"] .featured-card h2 a:hover, html[data-theme="dark"] .featured-card h3 a:hover { color: var(--gold); }
html[data-theme="dark"] .read-more { color: var(--gold); }
html[data-theme="dark"] .article-wrap { background: #16283e; border-color: #26374e; }
html[data-theme="dark"] .article-content > p:first-of-type { color: #c3d0de; }
html[data-theme="dark"] .article-content a { color: #c3d5e8; }
html[data-theme="dark"] .article-content tbody tr:nth-child(even) td { background: #1b2f47; }
/* Dark mode readability fix (23 Nov 2026): the table first column was navy
   on dark navy (invisible), h3 headings were navy, and post headers and
   page body text were dim. These overrides make them light in dark mode. */
html[data-theme="dark"] .article-content td:first-child { color: #f2f6fa; }
html[data-theme="dark"] .article-content h3 { color: #f2f6fa; }
html[data-theme="dark"] .article-body h1 { color: #f2f6fa; }
html[data-theme="dark"] .article-head-meta .read-time, html[data-theme="dark"] .article-meta { color: #c3d0de; }
html[data-theme="dark"] .article-content p { color: #e6edf5; }
html[data-theme="dark"] .cat-buttons a { background: #16283e; color: #e6edf5; border-color: #26374e; }
/* Dark mode badge fix (23 Nov 2026): the generic dark link colour above
   (html[data-theme="dark"] a) beats .badge on specificity, so category
   tags went pale blue-grey on gold in dark mode. Tags now keep black
   text on gold, as the user asked. */
html[data-theme="dark"] a.badge { color: #000; }
html[data-theme="dark"] a.badge:hover { color: #000; }
/* Category accent pills (tools page cards and anywhere else they are
   used): gold pills keep black text, navy pills keep white text, so
   every tag stays readable in dark mode. The background is set here
   too, because the .cat-buttons a dark rule above would otherwise
   paint every pill dark navy, which would make the black text on
   gold pills (Free Fire etc.) invisible once the categories marquee
   is back. The count inside a pill follows the same readable colour. */
html[data-theme="dark"] a.cat-accent-1 { background: var(--cat-1); color: #000; }
html[data-theme="dark"] a.cat-accent-2 { background: var(--cat-2); color: #fff; }
html[data-theme="dark"] a.cat-accent-3 { background: var(--cat-3); color: #000; }
html[data-theme="dark"] a.cat-accent-4 { background: var(--cat-4); color: #fff; }
html[data-theme="dark"] a.cat-accent-5 { background: var(--cat-5); color: #000; }
html[data-theme="dark"] a.cat-accent-6 { background: var(--cat-6); color: #fff; }
html[data-theme="dark"] a.cat-accent-1 .cat-count, html[data-theme="dark"] a.cat-accent-3 .cat-count, html[data-theme="dark"] a.cat-accent-5 .cat-count { color: rgba(10,27,46,.7); }
html[data-theme="dark"] a.cat-accent-2 .cat-count, html[data-theme="dark"] a.cat-accent-4 .cat-count, html[data-theme="dark"] a.cat-accent-6 .cat-count { color: rgba(255,255,255,.85); }
/* Dark mode button fix (23 Nov 2026): same root cause as the badge, the
   generic dark link colour beats .btn, so "Back to Home" buttons went
   pale blue-grey on gold. Gold buttons keep navy text in dark mode. */
html[data-theme="dark"] a.btn { color: var(--navy); }
html[data-theme="dark"] a.btn:hover { color: var(--navy); }
html[data-theme="dark"] .view-all a { color: #f2f6fa; background: transparent; border-color: var(--gold); }
html[data-theme="dark"] .view-all a:hover { background: var(--gold); color: var(--navy); }
html[data-theme="dark"] .eyebrow { color: var(--gold); }
html[data-theme="dark"] .count-pill { color: #f2f6fa; }
html[data-theme="dark"] .share-row .share-label { color: #f2f6fa; }
html[data-theme="dark"] .share-btn { background: #16283e; color: #e6edf5; border-color: #26374e; }
html[data-theme="dark"] .share-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
html[data-theme="dark"] .search-page-form input { background: #16283e; color: #e6edf5; border-color: #26374e; }
html[data-theme="dark"] .btn-light { background: #16283e; color: #e6edf5; border-color: #26374e; }
html[data-theme="dark"] .btn-light:hover { background: rgba(242,183,5,.14); color: var(--gold); }
html[data-theme="dark"] .hero-search-results { background: #16283e; border-color: #26374e; }
html[data-theme="dark"] .hero-search-result { color: #e6edf5; border-color: #26374e; }
html[data-theme="dark"] .hero-search-result:hover { background: #1b2f47; }
html[data-theme="dark"] .hero-search-result-title { color: #f2f6fa; }
html[data-theme="dark"] .hero-search-none { color: #9fb0c3; }
html[data-theme="dark"] .hero-search-all { color: var(--gold); }
html[data-theme="dark"] .hero-search-all:hover { background: rgba(242,183,5,.2); }
html[data-theme="dark"] .info-strip.dark { color: #e6edf5; }
html[data-theme="dark"] .info-strip.dark h2 { color: #f2f6fa; }
html[data-theme="dark"] .page-header h1 { color: #f2f6fa; }
html[data-theme="dark"] .page-link { background: #16283e; border-color: #26374e; color: #f2f6fa; }
html[data-theme="dark"] .page-link:hover { border-color: var(--gold); color: var(--gold); }
html[data-theme="dark"] .page-link.current { background: var(--gold); border-color: var(--gold); color: var(--navy); }
html[data-theme="dark"] .page-link.disabled { color: #7e93a8; }
html[data-theme="dark"] .page-link.disabled:hover { border-color: #26374e; color: #7e93a8; }
html[data-theme="dark"] .page-link.page-dots { background: transparent; border: 0; color: #7e93a8; }
html[data-theme="dark"] .back-to-top { box-shadow: 0 4px 16px rgba(0,0,0,.5); }
html[data-theme="dark"] .back-to-top:focus-visible { outline-color: var(--gold); }

/* Contact form (Contact page only) */
.contact-form-wrap { max-width: 640px; margin: 32px auto 8px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 24px rgba(10,27,46,.06); }
.contact-form label { display: block; font-weight: 700; color: var(--navy); margin: 16px 0 6px; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: Inter, sans-serif; color: var(--text); background: #fff; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,183,5,.4); }
.contact-form .field-error { color: #b3261e; font-size: .9rem; margin: 4px 0 0; }
.contact-form input.field-invalid, .contact-form textarea.field-invalid { border-color: #b3261e; }
.contact-form .btn { margin-top: 20px; width: 100%; }
.contact-success { background: #e8f5e9; border: 1px solid #7bc47f; color: #1b5e20; border-radius: 8px; padding: 14px 16px; margin: 24px 0; }
.contact-error-box { background: #fdecea; border: 1px solid #e57373; color: #7f1d1d; border-radius: 8px; padding: 14px 16px; margin: 24px 0; }
.contact-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.contact-captcha { font-weight: 700; color: var(--navy); }
html[data-theme="dark"] .contact-form { background: #16283e; border-color: #26374e; }
html[data-theme="dark"] .contact-form label { color: #f2f6fa; }
html[data-theme="dark"] .contact-form input[type=text], html[data-theme="dark"] .contact-form input[type=email], html[data-theme="dark"] .contact-form textarea { background: #0d1622; color: #e6edf5; border-color: #26374e; }
html[data-theme="dark"] .contact-form .field-error { color: #ff8a80; }
html[data-theme="dark"] .contact-success { background: #12351f; border-color: #2e7d32; color: #a5d6a7; }
html[data-theme="dark"] .contact-error-box { background: #3d1512; border-color: #8e2f28; color: #ffb4ab; }
html[data-theme="dark"] .contact-note { color: #9fb0c3; }
html[data-theme="dark"] .contact-captcha { color: #f2f6fa; }

/* Homepage redesign (23 Nov 2026, approved preview): Latest Blog gets the
   active slide poster as its background, a blog grid sits below it, and
   Browse Categories is a separate navy panel. Tools keep their marquees,
   now slower, with an icon on every card. */

/* Latest Blog: active slide poster behind the section, dark overlay so
   the white heading and slider text stay readable. */
.latest-section { position: relative; overflow: hidden; background: var(--navy); }
#latestBg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.latest-section::after { content: ""; position: absolute; inset: 0; background: rgba(10,27,46,0.62); z-index: 0; }
.latest-section .container { position: relative; z-index: 1; }
.latest-section .section-title { color: #fff; }
.latest-section .section-sub { color: rgba(255,255,255,.85); }

/* Slider arrows and dots. The slider JS already wires .slider-prev,
   .slider-next and [data-dot]; this markup and styling are new. */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(10,27,46,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.slider-arrow:hover { background: var(--gold); color: var(--navy); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.slider-dot.is-active { background: var(--gold); }

/* Slider arrows on phones: smaller and raised above the overlay, so
   they never crowd the category badge. This sits AFTER the base
   .slider-arrow rules, so it wins on equal specificity. top: 28%
   puts the 32px arrow clear of the badge even with a 2-line title. */
@media (max-width: 767px) {
  .slider-arrow { width: 32px; height: 32px; font-size: 1.3rem; top: 28%; }
}

/* Blog grid: 2 columns on phones, 3 on desktop. Five post cards plus a
   navy "See all blogs" tile fill the grid. */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.blog-card .card-body { padding: 14px; }
.blog-card h3 { font-size: 1.02rem; }
.blog-card h3 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-all-tile { background: var(--navy); color: #fff; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 24px 16px; min-height: 220px; transition: background .25s ease; }
.blog-all-tile:hover { background: var(--navy-steel); color: #fff; }
.blog-all-tile-text { font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; text-align: center; }
.blog-all-tile-arrow { color: var(--gold); font-size: 2rem; line-height: 1; transition: transform .25s ease; }
.blog-all-tile:hover .blog-all-tile-arrow { transform: translateX(6px); }
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .blog-card .card-body { padding: 20px; }
  .blog-card h3 { font-size: 1.15rem; }
}

/* Browse Categories: separate navy section, gold-border panel, one row
   per category with a divider line between rows and a gold count pill. */
.categories-section { background: var(--navy); }
.categories-section .section-title { color: #fff; }
.categories-section .section-sub { color: rgba(255,255,255,.8); }
.cat-panel { max-width: 720px; margin: 0 auto; border: 1px solid rgba(242,183,5,.55); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.03); }
.categories-section .cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.12); transition: background .25s ease, color .25s ease; }
.categories-section .cat-row:last-child { border-bottom: 0; }
.categories-section .cat-row:hover { background: rgba(242,183,5,.12); color: var(--gold); }
.cat-row-name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.cat-row-count { background: var(--gold); color: var(--navy); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }

/* Tool card icons: gold line icon on a navy tile, no emoji. Scoped to
   .tool-card so the tools listing page icons (tools.css) are untouched. */
.tool-card .tool-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 2px; flex: none; }
.tool-card .tool-icon svg { width: 24px; height: 24px; display: block; }
