/*
Theme Name: Whealth Blog
Description: A modern blog theme matching the Whealth design system
Version: 1.1
Author: Whealth Team
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #F9FAFB;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  padding-top: 85px;
  /* Offset for fixed header */
}

/* Sticky Footer Architecture */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Color Variables */
:root {
  --primary-50: #e6ecf0;
  --primary-100: #ccd9e0;
  --primary-200: #99b3c2;
  --primary-300: #668ca3;
  --primary-400: #336685;
  --primary-500: #003366;
  /* Whealth Deep Blue */
  --primary-600: #002952;
  --primary-700: #001f3d;
  --primary-800: #001429;
  --primary-900: #000a14;

  --secondary-50: #e9f6ec;
  --secondary-500: #28a745;
  /* Whealth Success Green */

  --accent-300: #fed049;
  /* Original Gold/Yellow */
  --accent-400: #fdb722;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 51, 102, 0.08);
  --font-outfit: 'Outfit', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-outfit);
  color: var(--primary-500);
  line-height: 1.2;
}

/* Utility Classes */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 85px;
  /* Explicit Header Height */
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
  gap: 3rem;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  order: 2;
  /* Right on Desktop */
}

.header-logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
  display: block;
}

.header-logo:hover img {
  transform: scale(1.02);
}

.header-tagline {
  font-family: var(--font-outfit);
  font-weight: 500;
  /* Matching original's 500 weight */
  font-size: 0.6rem;
  /* Slightly smaller to fit tagline nicely */
  color: var(--gray-500);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
  order: 1;
  /* Left on Desktop */
  flex: 1;
}

@media (min-width: 1025px) {
  .desktop-nav {
    display: flex;
  }
}

.header-nav-item {
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-nav-item:hover {
  color: var(--primary-400);
}

.header-nav-item svg {
  transition: transform 0.3s ease;
}

.dropdown-wrapper:hover .header-nav-item svg {
  transform: rotate(180deg);
}

/* Mega Menu */
.dropdown-wrapper {
  position: relative;
  height: 85px;
  display: flex;
  align-items: center;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 900px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--gray-100);
  z-index: 100;
}

.dropdown-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.mega-menu-title {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-500);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.15em;
  padding-bottom: 0;
}

.mega-menu-section {
  margin-bottom: 1.5rem;
}

.mega-menu-subhead {
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

.mega-menu-subhead:hover {
  color: var(--primary-500);
}

.mega-menu-links {
  padding-left: 0.75rem;
  border-left: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 0.4rem;
}

.mega-menu-links a:hover {
  color: var(--primary-500);
}

.btn-get-started {
  background-color: var(--primary-500) !important;
  color: white !important;
  padding: 0.7rem 1.7rem !important;
  border-radius: 99px !important;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-get-started:hover {
  background-color: var(--primary-400) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--primary-500);
  cursor: pointer;
  order: 3;
}

@media (min-width: 1025px) {
  .mobile-toggle {
    display: none;
  }
}

/* Blog Archive Styles */
.blog-header {
  background: linear-gradient(180deg, rgba(0, 26, 51, 0.4) 0%, rgba(4, 58, 113, 0.9) 100%);
  color: white;
  padding: 10rem 0 8rem 0;
  /* Adjusted for body padding-top */
  text-align: center;
}

.blog-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  color: white;
}

.blog-subtitle {
  font-size: 1.35rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 2;
  position: relative;
}

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

.blog-card-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px);
  opacity: 0.3;
  z-index: 1;
}

.blog-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.05);
  z-index: 2;
}

.blog-card-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

.stretched-link::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
}

.blog-card-excerpt {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.7;
}

.blog-card-read-more {
  color: var(--secondary-500);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-read-more svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-read-more svg {
  transform: translateX(6px);
  color: var(--primary-500);
}

/* Single Post Hero */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  display: none;
  /* Hide hero image as requested */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 51, 0.4) 0%, rgba(4, 58, 113, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  padding: 0 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--accent-300);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  letter-spacing: -0.05em;
  color: white;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-summary {
  font-size: 1.4rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #E5E7EB;
}

.hero-author {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.author-name {
  font-weight: 700;
  font-size: 1.2rem;
}

.author-date {
  opacity: 0.7;
  font-size: 1rem;
}

/* Article Content */
.article-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.prose {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #374151;
}

.prose h2 {
  font-size: 2.5rem;
  margin: 4rem 0 2rem;
  color: var(--primary-500);
  font-weight: 800;
}

.prose p {
  margin-bottom: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 4rem;
  font-size: 0.95rem;
  color: var(--gray-500);
  font-weight: 500;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--primary-500);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent-400);
}

.breadcrumb-separator {
  margin: 0 0.8rem;
  color: var(--gray-300);
}

/* Share Section */
.share-section {
  margin: 6rem 0;
  padding: 4rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
}

.share-title {
  font-family: var(--font-outfit);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.share-button {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--gray-400);
  border: 1px solid var(--gray-100);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.share-button:hover {
  transform: translateY(-5px);
  color: white;
  box-shadow: var(--shadow-lg);
}

.share-twitter:hover {
  background-color: #1DA1F2;
  border-color: #1DA1F2;
}

.share-facebook:hover {
  background-color: #4267B2;
  border-color: #4267B2;
}

.share-linkedin:hover {
  background-color: #0077b5;
  border-color: #0077b5;
}

/* Related Posts */
.related-posts {
  padding: 6rem 0;
}

.related-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: var(--primary-500);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.related-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

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

.related-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-card-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.related-card-title a {
  color: var(--primary-500);
  text-decoration: none;
}

.related-card-summary {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.related-card-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--secondary-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ Section */
.faq-section {
  background-color: #F3F4F6;
  padding: 10rem 1.5rem;
}

.faq-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6rem;
}

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-question {
  padding: 2.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-500);
}

.faq-answer {
  padding: 0 2.5rem 2.5rem;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  padding: 10rem 0;
  background-color: var(--primary-500);
  text-align: center;
  color: white;
}

.cta-section-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.05em;
  color: white;
}

.cta-section-title span {
  color: var(--accent-300);
}

.cta-section-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 5rem;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 1.4rem 4rem;
  background-color: var(--accent-300);
  color: #111827;
  border-radius: 99px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--accent-400);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
.site-footer {
  background-color: rgb(0, 51, 102);
  color: white;
  padding: 8rem 0 4rem 0;
  position: relative;
  overflow: hidden;
  display: block;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-300), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 8rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
  margin: 2.5rem 0;
}

.footer-social-links {
  display: flex;
  gap: 1.8rem;
}

.footer-social-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social-icon:hover {
  color: var(--accent-300);
}

.footer-category-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-300);
  margin-bottom: 0.5rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-category-title:hover {
  color: var(--accent-300);
}

.footer-subcategory-box {
  margin-bottom: 3rem;
}

.footer-subcategory-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  opacity: 0.95;
  margin-bottom: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}

.footer-subcategory-title:hover {
  color: var(--accent-300);
}

.footer-tree-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tree-item {
  position: relative;
  padding-left: 1.8rem;
}

.footer-tree-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.footer-tree-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.footer-tree-link:hover {
  color: var(--accent-300);
  transform: translateX(2px);
  display: inline-block;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-300);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-size: 0.95rem;
  color: white;
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-link:hover {
  opacity: 1;
  color: var(--accent-300);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Modals */
.whealth-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.whealth-modal-content {
  background-color: white;
  margin: 3vh auto;
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.whealth-modal-header {
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whealth-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-500);
}

.whealth-modal-close {
  font-size: 40px;
  cursor: pointer;
  color: var(--gray-400);
  transition: color 0.2s;
}

.whealth-modal-close:hover {
  color: var(--gray-900);
}

.whealth-modal-iframe {
  width: 100%;
  height: calc(100% - 90px);
  border: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

body.modal-open {
  overflow: hidden !important;
}

.mobile-menu-header-row {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-close-btn {
  background: none;
  border: none;
  color: var(--primary-500);
  cursor: pointer;
}

.mobile-get-started-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav-item svg {
  transition: transform 0.3s ease;
}

.mobile-nav-item.active svg {
  transform: rotate(45deg);
}

.mobile-accordion-content {
  display: none;
  background: #f8f9fa;
}

.mobile-accordion-content.active {
  display: block;
}

.mobile-category-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-category-title {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-sub-header {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  text-decoration: none;
}

.mobile-link-item {
  display: block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  color: var(--gray-500);
  text-decoration: none;
  position: relative;
}

.mobile-link-item::before {
  content: '—';
  margin-right: 0.5rem;
  opacity: 0.3;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 4rem;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: white;
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--primary-500);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .mega-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-line {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .blog-title {
    font-size: 2.5rem;
  }

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

/* Error and 404 Page Styles */
.error-page {
  padding: 8rem 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.error-content {
  background: white;
  padding: 4rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-xl);
}

.error-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 1.5rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-500);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-secondary {
  background-color: var(--gray-100);
  color: var(--primary-500);
}

.btn-secondary:hover {
  background-color: var(--gray-200);
  transform: translateY(-2px);
}

.error-search {
  border-top: 1px solid var(--gray-100);
  padding-top: 3rem;
  text-align: center;
}

.error-search h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.error-search .search-form {
  max-width: 500px;
  margin: 0 auto;
}

.search-form-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field {
  width: 100%;
  padding: 0.9rem 4rem 0.9rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--gray-900);
}

.search-field:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
}

.search-submit {
  position: absolute;
  right: 6px;
  background: var(--primary-500);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.search-submit:hover {
  background: var(--primary-400);
  transform: scale(1.05);
}

.search-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

@media (max-width: 640px) {
  .error-title {
    font-size: 2.5rem;
  }

  .error-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .error-content {
    padding: 2.5rem 1.5rem;
  }
}