/**
 * The North Star (ستاره قطبی) - Main Stylesheet
 * Dark Cosmic Theme with Modern Glassmorphism & High Readability
 */

:root {
  --color-bg-base: #060b16;
  --color-bg-surface: #0b1329;
  --color-bg-card: rgba(15, 23, 42, 0.7);
  --color-bg-card-hover: rgba(22, 34, 60, 0.85);
  --color-border: rgba(56, 189, 248, 0.15);
  --color-border-hover: rgba(56, 189, 248, 0.4);
  --color-text-main: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-cyan: #38bdf8;
  --color-cyan-glow: rgba(56, 189, 248, 0.25);
  --color-blue: #3b82f6;
  --color-indigo: #6366f1;
  --color-amber: #f59e0b;
  --color-amber-light: #fbbf24;
  --color-amber-glow: rgba(245, 158, 11, 0.25);
  --color-orange: #f97316;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 58, 138, 0.25), transparent 70%),
    radial-gradient(circle at 10% 25%, rgba(245, 158, 11, 0.04), transparent 35%),
    radial-gradient(circle at 90% 70%, rgba(99, 102, 241, 0.08), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ==============================================================================
   Header & Navigation
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 22, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Logo Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-link:hover .brand-icon-wrap {
  transform: scale(1.05);
  border-color: var(--color-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-title-en {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.brand-title-divider {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

.brand-title-fa {
  color: var(--color-cyan);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-cyan);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

/* Navigation Dropdown (پرونده‌های ویژه) */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-chevron {
  color: var(--color-text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--color-cyan);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: -1.5rem;
  width: 440px;
  background: rgba(8, 15, 32, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header-note {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-dossier-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-dossier-item:hover {
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(-4px);
}

.dropdown-dossier-item.featured {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(14, 165, 233, 0.1));
  border-color: rgba(56, 189, 248, 0.35);
}

.dropdown-dossier-item.featured:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.dossier-item-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.dossier-item-info {
  display: flex;
  flex-direction: column;
}

.dossier-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 0.15rem;
}

.dossier-item-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.dossier-item-desc {
  font-size: 0.775rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.dropdown-footer-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  text-align: left;
}

.dropdown-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-cyan);
}

.dropdown-view-all-link:hover {
  color: #ffffff;
}

/* Mobile responsive menu handling for dropdown */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.15);
    margin-top: 0.75rem;
    padding: 0.85rem;
  }
}

/* Header Action CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: var(--color-amber-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-sparkle {
  color: #fbbf24;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.7));
  animation: pulse 2s infinite;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-main);
  padding: 0.5rem;
  cursor: pointer;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  text-align: center;
}

.hero-stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 95%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* Hero Slider */
.hero-slider-wrap {
  position: relative;
  width: 100%;
}

.hero-slides-track {
  position: relative;
  width: 100%;
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.hero-slider-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.slider-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-arrow:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--color-cyan);
  color: #ffffff;
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 1.75rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.slider-dot:hover {
  background: rgba(56, 189, 248, 0.6);
}

.slider-dot.active {
  width: 3.25rem;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-amber-light));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--color-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 2;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 60%, #38bdf8 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5), 0 0 16px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text-main);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--color-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==============================================================================
   About The North Star Section
   ============================================================================== */
.section-about {
  padding: 3rem 0 4.5rem;
  position: relative;
}

.about-card-wrap {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(11, 19, 41, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1.75rem;
  padding: 3.5rem 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(56, 189, 248, 0.08);
  position: relative;
  overflow: hidden;
}

.about-card-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.about-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.25rem;
}

.about-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.about-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 840px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.about-p-lead {
  font-size: 1.175rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 2.1;
  margin-bottom: 1.15rem;
}

.about-p-sub {
  font-size: 1.025rem;
  color: #cbd5e1;
  line-height: 2.05;
}

.about-slogan-wrap {
  display: inline-flex;
  margin-top: 0.5rem;
}

.about-slogan-quote {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 58, 138, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.18);
}

.about-slogan-quote svg {
  color: var(--color-amber-light) !important;
}

.about-slogan-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.25rem;
}

.about-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.about-pillar-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.about-pillar-item:nth-child(2) .about-pillar-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--color-amber-light);
}

.about-pillar-item:nth-child(2):hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.about-pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.about-pillar-desc {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .about-card-wrap {
    padding: 2.25rem 1.5rem;
  }
  .about-title {
    font-size: 1.65rem;
  }
  .about-p-lead {
    font-size: 1.05rem;
  }
}

/* ==============================================================================
   AI Compass Feature Showcase Section
   ============================================================================== */
.section-showcase {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--color-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.95;
}

/* 3 Cards Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
}

.feature-card:nth-child(2) .feature-icon-box {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--color-amber-light);
}

.feature-card:nth-child(2):hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.feature-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* Assessment CTA Box */
.showcase-cta-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(16px);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.showcase-cta-box h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.showcase-cta-box p {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================================================
   Services Section (4 Strategic Pillars)
   ============================================================================== */
.section-services {
  padding: 5rem 0;
  background: rgba(8, 15, 30, 0.4);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.service-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 1rem;
}

.service-card:nth-child(3) .service-badge {
  color: var(--color-amber-light);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.service-card:nth-child(3):hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.service-card-en {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  font-family: monospace;
  margin-bottom: 1rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ==============================================================================
   Blog & Articles Section
   ============================================================================== */
.section-articles {
  padding: 5rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.post-card-thumb-wrap {
  width: 100%;
  height: 230px;
  position: relative;
  overflow: hidden;
  background: #0b1329;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb {
  transform: scale(1.05);
}

.post-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.post-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.post-reading-time {
  font-size: 0.775rem;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-reading-time svg {
  color: var(--color-amber-light);
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
  color: var(--color-cyan);
}

.post-card-excerpt {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  margin-top: auto;
}

.post-date {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.post-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.post-card:hover .post-read-more {
  color: var(--color-amber-light);
  transform: translateX(-4px);
}

/* ==============================================================================
   Single Post Page
   ============================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 60%, #fbbf24 100%);
  z-index: 100;
  transform-origin: right;
  transform: scaleX(0);
}

.single-post-container {
  max-width: 860px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumbs a:hover {
  color: var(--color-cyan);
}

.single-post-header {
  margin-bottom: 2.5rem;
}

.single-post-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
  margin: 1rem 0 1.25rem;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.single-post-thumb-wrap {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.single-post-thumb {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.single-post-content {
  font-size: 1.125rem;
  line-height: 2.15;
  color: #e2e8f0;
}

.single-post-content p {
  margin-bottom: 1.75rem;
}

.single-post-content h2, .single-post-content h3 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single-post-content blockquote {
  border-right: 3px solid #f59e0b;
  padding: 1.15rem 1.65rem;
  margin: 2rem 0;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #f1f5f9;
}

.hashtag-pill {
  display: inline-block;
  margin: 0.25rem 0.25rem 0.25rem 0;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--color-cyan);
  font-size: 0.825rem;
  font-weight: 500;
}

.hashtag-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--color-cyan);
}

/* Post Share Box */
.post-share-box {
  margin: 3rem 0;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--color-cyan);
  color: #ffffff;
}

/* North Star Post CTA */
.northstar-post-cta {
  margin: 3.5rem 0 2rem;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(8, 15, 32, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45), 0 0 35px rgba(56, 189, 248, 0.1);
}

.northstar-post-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), var(--color-amber-light), transparent);
}

.ns-cta-glow-decor {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  pointer-events: none;
}

.ns-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.ns-cta-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.ns-cta-logo-wrap {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-cta-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ns-cta-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ns-cta-badge-divider {
  color: var(--color-cyan);
}

.ns-cta-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.ns-cta-desc {
  font-size: 1.025rem;
  color: #cbd5e1;
  line-height: 2;
  margin-bottom: 2rem;
}

.ns-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .northstar-post-cta {
    padding: 2.25rem 1.5rem;
  }
  .ns-cta-title {
    font-size: 1.35rem;
  }
  .ns-cta-desc {
    font-size: 0.925rem;
  }
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #040812;
  padding: 4.5rem 0 2rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-top: 1.25rem;
  max-width: 440px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--color-cyan);
  padding-right: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--color-cyan);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==============================================================================
   Responsive Styles
   ============================================================================== */
@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: rgba(6, 11, 22, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .single-post-title {
    font-size: 1.85rem;
  }
}


/* ==============================================================================
   Author Elements & Archive
   ============================================================================== */
.post-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.post-author-link:hover {
  color: var(--color-cyan);
}

.single-post-meta .post-author-link {
  color: var(--color-cyan);
  padding: 0.2rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  cursor: pointer;
}

.single-post-meta .post-author-link:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Post Author Signature Box */
.post-author-signature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding: 1.75rem 2rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.post-author-signature:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.author-signature-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(15, 23, 42, 0.9));
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-signature-avatar img {
  width: 36px;
  height: 36px;
}

.author-signature-content {
  flex: 1;
}

.author-signature-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.author-signature-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.author-signature-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.author-signature-name:hover {
  color: var(--color-cyan);
}

.author-signature-bio {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.author-signature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.author-signature-link:hover {
  color: var(--color-cyan-light);
  gap: 0.6rem;
}

/* Author Archive Header Card */
.author-header-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(8, 15, 32, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.author-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), var(--color-amber), transparent);
}

.author-avatar-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(15, 23, 42, 0.9));
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar-img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.author-name-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.author-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--color-amber-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.author-bio-text {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.author-stats-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.author-stats-value {
  color: var(--color-cyan);
  font-weight: 700;
}

@media (max-width: 768px) {
  .post-author-signature {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .author-signature-header {
    justify-content: center;
  }
  .author-header-card {
    padding: 2.25rem 1.5rem;
  }
  .author-name-title {
    font-size: 1.45rem;
  }
}
