/* ================================================
   CORKULOUS LIQUID GLASS DESIGN SYSTEM
   A modern glassmorphism aesthetic inspired by
   Apple's Liquid Glass design language
   ================================================ */

/* ================================================
   1. CSS CUSTOM PROPERTIES & THEME VARIABLES
   ================================================ */

:root {
  /* === Color Palette - Light Theme === */
  --lg-primary: #ff4f5a;
  --lg-secondary: #583bf7;
  --lg-accent: #19cb55;

  /* Backgrounds - Light */
  --lg-bg-base: #f5f7fa;
  --lg-bg-elevated: rgba(255, 255, 255, 0.7);
  --lg-bg-glass: rgba(255, 255, 255, 0.5);
  --lg-bg-glass-strong: rgba(255, 255, 255, 0.75);
  --lg-bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

  /* Cork texture for skeuomorphic elements */
  --lg-cork-texture: #d4a574;
  --lg-cork-shadow: rgba(139, 90, 43, 0.2);

  /* Text colors - Light */
  --lg-text-primary: #1a1a2e;
  --lg-text-secondary: #6b7280;
  --lg-text-tertiary: #9ca3af;
  --lg-text-on-dark: #ffffff;

  /* Glass effects */
  --lg-blur: 20px;
  --lg-blur-strong: 40px;
  --lg-blur-subtle: 10px;

  /* Borders & Outlines */
  --lg-border: rgba(163, 163, 163, 0.6);
  --lg-border-subtle: rgba(163, 163, 163, 0.3);

  /* Shadows & Depth */
  --lg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --lg-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --lg-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --lg-shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15);
  --lg-shadow-inset: inset 0 1px 2px rgba(255, 255, 255, 0.5);

  /* Chromatic aberration effects */
  --lg-chromatic-offset: 2px;

  /* Transitions */
  --lg-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --lg-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --lg-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --lg-transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
  /* === Color Palette - Dark Theme === */
  --lg-primary: #ff5f69;
  --lg-secondary: #6b4cff;
  --lg-accent: #22d863;

  /* Backgrounds - Dark */
  --lg-bg-base: #0a0a0f;
  --lg-bg-elevated: rgba(20, 20, 30, 0.7);
  --lg-bg-glass: rgba(30, 30, 45, 0.5);
  --lg-bg-glass-strong: rgba(30, 30, 45, 0.75);
  --lg-bg-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #4a1942 100%);

  /* Cork texture for dark mode */
  --lg-cork-texture: #8b6f47;
  --lg-cork-shadow: rgba(0, 0, 0, 0.5);

  /* Text colors - Dark */
  --lg-text-primary: #f9fafb;
  --lg-text-secondary: #d1d5db;
  --lg-text-tertiary: #9ca3af;
  --lg-text-on-dark: #ffffff;

  /* Borders - Dark */
  --lg-border: rgba(255, 255, 255, 0.1);
  --lg-border-subtle: rgba(255, 255, 255, 0.05);

  /* Shadows - Dark */
  --lg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --lg-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --lg-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --lg-shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
  --lg-shadow-inset: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* ================================================
   2. BASE STYLES & RESETS
   ================================================ */

body {
  background: var(--lg-bg-base);
  color: var(--lg-text-primary);
  transition: background var(--lg-transition-base), color var(--lg-transition-base);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  transition: border-color var(--lg-transition-fast),
              background-color var(--lg-transition-fast),
              box-shadow var(--lg-transition-fast);
}

/* ================================================
   3. GLASS COMPONENTS & UTILITIES
   ================================================ */

/* Base glass material */
.lg-glass {
  background: var(--lg-bg-glass);
  backdrop-filter: blur(var(--lg-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(180%);
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow-glass);
}

.lg-glass-strong {
  background: var(--lg-bg-glass-strong);
  backdrop-filter: blur(var(--lg-blur-strong)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--lg-blur-strong)) saturate(200%);
  border: 1px solid var(--lg-border);
}

.lg-glass-subtle {
  background: var(--lg-bg-elevated);
  backdrop-filter: blur(var(--lg-blur-subtle)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--lg-blur-subtle)) saturate(150%);
  border: 1px solid var(--lg-border-subtle);
}

/* Elevated glass cards */
.lg-card {
  background: var(--lg-bg-glass);
  backdrop-filter: blur(var(--lg-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(180%);
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--lg-shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--lg-transition-base),
              box-shadow var(--lg-transition-base);
}

.lg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  box-shadow: var(--lg-shadow-inset);
}

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

/* Cork-textured card for skeuomorphic elements */
.lg-cork-card {
  background: linear-gradient(135deg,
    var(--lg-cork-texture) 0%,
    #c49563 100%);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 90, 43, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 60%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--lg-shadow-md), var(--lg-cork-shadow);
  position: relative;
  border: 2px solid rgba(139, 90, 43, 0.2);
}

/* ================================================
   4. HEADER & NAVIGATION
   ================================================ */

.header-area {
  background: var(--lg-bg-glass) !important;
  backdrop-filter: blur(var(--lg-blur-strong)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--lg-blur-strong)) saturate(180%);
  border-bottom: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-menu ul li a {
  color: var(--lg-text-primary) !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: all var(--lg-transition-base);
}

.main-menu ul li a:hover {
  background: var(--lg-bg-glass);
  color: var(--lg-primary) !important;
  transform: translateY(-1px);
}

.main-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--lg-primary);
  border-radius: 2px;
  transition: transform var(--lg-transition-base);
}

.main-menu ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Download button with glass effect */
.header-btn .btn {
  background: linear-gradient(135deg, var(--lg-primary) 0%, #e63946 100%) !important;
  border: none !important;
  padding: 0.75rem 1.75rem;
  border-radius: 16px;
  font-weight: 600;
  color: white !important;
  box-shadow: 0 4px 16px rgba(255, 79, 90, 0.3);
  position: relative;
  overflow: hidden;
  transition: all var(--lg-transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-btn .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
  transition: left var(--lg-transition-slow);
  pointer-events: none;
}

.header-btn .btn:hover,
.header-btn .btn:focus,
.header-btn .btn:active {
  background: linear-gradient(135deg, #ff5f69 0%, #f04954 100%) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 79, 90, 0.5);
  text-decoration: none;
}

.header-btn .btn:hover::before {
  left: 100%;
}

/* Theme toggle button */
.theme-toggle-btn {
  background: var(--lg-bg-glass);
  backdrop-filter: blur(var(--lg-blur));
  -webkit-backdrop-filter: blur(var(--lg-blur));
  border: 1px solid var(--lg-border);
  color: var(--lg-text-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--lg-transition-base);
  box-shadow: var(--lg-shadow-sm);
}

.theme-toggle-btn:hover {
  background: var(--lg-bg-glass-strong);
  transform: scale(1.05);
  box-shadow: var(--lg-shadow-md);
}

.theme-toggle-btn i {
  font-size: 18px;
  transition: transform var(--lg-transition-bounce);
}

.theme-toggle-btn:hover i {
  transform: rotate(20deg) scale(1.1);
}

/* ================================================
   5. HERO SECTION
   ================================================ */

.slider_2 {
  background: var(--lg-bg-hero) !important;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.slider_2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.slider_2 h2 {
  color: white !important;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.slider_2 h3 {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider_2 img[src*="App_Store"] {
  transition: all var(--lg-transition-base);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.slider_2 img[src*="App_Store"]:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

/* Device lineup with glass effect */
.slider_2 img[src*="lineup"] {
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  transition: transform var(--lg-transition-slow);
}

.slider_2 img[src*="lineup"]:hover {
  transform: scale(1.02);
}

/* ================================================
   6. BLOG & CONTENT CARDS
   ================================================ */

.blog3 {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lg-text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--lg-primary) 0%, var(--lg-secondary) 100%);
  border-radius: 2px;
}

.blog {
  margin-bottom: 2rem;
}

.blog__image {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: var(--lg-shadow-md);
  aspect-ratio: 16 / 10;
}

.blog__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity var(--lg-transition-base);
}

.blog__image:hover::after {
  opacity: 1;
}

.blog__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lg-transition-slow);
}

.blog__image:hover img {
  transform: scale(1.05);
}

.blog__meta {
  background: var(--lg-bg-glass);
  backdrop-filter: blur(var(--lg-blur));
  -webkit-backdrop-filter: blur(var(--lg-blur));
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--lg-shadow-sm);
  transition: all var(--lg-transition-base);
}

.blog__meta:hover {
  transform: translateY(-4px);
  box-shadow: var(--lg-shadow-md);
  background: var(--lg-bg-glass-strong);
}

.blog__meta span {
  color: var(--lg-text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.blog__meta h3 {
  color: var(--lg-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  transition: color var(--lg-transition-base);
}

.blog__meta h3:hover {
  color: var(--lg-primary);
}

/* ================================================
   7. VIDEO CONTAINER
   ================================================ */

.ratio {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--lg-shadow-lg);
  border: 2px solid var(--lg-border);
  background: var(--lg-bg-glass);
  backdrop-filter: blur(var(--lg-blur));
  -webkit-backdrop-filter: blur(var(--lg-blur));
}

.ratio iframe {
  border-radius: 22px;
}

/* ================================================
   8. FOOTER
   ================================================ */

.footer-area {
  background: var(--lg-bg-glass);
  backdrop-filter: blur(var(--lg-blur-strong));
  -webkit-backdrop-filter: blur(var(--lg-blur-strong));
  border-top: 1px solid var(--lg-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.link_heading {
  color: var(--lg-text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links ul li {
  margin-bottom: 0.75rem;
}

.links ul li a {
  color: var(--lg-text-secondary);
  font-weight: 400;
  transition: all var(--lg-transition-base);
  padding: 0.25rem 0;
  display: inline-block;
  position: relative;
}

.links ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--lg-primary);
  transition: width var(--lg-transition-base);
}

.links ul li a:hover {
  color: var(--lg-primary);
  transform: translateX(4px);
}

.links ul li a:hover::before {
  width: 100%;
}

.footer_logo img {
  filter: drop-shadow(0 2px 8px var(--lg-shadow-sm));
  transition: transform var(--lg-transition-base);
}

.footer_logo img:hover {
  transform: scale(1.05);
}

/* ================================================
   9. ANIMATIONS & EFFECTS
   ================================================ */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 79, 90, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 79, 90, 0.5);
  }
}

.lg-float {
  animation: float 3s ease-in-out infinite;
}

.lg-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ================================================
   10. RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 991px) {
  .slider_2 h2 {
    font-size: 2.25rem;
  }

  .slider_2 h3 {
    font-size: 1.25rem;
  }

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

  .lg-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .slider_2 {
    padding: 60px 0 40px;
  }

  .slider_2 h2 {
    font-size: 1.75rem;
  }

  .slider_2 h3 {
    font-size: 1.125rem;
  }

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

  .blog3 {
    padding: 60px 0;
  }

  .lg-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .blog__image {
    border-radius: 16px;
  }

  .blog__meta {
    border-radius: 12px;
  }
}

/* ================================================
   11. ACCESSIBILITY & MOTION
   ================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .lg-glass,
  .lg-glass-strong,
  .lg-glass-subtle {
    border-width: 2px;
  }

  .lg-card {
    border-width: 2px;
  }
}

/* ================================================
   12. UTILITY CLASSES
   ================================================ */

.lg-text-gradient {
  background: linear-gradient(135deg, var(--lg-primary) 0%, var(--lg-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lg-shadow-sm { box-shadow: var(--lg-shadow-sm); }
.lg-shadow-md { box-shadow: var(--lg-shadow-md); }
.lg-shadow-lg { box-shadow: var(--lg-shadow-lg); }

.lg-rounded-sm { border-radius: 12px; }
.lg-rounded-md { border-radius: 16px; }
.lg-rounded-lg { border-radius: 24px; }
.lg-rounded-xl { border-radius: 32px; }

.lg-transition-fast { transition: all var(--lg-transition-fast); }
.lg-transition-base { transition: all var(--lg-transition-base); }
.lg-transition-slow { transition: all var(--lg-transition-slow); }

/* ================================================
   13. FORM ENHANCEMENTS
   ================================================ */

/* Form inputs with glass styling */
.lg-card input[type="text"],
.lg-card input[type="email"],
.lg-card input[type="password"],
.lg-card textarea,
.lg-card select,
.lg-card .form-control,
.lg-card .form-select {
  background: var(--lg-bg-elevated) !important;
  border: 2px solid var(--lg-border) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  color: var(--lg-text-primary) !important;
  transition: all var(--lg-transition-base) !important;
  font-size: 1rem;
}

.lg-card input[type="text"]:focus,
.lg-card input[type="email"]:focus,
.lg-card input[type="password"]:focus,
.lg-card textarea:focus,
.lg-card select:focus,
.lg-card .form-control:focus,
.lg-card .form-select:focus {
  background: var(--lg-bg-glass) !important;
  border-color: var(--lg-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 79, 90, 0.1) !important;
  outline: none !important;
}

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

.lg-card .form-row {
  margin-bottom: 1.5rem;
}

/* Submit buttons in forms */
.lg-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 79, 90, 0.5) !important;
}

/* Error messages */
.lg-card .invalid-feedback {
  color: #ff5f69;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* CAPTCHA styling */
.lg-card img#captcha {
  border-radius: 8px;
  box-shadow: var(--lg-shadow-sm);
  margin: 0.5rem 0;
}

/* ================================================
   14. PAGE-SPECIFIC ENHANCEMENTS
   ================================================ */

/* Experience area content styling */
.experience_area .lg-card h1,
.experience_area .lg-card h2,
.experience_area .lg-card h3,
.experience_area .lg-card h4,
.experience_area .lg-card h5,
.experience_area .lg-card h6 {
  color: var(--lg-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.experience_area .lg-card h1 {
  font-size: 2.5rem;
}

.experience_area .lg-card h2 {
  font-size: 2rem;
}

.experience_area .lg-card h3 {
  font-size: 1.5rem;
}

.experience_area .lg-card p {
  color: var(--lg-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.experience_area .lg-card ul,
.experience_area .lg-card ol {
  color: var(--lg-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.experience_area .lg-card a {
  color: var(--lg-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--lg-transition-base);
}

.experience_area .lg-card a:hover {
  color: var(--lg-secondary);
  text-decoration: underline;
}

.experience_area .lg-card code {
  background: var(--lg-bg-elevated);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--lg-primary);
}

.experience_area .lg-card pre {
  background: var(--lg-bg-elevated);
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1rem 0;
}

/* ================================================
   15. BUTTON CONSISTENCY
   ================================================ */

/* Ensure all CTAs maintain gradient on hover */
a.btn:hover,
button.btn:hover,
a.header-btn:hover,
button.header-btn:hover {
  color: white !important;
  text-decoration: none !important;
}

/* ================================================
   16. ARTICLE CONTENT READABILITY
   ================================================ */

/* Article body typography for maximum readability */
.lg-article-content .article-body {
  max-width: 750px;
  margin: 0 auto;
}

/* Article headings */
.lg-article-content .article-body h1,
.lg-article-content .article-body h2,
.lg-article-content .article-body h3,
.lg-article-content .article-body h4,
.lg-article-content .article-body h5,
.lg-article-content .article-body h6 {
  color: var(--lg-text-primary);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lg-article-content .article-body h1 {
  font-size: 2.5rem;
  margin-top: 3rem;
}

.lg-article-content .article-body h2 {
  font-size: 2rem;
  margin-top: 2.75rem;
}

.lg-article-content .article-body h3 {
  font-size: 1.625rem;
  margin-top: 2.5rem;
}

.lg-article-content .article-body h4 {
  font-size: 1.375rem;
}

.lg-article-content .article-body h5 {
  font-size: 1.125rem;
}

.lg-article-content .article-body h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Paragraphs */
.lg-article-content .article-body p {
  color: var(--lg-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* First paragraph emphasis */
.lg-article-content .article-body > p:first-child {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--lg-text-primary);
}

/* Lists */
.lg-article-content .article-body ul,
.lg-article-content .article-body ol {
  color: var(--lg-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.lg-article-content .article-body ul li,
.lg-article-content .article-body ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.lg-article-content .article-body ul li::marker {
  color: var(--lg-primary);
}

.lg-article-content .article-body ol li::marker {
  color: var(--lg-primary);
  font-weight: 600;
}

/* Nested lists */
.lg-article-content .article-body ul ul,
.lg-article-content .article-body ol ol,
.lg-article-content .article-body ul ol,
.lg-article-content .article-body ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Links in article content */
.lg-article-content .article-body a {
  color: var(--lg-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 79, 90, 0.3);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: all var(--lg-transition-base);
}

.lg-article-content .article-body a:hover {
  color: var(--lg-secondary);
  text-decoration-color: rgba(88, 59, 247, 0.5);
}

/* Blockquotes */
.lg-article-content .article-body blockquote {
  background: var(--lg-bg-elevated);
  border-left: 4px solid var(--lg-primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--lg-text-primary);
  font-style: italic;
  box-shadow: var(--lg-shadow-sm);
}

.lg-article-content .article-body blockquote p {
  margin-bottom: 0.75rem;
  font-size: inherit;
  line-height: inherit;
}

.lg-article-content .article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code blocks and inline code */
.lg-article-content .article-body code {
  background: var(--lg-bg-elevated);
  color: var(--lg-primary);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-weight: 500;
}

.lg-article-content .article-body pre {
  background: var(--lg-bg-elevated);
  padding: 1.5rem;
  border-radius: 16px;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--lg-shadow-sm);
  border: 1px solid var(--lg-border);
}

.lg-article-content .article-body pre code {
  background: transparent;
  padding: 0;
  color: var(--lg-text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Images in article content */
.lg-article-content .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: var(--lg-shadow-md);
  display: block;
}

/* Center-aligned images */
.lg-article-content .article-body img[align="center"],
.lg-article-content .article-body p > img:only-child {
  margin-left: auto;
  margin-right: auto;
}

/* Tables */
.lg-article-content .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  background: var(--lg-bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--lg-shadow-sm);
}

.lg-article-content .article-body table thead {
  background: var(--lg-bg-glass);
  border-bottom: 2px solid var(--lg-border);
}

.lg-article-content .article-body table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--lg-text-primary);
}

.lg-article-content .article-body table td {
  padding: 1rem;
  border-top: 1px solid var(--lg-border);
  color: var(--lg-text-secondary);
}

.lg-article-content .article-body table tr:hover {
  background: var(--lg-bg-glass);
}

/* Horizontal rule */
.lg-article-content .article-body hr {
  border: none;
  height: 1px;
  background: var(--lg-border);
  margin: 3rem 0;
}

/* Strong and emphasis */
.lg-article-content .article-body strong,
.lg-article-content .article-body b {
  font-weight: 700;
  color: var(--lg-text-primary);
}

.lg-article-content .article-body em,
.lg-article-content .article-body i {
  font-style: italic;
}

/* Article abstract special styling */
.article-abstract {
  position: relative;
}

.article-abstract::before {
  content: '"';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  font-size: 3rem;
  color: var(--lg-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Responsive article typography */
@media (max-width: 991px) {
  .lg-article-content .article-body h1 {
    font-size: 2rem;
  }

  .lg-article-content .article-body h2 {
    font-size: 1.75rem;
  }

  .lg-article-content .article-body h3 {
    font-size: 1.5rem;
  }

  .lg-article-content .article-body p,
  .lg-article-content .article-body ul,
  .lg-article-content .article-body ol {
    font-size: 1.0625rem;
  }

  .lg-article-content .article-body > p:first-child {
    font-size: 1.125rem;
  }

  .lg-article-content .article-body blockquote {
    font-size: 1.125rem;
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .lg-article-content {
    padding: 2rem 1.5rem !important;
  }

  .lg-article-content .article-body h1 {
    font-size: 1.75rem;
  }

  .lg-article-content .article-body h2 {
    font-size: 1.5rem;
  }

  .lg-article-content .article-body h3 {
    font-size: 1.25rem;
  }

  .lg-article-content .article-body p,
  .lg-article-content .article-body ul,
  .lg-article-content .article-body ol {
    font-size: 1rem;
  }

  .lg-article-content .article-body > p:first-child {
    font-size: 1.0625rem;
  }

  .lg-article-content .article-body blockquote {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .article-abstract {
    font-size: 1rem !important;
    padding: 1.25rem 1.5rem !important;
  }
}
