/* 🎨 Global Colors */
:root {
  --primary: #1B263B;   /* Deep Navy */
  --secondary: #F5F5F5; /* Light Gray */
  --text: #1A1A1A;      /* Dark Charcoal */
  --bg: #FFFFFF;        /* White */
  --accent: #2E7D32;    /* Emerald Green */
}

/* 🌍 Base Styles */
body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--primary);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}

/* Header */
.site-header {
  background: var(--bg);
}
.site-header .nav {
  gap: 20px;
}
.site-header .nav a {
  color: var(--text);
  font-weight: 500;
}
.site-header .nav a:hover {
  color: var(--accent);
}

/* Blog Button in Menu */
.site-header .nav .nav-blog-btn a {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.site-header .nav .nav-blog-btn a:hover {
  background: var(--accent);
  color: #fff !important;
}

/* Show dropdown on hover */
.nav li:hover > .sub-menu {
  display: block;
}

.sub-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  padding: 10px 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 999;
  min-width: 200px;
}

.sub-menu li a {
  display: block;
  padding: 8px 16px;
  color: #0A1F44;
  text-decoration: none;
}

.sub-menu li a:hover {
  background-color: #f0f0f0;
}

/* Base Navigation */
.nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  position: relative;
}

.nav a {
  text-decoration: none;
  color: var(--primary);
  padding: 8px 12px;
  display: block;
}

/* Dropdown (Desktop only) */
.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 10;
}

.nav li:hover > ul {
  display: block;
}

/* Toggle Button */
#mobile-menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  display: none;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  #mobile-menu-toggle {
    display: block;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
  }

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

  .nav {
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    width: 100%;
  }

  .nav li ul {
    position: relative;
    top: auto;
    left: auto;
    box-shadow: none;
    background: none;
    padding-left: 15px;
    display: none;
  }

  .nav li:hover > ul {
    display: none; /* disable hover dropdown on mobile */
  }

  .nav li.open > ul {
    display: block; /* show on tap (optional if using custom JS) */
  }
}

#main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#main-nav ul li {
  border-bottom: 1px solid #eee;
  padding: 10px 15px;
}

#main-nav ul li a {
  color: #000; /* Or your theme text color */
  text-decoration: none;
  display: block;
  font-size: 16px;
}

#main-nav ul li a:hover {
  color: var(--primary); /* or your hover color */
}

#main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#main-nav ul li {
  border-bottom: 1px solid #eee;
  padding: 10px 15px;
}

#main-nav ul li a {
  color: #000; /* Or your theme text color */
  text-decoration: none;
  display: block;
  font-size: 16px;
}

#main-nav ul li a:hover {
  color: var(--primary); /* or your hover color */
}



/* Footer */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 20px;
}
.site-footer h5 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}
.site-footer p {
  font-size: 14px;
  line-height: 1.6;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  margin-top: 20px;
  font-size: 14px;
}
/* Social Icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  font-size: 16px;
  border-radius: 50%;
  background: #fff; /* White circle */
  color: var(--primary); /* Deep Navy icon */
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent); /* Emerald Green background */
  color: #fff; /* White icon */
}
/* ✅ Responsive Footer Enhancements */
@media (max-width: 768px) {
  .site-footer .row {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .site-footer .col-md-4,
  .site-footer .col-md-2,
  .site-footer .col-md-3 {
    width: 100%;
    max-width: 100%;
  }

  .footer-links {
    padding-left: 0;
    list-style: none;
  }

  .footer-links li {
    display: inline-block;
    margin: 5px 10px;
  }

  .footer-bottom {
    text-align: center;
    font-size: 13px;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .social-icons a {
    margin-right: 8px;
    margin-bottom: 8px;
  }
}

/* Hero Section */
.hero-section {
  background: var(--secondary);
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-section p {
  max-width: 540px;
}
.hero-section img {
  max-width: 100%;
  height: auto;
}
.hero-section .btn-primary {
  background: var(--primary);
  border: none;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 6px;
}
.hero-section .btn-primary:hover {
  background: var(--accent);
}

/* Problems Section */
.problems-section {
  background: var(--bg);
}
.problems-section h2 {
  font-weight: 700;
  color: var(--primary);
}
.problem-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.problem-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* Solutions Section */
.solutions-section {
  background: var(--secondary);
}
.solutions-section h2 {
  font-weight: 700;
  color: var(--primary);
}
.solution-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* Guidance Section */
.guidance-section {
  background: var(--bg);
}
.guidance-section h2 {
  font-weight: 700;
  color: var(--primary);
}
.guidance-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guidance-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* Category Header */
.category-header {
  background: var(--secondary);
}
.category-header h1 {
  color: var(--primary);
  font-weight: 700;
}

.category-quote .quote-box {
  font-style: italic;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  display: inline-block;
  max-width: 600px;
}

/* Category Posts */
.category-posts .card {
  transition: transform 0.2s ease;
}
.category-posts .card:hover {
  transform: translateY(-5px);
}
.category-posts .card-title a {
  color: var(--primary);
  text-decoration: none;
}
.category-posts .card-title a:hover {
  color: var(--accent);
}


/* Latest Posts */
.latest-posts h2 {
  font-weight: 700;
  color: var(--primary);
}
.latest-posts .card {
  transition: transform 0.2s ease;
}
.latest-posts .card:hover {
  transform: translateY(-5px);
}
.latest-posts .card-title a {
  color: var(--primary);
  text-decoration: none;
}
.latest-posts .card-title a:hover {
  color: var(--accent);
}

/* Newsletter Section */
.newsletter {
  background: var(--secondary);
}
.newsletter h2 {
  font-weight: 700;
  color: var(--primary);
}
.newsletter input {
  max-width: 400px;
}
.newsletter .btn-primary {
  background: var(--primary);
  border: none;
}
.newsletter .btn-primary:hover {
  background: var(--accent);
}
/* Trust Section */
.trust-section h2,
.mission-section h2 {
  font-weight: 700;
  color: var(--primary);
}
.trust-card h3 {
  color: var(--accent);
  font-weight: 700;
  font-size: 2rem;
}
.trust-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* Author Box */
.author-box {
  background: var(--secondary);
  border-radius: 6px;
}
.author-box h4 {
  font-weight: 700;
  color: var(--primary);
}
.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  font-size: 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  transition: all 0.3s ease;
}
.author-social a:hover {
  background: var(--accent);
  color: #fff;
}

/* Sidebar Widgets */
.sidebar-widget-box {
  background: var(--secondary);
  padding: 20px;
  border-radius: 6px;
}
.sidebar-widget-box h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}
/* Sticky Sidebar */
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px; /* adjust depending on your header height */
  align-self: flex-start;
}


/* Social Icons */
.sidebar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  font-size: 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  transition: all 0.3s ease;
}
.sidebar-social a:hover {
  background: var(--accent);
  color: #fff;
}

/* Lists */
.recent-posts li,
.popular-posts li,
.category-list li {
  margin-bottom: 8px;
}
.recent-posts a,
.popular-posts a,
.category-list a {
  color: var(--text);
  text-decoration: none;
}
.recent-posts a:hover,
.popular-posts a:hover,
.category-list a:hover {
  color: var(--accent);
}

/* Quote Box */
.quote-box {
  font-style: italic;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

/* Post Content */
.post-content p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* TOC */
#toc {
  background: var(--secondary);
}
#toc-list {
  list-style: none;
  padding-left: 0;
}
#toc-list li {
  margin-bottom: 6px;
}
#toc-list a {
  text-decoration: none;
  color: var(--primary);
}
#toc-list a:hover {
  color: var(--accent);
}

/* Social Share */
.share-box a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  font-size: 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}
.share-box a:hover {
  background: var(--accent);
  color: #fff;
}

/* Related Posts */
.related-posts h4 {
  font-weight: 700;
}
.related-posts .card {
  transition: transform 0.2s ease;
}
.related-posts .card:hover {
  transform: translateY(-5px);
}

/* Blog ( home page ) */

.blog-header h1 {
  font-weight: 700;
  color: var(--primary);
}

.blog-quote .quote-box {
  font-style: italic;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  display: inline-block;
  max-width: 600px;
}

.blog-categories .btn {
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.blog-list .card {
  transition: transform 0.2s ease;
}
.blog-list .card:hover {
  transform: translateY(-5px);
}
.blog-list .card-title a {
  color: var(--primary);
  text-decoration: none;
}
.blog-list .card-title a:hover {
  color: var(--accent);
}
/* Universal Page */
.page-hero h1 {
  font-weight: 700;
  color: var(--primary);
}
.page-content-box {
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.page-content-box p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.page-content-box h2, 
.page-content-box h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}


.page-newsletter {
  background: var(--secondary);
}
.page-author {
  background: var(--secondary);
  border-top: 1px solid #ddd;
}