:root {
  --primary-rgb: 59, 130, 246; /* Blue 500 */
  --secondary-rgb: 16, 185, 129; /* Green 500 */
  --primary: rgb(var(--primary-rgb));
  --secondary: rgb(var(--secondary-rgb));
  --bg-subtle: #f8fafc;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --card-border: rgba(226, 232, 240, 1); /* Made border more visible */
  --glass-bg: rgba(255, 255, 255, 0.95); /* Even less transparent */
}

/* Restore Gradient Title - High specificity to beat global typography */
.gradient-title {
  background: linear-gradient(to right, #3b82f6, #10b981) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block;
}

/* Ensure headings inherit hover colors correctly with high specificity */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.dark h1 a, .dark h2 a, .dark h3 a, .dark h4 a, .dark h5 a, .dark h6 a {
  color: inherit !important;
  transition: color 0.3s ease;
}

.dark {
  --bg-subtle: #0f172a;
  --card-border: rgba(30, 41, 59, 1);
  --glass-bg: rgba(30, 41, 59, 0.8);
}

/* Global Section Background */
.page-wrapper {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Emerald Top-Right Glow */
.page-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 800px;
  height: 800px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 9999px;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

/* Blue Bottom-Left Glow */
.page-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 9999px;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* Premium Header/Badge */
.badge-premium {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  display: inline-flex;
  margin-bottom: 0.75rem;
}

/* Hero Section V2 */
.hero-v2 {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.hero-image-v2 {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 1.5rem;
}

.hero-image-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-v2:hover .hero-image-v2 img {
  transform: scale(1.05) rotate(-1deg);
}

/* Sidebar V2 */
.sidebar-v2 {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 2rem;
  height: 100%;
}

.sidebar-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-list-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #1e293b; /* Dark slate for light mode */
  font-weight: 500;
  transition: all 0.3s ease;
}

.dark .sidebar-list-item {
  color: #94a3b8; /* Muted for dark mode */
}

.sidebar-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transition: all 0.3s ease;
}

.sidebar-list-item:hover {
  color: var(--primary);
  padding-left: 1.75rem;
}

.sidebar-list-item:hover::before {
  width: 12px;
}

/* News Section V2 */
.news-card-v2 {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  overflow: hidden;
  transition: all 0.4s ease;
}

.news-card-v2:hover {
  border-color: var(--secondary);
  box-shadow: 0 20px 25px -5px rgba(var(--secondary-rgb), 0.1);
}

.news-thumb-v2 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-thumb-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card-v2:hover .news-thumb-v2 img {
  transform: scale(1.08);
}

/* Quick Picks V2 */
.guide-card-v2 {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1rem;
  transition: all 0.4s ease;
}

.guide-card-v2:hover {
  transform: translateY(-6px);
  background: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.dark .guide-card-v2:hover {
  background: #1e293b;
}

.guide-img-container {
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Animation utilities */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
