/* ==========================================================================
   GradGuru Global Dark Theme - Unified Aesthetic System
   Palette: Deep Obsidian (var(--background)), Surface (var(--background-secondary)), Cards (var(--card))
   Accents: Rose (#e11d48), Indigo (var(--blue)), Tech Blue (#fbbf24 / #fbbf24)
   ========================================================================== */

:root {
  /* BACKGROUNDS */
  --background: #191a1f;
  --background-secondary: #1e1f25;
  --card: #22232a;
  --card-hover: #292a32;

  /* BORDERS */
  --border: #34353e;
  --border-light: #41424d;

  /* TEXT */
  --foreground: #f5f5f7;
  --foreground-secondary: #b6b6c0;
  --foreground-muted: #858690;

  /* BRAND GRADIENT */
  --red: #d94a43;
  --pink: #c34b75;
  --purple: #9a55b3;
  --blue: #fbbf24;

  /* STATUS / ACCENTS */
  --success: #4caf7d;
  --warning: #dfa64a;
  --error: #d94a43;
}

/* Global Dark Base */
html.dark,
html.a,
html {
  background-color: var(--background) !important;
  color: var(--foreground);
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--background) !important;
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--card-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #41424d;
}

/* Universal Form Controls - iOS Compliance (min 16px to prevent auto-zoom, min 44px touch) */
input,
select,
textarea {
  font-size: 16px !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  background-color: var(--card) !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  outline: none;
  min-height: 44px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--foreground-muted) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25) !important;
}

/* Sticky Header Dark Glassmorphism */
header.header.sticky-scrolled,
header.sticky,
.header.active,
header.header.scrolled,
header.header.bg-white,
header.bg-white,
html.dark header.header.bg-white,
html.dark header.bg-white,
.dark header.bg-white {
  background-color: #191a1ff0 !important;
  background: #191a1ff0 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7) !important;
}

header.bg-white .menu-scroll,
html.dark header.bg-white .menu-scroll,
.dark header.bg-white .menu-scroll,
header.bg-white nav a,
html.dark header.bg-white nav a,
.dark header.bg-white nav a {
  color: var(--foreground) !important;
}

header.bg-white .menu-scroll:hover,
html.dark header.bg-white .menu-scroll:hover,
.dark header.bg-white .menu-scroll:hover {
  color: var(--blue) !important;
}

header.bg-white .menu-scroll.active,
html.dark header.bg-white .menu-scroll.active,
.dark header.bg-white .menu-scroll.active {
  color: var(--blue) !important;
}

/* Watermark Section Titles - Refined Dark Mode Styling (Tech Outline + Soft Accent) */
.title,
.dark .title,
html.dark .title,
:is(.a .title),
span.title,
div.title {
  position: absolute !important;
  left: 50% !important;
  top: -14px !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.16) 0%,
    rgba(99, 102, 241, 0) 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.06) !important;
  letter-spacing: 0.05em !important;
  font-weight: 800 !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 0 !important;
}

/* Global Card Dark Surface */
.dark-card,
.card-dark {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  color: var(--foreground);
}

/* Course Mega Dropdown in Header */
.course-dropdown-menu {
  background-color: #1e1f25f5 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8) !important;
}

.dropdown-cat-heading {
  color: var(--blue) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.dropdown-course-item {
  color: var(--foreground-secondary) !important;
  transition: all 0.15s ease;
}

@media (min-width: 640px) {
  .dropdown-course-item:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    transform: translateX(3px);
  }
}

.course-dropdown-footer {
  background-color: var(--card) !important;
  border-top: 1px solid var(--border) !important;
}

.course-dropdown-footer-text {
  color: var(--foreground-secondary) !important;
}

.course-dropdown-footer-link {
  color: var(--blue) !important;
}

@media (min-width: 640px) {
  .course-dropdown-footer-link:hover {
    color: var(--purple) !important;
  }
}

/* Mobile Drawer Menu */
#mobile-menu,
.mobile-nav-drawer {
  background-color: var(--background-secondary) !important;
  border-left: 1px solid var(--border) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8) !important;
}

#mobile-menu a,
.mobile-nav-drawer a {
  color: var(--foreground) !important;
}

@media (min-width: 640px) {
  #mobile-menu a:hover,
  .mobile-nav-drawer a:hover {
    color: var(--blue) !important;
  }
}

/* Navigation links */
.navbar a.menu-scroll {
  color: var(--foreground-secondary) !important;
  transition: color 0.15s ease;
}

@media (min-width: 640px) {
  .navbar a.menu-scroll:hover {
    color: #ffffff !important;
  }
}

.navbar a.menu-scroll.active {
  color: var(--blue) !important;
}

/* Ambient glow utility */
.ambient-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 650px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(225, 29, 72, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Improve Logo Visibility in Dark Mode */
html.dark img[alt="logo"],
.dark img[alt="logo"] {
  /* Removed invert since it's just the icon now, added subtle glow */
  filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.15)) brightness(1.1) !important;
  transition: filter 0.3s ease;
}

html.dark .logo-container img,
.dark .logo-container img {
  filter: brightness(2);
  opacity: 0.9;
}

html.dark .logo-text-brand,
.dark .logo-text-brand {
  color: var(--foreground) !important;
}

/* Features section icon hover: navy bg + yellow icon */
#features .ej:hover .gj,
#features .ej:hover .kk,
:is(.a #features .ej:hover .kk),
:is(.a #features .ej:hover .gj) {
  background-color: #001062 !important;
  --tw-bg-opacity: 1;
}

#features .ej:hover .ij,
:is(.a #features .ej:hover .ij) {
  color: #fbbf24 !important;
  --tw-text-opacity: 1;
}

/* ============================================================
   Hero Section - Clean Background Matching Other Sections
   ============================================================ */
#home {
  background-color: var(--background) !important;
  background-image: none !important;
}

/* ============================================================
   Hero Section - Concentric Radial Circles & Central Image
   ============================================================ */
.hero-radial-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 660px;
  height: 560px;
  margin: 0 auto;
  overflow: visible;
}

/* Outer Concentric Circle (Tier 1: 20% Opacity Light Yellow, No Border, No Shadow) */
.hero-radial-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.2);
  border: none;
  box-shadow: none;
  z-index: 1;
  pointer-events: none;
}

/* Inner Concentric Circle (Tier 2: 40% Opacity Light Yellow, No Border, No Shadow) */
.hero-radial-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.4);
  border: none;
  box-shadow: none;
  z-index: 2;
  pointer-events: none;
}

/* Central Image Frame (No rounded mask, no borders, no shadow, overflowing) */
.hero-radial-image-frame {
  position: relative;
  z-index: 3;
  width: auto;
  max-width: 500px;
  height: auto;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-32px);
}

.hero-radial-image-frame img {
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 68%,
    rgba(0, 0, 0, 0.85) 75%,
    rgba(0, 0, 0, 0.25) 82%,
    transparent 88%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 68%,
    rgba(0, 0, 0, 0.85) 75%,
    rgba(0, 0, 0, 0.25) 82%,
    transparent 88%
  );
}

/* Floating Badge (Simplilearn reference style) */
.hero-floating-badge {
  position: absolute;
  right: 15px;
  bottom: 75px;
  z-index: 4;
  background: #22232a;
  border: 1.5px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  padding: 12px 20px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  animation: heroBadgeFloat 4s ease-in-out infinite;
}

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

.hero-floating-badge .badge-stat {
  font-size: 26px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
  font-family: "Outfit", sans-serif;
}

.hero-floating-badge .badge-label {
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f7;
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .hero-radial-container {
    height: 480px;
    max-width: 500px;
    margin-top: 30px;
  }
  .hero-radial-outer {
    width: 500px;
    height: 500px;
  }
  .hero-radial-inner {
    width: 380px;
    height: 380px;
  }
  .hero-radial-image-frame {
    transform: translateY(-20px);
  }
  .hero-radial-image-frame img {
    max-width: 380px;
  }
  .hero-floating-badge {
    right: 10px;
    bottom: 50px;
    padding: 10px 16px;
  }
  .hero-floating-badge .badge-stat {
    font-size: 22px;
  }
  .hero-floating-badge .badge-label {
    font-size: 12px;
  }
}

@media (max-width: 639px) {
  .hero-radial-container {
    height: 360px;
    max-width: 340px;
  }
  .hero-radial-outer {
    width: 340px;
    height: 340px;
  }
  .hero-radial-inner {
    width: 260px;
    height: 260px;
  }
  .hero-radial-image-frame {
    transform: translateY(-15px);
  }
  .hero-radial-image-frame img {
    max-width: 280px;
  }
  .hero-floating-badge {
    right: 0px;
    bottom: 25px;
    padding: 8px 14px;
  }
  .hero-floating-badge .badge-stat {
    font-size: 18px;
  }
  .hero-floating-badge .badge-label {
    font-size: 11px;
  }
}

/* ============================================================
   Our Approach — circular journey (adapt / arrange / colorize)
   ============================================================ */
.approach-section {
  --approach-navy: #001062;
  --approach-navy-deep: #081a7a;
  --approach-yellow: #fbbf24;
  --approach-surface: #22232a;
  --approach-ink: #f5f5f7;
  --approach-muted: #9a9aa8;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2.5rem;
  --space-3xl: clamp(3rem, 6vw, 5rem);

  background: #191a1f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--approach-ink);
}

.approach-inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding-block: var(--space-3xl);
}

.approach-layout {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.approach-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 26rem;
}

.approach-kicker {
  margin: 0;
  color: var(--approach-yellow);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.approach-heading {
  margin: 0;
  color: var(--approach-ink);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.approach-lede {
  margin: 0;
  color: var(--approach-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.approach-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  background: var(--approach-yellow);
  color: #1a1520;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.approach-cta:hover {
  background: #f59e0b;
}

.approach-cta:focus-visible {
  outline: 2px solid var(--approach-yellow);
  outline-offset: 3px;
}

.approach-cta__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.approach-cta__ring {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.approach-cta:hover .approach-cta__ring,
.approach-cta:focus-visible .approach-cta__ring {
  opacity: 1;
}

.approach-cta:hover .approach-cta__ring--outer {
  transition-delay: 0.05s;
}

/* Orbit / steps shared list */
.approach-orbit {
  position: relative;
  width: 100%;
}

.approach-ring {
  display: none;
}

.approach-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: flex-start;
  position: relative;
  padding-bottom: var(--space-xl);
}

.approach-node:last-child {
  padding-bottom: 0;
}

/* Mobile connector line */
.approach-node:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 2.75rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(251, 191, 36, 0.35),
    rgba(255, 255, 255, 0.08)
  );
}

.approach-node__badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--approach-surface);
  color: var(--approach-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.approach-node__title {
  margin: 0;
  color: var(--approach-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.approach-node__desc {
  margin: var(--space-xs) 0 0;
  color: var(--approach-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.approach-node:hover .approach-node__badge,
.approach-node:focus-within .approach-node__badge {
  background: var(--approach-navy);
  border-color: var(--approach-navy-deep);
  color: var(--approach-yellow);
  box-shadow: 0 0 0 4px rgba(0, 16, 98, 0.28);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .approach-layout {
    gap: var(--space-2xl);
  }

  .approach-intro {
    max-width: 36rem;
  }

  .approach-node {
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .approach-layout {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }

  .approach-intro {
    padding-right: var(--space-lg);
  }

  .approach-cta {
    margin-top: var(--space-lg);
  }

  .approach-orbit {
    width: min(100%, 34rem);
    aspect-ratio: 1;
    margin-inline: auto;
    justify-self: end;
  }

  .approach-ring {
    display: block;
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    pointer-events: none;
  }

  .approach-ring__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.25;
    stroke-dasharray: 14 12;
  }

  .approach-ring__arrow {
    fill: rgba(251, 191, 36, 0.85);
  }

  .approach-nodes {
    position: absolute;
    inset: 0;
  }

  .approach-node {
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    gap: 0;
  }

  .approach-node:not(:last-child)::before {
    display: none;
  }

  .approach-node__badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 3rem;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
  }

  .approach-node__copy {
    position: absolute;
    width: 10.75rem;
    top: 0;
  }

  /* Badge anchors on the ring; copy sits outside */
  .approach-node--1 {
    top: 22%;
    left: 22%;
  }

  .approach-node--1 .approach-node__copy {
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
  }

  .approach-node--2 {
    top: 22%;
    left: 78%;
  }

  .approach-node--2 .approach-node__copy {
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
  }

  .approach-node--3 {
    top: 78%;
    left: 78%;
  }

  .approach-node--3 .approach-node__copy {
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
  }

  .approach-node--4 {
    top: 78%;
    left: 22%;
  }

  .approach-node--4 .approach-node__copy {
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
  }

  .approach-node__title {
    font-size: 0.875rem;
  }

  .approach-node__desc {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

@media (min-width: 1200px) {
  .approach-orbit {
    width: min(100%, 38rem);
  }

  .approach-node__copy {
    width: 11.5rem;
  }

  .approach-node--1 {
    top: 20%;
    left: 20%;
  }

  .approach-node--2 {
    top: 20%;
    left: 80%;
  }

  .approach-node--3 {
    top: 80%;
    left: 80%;
  }

  .approach-node--4 {
    top: 80%;
    left: 20%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approach-node__badge,
  .approach-cta,
  .approach-cta__ring {
    transition: none;
  }
}

/* ==========================================================================
   Header Action Buttons (Sign In & Get Started)
   ========================================================================== */
.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

@media (min-width: 992px) {
  .header-actions {
    display: flex;
  }
}

.header-btn-without-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: transparent;
  color: #f1f5f9;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

@media (min-width: 640px) {
  .header-btn-without-fill:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
  }
}

.header-btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  background-color: #fbbf24;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

@media (min-width: 640px) {
  .header-btn-filled:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #001062;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
  }
}

/* Mobile Drawer Action Buttons */
.mobile-header-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header-actions .header-btn-without-fill,
.mobile-header-actions .header-btn-filled {
  width: 100%;
}

