/* =========================================================
   XCal UK - Main Stylesheet
   Corporate Geometric Aesthetic inspired by Reference Banners
   Palette: Deep Navy (#0b2239), Amber/Gold (#f59e0b), Teal (#0d9488), White (#ffffff)
   ========================================================= */

:root {
  --primary-navy: #0b2239;
  --navy-dark: #071727;
  --navy-light: #163659;
  --accent-gold: #f59e0b;
  --accent-orange: #ea580c;
  --accent-teal: #0d9488;
  --accent-blue: #0284c7;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #0284c7;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 34, 57, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 34, 57, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 34, 57, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

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

body.site-body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-navy);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Geometric Accent Line */
.top-geometric-bar {
  display: flex;
  height: 5px;
  width: 100%;
  overflow: hidden;
}

.bar-segment.seg-gold {
  flex: 1;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
}

.bar-segment.seg-teal {
  flex: 2;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.bar-segment.seg-navy {
  flex: 7;
  background-color: var(--primary-navy);
}

/* Site Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo img {
  height: 44px;
  width: auto;
}

/* Header Live Search */
.header-search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.header-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

.header-search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  background-color: var(--bg-light);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.header-search-box input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1100;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background-color: #f1f5f9;
  color: var(--accent-blue);
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--accent-teal);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Primary Navigation Menu */
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link, .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link:hover, .dropdown-trigger:hover, .nav-link.active {
  color: var(--accent-blue);
  background-color: rgba(2, 132, 199, 0.08);
}

.dropdown-trigger .arrow {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1050;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--accent-blue);
  padding-left: 22px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section (Matching User Reference Image Banner Aesthetic - Full Width) */
.hero-banner-section {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-banner-inner {
  padding: 42px 0 32px 0;
}

.hero-banner-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 36px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background-color: rgba(13, 148, 136, 0.12);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #c2410c; /* Deep warm burnt orange/red matching reference template */
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.55;
  max-width: 820px;
}

/* Bullet list with stylish colored circular markers as in reference image */
.hero-feature-bullets {
  list-style: none;
  margin-bottom: 24px;
  padding: 0;
}

.hero-feature-bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.45;
}

.hero-feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-orange);
}

.hero-feature-bullets li:nth-child(2)::before {
  background-color: var(--accent-gold);
}

.hero-feature-bullets li:nth-child(3)::before {
  background-color: var(--accent-teal);
}

.hero-feature-bullets li:nth-child(4)::before {
  background-color: var(--accent-blue);
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Calculator & Inner Hero Spec Badge Card */
.hero-calc-spec-col {
  display: flex;
  justify-content: flex-end;
}

.calc-spec-badge-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(11, 34, 57, 0.06);
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-seal-icon {
  font-size: 2rem;
  line-height: 1;
}

.spec-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.spec-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spec-card-divider {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

.spec-card-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-card-metrics li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  font-weight: 700;
  color: var(--primary-navy);
}

.spec-val.spec-green {
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.spec-val.spec-blue {
  color: #0284c7;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
}

/* Geometric Base Ribbon (Directly matching uploaded reference image) */
.hero-geometric-ribbon {
  width: 100%;
  height: 42px;
  background-color: var(--primary-navy);
  position: relative;
  overflow: hidden;
}

.hero-geometric-ribbon .ribbon-inner {
  display: flex;
  justify-content: flex-end;
  height: 100%;
}

.ribbon-parallelograms {
  display: flex;
  height: 100%;
}

.ribbon-parallelograms .poly-amber {
  width: 65px;
  background-color: var(--accent-gold);
  transform: skewX(-25deg);
  margin-right: -15px;
}

.ribbon-parallelograms .poly-teal {
  width: 75px;
  background-color: var(--accent-teal);
  transform: skewX(-25deg);
  margin-right: 30px;
}

/* Category Directory Grid */
.section-padding {
  padding: 34px 0 16px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px auto;
}

.section-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 14px;
  background-color: rgba(11, 34, 57, 0.08);
  color: var(--primary-navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.category-block {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.category-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.4);
}

/* Wide Featured Category Suite (Zero Blank Space) */
.category-block.category-block-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 50%, #f8fafc 100%);
  border: 1.5px solid var(--accent-teal);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
  position: relative;
  overflow: hidden;
}

.category-block.category-block-wide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-teal), var(--primary-navy));
}

.wealth-highlight-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  background-color: rgba(13, 148, 136, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.calc-links-list.calc-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

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

.calc-links-list li {
  margin-bottom: 8px;
}

.calc-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.calc-links-list a:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding-left: 16px;
}

.calc-links-list a .arrow {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Featured Calculators Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.featured-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.featured-card-thumb {
  height: 150px;
  background-color: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

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

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

.featured-cat-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.featured-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.featured-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.featured-card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.featured-card-link:hover {
  color: var(--primary-navy);
}

/* Homepage Cornerstone Guide Section */
.home-guide-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 36px 0;
}

.home-cornerstone-guide {
  max-width: 900px;
  margin: 0 auto;
}

.home-cornerstone-guide .guide-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-cornerstone-guide h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.home-cornerstone-guide .guide-byline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 16px;
}

.home-cornerstone-guide h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 36px 0 16px 0;
}

.home-cornerstone-guide p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}

.home-cornerstone-guide ol,
.home-cornerstone-guide ul {
  margin: 20px 0 28px 24px;
}

.home-cornerstone-guide li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 12px;
}

/* Formula Callout Boxes */
.formula-callout {
  background: #f1f5f9;
  border-left: 4px solid var(--accent-blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
}

.formula-callout .formula-latex {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--primary-navy);
  font-weight: 700;
  overflow-x: auto;
}

/* Tables */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-custom th {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.table-custom td {
  padding: 12px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

.table-custom tr:nth-child(even) td {
  background-color: #f8fafc;
}

.table-custom tr:hover td {
  background-color: #f1f5f9;
}

/* Author Bio Card Component */
.author-bio-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 50px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.author-bio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-teal));
}

.author-card-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-light);
}

.verified-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.author-header-line {
  margin-bottom: 10px;
}

.author-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: inline-block;
  margin-right: 12px;
}

.author-credential-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background-color: rgba(2, 132, 199, 0.1);
  color: var(--accent-blue);
}

.author-bio-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.author-badges-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-item.badge-reviewed {
  color: var(--accent-teal);
  font-weight: 700;
}

/* FAQ Accordion Component */
.calculator-faqs-section {
  margin: 50px 0;
}

.faq-section-header {
  margin-bottom: 24px;
}

.faq-section-pill {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 6px;
}

.faq-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.faq-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-accordion-item[open] {
  border-color: var(--accent-blue);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary-navy);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}

.faq-accordion-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

/* Footer (Geometric Styling Matching Reference Banner) */
.footer-geometric-accent {
  background-color: var(--primary-navy);
  height: 24px;
  position: relative;
  overflow: hidden;
}

.accent-container {
  display: flex;
  justify-content: flex-end;
  height: 100%;
}

.accent-parallelograms {
  display: flex;
  height: 100%;
}

.accent-parallelograms .poly-amber {
  width: 45px;
  background-color: var(--accent-gold);
  transform: skewX(-30deg);
  margin-right: -10px;
}

.accent-parallelograms .poly-teal {
  width: 55px;
  background-color: var(--accent-teal);
  transform: skewX(-30deg);
  margin-right: 20px;
}

.site-footer {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  padding-top: 60px;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-col .footer-logo-img {
  margin-bottom: 16px;
}

.brand-mission-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 18px;
}

.accreditation-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent-gold);
}

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

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

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.ssl-compliance-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-bar {
  background-color: var(--navy-dark);
  padding: 22px 0;
}

.bottom-bar-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.copyright-text {
  font-size: 0.88rem;
  color: #94a3b8;
  text-align: center;
}

.copyright-text a {
  color: #ffffff;
  text-decoration: underline;
}

.disclaimer-microtext {
  font-size: 0.78rem;
  color: #64748b;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  line-height: 1.5;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-banner-grid {
    grid-template-columns: 1fr;
    padding: 36px 30px;
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .main-navigation {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    padding: 24px;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
  }

  .main-navigation.nav-open {
    display: block;
  }

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

  .nav-link, .dropdown-trigger {
    width: 100%;
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 18px;
    display: none;
  }

  .has-dropdown.dropdown-active .dropdown-menu {
    display: block;
  }

  .header-search-box {
    display: none; /* Accessible in mobile menu drawer */
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-banner-inner {
    padding: 26px 0 20px 0;
  }

  .hero-banner-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .author-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-badges-line {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .header-actions-group {
    display: none;
  }
}

/* Cookie Consent Modal Styling */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  width: calc(100% - 48px);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-top: 4px solid var(--accent-teal);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(11, 34, 57, 0.16);
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  padding: 22px 24px;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cookie-icon {
  font-size: 1.5rem;
}

.cookie-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.cookie-description {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 18px;
}

.cookie-description a {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-btn-accept {
  background-color: var(--accent-teal);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background-color: #0f766e;
  transform: translateY(-1px);
}

.cookie-btn-essential {
  background-color: #f1f5f9;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.cookie-btn-essential:hover {
  background-color: #e2e8f0;
}

.cookie-policy-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
}

.cookie-policy-link:hover {
  color: var(--primary-navy);
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-policy-link {
    text-align: center;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ---- Blog (added 2026-11-20) ---- */
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card .featured-card-thumb {
  height: 200px;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-post-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.blog-post-article {
  max-width: 900px;
  margin: 0 auto;
}
.blog-post-hero {
  margin: 0 0 24px 0;
}
.blog-post-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}
.blog-short-answer {
  background: #eef6f6;
  border-left: 4px solid var(--accent-teal);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
  line-height: 1.6;
}
.blog-post-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 32px 0 12px 0;
}
.blog-post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 24px 0 10px 0;
}
.blog-post-body p {
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--text-body);
}
.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 16px 24px;
  line-height: 1.7;
}
.blog-post-body li {
  margin-bottom: 6px;
}
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px 0;
  font-size: 0.92rem;
}
.blog-post-body th,
.blog-post-body td {
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  text-align: left;
}
.blog-post-body th {
  background: #f1f5f9;
  font-weight: 700;
}
.blog-sources {
  margin: 36px 0;
}
.blog-sources h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}
.blog-sources li {
  margin-bottom: 6px;
}
.blog-disclaimer {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin: 32px 0;
}
.calc-diff-block {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}
.calc-diff-block h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}
.calc-diff-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 20px 0 8px 0;
}
.calc-diff-block p {
  line-height: 1.7;
  color: var(--text-body);
}
