/*
Theme Name: Deep Finance Analytics
Theme URI: https://deepfinanceanalytics.com
Author: Deep Finance Analytics
Author URI: https://deepfinanceanalytics.com
Description: AI-driven data analytics, prediction models & research for the financial industry. A premium WordPress theme migrated from React.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deep-finance
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables & Root Styles
   ========================================================================== */

:root {
  /* Colors - Light Mode - Deep Finance Analytics Color System */
  --background: 0 0% 100%;
  --foreground: 220 15% 12%;
  --card: 220 20% 98%;
  --card-foreground: 220 15% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 15% 12%;
  /* Primary: #1200FF - Deep Electric Blue */
  --primary: 244 100% 50%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 244 100% 60%;
  /* Secondary: Light grey */
  --secondary: 220 14% 96%;
  --secondary-foreground: 220 15% 12%;
  --muted: 220 14% 94%;
  --muted-foreground: 220 10% 50%;
  --accent: 220 20% 92%;
  --accent-foreground: 220 15% 12%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 90%;
  --input: 220 13% 90%;
  --ring: 244 100% 50%;
  --radius: 0.75rem;
  /* Custom tokens */
  --gradient-primary: linear-gradient(135deg, hsl(244 100% 50%) 0%, hsl(260 100% 60%) 50%, hsl(244 100% 70%) 100%);
  --shadow-glow: 0 0 60px hsl(244 100% 50% / 0.15);
  --shadow-card: 0 1px 3px 0 hsl(220 15% 12% / 0.04), 0 10px 30px -10px hsl(220 15% 12% / 0.06);
  --shadow-card-hover: 0 4px 12px -2px hsl(220 15% 12% / 0.05), 0 20px 50px -15px hsl(220 15% 12% / 0.1);
}

.dark {
  /* Colors - Dark Mode */
  --background: 220 20% 6%;
  --foreground: 220 14% 96%;
  --card: 220 20% 10%;
  --card-foreground: 220 14% 96%;
  --popover: 220 20% 8%;
  --popover-foreground: 220 14% 96%;
  --primary: 244 100% 60%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 244 100% 70%;
  --secondary: 220 15% 16%;
  --secondary-foreground: 220 14% 96%;
  --muted: 220 15% 18%;
  --muted-foreground: 220 10% 60%;
  --accent: 220 15% 20%;
  --accent-foreground: 220 14% 96%;
  --destructive: 0 70% 50%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 15% 18%;
  --input: 220 15% 18%;
  --ring: 244 100% 60%;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Radix', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.font-display {
  font-family: 'Radix', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Radix', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   Glass Panel Effect
   ========================================================================== */

.glass-panel {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-card);
}

.dark .glass-panel {
  background: hsl(var(--card) / 0.8);
  border: 1px solid hsl(var(--border) / 0.5);
}

/* Hero Glass Panel - specific styling for hero content box */
.hero-glass {
  background: hsl(var(--background) / 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.3);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ==========================================================================
   Button Styles
   Based on original shadcn button component
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Default Button */
.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  height: 2.5rem;
  padding: 0.5rem 1.25rem;
}

.btn-default:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: var(--shadow-glow);
}

/* Hero Button - Primary CTA with glow */
.btn-hero {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  height: 3rem;
  padding: 0 2rem;
  border-radius: calc(var(--radius) + 4px);
  font-weight: 500;
  box-shadow: 0 10px 30px hsl(var(--primary) / 0.3);
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: var(--shadow-glow);
}

/* Hero XL size */
.btn-hero.btn-xl {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 0.875rem;
}

/* Hero Outline Button - Secondary CTA */
.btn-hero-outline {
  background-color: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  height: 3rem;
  padding: 0 2rem;
  border-radius: calc(var(--radius) + 4px);
  font-weight: 500;
  border: 2px solid hsl(var(--foreground) / 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-hero-outline:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--primary) / 0.5);
}

/* Navigation Button */
.btn-nav {
  background-color: transparent;
  color: hsl(var(--foreground));
  height: auto;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.btn-nav:hover {
  color: hsl(var(--primary));
}

/* Outline Button */
.btn-outline {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  height: 2.5rem;
  padding: 0.5rem 1.25rem;
}

.btn-outline:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--primary) / 0.3);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background-color: hsl(var(--secondary));
}

/* Link Button */
.btn-link {
  background-color: transparent;
  color: hsl(var(--primary));
  text-underline-offset: 4px;
  height: auto;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Button Sizes */
.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.625rem;
  border-radius: calc(var(--radius) - 2px);
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 0.75rem;
  border-radius: calc(var(--radius) + 4px);
}

.btn-xl {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) + 4px);
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
}

.btn-icon-sm {
  height: 2rem;
  width: 2rem;
  padding: 0;
}

.btn-icon-lg {
  height: 3rem;
  width: 3rem;
  padding: 0;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.textarea {
  display: flex;
  min-height: 5rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* ==========================================================================
   Accordion Styles
   ========================================================================== */

.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accordion-trigger:hover {
  text-decoration: underline;
}

.accordion-trigger[data-state="open"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-content {
  overflow: hidden;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.accordion-content[data-state="closed"] {
  height: 0;
  padding-bottom: 0;
}

.accordion-content[data-state="open"] {
  padding-bottom: 1rem;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Navigation Item - Glass Background Effect */
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: 9999px;
  background: hsl(var(--background) / 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.3);
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: hsl(var(--background) / 0.6);
}

.nav-item.active {
  color: hsl(var(--primary));
  background: hsl(var(--background) / 0.6);
}

/* Legacy nav-link for compatibility */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: 9999px;
  background: hsl(var(--background) / 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.3);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: hsl(var(--background) / 0.6);
}

.nav-link.active {
  color: hsl(var(--primary));
  background: hsl(var(--background) / 0.6);
}

/* Meta Navigation - Top Right Corner Bar */
.meta-nav {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.meta-nav-inner {
  width: 30%;
  height: 18px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-bottom-left-radius: 9999px;
  transition: all 0.3s ease;
}

.meta-nav-inner.hidden {
  opacity: 0;
  transform: translateY(-100%);
  height: 0;
}

.meta-nav-link {
  font-size: 0.625rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.meta-nav-link:hover {
  opacity: 0.8;
}

.meta-nav-link.current {
  color: #a0a0a0;
}

/* Dropdown Menu - Rounded 2xl with proper shadow */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 18rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 10px 40px -10px rgb(0 0 0 / 0.15);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
  overflow: hidden;
}

.dropdown-trigger:hover .dropdown-menu,
.dropdown-trigger.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: calc(var(--radius) + 4px);
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: hsl(var(--secondary));
}

.dropdown-item:hover .dropdown-item-title {
  color: hsl(var(--primary));
}

.dropdown-item-title {
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s ease;
}

.dropdown-item-description {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background-color: hsl(var(--background));
  box-shadow: -10px 0 15px -3px rgb(0 0 0 / 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--background)) 0%, hsl(var(--background) / 0.8) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
}

/* Dark Background Section */
.dark-background-systeme {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

.dark-background-systeme .section-subtitle,
.dark-background-systeme .text-muted-foreground {
  color: hsl(var(--background) / 0.7);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 4rem 0 2rem;
}

.footer a {
  color: hsl(var(--background) / 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: hsl(var(--primary));
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-link {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--background) / 0.1);
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

/* Fade In */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Up */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger Children */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }

/* Scale In */
.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Left */
.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Right */
.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Intersection Observer Animation Triggers */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text Colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-background { color: hsl(var(--background)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }

/* Background Colors */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }

/* Border Colors */
.border-border { border-color: hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }

/* Rounded */
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   Prose Styles (For Article Content)
   ========================================================================== */

.prose {
  color: hsl(var(--foreground));
  max-width: 65ch;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h2 {
  color: hsl(var(--foreground));
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.prose h3 {
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.prose ul {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  list-style-type: disc;
}

.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: hsl(var(--primary) / 0.8);
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: hsl(var(--foreground));
  border-left-width: 0.25rem;
  border-left-color: hsl(var(--border));
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

/* WordPress Alignment Classes */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.alignfull {
  max-width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* WordPress Image Captions */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
  text-align: center;
}

/* WordPress Gallery */
.gallery {
  display: grid;
  grid-gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* WordPress Admin Bar Adjustment */
body.admin-bar .nav-fixed {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .nav-fixed {
    top: 46px;
  }
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

@media (min-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid { display: grid; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
}
