/* ========== COMMON BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: hsl(220, 20%, 7%);
  --fg: hsl(210, 20%, 92%);
  --card: hsl(220, 18%, 11%);
  --card-fg: hsl(210, 20%, 92%);
  --primary: hsl(175, 70%, 45%);
  --primary-fg: hsl(220, 20%, 7%);
  --secondary: hsl(220, 15%, 16%);
  --secondary-fg: hsl(210, 20%, 85%);
  --muted: hsl(220, 15%, 14%);
  --muted-fg: hsl(215, 15%, 55%);
  --accent: hsl(30, 85%, 55%);
  --border: hsl(220, 15%, 18%);
  --primary2: hsl(195, 80%, 40%);
  --gradient-primary: linear-gradient(135deg, hsl(175, 70%, 45%), hsl(195, 80%, 40%));
  --gradient-dark: linear-gradient(180deg, hsl(220, 20%, 7%) 0%, hsl(220, 18%, 4%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(220, 18%, 13%) 0%, hsl(220, 18%, 9%) 100%);
  --gradient-glow: radial-gradient(ellipse at center, hsla(175, 70%, 45%, 0.15) 0%, transparent 70%);
  --shadow-glow: 0 0 30px -5px hsla(175, 70%, 45%, 0.3);
  --shadow-card: 0 8px 32px -8px hsla(0, 0%, 0%, 0.5);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== NAVBAR ========== */
.navbar {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsla(220, 15%, 18%, 0.5);
  backdrop-filter: blur(16px);
  background: hsla(220, 20%, 7%, 0.8);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--fg);
}

.navbar-links a.active {
  color: var(--primary);
}

.navbar-cta {
  background: var(--gradient-primary);
  color: var(--primary-fg);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.navbar-cta:hover {
  opacity: 0.9;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid hsla(220, 15%, 18%, 0.5);
    background: hsla(220, 20%, 7%, 0.95);
    backdrop-filter: blur(16px);
  }

  .mobile-menu a {
    color: var(--muted-fg);
    transition: color 0.2s;
  }

  .mobile-menu a:hover {
    color: var(--fg);
  }

  .mobile-menu .navbar-cta {
    text-align: center;
    display: block;
  }
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid hsla(220, 15%, 18%, 0.5);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

@media (min-width: 640px) {
  .footer .container {
    flex-direction: row;
  }
}

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

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--fg);
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: 0.75rem;
}

.section-subtitle {
  color: var(--muted-fg);
  margin-top: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========== HOME PAGE: HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay1 {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
  opacity: 0.7;
}

.hero-overlay2 {
  position: absolute;
  inset: 0;
  background: hsla(220, 20%, 7%, 0.4);
}

.hero-glow {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding-top: 6rem;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--muted-fg);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-fg);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.hero-btn-primary:hover {
  opacity: 0.9;
}

.hero-btn-secondary {
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.hero-btn-secondary:hover {
  background: var(--secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid hsla(215, 15%, 55%, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
  animation: scrollBounce 2s infinite;
}

.scroll-dot {
  width: 4px;
  height: 10px;
  border-radius: 9999px;
  background: var(--primary);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ========== HOME PAGE: SERVICES ========== */
.services {
  padding: 6rem 0 6rem;
  background: var(--gradient-dark);
  position: relative;
}

.services-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 400px;
  background: var(--gradient-glow);
  pointer-events: none;
  opacity: 0.5;
}

.services .container {
  position: relative;
  z-index: 10;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.service-item.reversed {
  flex-direction: column;
}

@media (min-width: 768px) {
  .service-item {
    flex-direction: row;
    gap: 3rem;
  }

  .service-item.reversed {
    flex-direction: row-reverse;
  }
}

.service-image {
  width: 100%;
  flex: 1;
}

.service-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s;
}

.service-image-wrapper:hover img {
  transform: scale(1.05);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: hsla(220, 20%, 7%, 0.2);
  transition: background 0.5s;
}

.service-image-wrapper:hover .service-image-overlay {
  background: hsla(220, 20%, 7%, 0.1);
}

.service-content {
  flex: 1;
  width: 100%;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-fg);
}

.service-content h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-content>p {
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--secondary-fg);
}

.service-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ========== HOME PAGE: WHY US ========== */
.why-us {
  padding: 6rem 0;
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.why-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsla(220, 15%, 18%, 0.5);
  box-shadow: var(--shadow-card);
  transition: border-color 0.5s;
}

.why-card:hover {
  border-color: hsla(175, 70%, 45%, 0.3);
}

.why-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.5s;
}

.why-card:hover .why-card-icon {
  box-shadow: var(--shadow-glow);
}

.why-card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========== HOME PAGE: CONTACT ========== */
.contact {
  padding: 6rem 0;
  background: var(--gradient-dark);
  position: relative;
}

.contact-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90vw);
  height: 400px;
  background: var(--gradient-glow);
  pointer-events: none;
  opacity: 0.4;
}

.contact .container {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact-info-item .label {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.contact-info-item .value {
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
}

.contact-form-wrapper {
  background: var(--gradient-card);
  border-radius: 1rem;
  border: 1px solid hsla(220, 15%, 18%, 0.5);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 3rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-fg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px hsla(175, 70%, 45%, 0.5);
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  width: 100%;
  background: var(--gradient-primary);
  color: var(--primary-fg);
  padding: 0.875rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* ========== NEWS PAGE: HERO & GRID ========== */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.page-hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 10;
}

.page-hero-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted-fg);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

.news-section {
  padding: 4rem 0 6rem;
}

/* Featured article */
.featured-article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--gradient-card);
  border-radius: 1rem;
  border: 1px solid hsla(220, 15%, 18%, 0.5);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
  transition: border-color 0.4s;
}

.featured-article:hover {
  border-color: hsla(175, 70%, 45%, 0.3);
}

@media (min-width: 768px) {
  .featured-article {
    flex-direction: row;
  }
}

.featured-article-image {
  flex: 1;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.featured-article:hover .featured-article-image img {
  transform: scale(1.04);
}

.featured-article-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .featured-article-content {
    padding: 2.5rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  color: var(--primary-fg);
}

.article-tag.orange {
  background: linear-gradient(135deg, hsl(30, 85%, 55%), hsl(20, 90%, 50%));
}

.article-tag.blue {
  background: linear-gradient(135deg, hsl(210, 70%, 50%), hsl(230, 60%, 55%));
  color: hsl(210, 20%, 95%);
}

.article-date {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.featured-article-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.featured-article-content p {
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 0.75rem;
}

.read-more svg {
  width: 1rem;
  height: 1rem;
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.news-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  border: 1px solid hsla(220, 15%, 18%, 0.5);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.4s, transform 0.4s;
}

.news-card:hover {
  border-color: hsla(175, 70%, 45%, 0.3);
  transform: translateY(-4px);
}

.news-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.news-card-body {
  padding: 1.5rem;
}

.news-card-body .article-meta {
  margin-bottom: 0.75rem;
}

.news-card-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.news-card-body p {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--muted-fg);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--fg);
}

.pagination .active {
  background: var(--gradient-primary);
  color: var(--primary-fg);
  border-color: transparent;
}

/* ========== ARTICLE PAGE ========== */
.article-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
}

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

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, hsla(220, 20%, 7%, 0.6) 40%, hsla(220, 20%, 7%, 0.3) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 3rem 0 2.5rem;
}

.article-hero-content .container {
  max-width: 48rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--fg);
}

.breadcrumb svg {
  width: 0.75rem;
  height: 0.75rem;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.article-body {
  padding: 3rem 0 5rem;
}

.article-body .container {
  max-width: 48rem;
}

.article-content {
  color: var(--secondary-fg);
  font-size: 1.05rem;
  line-height: 1.85;
}

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

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--fg);
  font-weight: 600;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--gradient-card);
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--fg);
}

.article-content .image-block {
  margin: 2.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-content .image-block img {
  width: 100%;
}

.article-content .image-caption {
  background: var(--gradient-card);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  text-align: center;
  font-style: italic;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background: var(--gradient-card);
  border-radius: 0.75rem;
  border: 1px solid hsla(220, 15%, 18%, 0.5);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Author / share bar */
.article-footer-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(220, 15%, 18%, 0.5);
}

@media (min-width: 640px) {
  .article-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-fg);
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

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

.share-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  transition: all 0.2s;
  cursor: pointer;
}

.share-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.share-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Related articles */
.related {
  padding: 4rem 0;
  background: var(--gradient-dark);
}

.related .container {
  max-width: 48rem;
}

.related h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-grid {
  display: grid;
  gap: 1.5rem;
}

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

.related-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  border: 1px solid hsla(220, 15%, 18%, 0.5);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.4s, transform 0.4s;
}

.related-card:hover {
  border-color: hsla(175, 70%, 45%, 0.3);
  transform: translateY(-3px);
}

.related-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.related-card-body {
  padding: 1.25rem;
}

.related-card-body .article-tag {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.related-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.related-card-body .article-date {
  font-size: 0.75rem;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 2rem;
  transition: gap 0.3s;
}

.back-link:hover {
  gap: 0.75rem;
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}