/* =========================================================
   FREELANCE MENTOR HUB  
   ========================================================= */

/* 01. CSS VARIABLES
========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  --secondary: #0f172a;
  --heading: #111827;
  --text: #475569;
  --text-light: #64748b;

  --white: #ffffff;
  --background: #f8fafc;
  --border: #e2e8f0;

  --success: #16a34a;

  --font-main: Arial, Helvetica, sans-serif;

  --container-width: 1180px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 3px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);

  --transition: 0.25s ease;
}

/* 02. RESET & BASE STYLES
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font-family: var(--font-main);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 15px;
}

.container {
  width: min(100% - 40px, var(--container-width));
  margin-inline: auto;
}

::selection {
  color: var(--white);
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

/* 03. HEADER & NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 190px;
  max-height: 55px;
  object-fit: contain;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list li a {
  display: inline-block;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--secondary);
  border-radius: 5px;
}

/* 04. HERO SECTION
========================================================= */

.hero-section {
  position: relative;
  padding: 85px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #eef2ff 100%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 590px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 22px;
  color: var(--primary-dark);
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -1.8px;
  margin-bottom: 22px;
  line-height: 1.13;
}

.hero-content > p {
  max-width: 540px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  color: var(--secondary);
  background: var(--white);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero-note {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 0;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* 05. GENERAL SECTION STYLES
========================================================= */

.section {
  padding: 85px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 38px;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--primary-dark);
  gap: 12px;
}

/* 06. TRENDING BLOG SECTION
========================================================= */

.trending-section {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 22px;
}

.blog-card-content h3 {
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.blog-card-content h3 a {
  color: var(--heading);
}

.blog-card-content h3 a:hover {
  color: var(--primary);
}

.blog-card-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.read-more:hover {
  color: var(--primary-dark);
  gap: 11px;
}

.section-bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

/* 08. ABOUT PREVIEW SECTION
========================================================= */

.about-preview-section {
  background: var(--white);
}

.about-preview-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 65px;
}

.about-preview-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-preview-content h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.about-preview-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}

.about-preview-content .btn {
  margin-top: 10px;
}

/* 09. CALL TO ACTION SECTION
========================================================= */

.cta-section {
  padding: 75px 0;
  background: var(--secondary);
}

.cta-container {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.cta-container h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 17px;
}

.cta-container p {
  max-width: 620px;
  margin: 0 auto 25px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

.btn-light {
  color: var(--secondary);
  background: var(--white);
  border-color: var(--white);
}

.btn-light:hover {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* 10. FOOTER
========================================================= */

.site-footer {
  padding: 65px 0 0;
  color: #cbd5e1;
  background: #080f1e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 45px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 190px;
  max-height: 55px;
  object-fit: contain;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
}

.footer-column h3 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-column ul li a {
  display: inline-block;
  color: #94a3b8;
  font-size: 13px;
}

.footer-column ul li a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 0;
}

/* 11. RESPONSIVE DESIGN - TABLETS
========================================================= */

@media (max-width: 1024px) {
  .container {
    width: min(100% - 36px, var(--container-width));
  }

  .header-container {
    gap: 20px;
  }

  .nav-list {
    gap: 19px;
  }

  .hero-container {
    gap: 35px;
  }

  .hero-section {
    padding: 70px 0;
  }

  .blog-grid {
    gap: 20px;
  }

  .blog-card-content {
    padding: 18px;
  }

  .footer-grid {
    gap: 30px;
  }
}

/* 12. RESPONSIVE DESIGN - MOBILE NAVIGATION
========================================================= */

@media (max-width: 768px) {
  .header-container {
    min-height: 70px;
  }

  .site-logo img {
    width: 165px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    padding: 12px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .main-navigation.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list li a {
    display: block;
    padding: 13px 5px;
    font-size: 15px;
  }

  .hero-section {
    padding: 55px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .hero-image {
    max-width: 600px;
  }

  .section {
    padding: 65px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 28px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .about-preview-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-preview-image {
    max-width: 600px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
}

/* 13. RESPONSIVE DESIGN - SMALL MOBILE
========================================================= */

@media (max-width: 520px) {
  .container {
    width: min(100% - 30px, var(--container-width));
  }

  .header-container {
    min-height: 65px;
  }

  .site-logo img {
    width: 145px;
  }

  .hero-section {
    padding: 45px 0;
  }

  .hero-content h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-image img {
    border-radius: var(--radius-md);
  }

  .section {
    padding: 55px 0;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card-content h3 {
    font-size: 19px;
  }

  .about-preview-content h2 {
    font-size: 29px;
  }

  .cta-section {
    padding: 55px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* 14. EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 31px;
  }

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

  .footer-brand {
    grid-column: auto;
  }
}

/* 15. REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   BLOG LISTING PAGE
   Freelance Mentor Hub
========================================= */

.blog-page {
  background: #ffffff;
}

.blog-hero {
  padding: 76px 20px 70px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 55%, #eef2ff 100%);
  text-align: center;
}

.blog-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.blog-eyebrow,
.section-eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.blog-hero h1 {
  margin: 0 0 17px;
  color: #14213d;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 800;
}

.blog-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #526079;
  font-size: 17px;
  line-height: 1.8;
}

.blog-search {
  display: flex;
  max-width: 590px;
  margin: 30px auto 0;
  padding: 6px;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.08);
}

.blog-search input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  color: #17233c;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
}

.blog-search input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  border-radius: 7px;
}

.blog-search button,
.blog-no-results button {
  flex-shrink: 0;
  padding: 12px 23px;
  color: #ffffff;
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.blog-search button:hover,
.blog-no-results button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.blog-listing-section {
  padding-top: 70px;
  padding-bottom: 80px;
}

.blog-listing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.blog-listing-heading h2 {
  margin: 0 0 10px;
  color: #14213d;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.25;
}

.blog-listing-heading > div > p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.blog-results-count {
  flex-shrink: 0;
  margin: 0 0 5px;
  color: #64748b;
  font-size: 14px;
}

.blog-results-count strong {
  color: #2563eb;
}

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.blog-filter-btn {
  padding: 10px 16px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.blog-filter-btn:hover {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.blog-filter-btn.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}

.blog-listing-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  box-shadow: 0 5px 22px rgba(15, 23, 42, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.blog-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-listing-card:hover .blog-card-image img {
  transform: scale(1.045);
}

.blog-card-content {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.blog-card-content h3 {
  margin: 0 0 11px;
  font-size: 19px;
  line-height: 1.45;
}

.blog-card-content h3 a {
  color: #17233c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-content h3 a:hover {
  color: #2563eb;
}

.blog-card-content p {
  margin: 0 0 19px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #2563eb;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.blog-read-link span {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.blog-read-link:hover span {
  transform: translateX(4px);
}

.blog-listing-card[hidden] {
  display: none !important;
}

.blog-no-results {
  padding: 48px 20px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.blog-no-results h3 {
  margin: 0 0 10px;
  color: #17233c;
  font-size: 23px;
}

.blog-no-results p {
  margin: 0 0 20px;
  color: #64748b;
}

.blog-no-results button {
  display: inline-block;
}

.blog-cta-section {
  padding: 55px 20px;
  background: #14213d;
}

.blog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.blog-cta-inner .blog-eyebrow {
  color: #93c5fd;
}

.blog-cta-inner h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.3;
}

.blog-cta-inner p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.blog-cta-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: 14px 21px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.blog-cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Accessibility helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blog listing responsive layout */
@media (max-width: 1000px) {
  .blog-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 700px) {
  .blog-hero {
    padding: 58px 18px;
  }

  .blog-hero p {
    font-size: 15px;
  }

  .blog-listing-section {
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .blog-listing-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .blog-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .blog-filter-btn {
    flex-shrink: 0;
  }

  .blog-listing-grid {
    gap: 18px;
  }

  .blog-card-content {
    min-height: 245px;
    padding: 17px;
  }

  .blog-card-content h3 {
    font-size: 17px;
  }

  .blog-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .blog-search {
    gap: 3px;
  }

  .blog-search input {
    padding: 11px 9px;
    font-size: 13px;
  }

  .blog-search button {
    padding: 11px 13px;
    font-size: 13px;
  }

  .blog-listing-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-content {
    min-height: 0;
    padding: 20px;
  }

  .blog-cta-section {
    padding: 42px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-listing-card,
  .blog-card-image img,
  .blog-read-link span,
  .blog-search button,
  .blog-cta-button {
    transition: none;
  }
}

/* =========================================
   SHARED ARTICLE DESIGN
   Used by all 20 blog articles
   Freelance Mentor Hub
========================================= */

.article-page {
  background: #ffffff;
  color: #17233c;
}

/* Article breadcrumb */

.article-breadcrumb {
  padding: 18px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf4;
}

.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #64748b;
  font-size: 13px;
}

.article-breadcrumb li + li::before {
  content: "/";
  margin-right: 9px;
  color: #94a3b8;
}

.article-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

/* Article hero */

.article-hero {
  padding: 58px 20px 38px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 75%);
}

.article-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.article-hero h1 {
  margin: 0 auto 19px;
  color: #14213d;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.article-subtitle {
  max-width: 750px;
  margin: 0 auto 23px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  color: #64748b;
  font-size: 13px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta-item img {
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Featured image */

.article-featured-image {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px 42px;
}

.article-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef2f7;
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.09);
}

.article-image-caption {
  margin-top: 11px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* Main article layout */

.article-section {
  padding: 10px 20px 75px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 38px;
  max-width: 1150px;
  margin: 0 auto;
}

.article-main {
  min-width: 0;
}

/* Article content typography */

.article-content {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content h2 {
  margin: 42px 0 17px;
  color: #14213d;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.35;
  font-weight: 800;
}

.article-content h3 {
  margin: 30px 0 13px;
  color: #17233c;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 750;
}

.article-content h4 {
  margin: 24px 0 11px;
  color: #17233c;
  font-size: 18px;
  line-height: 1.45;
}

.article-content a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #1d4ed8;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-content strong {
  color: #17233c;
  font-weight: 750;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 23px;
  color: #334155;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 9px 9px 0;
  font-size: 16px;
  line-height: 1.8;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 27px auto;
  border-radius: 11px;
}

.article-content figure {
  margin: 28px 0;
}

.article-content figcaption {
  margin-top: 9px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.article-content table {
  width: 100%;
  margin: 25px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.article-content th,
.article-content td {
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: #17233c;
  background: #eff6ff;
  font-weight: 750;
}

.article-content tr:nth-child(even) td {
  background: #f8fafc;
}

/* Table of contents */

.article-toc {
  margin: 0 0 32px;
  padding: 23px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
}

.article-toc h2 {
  margin: 0 0 15px;
  color: #17233c;
  font-size: 20px;
}

.article-toc ul {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin-bottom: 9px;
  color: #64748b;
  font-size: 14px;
}

.article-toc a {
  color: #2563eb;
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

/* Article tip / information boxes */

.article-info-box {
  margin: 28px 0;
  padding: 21px 23px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.article-info-box h3 {
  margin: 0 0 9px;
  color: #166534;
  font-size: 18px;
}

.article-info-box p {
  margin: 0;
  color: #365b43;
}

.article-warning-box {
  margin: 28px 0;
  padding: 21px 23px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.article-warning-box h3 {
  margin: 0 0 9px;
  color: #92400e;
  font-size: 18px;
}

.article-warning-box p {
  margin: 0;
  color: #785522;
}

/* Sidebar */

.article-sidebar {
  position: sticky;
  top: 25px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.article-sidebar-widget {
  padding: 21px;
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 11px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.article-sidebar-widget h3 {
  margin: 0 0 17px;
  padding-bottom: 12px;
  color: #17233c;
  border-bottom: 1px solid #e8edf4;
  font-size: 18px;
  line-height: 1.4;
}

.article-sidebar-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sidebar-widget li {
  margin-bottom: 12px;
}

.article-sidebar-widget li:last-child {
  margin-bottom: 0;
}

.article-sidebar-widget a {
  color: #526079;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.article-sidebar-widget a:hover {
  color: #2563eb;
}

/* Sidebar author profile */

.article-author-mini {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}

.article-author-mini img {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.article-author-mini h4 {
  margin: 0 0 4px;
  color: #17233c;
  font-size: 15px;
}

.article-author-mini span {
  color: #64748b;
  font-size: 12px;
}

.article-sidebar-widget > p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
}

/* Sidebar ad placeholder */

.article-ad-slot {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
}

/* Author box after article */

.article-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 48px;
  padding: 25px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.article-author-box > img {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.article-author-info h3 {
  margin: 0 0 7px;
  color: #17233c;
  font-size: 19px;
}

.article-author-info p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.article-author-info a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Related articles */

.related-articles {
  max-width: 1150px;
  margin: 65px auto 0;
}

.related-articles-heading {
  margin-bottom: 25px;
}

.related-articles-heading h2 {
  margin: 0 0 9px;
  color: #14213d;
  font-size: clamp(25px, 3vw, 32px);
}

.related-articles-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-article-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 11px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.related-article-card > a:first-child {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

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

.related-article-card:hover img {
  transform: scale(1.04);
}

.related-article-content {
  padding: 18px;
}

.related-article-content span {
  display: inline-block;
  margin-bottom: 9px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 750;
}

.related-article-content h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.related-article-content h3 a {
  color: #17233c;
  text-decoration: none;
}

.related-article-content h3 a:hover {
  color: #2563eb;
}

/* Article CTA */

.article-bottom-cta {
  margin-top: 48px;
  padding: 30px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  text-align: center;
}

.article-bottom-cta h2 {
  margin: 0 0 10px;
  color: #14213d;
  font-size: 25px;
}

.article-bottom-cta p {
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.7;
}

.article-bottom-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.article-bottom-cta a:hover {
  background: #1d4ed8;
}

/* Article responsive design */

@media (max-width: 950px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 25px;
  }

  .related-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .article-hero {
    padding: 45px 18px 30px;
  }

  .article-featured-image {
    padding: 0 18px 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-section {
    padding: 5px 18px 55px;
  }
}

@media (max-width: 520px) {
  .article-hero h1 {
    font-size: 32px;
  }

  .article-subtitle {
    font-size: 15px;
  }

  .article-meta {
    gap: 10px 14px;
    font-size: 12px;
  }

  .article-featured-image img {
    border-radius: 9px;
  }

  .article-content {
    font-size: 15px;
    line-height: 1.85;
  }

  .article-content h2 {
    margin-top: 34px;
    font-size: 25px;
  }

  .article-content h3 {
    font-size: 19px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-author-box {
    flex-direction: column;
    padding: 20px;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
  }

  .related-articles {
    margin-top: 45px;
  }

  .article-bottom-cta {
    padding: 23px 18px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-article-card,
  .related-article-card img,
  .article-bottom-cta a {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 950px) {
}

/* Mobile */
@media (max-width: 600px) {
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
}

html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
}

body.error-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #f8fafc;
  color: #263449;
  font-family: Arial, Helvetica, sans-serif;
}

.error-page *,
.error-page *::before,
.error-page *::after {
  box-sizing: border-box;
}

.error-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 570px;
  padding: 65px 20px;
}

.error-container {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.error-illustration {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto 25px;
}

.error-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.error-code {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: clamp(65px, 12vw, 105px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -5px;
}

.error-container h1 {
  margin: 18px 0 13px;
  color: #17243b;
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.error-description {
  max-width: 570px;
  margin: 0 auto;
  color: #64748b;
  font-size: 16px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 28px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.error-button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
  text-decoration: none;
}

.error-button.secondary {
  background: #fff;
  color: #2563eb;
}

.error-button.secondary:hover {
  background: #eff6ff;
}

.error-search {
  width: min(100%, 510px);
  margin: 37px auto 0;
}

.error-search label {
  display: block;
  margin-bottom: 11px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.error-search form {
  display: flex;
  gap: 9px;
}

.error-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #263449;
  font-size: 14px;
}

.error-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-search button {
  flex-shrink: 0;
  min-width: 95px;
  height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  background: #172f55;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.error-search button:hover {
  background: #244779;
}

.error-help {
  margin-top: 25px;
  color: #8491a4;
  font-size: 13px;
}

.error-help a {
  color: #2563eb;
  text-decoration: none;
}

.error-help a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .error-page main {
    min-height: 520px;
    padding: 48px 17px;
  }

  .error-illustration {
    max-width: 290px;
    margin-bottom: 18px;
  }

  .error-code {
    letter-spacing: -3px;
  }

  .error-description {
    font-size: 14px;
  }

  .error-actions {
    gap: 10px;
  }

  .error-button {
    min-height: 46px;
    padding: 11px 17px;
    font-size: 13px;
  }

  .error-search {
    margin-top: 30px;
  }
}

@media (max-width: 380px) {
  .error-actions {
    flex-direction: column;
  }

  .error-button {
    width: 100%;
  }

  .error-search form {
    flex-direction: column;
  }

  .error-search button {
    width: 100%;
  }
}

html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
}

body.search-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #f8fafc;
  color: #263449;
  font-family: Arial, Helvetica, sans-serif;
}

.search-page *,
.search-page *::before,
.search-page *::after {
  box-sizing: border-box;
}

.search-page main {
  min-height: 65vh;
  height: auto !important;
  overflow: visible !important;
}

.search-container {
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
}

.search-hero {
  padding: 65px 20px 55px;
  background: linear-gradient(135deg, #edf5ff, #f8faff);
  border-bottom: 1px solid #e6edf7;
  text-align: center;
}

.search-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: 30px;
  background: #dceafe;
  color: #2458a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.search-hero h1 {
  margin: 0 0 12px;
  color: #17243b;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.search-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.search-form-wrapper {
  width: min(100%, 720px);
  margin: 30px auto 0;
}

.search-form {
  display: flex;
  gap: 10px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(30, 60, 100, 0.06);
}

.search-input-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  gap: 11px;
  padding-left: 12px;
}

.search-input-wrap img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 0;
  outline: none;
  background: transparent;
  color: #263449;
  font-size: 15px;
}

.search-input::placeholder {
  color: #9aa6b6;
}

.search-submit {
  flex-shrink: 0;
  min-width: 115px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: #1d4ed8;
}

.search-content {
  padding-top: 45px;
  padding-bottom: 70px;
}

.search-results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.search-results-top h2 {
  margin: 0;
  color: #17243b;
  font-size: 23px;
}

.search-count {
  color: #738197;
  font-size: 13px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.search-result-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(25, 45, 75, 0.035);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(25, 45, 75, 0.08);
}

.search-result-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf2f8;
}

.search-result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-result-card:hover .search-result-image img {
  transform: scale(1.04);
}

.search-result-content {
  padding: 20px;
}

.search-result-content h3 {
  margin: 0 0 10px;
  color: #17243b;
  font-size: 18px;
  line-height: 1.4;
}

.search-result-content h3 a {
  color: inherit;
  text-decoration: none;
}

.search-result-content h3 a:hover {
  color: #2563eb;
}

.search-result-content p {
  margin: 0 0 16px;
  color: #718096;
  font-size: 13px;
  line-height: 1.7;
}

.search-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.search-read-more:hover {
  text-decoration: underline;
}

.search-empty {
  display: none;
  padding: 45px 20px;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.search-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #edf4ff;
  color: #2563eb;
  font-size: 27px;
}

.search-empty h3 {
  margin: 0 0 9px;
  color: #17243b;
  font-size: 21px;
}

.search-empty p {
  margin: 0 auto;
  max-width: 440px;
  color: #718096;
  font-size: 14px;
  line-height: 1.7;
}

.search-suggestions {
  margin-top: 28px;
  text-align: center;
}

.search-suggestions p {
  margin: 0 0 13px;
  color: #64748b;
  font-size: 13px;
}

.search-suggestion-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.search-suggestion-links a {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid #dce5f0;
  border-radius: 30px;
  background: #fff;
  color: #53657d;
  font-size: 12px;
  text-decoration: none;
}

.search-suggestion-links a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

@media (max-width: 900px) {
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .search-container {
    width: min(100% - 30px, 1100px);
  }

  .search-hero {
    padding: 48px 15px 40px;
  }

  .search-hero p {
    font-size: 14px;
  }

  .search-form-wrapper {
    margin-top: 23px;
  }

  .search-form {
    gap: 5px;
    padding: 5px;
  }

  .search-input-wrap {
    gap: 7px;
    padding-left: 7px;
  }

  .search-input {
    font-size: 13px;
  }

  .search-submit {
    min-width: 83px;
    padding: 0 12px;
    font-size: 12px;
  }

  .search-content {
    padding-top: 32px;
    padding-bottom: 45px;
  }

  .search-results-top h2 {
    font-size: 20px;
  }

  .search-results-grid {
    gap: 14px;
  }

  .search-result-content {
    padding: 14px;
  }

  .search-result-content h3 {
    font-size: 15px;
  }

  .search-result-content p {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .search-result-content {
    padding: 18px;
  }

  .search-result-content h3 {
    font-size: 17px;
  }
}

/* Terms and Conditions Page */

html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
}

body.terms-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #f8fafc;
  color: #263445;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
  box-sizing: border-box;
}

.terms-page main {
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.terms-hero {
  padding: 75px 20px 65px;
  text-align: center;
  background: linear-gradient(135deg, #102b46, #174b70);
  color: #fff;
}

.terms-hero-inner {
  max-width: 850px;
  margin: 0 auto;
}

.terms-label {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: #d8edff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.terms-hero h1 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
}

.terms-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #dce8f3;
  font-size: 16px;
}

.terms-updated {
  display: inline-block;
  margin-top: 20px;
  color: #c6d9e9;
  font-size: 13px;
}

.terms-container {
  width: min(100% - 40px, 1000px);
  margin: 55px auto 75px;
}

.terms-intro {
  margin-bottom: 30px;
  padding: 25px 28px;
  border: 1px solid #e1eaf2;
  border-left: 4px solid #1684c7;
  border-radius: 10px;
  background: #fff;
}

.terms-intro p {
  margin: 0;
  color: #435368;
}

.terms-content {
  padding: 35px 38px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 45, 70, 0.04);
}

.terms-section {
  padding: 0 0 27px;
  margin-bottom: 27px;
  border-bottom: 1px solid #e9eef3;
  scroll-margin-top: 30px;
}

.terms-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.terms-section h2 {
  margin: 0 0 13px;
  color: #153b5b;
  font-size: 23px;
  line-height: 1.4;
}

.terms-section h3 {
  margin: 20px 0 8px;
  color: #24445f;
  font-size: 17px;
}

.terms-section p {
  margin: 0 0 12px;
  color: #526174;
  font-size: 15px;
}

.terms-section ul {
  margin: 10px 0 15px;
  padding-left: 23px;
  color: #526174;
}

.terms-section li {
  margin-bottom: 8px;
  padding-left: 3px;
  font-size: 15px;
}

.terms-section a {
  color: #0878bd;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.terms-section a:hover {
  color: #075b91;
}

.terms-contact-box {
  margin-top: 30px;
  padding: 28px;
  border-radius: 12px;
  background: #eaf4fb;
  text-align: center;
}

.terms-contact-box h2 {
  margin: 0 0 10px;
  color: #153b5b;
  font-size: 23px;
}

.terms-contact-box p {
  margin: 0 0 17px;
  color: #526174;
  font-size: 15px;
}

.terms-contact-link {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 7px;
  background: #0878bd;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.terms-contact-link:hover {
  background: #075b91;
}

@media (max-width: 700px) {
  .terms-hero {
    padding: 55px 18px 48px;
  }

  .terms-container {
    width: min(100% - 28px, 1000px);
    margin: 35px auto 50px;
  }

  .terms-content {
    padding: 25px 20px;
  }

  .terms-intro {
    padding: 20px;
  }

  .terms-section h2 {
    font-size: 20px;
  }

  .terms-section p,
  .terms-section li {
    font-size: 14px;
  }

  .terms-contact-box {
    padding: 23px 18px;
  }
}

@media (max-width: 380px) {
  .terms-hero h1 {
    font-size: 30px;
  }

  .terms-content {
    padding: 22px 16px;
  }

  .terms-section h2 {
    font-size: 19px;
  }
}

/* Privacy Policy Page */
html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
}

body.privacy-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #f8fafc;
  color: #263445;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

.privacy-page *,
.privacy-page *::before,
.privacy-page *::after {
  box-sizing: border-box;
}

.privacy-page main {
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.privacy-hero {
  padding: 75px 20px 65px;
  text-align: center;
  background: linear-gradient(135deg, #102b46, #174b70);
  color: #fff;
}

.privacy-hero-inner {
  max-width: 850px;
  margin: 0 auto;
}

.privacy-label {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: #d8edff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.privacy-hero h1 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
}

.privacy-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #dce8f3;
  font-size: 16px;
}

.privacy-updated {
  display: inline-block;
  margin-top: 20px;
  color: #c6d9e9;
  font-size: 13px;
}

.privacy-container {
  width: min(100% - 40px, 1000px);
  margin: 55px auto 75px;
}

.privacy-intro {
  margin-bottom: 30px;
  padding: 25px 28px;
  border: 1px solid #e1eaf2;
  border-left: 4px solid #1684c7;
  border-radius: 10px;
  background: #fff;
}

.privacy-intro p {
  margin: 0;
  color: #435368;
}

.privacy-content {
  padding: 35px 38px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 45, 70, 0.04);
}

.privacy-section {
  padding: 0 0 27px;
  margin-bottom: 27px;
  border-bottom: 1px solid #e9eef3;
  scroll-margin-top: 30px;
}

.privacy-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.privacy-section h2 {
  margin: 0 0 13px;
  color: #153b5b;
  font-size: 23px;
  line-height: 1.4;
}

.privacy-section h3 {
  margin: 20px 0 8px;
  color: #24445f;
  font-size: 17px;
}

.privacy-section p {
  margin: 0 0 12px;
  color: #526174;
  font-size: 15px;
}

.privacy-section ul {
  margin: 10px 0 15px;
  padding-left: 23px;
  color: #526174;
}

.privacy-section li {
  margin-bottom: 8px;
  padding-left: 3px;
  font-size: 15px;
}

.privacy-section a {
  color: #0878bd;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.privacy-section a:hover {
  color: #075b91;
}

.privacy-contact-box {
  margin-top: 30px;
  padding: 28px;
  border-radius: 12px;
  background: #eaf4fb;
  text-align: center;
}

.privacy-contact-box h2 {
  margin: 0 0 10px;
  color: #153b5b;
  font-size: 23px;
}

.privacy-contact-box p {
  margin: 0 0 17px;
  color: #526174;
  font-size: 15px;
}

.privacy-contact-link {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 7px;
  background: #0878bd;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.privacy-contact-link:hover {
  background: #075b91;
}

@media (max-width: 700px) {
  .privacy-hero {
    padding: 55px 18px 48px;
  }

  .privacy-container {
    width: min(100% - 28px, 1000px);
    margin: 35px auto 50px;
  }

  .privacy-content {
    padding: 25px 20px;
  }

  .privacy-intro {
    padding: 20px;
  }

  .privacy-section h2 {
    font-size: 20px;
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 14px;
  }

  .privacy-contact-box {
    padding: 23px 18px;
  }
}

@media (max-width: 380px) {
  .privacy-hero h1 {
    font-size: 31px;
  }

  .privacy-content {
    padding: 22px 16px;
  }

  .privacy-section h2 {
    font-size: 19px;
  }
}
/* ======================================
           AUTHOR PAGE BASE
        ====================================== */

html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

body.author-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #ffffff;
}

.author-page *,
.author-page *::before,
.author-page *::after {
  box-sizing: border-box;
}

.author-page main {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.author-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ======================================
           AUTHOR HERO
        ====================================== */

.author-hero {
  padding: 75px 20px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(57, 112, 220, 0.09),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(57, 112, 220, 0.08),
      transparent 30%
    ),
    #f5f8ff;
}

.author-hero-inner {
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: center;
  gap: 55px;
  max-width: 1000px;
  margin: 0 auto;
}

.author-image-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.author-image-wrap::before {
  position: absolute;
  z-index: 0;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid #b9ccf5;
  border-radius: 50%;
  content: "";
}

.author-profile-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 6px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  background: #e9eef8;
  box-shadow: 0 12px 35px rgba(26, 48, 87, 0.12);
}

.author-eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 15px;
  border: 1px solid #dce7ff;
  border-radius: 30px;
  background: #ffffff;
  color: #2458c6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.author-hero-content h1 {
  margin: 0 0 8px;
  color: #172033;
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.author-position {
  margin: 0 0 20px;
  color: #2458c6;
  font-size: 16px;
  font-weight: 700;
}

.author-hero-content > p {
  margin: 0;
  color: #647187;
  font-size: 16px;
  line-height: 1.9;
}

.author-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.author-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid #2458c6;
  border-radius: 8px;
  background: #2458c6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.author-button:hover {
  transform: translateY(-2px);
  background: #1948aa;
}

.author-button-outline {
  background: transparent;
  color: #2458c6;
}

.author-button-outline:hover {
  background: #eaf0ff;
}

/* ======================================
           SECTION COMMON
        ====================================== */

.author-section {
  padding: 75px 0;
}

.author-section-heading {
  max-width: 750px;
  margin: 0 auto 38px;
  text-align: center;
}

.author-section-heading h2 {
  margin: 0 0 14px;
  color: #172033;
  font-size: clamp(27px, 4vw, 35px);
  line-height: 1.3;
}

.author-section-heading p {
  margin: 0;
  color: #68758a;
  font-size: 15px;
  line-height: 1.85;
}

/* ======================================
           BIOGRAPHY
        ====================================== */

.author-bio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 45px;
}

.author-bio-content h2 {
  margin: 0 0 20px;
  color: #172033;
  font-size: 30px;
}

.author-bio-content p {
  margin: 0 0 17px;
  color: #647187;
  font-size: 15px;
  line-height: 1.95;
}

.author-focus-card {
  padding: 28px;
  border: 1px solid #e7ecf4;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(25, 45, 80, 0.05);
}

.author-focus-card h3 {
  margin: 0 0 19px;
  color: #172033;
  font-size: 20px;
}

.author-focus-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-focus-list li {
  position: relative;
  padding-left: 27px;
  color: #647187;
  font-size: 14px;
  line-height: 1.7;
}

.author-focus-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #2458c6;
  font-weight: 800;
  content: "✓";
}

/* ======================================
           EDITORIAL APPROACH
        ====================================== */

.author-approach {
  background: #f6f8fc;
}

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

.author-approach-card {
  padding: 26px;
  border: 1px solid #e7ecf4;
  border-radius: 13px;
  background: #ffffff;
}

.author-approach-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border-radius: 11px;
  background: #edf3ff;
  color: #2458c6;
  font-size: 21px;
}

.author-approach-card h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 18px;
}

.author-approach-card p {
  margin: 0;
  color: #68758a;
  font-size: 14px;
  line-height: 1.8;
}

/* ======================================
           TOPICS
        ====================================== */

.author-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.author-topic {
  padding: 21px;
  border: 1px solid #e8edf5;
  border-radius: 11px;
  background: #ffffff;
  transition: 0.2s ease;
}

.author-topic:hover {
  transform: translateY(-3px);
  border-color: #cbd9f6;
  box-shadow: 0 8px 25px rgba(30, 50, 90, 0.06);
}

.author-topic h3 {
  margin: 0 0 9px;
  color: #172033;
  font-size: 16px;
}

.author-topic p {
  margin: 0;
  color: #68758a;
  font-size: 13px;
  line-height: 1.8;
}

/* ======================================
           AUTHOR CONTACT
        ====================================== */

.author-contact {
  padding: 70px 20px;
  background: #172b4d;
  text-align: center;
}

.author-contact-inner {
  max-width: 750px;
  margin: 0 auto;
}

.author-contact h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: clamp(27px, 4vw, 36px);
}

.author-contact p {
  margin: 0 0 25px;
  color: #d6deeb;
  font-size: 15px;
  line-height: 1.85;
}

.author-contact .author-button {
  border-color: #ffffff;
  background: #ffffff;
  color: #172b4d;
}

.author-contact .author-button:hover {
  background: #eaf0ff;
}

/* ======================================
           FOOTER
        ====================================== */

.author-page .site-footer {
  width: 100%;
  height: auto !important;
  overflow: visible;
}

/* ======================================
           TABLET
        ====================================== */

@media (max-width: 850px) {
  .author-hero-inner {
    grid-template-columns: 210px 1fr;
    gap: 35px;
  }

  .author-image-wrap {
    width: 205px;
    height: 205px;
  }

  .author-bio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .author-approach-grid,
  .author-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================
           MOBILE
        ====================================== */

@media (max-width: 600px) {
  .author-container {
    width: calc(100% - 32px);
  }

  .author-hero {
    padding: 55px 18px;
  }

  .author-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .author-image-wrap {
    width: 175px;
    height: 175px;
  }

  .author-hero-content h1 {
    font-size: 36px;
  }

  .author-hero-content > p {
    font-size: 14px;
  }

  .author-hero-actions {
    justify-content: center;
  }

  .author-section {
    padding: 50px 0;
  }

  .author-section-heading {
    margin-bottom: 27px;
  }

  .author-bio-content h2 {
    font-size: 25px;
  }

  .author-focus-card {
    padding: 22px;
  }

  .author-approach-grid,
  .author-topics-grid {
    grid-template-columns: 1fr;
  }

  .author-approach-card,
  .author-topic {
    padding: 21px;
  }

  .author-contact {
    padding: 52px 18px;
  }
}

@media (max-width: 360px) {
  .author-hero-content h1 {
    font-size: 31px;
  }

  .author-image-wrap {
    width: 155px;
    height: 155px;
  }

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

  .author-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-page *,
  .author-page *::before,
  .author-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Disclaimer Page */

html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
}

body.disclaimer-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #f8fafc;
  color: #263445;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

.disclaimer-page *,
.disclaimer-page *::before,
.disclaimer-page *::after {
  box-sizing: border-box;
}

.disclaimer-page main {
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.disclaimer-hero {
  padding: 75px 20px 65px;
  text-align: center;
  background: linear-gradient(135deg, #102b46, #174b70);
  color: #fff;
}

.disclaimer-hero-inner {
  max-width: 850px;
  margin: 0 auto;
}

.disclaimer-label {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: #d8edff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.disclaimer-hero h1 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
}

.disclaimer-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #dce8f3;
  font-size: 16px;
}

.disclaimer-updated {
  display: inline-block;
  margin-top: 20px;
  color: #c6d9e9;
  font-size: 13px;
}

.disclaimer-container {
  width: min(100% - 40px, 1000px);
  margin: 55px auto 75px;
}

.disclaimer-intro {
  margin-bottom: 30px;
  padding: 25px 28px;
  border: 1px solid #e1eaf2;
  border-left: 4px solid #1684c7;
  border-radius: 10px;
  background: #fff;
}

.disclaimer-intro p {
  margin: 0;
  color: #435368;
}

.disclaimer-content {
  padding: 35px 38px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 45, 70, 0.04);
}

.disclaimer-section {
  padding: 0 0 27px;
  margin-bottom: 27px;
  border-bottom: 1px solid #e9eef3;
  scroll-margin-top: 30px;
}

.disclaimer-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.disclaimer-section h2 {
  margin: 0 0 13px;
  color: #153b5b;
  font-size: 23px;
  line-height: 1.4;
}

.disclaimer-section h3 {
  margin: 20px 0 8px;
  color: #24445f;
  font-size: 17px;
}

.disclaimer-section p {
  margin: 0 0 12px;
  color: #526174;
  font-size: 15px;
}

.disclaimer-section ul {
  margin: 10px 0 15px;
  padding-left: 23px;
  color: #526174;
}

.disclaimer-section li {
  margin-bottom: 8px;
  padding-left: 3px;
  font-size: 15px;
}

.disclaimer-section a {
  color: #0878bd;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.disclaimer-section a:hover {
  color: #075b91;
}

.disclaimer-contact-box {
  margin-top: 30px;
  padding: 28px;
  border-radius: 12px;
  background: #eaf4fb;
  text-align: center;
}

.disclaimer-contact-box h2 {
  margin: 0 0 10px;
  color: #153b5b;
  font-size: 23px;
}

.disclaimer-contact-box p {
  margin: 0 0 17px;
  color: #526174;
  font-size: 15px;
}

.disclaimer-contact-link {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 7px;
  background: #0878bd;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.disclaimer-contact-link:hover {
  background: #075b91;
}

@media (max-width: 700px) {
  .disclaimer-hero {
    padding: 55px 18px 48px;
  }

  .disclaimer-container {
    width: min(100% - 28px, 1000px);
    margin: 35px auto 50px;
  }

  .disclaimer-content {
    padding: 25px 20px;
  }

  .disclaimer-intro {
    padding: 20px;
  }

  .disclaimer-section h2 {
    font-size: 20px;
  }

  .disclaimer-section p,
  .disclaimer-section li {
    font-size: 14px;
  }

  .disclaimer-contact-box {
    padding: 23px 18px;
  }
}

@media (max-width: 380px) {
  .disclaimer-hero h1 {
    font-size: 31px;
  }

  .disclaimer-content {
    padding: 22px 16px;
  }

  .disclaimer-section h2 {
    font-size: 19px;
  }
}

html {
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

body.editorial-page {
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  overflow-x: clip !important;
  overflow-y: auto !important;
  position: relative;
  background: #f8fafc;
  color: #243047;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

.editorial-page *,
.editorial-page *::before,
.editorial-page *::after {
  box-sizing: border-box;
}

.editorial-page main {
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.editorial-hero {
  padding: 76px 20px 65px;
  text-align: center;
  background: linear-gradient(135deg, #edf5ff, #f7f9ff);
  border-bottom: 1px solid #e5eaf2;
}

.editorial-container {
  width: min(100% - 40px, 1050px);
  margin: 0 auto;
}

.editorial-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: 30px;
  background: #dceafe;
  color: #2458a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.editorial-hero h1 {
  max-width: 800px;
  margin: 0 auto 17px;
  color: #17243b;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.editorial-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #607087;
  font-size: 17px;
}

.editorial-updated {
  margin-top: 22px !important;
  font-size: 13px !important;
  color: #718096 !important;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 35px;
  padding-top: 55px;
  padding-bottom: 70px;
}

.editorial-content {
  min-width: 0;
  padding: 38px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(25, 45, 75, 0.035);
}

.editorial-content h2 {
  margin: 39px 0 13px;
  color: #17243b;
  font-size: 23px;
  line-height: 1.35;
}

.editorial-content h2:first-child {
  margin-top: 0;
}

.editorial-content h3 {
  margin: 23px 0 9px;
  color: #26364f;
  font-size: 18px;
}

.editorial-content p {
  margin: 0 0 16px;
  color: #58677c;
  font-size: 15px;
}

.editorial-content ul,
.editorial-content ol {
  margin: 12px 0 20px;
  padding-left: 23px;
  color: #58677c;
}

.editorial-content li {
  margin-bottom: 9px;
  padding-left: 4px;
  font-size: 15px;
}

.editorial-content a {
  color: #2563eb;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.editorial-content a:hover {
  text-decoration: underline;
}

.editorial-note {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid #3478e5;
  border-radius: 7px;
  background: #f0f6ff;
  color: #405675;
  font-size: 14px;
}

.editorial-sidebar {
  position: sticky;
  top: 25px;
  padding: 25px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 13px;
}

.editorial-sidebar h3 {
  margin: 0 0 17px;
  color: #17243b;
  font-size: 17px;
}

.editorial-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-sidebar li {
  margin-bottom: 12px;
}

.editorial-sidebar a {
  color: #5a6b82;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.editorial-sidebar a:hover {
  color: #2563eb;
}

.editorial-help-card {
  margin-top: 22px;
  padding: 20px;
  border-radius: 11px;
  background: #f1f6ff;
}

.editorial-help-card h4 {
  margin: 0 0 8px;
  color: #1c355b;
  font-size: 15px;
}

.editorial-help-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}

.editorial-help-card a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.editorial-bottom-cta {
  margin-top: 25px;
  padding: 28px;
  border-radius: 12px;
  background: #f7f9fc;
  text-align: center;
}

.editorial-bottom-cta h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.editorial-bottom-cta p {
  margin-bottom: 15px;
}

.editorial-bottom-cta a {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.editorial-bottom-cta a:hover {
  background: #1d4ed8;
  text-decoration: none;
}

@media (max-width: 850px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .editorial-sidebar {
    position: static;
    order: -1;
  }

  .editorial-sidebar ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 18px;
  }
}

@media (max-width: 600px) {
  .editorial-hero {
    padding: 55px 16px 45px;
  }

  .editorial-container {
    width: min(100% - 30px, 1050px);
  }

  .editorial-hero p {
    font-size: 15px;
  }

  .editorial-layout {
    padding-top: 30px;
    padding-bottom: 45px;
  }

  .editorial-content {
    padding: 23px 19px;
    border-radius: 11px;
  }

  .editorial-content h2 {
    margin-top: 30px;
    font-size: 21px;
  }

  .editorial-content p,
  .editorial-content li {
    font-size: 14px;
  }

  .editorial-sidebar {
    padding: 20px;
  }

  .editorial-sidebar ul {
    grid-template-columns: 1fr;
  }

  .editorial-bottom-cta {
    padding: 22px 16px;
  }
}

@media (max-width: 360px) {
  .editorial-hero h1 {
    font-size: 31px;
  }

  .editorial-content {
    padding: 19px 15px;
  }
}
