/* =========================================================
   NKSAAS.COM - GLOBAL STYLESHEET
   Personal Finance Blog Website
   Author: Bruce Lee
   ========================================================= */

/* =========================================================
   1. GLOBAL RESET & VARIABLES
   ========================================================= */

:root {
  --primary: #142d4e;
  --primary-dark: #0e2038;
  --secondary: #16a36a;
  --secondary-dark: #118254;

  --heading: #192b40;
  --text: #526174;
  --muted: #758195;

  --white: #ffffff;
  --light-bg: #f5f7fa;
  --border: #e5eaf0;

  --success-bg: #e9f7f0;

  --font-main:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 3px 12px rgba(20, 45, 78, 0.05);
  --shadow-md: 0 8px 25px rgba(20, 45, 78, 0.09);
  --shadow-lg: 0 15px 40px rgba(20, 45, 78, 0.12);

  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 750;
}

p {
  margin-bottom: 15px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section-padding {
  padding: 85px 0;
}

::selection {
  background: var(--secondary);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

/* =========================================================
   2. SHARED BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  color: var(--white);
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border-color: var(--border);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.read-more {
  display: inline-block;
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 14px;
}

.read-more:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* =========================================================
   3. HEADER & NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(20, 45, 78, 0.035);
}

.header-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 155px;
  height: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 27px;
}

.main-navigation a {
  color: var(--heading);
  font-size: 14px;
  font-weight: 650;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
}

.header-search:hover {
  background: var(--light-bg);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  font-size: 23px;
}

/* Header search form */

.search-box form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box form label {
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
}

.search-box form .btn {
  width: fit-content;
}

/* Mobile navigation accessibility */

.mobile-menu-toggle[aria-expanded="true"] {
  background: var(--light-bg);
  border-color: var(--secondary);
}

/* =========================================================
   4. SECTION HEADINGS
   ========================================================= */

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--secondary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.8px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text);
}

/* =========================================================
   5. HERO SECTION
   ========================================================= */

.hero-section {
  padding: 80px 0;
  background: linear-gradient(120deg, #f4f8fc 0%, #ffffff 55%, #edf8f2 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 55px;
}

.hero-content h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(36px, 4.5vw, 57px);
  letter-spacing: -1.7px;
  line-height: 1.16;
}

.hero-content h1 span {
  display: block;
  color: var(--secondary);
}

.hero-content > p {
  max-width: 550px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 25px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-trust span {
  color: var(--secondary-dark);
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   6. INTRODUCTION
   ========================================================= */

.intro-section {
  padding-bottom: 65px;
}

.intro-container {
  max-width: 900px;
}

.intro-section .section-heading {
  margin-bottom: 0;
}

.intro-section .section-heading p {
  font-size: 17px;
  line-height: 1.9;
}

/* =========================================================
   7. CATEGORY CARDS
   ========================================================= */

.categories-section {
  background: var(--light-bg);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 235px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: var(--success-bg);
  border-radius: 12px;
  font-size: 25px;
}

.category-card h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.category-card p {
  margin-bottom: 17px;
  font-size: 14px;
  line-height: 1.7;
}

.category-link {
  margin-top: auto;
  color: var(--secondary-dark);
  font-size: 13px;
  font-weight: 750;
}

/* =========================================================
   8. FEATURED ARTICLE
   ========================================================= */

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.featured-image {
  height: 100%;
  min-height: 350px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.featured-content {
  padding: 40px;
}

.post-category {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--secondary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-content h3 {
  margin-bottom: 16px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.7px;
}

.featured-content > p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.85;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   9. TRENDING BLOG SECTION
   ========================================================= */

.trending-section {
  background: var(--light-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.blog-image {
  display: block;
  overflow: hidden;
  background: #e9eef3;
  aspect-ratio: 16 / 10;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.045);
}

.blog-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px;
}

.blog-content h3 {
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.45;
}

.blog-content h3 a {
  color: var(--heading);
}

.blog-content h3 a:hover {
  color: var(--secondary-dark);
}

.blog-content > p {
  flex: 1;
  margin-bottom: 17px;
  font-size: 14px;
  line-height: 1.75;
}

.blog-content .post-meta {
  margin-bottom: 16px;
}

.blog-content .read-more {
  align-self: flex-start;
}

.view-all-wrapper {
  margin-top: 42px;
  text-align: center;
}

/* =========================================================
   10. WHY NKSAAS SECTION
   ========================================================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.why-card {
  padding: 30px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary);
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  background: var(--success-bg);
  border-radius: 50%;
  font-size: 26px;
}

.why-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.why-card p {
  margin-bottom: 0;
  font-size: 14px;
}

/* =========================================================
   11. NEWSLETTER / CALL TO ACTION
   ========================================================= */

.newsletter-section {
  background: var(--primary);
}

.newsletter-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content .section-label {
  color: #8de0b8;
}

.newsletter-content h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 40px);
}

.newsletter-content p {
  max-width: 620px;
  margin: 0 auto 25px;
  color: #d8e3ed;
  font-size: 16px;
}

.newsletter-content .btn {
  background: var(--secondary);
  color: var(--white);
}

/* =========================================================
   12. FOOTER
   ========================================================= */

.site-footer {
  background: #101f32;
  color: #c4d0dc;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 65px;
  padding-bottom: 55px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  width: 155px;
  height: auto;
}

.footer-brand p {
  margin-bottom: 17px;
  color: #bdc9d5;
  font-size: 14px;
  line-height: 1.85;
}

.footer-brand > a:not(.footer-logo) {
  color: #8de0b8;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-column h3 {
  margin-bottom: 21px;
  color: var(--white);
  font-size: 16px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-column a {
  color: #bdc9d5;
  font-size: 13px;
}

.footer-column a:hover {
  color: #8de0b8;
  padding-left: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #aab8c6;
  font-size: 12px;
}

/* =========================================================
   13. BLOG ARTICLE SHARED STYLES
   ========================================================= */

.article-section {
  padding: 55px 0 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--secondary);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(250px, 320px);
  align-items: start;
  gap: 45px;
}

.article-header h1 {
  margin-bottom: 17px;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -1px;
}

.article-description {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
}

.article-featured-image {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  font-size: 17px;
  line-height: 1.9;
}

.article-body h2 {
  margin: 38px 0 16px;
  font-size: 29px;
}

.article-body h3 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 15px 0 25px;
  padding-left: 25px;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--secondary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin: 25px 0;
  padding: 20px 25px;
  background: var(--light-bg);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body table {
  width: 100%;
  margin: 25px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 13px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--light-bg);
  color: var(--heading);
}

.table-of-contents {
  margin: 25px 0;
  padding: 25px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.table-of-contents h2 {
  margin: 0 0 15px;
  font-size: 20px;
}

.table-of-contents ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.table-of-contents li {
  margin-bottom: 9px;
}

/* =========================================================
   14. SIDEBAR
   ========================================================= */

.article-sidebar {
  position: sticky;
  top: 105px;
}

.sidebar-widget {
  margin-bottom: 25px;
  padding: 24px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sidebar-widget h3 {
  margin-bottom: 18px;
  font-size: 19px;
}

.sidebar-widget ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-widget a {
  color: var(--text);
  font-size: 14px;
}

.sidebar-widget a:hover {
  color: var(--secondary-dark);
}

.sidebar-search {
  display: flex;
  gap: 8px;
}

.sidebar-search input {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

/* =========================================================
   15. RELATED ARTICLES
   ========================================================= */

.related-articles {
  padding: 65px 0;
  background: var(--light-bg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* =========================================================
   16. CATEGORY ARCHIVE PAGES
   ========================================================= */

.category-hero {
  padding: 65px 0;
  background: var(--light-bg);
  text-align: center;
}

.category-hero h1 {
  margin-bottom: 15px;
  font-size: clamp(32px, 4vw, 44px);
}

.category-hero p {
  max-width: 720px;
  margin: 0 auto;
}

/* =========================================================
   17. LEGAL AND INFORMATION PAGES
   ========================================================= */

.page-section {
  padding: 65px 0 85px;
}

.page-content {
  max-width: 850px;
  margin: 0 auto;
}

.page-content h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 44px);
}

.page-content h2 {
  margin: 32px 0 13px;
  font-size: 25px;
}

.page-content h3 {
  margin: 23px 0 10px;
  font-size: 19px;
}

.page-content p {
  margin-bottom: 17px;
  line-height: 1.85;
}

.page-content ul,
.page-content ol {
  margin: 15px 0 25px;
  padding-left: 25px;
  list-style: disc;
}

.page-content li {
  margin-bottom: 9px;
}

/* =========================================================
   18. CONTACT FORM
   ========================================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 650px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--heading);
  font-size: 14px;
  font-weight: 650;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  color: var(--heading);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
}

/* =========================================================
   19. SEARCH OVERLAY
   ========================================================= */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 25, 43, 0.75);
}

.search-overlay.active {
  display: flex;
}

.search-box {
  position: relative;
  width: min(600px, 100%);
  padding: 35px;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.search-box input {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.search-close {
  position: absolute;
  top: 15px;
  right: 17px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--primary);
}

/* =========================================================
   20. BACK TO TOP
   ========================================================= */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: var(--white);
  background: var(--secondary);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
}

/* =========================================================
   21. RESPONSIVE DESIGN - TABLETS
   ========================================================= */

@media (max-width: 1024px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .main-navigation {
    gap: 16px;
  }

  .main-navigation a {
    font-size: 13px;
  }

  .hero-container {
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 43px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 25px;
  }
}

/* =========================================================
   22. RESPONSIVE DESIGN - MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .header-container {
    min-height: 68px;
  }

  .site-logo img {
    width: 135px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation a {
    padding: 13px 5px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-section {
    padding: 60px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content h1 {
    font-size: clamp(35px, 8vw, 46px);
  }

  .hero-content > p {
    font-size: 16px;
  }

  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-image,
  .featured-image img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .featured-content {
    padding: 28px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
  }

  .blog-content {
    padding: 17px;
  }

  .blog-content h3 {
    font-size: 17px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   23. SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 480px) {
  .container {
    width: calc(100% - 30px);
  }

  .section-padding {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .hero-section {
    padding: 45px 0;
  }

  .hero-content h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: 7px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    min-height: auto;
    padding: 23px;
  }

  .featured-content {
    padding: 23px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-content {
    padding: 22px;
  }

  .blog-content h3 {
    font-size: 19px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 45px;
    padding-bottom: 35px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-section,
  .page-section {
    padding: 40px 0 55px;
  }

  .article-header h1,
  .page-content h1 {
    font-size: 32px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 25px;
  }

  .search-box {
    padding: 25px 20px;
  }
}

/* =========================================================
   24. 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;
  }
}

/* =========================================
   NKSAAS - HEADER, FOOTER & RELATED ARTICLES FIX
   Add at the END of assets/css/style.css
========================================= */

/* =========================================
   1. HEADER ACTIONS & MOBILE MENU ICON
========================================= */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.header-search,
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #ffffff;
  color: #142d4e;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.header-search:hover,
.mobile-menu-toggle:hover {
  background: #f5f7fa;
  border-color: #16a36a;
}

.header-search svg {
  display: block;
  width: 21px;
  height: 21px;
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  border-radius: 10px;
  padding: 0;
}

/* Three hamburger lines */

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 21px;
  height: 2px;
  background: #142d4e;
  border-radius: 3px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

/* Hamburger changes to X when menu is open */

.mobile-menu-toggle.active .menu-icon {
  background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================================
   2. FOOTER COMPLETE LAYOUT FIX
========================================= */

.site-footer {
  width: 100%;
  background: #102238;
  color: #d8e2ed;
  padding: 55px 0 20px;
  margin-top: 0;
}

.site-footer .container {
  width: min(1200px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
  align-items: start;
  margin-bottom: 35px;
}

.footer-about,
.footer-links {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 8px;
}

.footer-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.footer-about p {
  color: #c5d1df;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 15px;
}

.footer-about > a:not(.footer-logo) {
  color: #dce8f4;
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-about > a:not(.footer-logo):hover {
  color: #16a36a;
}

.footer-links h3 {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  margin: 5px 0 18px;
  line-height: 1.4;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 0 0 11px;
  padding: 0;
}

.footer-links ul li a {
  display: inline-block;
  color: #c5d1df;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.footer-links ul li a:hover {
  color: #16a36a;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

.footer-bottom p {
  color: #aebdcd;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #16a36a;
}

/* =========================================
   3. RELATED ARTICLES SECTION
========================================= */

.related-articles {
  width: 100%;
  margin: 55px 0 0;
  padding: 50px 30px;
  background: #f5f7fa;
  border-radius: 12px;
  overflow: hidden;
}

.related-articles .section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px;
}

.related-articles .section-heading h2 {
  color: #192b40;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  margin: 10px 0;
}

.related-articles .section-heading p {
  color: #526174;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Three equal cards on desktop */

.related-articles .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.related-articles .blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(20, 45, 78, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.related-articles .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 45, 78, 0.09);
}

/* Fixed image area prevents oversized broken images */

.related-articles .blog-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9eef4;
  flex-shrink: 0;
}

.related-articles .blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.related-articles .blog-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 20px;
  min-width: 0;
}

.related-articles .blog-category {
  display: inline-block;
  color: #16a36a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 9px;
}

.related-articles .blog-card-content h3 {
  color: #192b40;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.related-articles .blog-card-content h3 a {
  color: inherit;
  text-decoration: none;
}

.related-articles .blog-card-content h3 a:hover {
  color: #16a36a;
}

.related-articles .blog-card-content p {
  color: #526174;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.related-articles .blog-card-content .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #078b59;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

.related-articles .blog-card-content .read-more:hover {
  color: #142d4e;
}

/* =========================================
   4. ARTICLE IMAGE FIX
========================================= */

.article-featured-image {
  width: 100%;
  margin: 25px 0 35px;
  overflow: hidden;
  border-radius: 12px;
}

.article-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9eef4;
  border-radius: 12px;
}

.article-featured-image figcaption {
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}

/* =========================================
   5. TABLET RESPONSIVE
========================================= */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 28px;
  }

  .related-articles {
    padding: 40px 22px;
  }

  .related-articles .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   6. MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {
  /* Header */

  .header-container {
    min-height: 70px;
    gap: 10px;
  }

  .site-logo img {
    width: 155px;
    height: auto;
  }

  .header-actions {
    gap: 8px;
  }

  .header-search,
  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 20px 20px;
    background: #ffffff;
    border-top: 1px solid #e5eaf0;
    border-bottom: 1px solid #e5eaf0;
    box-shadow: 0 10px 20px rgba(20, 45, 78, 0.08);
    z-index: 999;
  }

  .main-navigation.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-navigation a {
    display: block;
    padding: 13px 5px;
    border-bottom: 1px solid #edf0f4;
  }

  .main-navigation a:last-child {
    border-bottom: none;
  }

  /* Related articles */

  .related-articles {
    margin-top: 35px;
    padding: 35px 15px;
    border-radius: 8px;
  }

  .related-articles .section-heading {
    margin-bottom: 25px;
  }

  .related-articles .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-articles .blog-card {
    width: 100%;
  }

  .related-articles .blog-card-image {
    aspect-ratio: 16 / 9;
  }

  .related-articles .blog-card-content {
    padding: 18px;
  }

  .related-articles .blog-card-content h3 {
    font-size: 18px;
  }

  /* Footer */

  .site-footer {
    padding: 40px 0 18px;
  }

  .site-footer .container {
    width: calc(100% - 36px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    margin-bottom: 25px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-logo img {
    width: 165px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================
   7. SMALL MOBILE SCREENS
========================================= */

@media (max-width: 480px) {
  .site-logo img {
    width: 135px;
  }

  .header-search,
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-links h3 {
    margin-bottom: 12px;
  }

  .related-articles {
    padding: 30px 12px;
  }

  .related-articles .blog-card-image {
    aspect-ratio: 16 / 10;
  }

  .related-articles .blog-card-content {
    padding: 16px;
  }
}

/* =========================================
   8. ACCESSIBILITY
========================================= */

.header-search:focus-visible,
.mobile-menu-toggle:focus-visible,
.related-articles a:focus-visible,
.footer-links a:focus-visible,
.footer-bottom a:focus-visible {
  outline: 3px solid #16a36a;
  outline-offset: 3px;
}

/* ========================================
   SEARCH PAGE
======================================== */

.search-page-section {
  min-height: 60vh;
}

.search-page-heading {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.search-page-heading h1 {
  margin: 10px 0 12px;
  color: #192b40;
}

.search-page-heading p {
  color: #526174;
  line-height: 1.7;
}

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 55px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  color: #192b40;
  font: inherit;
  outline: none;
}

.search-page-form input:focus {
  border-color: #16a36a;
  box-shadow: 0 0 0 3px rgba(22, 163, 106, 0.12);
}

.search-page-form button {
  padding: 0 25px;
  border: 0;
  border-radius: 8px;
  background: #16a36a;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-page-form button:hover {
  background: #128657;
}

.search-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.search-results-heading h2 {
  margin: 0;
  color: #192b40;
}

.search-results-heading p {
  margin: 0;
  color: #526174;
  font-size: 14px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.search-result-card {
  padding: 24px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.search-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 45, 78, 0.08);
}

.search-result-card .article-category {
  display: inline-block;
  margin-bottom: 12px;
}

.search-result-card h3 {
  margin: 0 0 10px;
  color: #192b40;
  font-size: 19px;
  line-height: 1.45;
}

.search-result-card h3 a {
  color: inherit;
  text-decoration: none;
}

.search-result-card h3 a:hover {
  color: #16a36a;
}

.search-result-card p {
  margin: 0 0 18px;
  color: #526174;
  font-size: 14px;
  line-height: 1.7;
}

.search-result-card .read-more {
  color: #16a36a;
  font-weight: 600;
  text-decoration: none;
}

.search-result-card .read-more:hover {
  text-decoration: underline;
}

.search-no-results {
  padding: 45px 20px;
  border: 1px dashed #d5dee8;
  border-radius: 12px;
  text-align: center;
}

.search-no-results h2 {
  margin: 0 0 10px;
  color: #192b40;
}

.search-no-results p {
  margin: 0 0 20px;
  color: #526174;
}

.search-no-results[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .search-page-section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .search-page-heading {
    margin-bottom: 24px;
  }

  .search-page-form {
    flex-direction: column;
    margin-bottom: 38px;
  }

  .search-page-form input,
  .search-page-form button {
    min-height: 50px;
    width: 100%;
  }

  .search-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-result-card {
    padding: 20px;
  }
}

.contact-page {
  padding: 55px 0 75px;
}

.contact-hero {
  text-align: center;
  background: #f5f7fa;
  border-radius: 16px;
  padding: 50px 25px;
  margin-bottom: 45px;
}

.contact-hero h1 {
  color: #192b40;
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 15px;
}

.contact-hero p {
  color: #526174;
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 30px;
  align-items: start;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-form-card,
.contact-info-card {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  padding: 30px;
}

.contact-form-card h2,
.contact-info-card h2 {
  color: #192b40;
  font-size: 24px;
  margin: 0 0 12px;
}

.contact-form-card > p,
.contact-info-card > p {
  color: #526174;
  line-height: 1.75;
  margin: 0 0 24px;
}

.contact-form .form-group {
  margin-bottom: 19px;
}

.contact-form label {
  display: block;
  color: #192b40;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #dce3eb;
  border-radius: 7px;
  background: #fff;
  color: #192b40;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #16a36a;
  box-shadow: 0 0 0 3px rgba(22, 163, 106, 0.1);
}

.contact-form textarea {
  min-height: 155px;
  resize: vertical;
}

.contact-submit {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  background: #16a36a;
  color: #fff;
  padding: 13px 25px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-submit:hover {
  background: #128657;
}

.contact-note {
  color: #6b7787;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 15px;
}

.contact-info-item {
  padding: 18px 0;
  border-bottom: 1px solid #e8edf2;
}

.contact-info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info-item h3 {
  color: #192b40;
  font-size: 17px;
  margin: 0 0 7px;
}

.contact-info-item p {
  color: #526174;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.contact-info-item a {
  color: #16a36a;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-faq {
  max-width: 850px;
  margin: 55px auto 0;
}

.contact-faq h2 {
  color: #192b40;
  font-size: 27px;
  margin-bottom: 22px;
}

.contact-faq-item {
  padding: 20px 0;
  border-bottom: 1px solid #e5eaf0;
}

.contact-faq-item h3 {
  color: #192b40;
  font-size: 17px;
  margin: 0 0 9px;
}

.contact-faq-item p {
  color: #526174;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 750px) {
  .contact-page {
    padding: 30px 0 50px;
  }

  .contact-hero {
    padding: 38px 20px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 23px 20px;
  }
}

.about-page {
  padding: 55px 0 75px;
}

.about-hero {
  background: #f5f7fa;
  border-radius: 16px;
  padding: 55px 35px;
  text-align: center;
  margin-bottom: 45px;
}

.about-hero h1 {
  color: #192b40;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 18px;
}

.about-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #526174;
  font-size: 18px;
  line-height: 1.8;
}

.about-content {
  max-width: 850px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 42px;
}

.about-section h2 {
  color: #192b40;
  font-size: 27px;
  margin: 0 0 15px;
}

.about-section p {
  color: #526174;
  line-height: 1.85;
  margin: 0 0 15px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.about-value-card {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  padding: 23px;
}

.about-value-card h3 {
  color: #192b40;
  font-size: 19px;
  margin: 0 0 10px;
}

.about-value-card p {
  font-size: 15px;
  margin: 0;
}

.about-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.about-category-link {
  display: block;
  padding: 15px 18px;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  color: #142d4e;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.about-category-link:hover {
  border-color: #16a36a;
  background: #f5faf7;
}

.about-author {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  margin-top: 20px;
}

.about-author img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-author h3 {
  margin: 0 0 8px;
  color: #192b40;
}

.about-author p {
  margin: 0;
  font-size: 15px;
}

.about-cta {
  background: #142d4e;
  color: #fff;
  padding: 38px 25px;
  border-radius: 14px;
  text-align: center;
  margin-top: 50px;
}

.about-cta h2 {
  color: #fff;
  font-size: 27px;
  margin: 0 0 12px;
}

.about-cta p {
  color: #e2eaf3;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 22px;
}

.about-cta a {
  display: inline-block;
  background: #16a36a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
}

.about-cta a:hover {
  background: #128657;
}

@media (max-width: 600px) {
  .about-page {
    padding: 30px 0 50px;
  }

  .about-hero {
    padding: 38px 20px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .about-values,
  .about-categories {
    grid-template-columns: 1fr;
  }

  .about-author {
    flex-direction: column;
    text-align: center;
  }

  .about-section h2 {
    font-size: 23px;
  }
}

.legal-page {
  padding: 55px 0 75px;
}

.legal-hero {
  background: #f5f7fa;
  border-radius: 15px;
  padding: 45px 25px;
  text-align: center;
  margin-bottom: 40px;
}

.legal-hero h1 {
  color: #192b40;
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 12px;
}

.legal-hero p {
  color: #526174;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.7;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 35px;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
}

.legal-updated {
  color: #718096;
  font-size: 14px;
  margin-bottom: 28px;
}

.legal-content h2 {
  color: #192b40;
  font-size: 23px;
  margin: 32px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #526174;
  font-size: 15px;
  line-height: 1.85;
}

.legal-content p {
  margin: 0 0 15px;
}

.legal-content ul {
  padding-left: 23px;
  margin: 10px 0 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #16a36a;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-content a:hover {
  text-decoration: underline;
}

.affiliate-highlight {
  background: #f5f7fa;
  border-left: 4px solid #16a36a;
  padding: 20px 22px;
  border-radius: 7px;
  margin: 22px 0;
}

.affiliate-highlight p {
  margin: 0;
}

.legal-contact {
  background: #f5f7fa;
  padding: 20px;
  border-radius: 9px;
  margin-top: 25px;
}

@media (max-width: 600px) {
  .legal-page {
    padding: 30px 0 50px;
  }

  .legal-hero {
    padding: 35px 18px;
  }

  .legal-content {
    padding: 23px 18px;
  }

  .legal-content h2 {
    font-size: 21px;
  }
}

.legal-page {
  padding: 55px 0 75px;
}

.legal-hero {
  background: #f5f7fa;
  border-radius: 15px;
  padding: 45px 25px;
  text-align: center;
  margin-bottom: 40px;
}

.legal-hero h1 {
  color: #192b40;
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 12px;
}

.legal-hero p {
  color: #526174;
  margin: 0;
  line-height: 1.7;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 35px;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
}

.legal-updated {
  color: #718096;
  font-size: 14px;
  margin-bottom: 28px;
}

.legal-content h2 {
  color: #192b40;
  font-size: 23px;
  margin: 32px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #526174;
  font-size: 15px;
  line-height: 1.85;
}

.legal-content p {
  margin: 0 0 15px;
}

.legal-content ul {
  padding-left: 23px;
  margin: 10px 0 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #16a36a;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-content a:hover {
  text-decoration: underline;
}

.disclaimer-highlight {
  background: #f5f7fa;
  border-left: 4px solid #16a36a;
  padding: 20px 22px;
  border-radius: 7px;
  margin: 22px 0;
}

.disclaimer-highlight p {
  margin: 0;
}

.legal-contact {
  background: #f5f7fa;
  padding: 20px;
  border-radius: 9px;
  margin-top: 25px;
}

@media (max-width: 600px) {
  .legal-page {
    padding: 30px 0 50px;
  }

  .legal-hero {
    padding: 35px 18px;
  }

  .legal-content {
    padding: 23px 18px;
  }

  .legal-content h2 {
    font-size: 21px;
  }
}

/* Categories Page */
.categories-page {
  padding: 55px 0 80px;
  background: #f5f7fa;
}

.categories-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.categories-eyebrow {
  display: inline-block;
  color: #16a36a;
  background: #e6f7ef;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.categories-hero h1 {
  color: #192b40;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 17px;
}

.categories-hero p {
  color: #526174;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 5px 20px rgba(20, 45, 78, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(20, 45, 78, 0.09);
}

.category-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #eaf7f0;
  color: #16a36a;
  font-size: 29px;
  margin-bottom: 21px;
}

.category-card h2 {
  color: #192b40;
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.category-card p {
  color: #526174;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 22px;
  flex-grow: 1;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16a36a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}

.category-card-link:hover {
  color: #108452;
  gap: 12px;
}

.category-card-link span {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.category-card-link:hover span {
  transform: translateX(3px);
}

.categories-note {
  max-width: 760px;
  margin: 45px auto 0;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  text-align: center;
}

.categories-note h2 {
  color: #192b40;
  font-size: 21px;
  margin: 0 0 10px;
}

.categories-note p {
  color: #526174;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 17px;
}

.categories-note a {
  display: inline-block;
  background: #16a36a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.categories-note a:hover {
  background: #108452;
}

@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .categories-page {
    padding: 38px 0 55px;
  }

  .categories-hero {
    margin-bottom: 30px;
  }

  .categories-hero h1 {
    font-size: 32px;
  }

  .categories-hero p {
    font-size: 15px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    padding: 24px 21px;
  }

  .categories-note {
    margin-top: 30px;
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card-link,
  .category-card-link span {
    transition: none;
  }
}

.category-page {
  padding: 55px 0 80px;
  background: #f5f7fa;
}

.category-hero {
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 16px;
  padding: 48px 30px;
  text-align: center;
  margin-bottom: 40px;
}

.category-eyebrow {
  display: inline-block;
  color: #16a36a;
  background: #e6f7ef;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.category-hero h1 {
  color: #192b40;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  margin: 0 0 15px;
}

.category-hero p {
  color: #526174;
  font-size: 16px;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
}

.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #718096;
  font-size: 13px;
  margin-bottom: 23px;
}

.category-breadcrumb a {
  color: #16a36a;
  text-decoration: none;
}

.category-breadcrumb a:hover {
  text-decoration: underline;
}

.category-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.category-section-heading h2 {
  color: #192b40;
  font-size: 26px;
  margin: 0;
}

.category-section-heading span {
  color: #718096;
  font-size: 14px;
}

.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.category-article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(20, 45, 78, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(20, 45, 78, 0.09);
}

.category-article-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9eef3;
}

.category-article-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-article-card:hover .category-article-image img {
  transform: scale(1.04);
}

.category-article-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px;
}

.category-article-tag {
  display: inline-block;
  align-self: flex-start;
  color: #16a36a;
  background: #e6f7ef;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.category-article-content h3 {
  color: #192b40;
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 11px;
}

.category-article-content h3 a {
  color: inherit;
  text-decoration: none;
}

.category-article-content h3 a:hover {
  color: #16a36a;
}

.category-article-content p {
  color: #526174;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 20px;
  flex-grow: 1;
}

.category-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: #16a36a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.category-read-link:hover {
  color: #108452;
  gap: 12px;
}

.category-read-link span {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.category-read-link:hover span {
  transform: translateX(3px);
}

.category-bottom-cta {
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  padding: 35px 25px;
  text-align: center;
  margin-top: 45px;
}

.category-bottom-cta h2 {
  color: #192b40;
  font-size: 24px;
  margin: 0 0 12px;
}

.category-bottom-cta p {
  color: #526174;
  font-size: 15px;
  line-height: 1.75;
  max-width: 650px;
  margin: 0 auto 20px;
}

.category-cta-button {
  display: inline-block;
  background: #16a36a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.category-cta-button:hover {
  background: #108452;
}

@media (max-width: 900px) {
  .category-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .category-page {
    padding: 32px 0 55px;
  }

  .category-hero {
    padding: 35px 18px;
    margin-bottom: 30px;
  }

  .category-hero h1 {
    font-size: 31px;
  }

  .category-hero p {
    font-size: 15px;
  }

  .category-section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .category-section-heading h2 {
    font-size: 23px;
  }

  .category-articles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-article-content {
    padding: 20px;
  }

  .category-bottom-cta {
    padding: 27px 18px;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-article-card,
  .category-article-image img,
  .category-read-link,
  .category-read-link span {
    transition: none;
  }
}

.error-page {
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 75px 20px;
  background: #f5f7fa;
  text-align: center;
}

.error-content {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 45px 25px;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(20, 45, 78, 0.05);
}

.error-illustration {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 25px;
}

.error-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.error-code {
  color: #16a36a;
  font-size: clamp(65px, 12vw, 100px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -5px;
  margin: 0 0 15px;
}

.error-content h1 {
  color: #192b40;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.3;
  margin: 0 0 15px;
}

.error-content > p {
  color: #526174;
  font-size: 16px;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 25px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 7px;
  background: #16a36a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.error-button:hover {
  background: #108452;
  transform: translateY(-2px);
}

.error-button.secondary {
  background: #edf2f7;
  color: #192b40;
}

.error-button.secondary:hover {
  background: #e1e8f0;
}

.error-help {
  border-top: 1px solid #e5eaf0;
  padding-top: 25px;
}

.error-help h2 {
  color: #192b40;
  font-size: 17px;
  margin: 0 0 15px;
}

.error-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.error-links a {
  color: #16a36a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.error-links a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .error-page {
    min-height: 550px;
    padding: 40px 15px;
  }

  .error-content {
    padding: 35px 18px;
  }

  .error-illustration {
    max-width: 230px;
  }

  .error-content > p {
    font-size: 15px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-button {
    transition: none;
  }
}

/* =========================================
   REVBID AD LAYOUT
   Add at the END of assets/css/style.css
========================================= */

.revbid-ad-label {
    display: block;
    width: 100%;
    margin-bottom: 7px;
    color: #8792a2;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-align: center;
    text-transform: uppercase;
}

.revbid-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Top and bottom banners */

.revbid-banner-wrap {
    display: block;
    width: 100%;
    max-width: 970px;
    min-height: 75px;
    margin: 22px auto;
    padding: 8px 12px;
    text-align: center;
    box-sizing: border-box;
}

.revbid-slot-leaderboard {
    width: 100%;
    min-width: 468px;
    min-height: 60px;
}

/* In-content square ad */

.revbid-incontent-ad {
    display: block;
    width: 100%;
    max-width: 340px;
    min-height: 280px;
    margin: 32px auto;
    padding: 12px 8px;
    text-align: center;
    box-sizing: border-box;
    clear: both;
}

.revbid-slot-square {
    width: 300px;
    min-width: 300px;
    min-height: 250px;
}

/* Desktop left and right side ads */

.revbid-side-ad {
    display: none;
    position: fixed;
    top: 50%;
    z-index: 20;
    width: 130px;
    min-height: 620px;
    padding: 8px 4px;
    transform: translateY(-50%);
    text-align: center;
    box-sizing: border-box;
}

.revbid-side-ad-left {
    left: 12px;
}

.revbid-side-ad-right {
    right: 12px;
}

.revbid-slot-skyscraper {
    width: 120px;
    min-width: 120px;
    min-height: 600px;
}

/* Mobile ad */

.revbid-mobile-wrap {
    display: none;
    width: 100%;
    min-height: 125px;
    margin: 18px auto;
    padding: 8px 10px;
    text-align: center;
    box-sizing: border-box;
}

.revbid-slot-mobile {
    width: 100%;
    max-width: 320px;
    min-width: 300px;
    min-height: 100px;
}

/* Side ads only when there is enough room */

@media (min-width: 1600px) {
    .revbid-side-ad {
        display: block;
    }
}

/* Smaller screens */

@media (max-width: 767px) {
    .revbid-side-ad {
        display: none !important;
    }

    .revbid-top-ad,
    .revbid-bottom-ad {
        display: none;
    }

    .revbid-mobile-wrap {
        display: block;
    }

    .revbid-incontent-ad {
        margin: 26px auto;
        min-height: 270px;
    }
}

/* Avoid horizontal overflow on narrow devices */

@media (max-width: 360px) {
    .revbid-slot-mobile {
        min-width: 0;
        max-width: 300px;
    }

    .revbid-incontent-ad {
        padding-left: 0;
        padding-right: 0;
    }
}
