/* ==========================================================================
   ASBB — Design System & Custom CSS
   ========================================================================== */

:root {
  --primary: #0077B6;
  --primary-dark: #023E8A;
  --primary-light: #E0F2FE;
  --secondary: #2EC4B6;
  --secondary-light: #CBF3F0;
  --accent: #FF9F1C;
  --dark: #1D2D44;
  --dark-light: #334155;
  --gray-light: #F8FAFC;
  --gray-border: #E2E8F0;
  --gray-text: #64748B;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--gray-light);
  color: var(--dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

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

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.logo-icon.white-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link i {
  width: 18px;
  height: 18px;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-nav-cta {
  background-color: var(--secondary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(46, 196, 182, 0.3);
  transition: all 0.25s ease;
}

.btn-nav-cta:hover {
  background-color: #25a498;
  transform: translateY(-1px);
}

/* Mobile Toggle Switch */
.mobile-toggle {
  display: none;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.mobile-toggle .icon-menu-close {
  display: none;
}

.mobile-toggle.active .icon-menu-open {
  display: none;
}

.mobile-toggle.active .icon-menu-close {
  display: inline-block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0077B6 0%, #023E8A 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.8px;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-hero-primary {
  background-color: var(--accent);
  color: var(--dark) !important;
  font-weight: 800;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
}

.btn-hero-primary:hover {
  background-color: #e08910;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background-color: rgba(255,255,255,0.15);
  color: var(--white) !important;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-hero-secondary:hover {
  background-color: rgba(255,255,255,0.25);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-stats-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-around;
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
}

/* ==========================================================================
   Page Hero Shared Component
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, #0077B6 0%, #023E8A 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.page-hero .hero-subtitle {
  max-width: 750px;
  margin: 0 auto;
  opacity: 0.9;
  font-size: 1.1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   Sections & Layouts
   ========================================================================== */

.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-badge {
  display: inline-block;
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-text);
}

/* Utility Helpers */
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.border-top { border-top: 1px solid var(--gray-border); }
.border-bottom { border-bottom: 1px solid var(--gray-border); }
.bg-light { background-color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--gray-text); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.font-weight-bold { font-weight: 700; }
.d-block { display: block; }
.flex-between { display: flex; justify-content: space-between; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 1rem; }

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

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

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

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

.btn-secondary:hover {
  background-color: #25a498;
  color: var(--white);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Blog & Article Dedicated Styling
   ========================================================================== */

.blog-search-form {
  max-width: 650px;
  margin: 1.5rem auto 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  background-color: var(--white);
  border-radius: 50px;
  padding: 0.35rem 0.4rem 0.35rem 1.2rem;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.search-icon {
  color: var(--gray-text);
  margin-right: 0.6rem;
  width: 20px;
  height: 20px;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
}

.search-input-wrapper .btn {
  border-radius: 50px;
}

.filter-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.filter-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  background-color: var(--white);
  color: var(--dark-light);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--gray-border);
}

.filter-pill:hover, .filter-pill.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Featured Article Card */
.featured-blog-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-img-wrap {
  position: relative;
  height: 100%;
  min-height: 320px;
}

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

.featured-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-success { background-color: var(--secondary-light); color: var(--secondary); }

.featured-blog-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.blog-meta i {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.featured-blog-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.featured-blog-content h2 a {
  color: var(--dark);
}

.featured-blog-content h2 a:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gray-border);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Grid Blog Card */
.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.blog-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(29, 45, 68, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.60rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--gray-text);
  margin-bottom: 0.6rem;
}

.blog-card-meta i { width: 14px; height: 14px; }

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.blog-card-title a { color: var(--dark); }
.blog-card-title a:hover { color: var(--primary); }

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
}

.blog-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag-sm {
  background-color: var(--gray-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.blog-card-footer {
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FAFAFA;
}

.author-name {
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 600;
}

.read-more-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 550px;
  margin: 0 auto;
}

.input-field {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  font-size: 0.95rem;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.15);
}

/* ==========================================================================
   Article Single Page Layout
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-text);
}

.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { width: 14px; height: 14px; }

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
}

.author-badge-card {
  background-color: var(--primary-light);
  border: 1px solid rgba(0, 119, 182, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
  box-shadow: var(--shadow-md);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layout Grid Article + Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.sticky-toc-box {
  position: sticky;
  top: 90px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}

.sticky-toc-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dark);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-list a {
  font-size: 0.88rem;
  color: var(--gray-text);
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.toc-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.sidebar-product-box {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-light);
}

.sidebar-product-box h5 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.price-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Article Content Body */
.article-body-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--dark-light);
}

.article-lead-box {
  background-color: var(--white);
  padding: 1.8rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.article-section-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.8rem;
  letter-spacing: -0.4px;
}

.article-affiliate-callout {
  background-color: var(--white);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}

.affiliate-callout-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 1rem;
}

.article-conclusion-box {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.article-conclusion-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-share-btn {
  width: 32px;
  height: 32px;
  background-color: var(--gray-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  margin-left: 0.4rem;
}

.social-share-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding-top: 4rem;
  margin-top: auto;
}

.footer-top {
  padding-bottom: 3rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-logo .logo-main {
  color: var(--white);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1.2rem 0;
  color: #94A3B8;
}

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

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-heading {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(3px);
}

.footer-links i {
  width: 14px;
  height: 14px;
}

.footer-newsletter-text {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-newsletter-form .input-group {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}

.btn-submit {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover {
  background-color: #25a498;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.affiliate-notice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
}

.affiliate-notice i {
  width: 14px;
  height: 14px;
}

/* Reveal Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile Header Fix)
   ========================================================================== */

@media (max-width: 992px) {
  /* Header & Mobile Drawer */
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 68px; /* Height of header */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
  }

  .btn-nav-cta {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  /* Grid Layouts on Tablet */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

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

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

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

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

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

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

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

  .sticky-toc-box {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.8rem 1rem;
  }

  .logo-main {
    font-size: 1.2rem;
  }

  .logo-sub {
    font-size: 0.65rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: 2.5rem 1rem;
  }

  .hero-image-wrapper img {
    height: 280px;
  }

  .hero-stats-overlay {
    position: static;
    margin-top: 1rem;
  }

  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}