:root {
  /* Premium Branding Colors */
  --color-primary-green: #108942;
  --color-primary-dark: #064e3b;

  --color-secondary-blue: #1e3a8a;
  --color-accent: #f59e0b;

  /* Modern Neutral Palette */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: #016d38;
  /* Brand Green */

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-header: #ffffff;

  --border-color: #e2e8f0;

  /* Premium Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

/* Responsive Spacing Overrides */
@media (max-width: 768px) {
  :root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.6rem;
    --spacing-md: 0.8rem;
    --spacing-lg: 1.2rem;
    --spacing-xl: 2rem;
  }
}

[data-theme="dark"] {
  --bg-body: #0a0f1a;
  --bg-card: #151c2c;
  --bg-header: #020617;

  --text-main: #e2e8f0;
  /* Softer white to reduce glare */
  --text-muted: #8393a7;
  /* Muted for better hierarchy */
  --text-header: #ffffff;

  --border-color: rgba(255, 255, 255, 0.08);

  --color-primary-green: #22c55e;
  --color-primary-dark: #064e3b;
  --color-secondary-blue: #3b82f6;
  /* Softer blue for DM */

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
    /* Even tighter on very small screens */
  }
}

/* Section Utility */
.section-padding {
  padding: var(--spacing-xl) 0;
}



/* Premium Header - Deep Dark */
header {
  background-color: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s;
  height: 80px;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  /* Prevent wrapping */
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-header);
  letter-spacing: -0.02em;
}

.logo span {
  color: #4ade80;
}

.logo-wiki {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  color: #a3a3a3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: #4ade80;
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Header CTA Button - Premium Redesign */
.header-cta {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
  color: #016d38 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-cta:hover {
  background: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color: #15803d !important;
}

.header-cta:active {
  transform: translateY(0);
}

/* Hero Buttons */
.hero-btn {
  background: #ffffff;
  color: var(--color-primary-green);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  background: #f0fdf4;
}

/* In Dark Mode, header is still dark, so white button still pops. Logic holds. */

/* Hero Section */
.hero {
  background-color: var(--bg-header);
  padding: 60px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: ellipse(180% 100% at 50% 0%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-btn-outline {
  border-width: 2px !important;
}

/* Cards & Layout */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--spacing-lg);
  /* Restore padding for standard cards */
  box-shadow: var(--shadow-md);
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  /* No padding on container so image is full width */
}

[data-theme="dark"] .card,
[data-theme="dark"] .article-card {
  border: 1px solid var(--border-color);
  /* Separation in dark mode */
}

[data-theme="dark"] .article-excerpt {
  color: var(--text-muted);
  /* Ensure readable text on slate */
}

.card:hover,
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.article-thumb {
  height: 180px;
  background-color: #f1f5f9;
  /* Slate 100 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  /* Slate 300 */
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .article-thumb {
  background-color: #0f172a;
  /* Slate 900 */
  color: #334155;
}

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

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-green);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  z-index: 2;
}

[data-theme="dark"] .article-category {
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-primary-green);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  /* Push footer down if we had one */
}

/* Page Header */
.page-header {
  background-color: var(--bg-card);
  /* Adaptive bg */
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: #064e3b;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #f0fdf4;
}

.btn-body-primary {
  background: #108942;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-body-primary:hover {
  background: #15803d;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.section .btn-outline {
  border-color: var(--border-color);
  color: var(--text-muted);
}

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

/* Search */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  height: 60px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  padding-left: 3.5rem;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  color: var(--text-main);
}

.search-box input:focus {
  border-color: var(--color-primary-green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 137, 66, 0.1);
}

/* Sort & Filter Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.result-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sort-box {
  position: relative;
}

.sort-select {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.sort-select:focus {
  outline: none;
  border-color: var(--color-primary-green);
  box-shadow: 0 0 0 3px rgba(16, 137, 66, 0.1);
}

.sort-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer - Premium Refined Layout */
footer {
  background-color: #0b1120;
  /* Deep Dark */
  color: #94a3b8;
  padding: 100px 0 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  /* Balanced proportions */
  gap: 4rem;
  margin-bottom: 80px;
}

.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--color-primary-green);
  padding-left: 8px;
}

/* Enhanced Contact Info in Footer */
.footer-contact {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-contact {
  background: rgba(0, 0, 0, 0.2);
}

/* Reset global .contact-info styles when inside footer */
footer .contact-info {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.contact-info li {
  display: flex !important;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 2rem !important;
}

.contact-info i {
  color: var(--color-primary-green);
  font-size: 1.2rem;
  margin-top: 4px;
}

.contact-info div span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  /* Lighter for better contrast on dark */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.contact-info div strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  /* Explicitly white */
  font-weight: 700;
}

.contact-info div p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  /* Bright enough on dark bg */
  line-height: 1.6;
}

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

.social-link {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background-color: var(--color-primary-green);
  color: #0b1120;
  transform: translateY(-5px);
  border-color: var(--color-primary-green);
  box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.copyright {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Responsive */
/* --- Responsive Logic --- */

/* Default Desktop Styles (Global) */
.mobile-menu-btn {
  display: none;
  /* Hidden on Desktop */
}

/* .nav-links is already defined as flex row in Header section */

/* Tablet & Mobile Styles (< 900px) */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

  .copyright .container {
    justify-content: center !important;
    text-align: center;
  }
}

/* Mobile Styles (< 768px) */
@media (max-width: 1024px) {

  /* Logo Resize */
  .logo {
    font-size: 1.5rem;
  }

  .logo-wiki {
    font-size: 0.7rem;
    padding: 1px 5px;
  }

  /* Header & Nav */
  .mobile-menu-btn {
    display: block;
    /* Show menu button */
    margin-left: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 10px);
    right: var(--spacing-md);
    width: 260px;
    height: auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
  }

  [data-theme="dark"] .nav-links {
    background: rgba(21, 28, 44, 0.95);
  }

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

  .nav-links li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: left;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered Entrance */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-links a {
    color: var(--text-main) !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .nav-links a:hover {
    background: rgba(16, 137, 66, 0.1);
    color: var(--color-primary-green) !important;
    padding-left: 1.25rem;
  }

  [data-theme="dark"] .nav-links a:hover {
    background: rgba(34, 197, 94, 0.1);
  }

  .header-cta {
    width: 100%;
    min-width: unset;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    text-align: center;
    justify-content: center;
  }

  .nav-links a.active {
    background: rgba(16, 137, 66, 0.1);
    color: var(--color-primary-green) !important;
  }

  [data-theme="dark"] .nav-links a.active {
    background: rgba(34, 197, 94, 0.1);
  }

  .nav-links a.active::after {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    /* Ensure button is above overlay */
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
  }

  .mobile-menu-btn:active {
    transform: scale(0.9);
  }

  .mobile-menu-btn i {
    font-size: 1.25rem;
  }

  /* Hero */
  .hero {
    padding: 30px 0 50px;
    clip-path: ellipse(220% 100% at 50% 0%);
  }

  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
  }

  @media (max-width: 480px) {
    .hero h1 {
      font-size: 1.4rem;
    }

    .hero p {
      font-size: 0.85rem;
    }
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    /* Stack footer columns */
    gap: 1.5rem;
  }

  /* Contact Page */
  .contact-grid {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    min-width: auto;
  }

  /* Index Adjustments */
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

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

  .problem-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-grid-extended {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact Page Grid */
  .contact-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .address-card {
    padding: 1.5rem !important;
  }

  .address-card>div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Guide Page Filters */
  .filter-nav {
    margin-bottom: var(--spacing-md);
  }

  .filter-btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.8rem !important;
  }

  /* Ready Section */
  .ready-section {
    padding: 2rem 0;
  }

  .ready-title {
    font-size: 1.25rem !important;
  }

  .ready-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
}

/* New Component Classes */
.features-section,
.testimonials-section {
  background: var(--bg-body);
}

.ready-section {
  text-align: center;
}

.ready-title {
  font-size: 2rem;
}

.ready-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.address-card {
  margin-top: 3rem;
  padding: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.maps-card {
  margin-top: 2rem;
  padding: 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.filter-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.filter-nav::-webkit-scrollbar {
  height: 4px;
}

.filter-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--spacing-xl);
}

/* Problem & Benefits Grids spacing fix */
.problem-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-grid-extended {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 480px) {
  .feature-grid-extended {
    grid-template-columns: 1fr;
  }

  .maps-card iframe {
    height: 300px;
  }
}

/* Contact Page Styles (Global) */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: none;
  /* Light mode */
}

[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-form {
  border: 1px solid var(--border-color);
}

.contact-item {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-value {
  color: var(--text-muted);
}

/* Form Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background: var(--bg-card);
  color: var(--text-main);
}

.form-input:focus {
  border-color: var(--color-primary-green);
  box-shadow: 0 0 0 3px rgba(16, 137, 66, 0.1);
}

/* --- Rich Content Styles --- */

/* 1. Article Typography & Structure */
.article-content {
  font-size: 1.05rem;
  /* Better readability */
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--text-main);
}

/* 2. Callout / Alert Boxes */
.alert {
  padding: 1.25rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-icon {
  font-size: 1.4rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.alert-content p:last-child {
  margin-bottom: 0;
}

/* Info (Blue) */
.alert-info {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-info .alert-icon {
  color: #3b82f6;
}

/* Success (Green) */
.alert-success {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.alert-success .alert-icon {
  color: #22c55e;
}

/* Warning (Yellow) */
.alert-warning {
  background-color: #fefce8;
  border-color: #eab308;
  color: #854d0e;
}

.alert-warning .alert-icon {
  color: #eab308;
}

/* Dark Mode Callouts */
[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

[data-theme="dark"] .alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

[data-theme="dark"] .alert-warning {
  background: rgba(234, 179, 8, 0.1);
  color: #fde047;
}


/* 3. Styled Process List (Steps) */
.process-list {
  list-style: none;
  counter-reset: process-counter;
  padding-left: 0;
  margin: 2rem 0;
}

.process-list li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2rem;
}

.process-list li::before {
  counter-increment: process-counter;
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--color-primary-green);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 2.25rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.process-list li strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* 4. Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table-custom th,
.table-custom td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table-custom th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .table-custom th {
  background-color: rgba(255, 255, 255, 0.05);
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .table-custom tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* 5. Checklists */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.checklist li::before {
  content: '\f00c';
  /* FontAwesome Check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--color-primary-green);
}

/* 6. Image Captions */
.img-wrapper {
  margin: 2.5rem 0;
  text-align: center;
}

.img-caption {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 7. Code Blocks (VS Code Style) */
pre {
  background-color: #1e1e1e;
  /* Dark editor bg */
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow-md);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Optional: Simple syntax highlighting simulation */
.code-keyword {
  color: #569cd6;
}

/* Blue */
.code-string {
  color: #ce9178;
}

/* Orange */
.code-comment {
  color: #6a9955;
}

/* Green */
.code-tag {
  color: #569cd6;
}

/* Blue */
.code-attr {
  color: #9cdcfe;
}

/* Light Blue */


/* 8. Blockquotes */
blockquote {
  border-left: 4px solid var(--color-primary-green);
  background: rgba(16, 137, 66, 0.05);
  /* Very light green tint */
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 1.1rem;
  position: relative;
}

[data-theme="dark"] blockquote {
  background: rgba(16, 137, 66, 0.1);
}

blockquote::before {
  content: '\f10d';
  /* Fa-quote-left */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--color-primary-green);
  opacity: 0.3;
  font-size: 1.5rem;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}


/* 9. Lightbox (Zoom Image) */
.article-content img {
  cursor: zoom-in;
  transition: transform 0.2s;
}

.article-content img:hover {
  box-shadow: var(--shadow-lg);
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.no-transition * {
  transition: none !important;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--color-primary-green);
}

.lightbox-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10000;
}

.zoom-btn {
  background: none;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-primary-green);
}

.zoom-value {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 45px;
  text-align: center;
  font-family: var(--font-body);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease-out;
  /* Smooth arbitrary zoom */
  cursor: grab;
}

.lightbox-img:active {
  cursor: grabbing;
}

/* --- Admin Dashboard Styles --- */

.admin-body {
  background-color: #f3f4f6;
  display: flex;
  min-height: 100vh;
}

[data-theme="dark"] .admin-body {
  background-color: #0f172a;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: #1e293b;
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

.admin-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-nav {
  list-style: none;
  flex-grow: 1;
}

.admin-nav li {
  margin-bottom: 0.5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-nav a.active {
  background-color: var(--color-primary-green);
}

/* Admin Main Content */
.admin-main {
  flex-grow: 1;
  margin-left: 260px;
  /* Sidebar width */
  padding: 2rem;
  width: calc(100% - 260px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Admin Tables (Reuse table-custom but with white bg) */
.admin-table-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

/* Admin Login */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
}

[data-theme="dark"] .login-wrapper {
  background-color: #0f172a;
}

.login-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

/* Status Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fefce8;
  color: #854d0e;
}

[data-theme="dark"] .badge-success {
  background: rgba(22, 101, 52, 0.2);
  color: #86efac;
}

[data-theme="dark"] .badge-warning {
  background: rgba(133, 77, 14, 0.2);
  color: #fde047;
}

/* Section headers for article grouping */
.section-full-width {
  grid-column: 1 / -1;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-full-width h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--text-main);
}

.section-full-width i {
  color: var(--color-primary-green);
  font-size: 1.25rem;
}

.section-full-width:first-child {
  margin-top: 0;
}

/* Floating Action Buttons (FAB) */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  animation: fadeInUp 0.5s ease-out;
}

.fab-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fab-button:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.fab-button:active {
  transform: translateY(-2px) scale(1.05);
}

/* Individual FAB Colors */
.fab-messenger {
  background: linear-gradient(135deg, #0084ff 0%, #0067d4 100%);
}

.fab-messenger:hover {
  background: linear-gradient(135deg, #0091ff 0%, #0074e8 100%);
}

.fab-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0180ff 100%);
}

.fab-zalo:hover {
  background: linear-gradient(135deg, #0078ff 0%, #0190ff 100%);
}

.fab-phone {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.fab-phone:hover {
  background: linear-gradient(135deg, #34d370 0%, #1ab857 100%);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay animations for staggered effect */
.fab-button:nth-child(1) {
  animation-delay: 0.1s;
}

.fab-button:nth-child(2) {
  animation-delay: 0.2s;
}

.fab-button:nth-child(3) {
  animation-delay: 0.3s;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .fab-container {
    bottom: 20px;
    right: 20px;
  }

  .fab-button {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* Homepage Enhancement Styles */

/* Problem Cards Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.problem-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.problem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
  background-size: 200% 100%;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.problem-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -15px rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.3);
}

.problem-card:hover::after {
  background-position: 100% 0;
  height: 8px;
}

[data-theme="dark"] .problem-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .problem-card:hover {
  box-shadow: 0 20px 40px -15px rgba(239, 68, 68, 0.4);
  background: rgba(30, 41, 59, 0.6);
}

.problem-card .icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.problem-card:hover .icon-wrapper {
  transform: scale(1.1) perspective(1000px) rotateY(10deg);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.1));
}

.problem-card .icon-wrapper i {
  font-size: 2rem;
  color: #ef4444;
  filter: drop-shadow(0 4px 6px rgba(239, 68, 68, 0.2));
}

.problem-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Extended Features Grid */
.feature-grid-extended {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.feature-card-extended {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card-extended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-green), #15803d);
  opacity: 0;
  z-index: -1;
  transition: all 0.6s ease;
}

.feature-card-extended:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px -15px rgba(16, 137, 66, 0.2);
  border-color: var(--color-primary-green);
}

[data-theme="dark"] .feature-card-extended {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .feature-card-extended:hover {
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 30px 60px -15px rgba(16, 137, 66, 0.3);
}

.feature-card-extended .icon-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary-green), #15803d);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px -5px rgba(16, 137, 66, 0.4);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-extended:hover .icon-wrapper {
  transform: scale(1.15) rotate(5deg) translateY(-8px);
  box-shadow: 0 15px 30px -5px rgba(16, 137, 66, 0.5);
}

.feature-card-extended .icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.feature-card-extended h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.feature-card-extended p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Benefits Section */
.benefits-section {
  background: linear-gradient(135deg, rgba(16, 137, 66, 0.05), rgba(16, 137, 66, 0.02));
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

[data-theme="dark"] .benefits-section {
  background: rgba(16, 137, 66, 0.03);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.benefit-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--color-primary-green);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .benefit-card {
  border: 2px solid var(--border-color);
}

.benefit-card .icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary-green), #15803d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-card .icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.benefit-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Statistics Section */
.stats-section {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  padding: 1.5rem;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-green);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.35rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .stat-item .number {
    font-size: 1.85rem;
  }

  .stat-item .label {
    font-size: 0.8rem;
  }

  .benefits-grid,
  .problem-grid,
  .feature-grid-extended {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .problem-card,
  .feature-card-extended,
  .benefit-card {
    padding: 1.75rem 1.25rem;
  }

  .problem-card h4,
  .feature-card-extended h4,
  .benefit-card h3 {
    font-size: 1.05rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-content {
    font-size: 0.9rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }

  .download-section .section-header h2 {
    font-size: 1.45rem;
  }

  /* Article Grid & Cards */
  .article-grid {
    gap: 1rem !important;
  }

  .article-card .article-content {
    padding: 1rem !important;
  }

  .article-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.4rem !important;
  }

  .article-excerpt {
    font-size: 0.825rem !important;
    line-height: 1.5 !important;
  }

  .article-thumb {
    height: 140px !important;
  }

  .article-category {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
  }

  /* Article Detail View */
  .article-content {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }

  .article-content p {
    margin-bottom: 1rem !important;
  }

  blockquote {
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem !important;
    margin: 1.5rem 0 !important;
  }

  pre {
    padding: 1rem !important;
    font-size: 0.8rem !important;
    margin: 1.5rem 0 !important;
  }

  .table-custom th,
  .table-custom td {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  .process-list li {
    padding-left: 2.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  .process-list li::before {
    width: 1.85rem !important;
    height: 1.85rem !important;
    line-height: 1.85rem !important;
    font-size: 0.85rem !important;
  }

  .process-list li strong {
    font-size: 1rem !important;
  }

  .checklist li {
    font-size: 0.9rem !important;
  }

  /* Search Box */
  .search-box input {
    height: 48px !important;
    font-size: 0.95rem !important;
    padding-left: 3rem !important;
  }

  .search-box i {
    left: 1.25rem !important;
    font-size: 1rem !important;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem !important;
  }

  .result-count {
    font-size: 0.8rem !important;
  }
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary-green);
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.testimonial-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.1;
  font-family: serif;
  color: var(--color-primary-green);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-green);
  padding: 2px;
}

.testimonial-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.testimonial-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

[data-theme="dark"] .testimonial-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
}

/* Download & Access Section */
.download-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: var(--spacing-lg);
}

.platform-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Premium Mesh Gradient Themes (Light) */
.platform-card.owner {
  background:
    radial-gradient(at 0% 0%, rgba(16, 137, 66, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 137, 66, 0.05) 0px, transparent 50%),
    #ffffff;
  border-color: rgba(16, 137, 66, 0.1);
}

.platform-card.player {
  background:
    radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(30, 58, 138, 0.05) 0px, transparent 50%),
    #ffffff;
  border-color: rgba(30, 58, 138, 0.1);
}

.platform-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.12);
}

.platform-card.owner:hover {
  border-color: rgba(16, 137, 66, 0.3);
  background:
    radial-gradient(at 0% 0%, rgba(16, 137, 66, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 137, 66, 0.08) 0px, transparent 50%),
    #ffffff;
  box-shadow: 0 40px 80px -20px rgba(16, 137, 66, 0.15);
}

.platform-card.player:hover {
  border-color: rgba(30, 58, 138, 0.3);
  background:
    radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(30, 58, 138, 0.08) 0px, transparent 50%),
    #ffffff;
  box-shadow: 0 40px 80px -20px rgba(30, 58, 138, 0.15);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.platform-card.owner .platform-badge {
  background: rgba(16, 137, 66, 0.1);
  color: var(--color-primary-green);
  border: 1px solid rgba(16, 137, 66, 0.15);
}

.platform-card.player .platform-badge {
  background: rgba(96, 165, 250, 0.1);
  color: var(--color-secondary-blue);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.platform-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 320px;
  line-height: 1.6;
}

.access-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.web-access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.25rem;
  background: var(--text-main);
  color: var(--bg-body);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.web-access-btn:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.app-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Premium Store Badge Style */
.app-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: #000;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  min-width: 160px;
}

.app-btn i {
  font-size: 1.8rem;
}

.app-btn .btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-btn .btn-text .small {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 2px;
}

.app-btn .btn-text .big {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-btn:hover {
  background: #1a1a1a;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .app-btn {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .app-btn:hover {
  background: #374151;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Premium Dark Card Gradients */
[data-theme="dark"] .platform-card.owner {
  background:
    radial-gradient(at 0% 0%, rgba(34, 197, 94, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(34, 197, 94, 0.03) 0px, transparent 50%),
    var(--bg-card);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .platform-card.player {
  background:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%),
    var(--bg-card);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .platform-card.owner:hover {
  background:
    radial-gradient(at 0% 0%, rgba(34, 197, 94, 0.15) 0px, transparent 50%),
    var(--bg-card);
  border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .platform-card.player:hover {
  background:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    var(--bg-card);
  border-color: rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .platform-card {
    padding: 2rem 1.25rem;
  }

  .app-links {
    flex-direction: column;
    gap: 1rem;
  }

  .platform-card h3 {
    font-size: 1.35rem;
  }

  .platform-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .web-access-btn {
    font-size: 0.95rem;
    padding: 0.85rem;
  }

  .platform-badge {
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* Premium UI Enhancements & Wow Factors */

/* 1. Background Decorative Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 137, 66, 0.1) 0%, rgba(16, 137, 66, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite alternate;
}

.blob-1 {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(16, 137, 66, 0.15) 0%, rgba(16, 137, 66, 0) 70%);
}

.blob-2 {
  bottom: 20%;
  left: -150px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, rgba(30, 58, 138, 0) 70%);
  animation-duration: 25s;
}

.blob-3 {
  bottom: -100px;
  right: 20%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0) 70%);
  animation-duration: 30s;
}

@keyframes float {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(100px, 50px);
  }
}

/* 2. Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* 3. Sticky Navigation Polish */
header {
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] header.scrolled {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 4. Stat Counter Emphasis */
.stat-item .number {
  background: linear-gradient(135deg, var(--color-primary-green), #15803d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  display: inline-block;
}

/* 5. Section Heading Polish */
.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-primary-green);
  border-radius: 2px;
  opacity: 0.6;
}