/* JuniorDraft Version 1 - Classic Academic Website Stylesheet */
@import url('../../shared/css/shared-tokens.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--jd-font-academic);
  background-color: #f8fafc;
  color: var(--jd-on-surface);
  line-height: 1.6;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video {
  max-width: 100%;
}

.jd-hero-inner > *,
.jd-path-split-grid > *,
.jd-spotlight-grid > *,
.jd-journals-grid > *,
.jd-articles-grid > *,
.jd-challenges-grid > *,
.jd-mentors-grid > *,
.jd-teamup-grid > *,
.jd-pricing-grid > *,
.jd-footer-inner > * {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* 1. TOP UTILITY BAR */
.jd-topbar {
  background-color: #001149;
  color: #ffffff;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-family: var(--jd-font-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jd-topbar-left, .jd-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.jd-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.jd-topbar-item:hover {
  color: #ffffff;
}

.jd-topbar-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--jd-primary-container);
}

.jd-credits-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--jd-primary-container);
  color: #6ffbbe;
  padding: 3px 12px;
  border-radius: var(--jd-radius-full);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.jd-credits-pill:hover {
  transform: scale(1.03);
}

.jd-lang-dropdown {
  position: relative;
  display: inline-block;
}

.jd-lang-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--jd-radius-full);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jd-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 8px;
  min-width: 160px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.jd-lang-menu.show {
  display: flex;
}

.jd-lang-option {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.jd-lang-option:hover {
  background: #f1f5f9;
}

/* 2. MAIN HEADER & NAVIGATION */
.jd-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 900;
}

.jd-header-inner {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.jd-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.jd-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.jd-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--jd-font-display);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.jd-nav-link {
  color: #334155;
  padding: 6px 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.jd-nav-link:hover, .jd-nav-link.active {
  color: var(--jd-primary);
}

.jd-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 6px;
  right: 6px;
  height: 3.5px;
  background-color: var(--jd-primary);
  border-radius: 2px;
}

.jd-nav-badge {
  display: none !important;
}

/* Navigation Dropdown Menu */
.jd-nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.jd-nav-item-dropdown:hover .jd-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.jd-nav-submenu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: -10px;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 17, 73, 0.12);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.jd-nav-submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.jd-nav-submenu-item:hover {
  background: #f1f5f9;
  color: var(--jd-primary);
}

.jd-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.jd-header-actions .jd-btn-primary {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  box-sizing: border-box !important;
}

.jd-btn-primary {
  background: linear-gradient(135deg, var(--jd-primary) 0%, #059669 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--jd-radius-full);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 108, 73, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.jd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 108, 73, 0.35);
}

.jd-btn-outline {
  border: 1.5px solid var(--jd-secondary);
  color: var(--jd-secondary);
  padding: 8px 18px;
  border-radius: var(--jd-radius-full);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.jd-btn-outline:hover {
  background: var(--jd-secondary);
  color: #ffffff;
}

/* 3. HERO SECTION (5-Slide Interactive Box + Mission Preview) */
.jd-lang-dropdown {
  display: none !important;
}

.jd-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 18px 32px 14px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.jd-hero-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

/* 5-Slide Interactive Hero Box (Sleek Compact Full-Width Wide Banner) */
.jd-hero-slider-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-top: 5px solid var(--jd-primary);
  box-shadow: 0 12px 32px rgba(0, 17, 73, 0.08);
  padding: 22px 52px 36px 52px;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jd-hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease-in-out;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.jd-hero-bg-layer.active {
  opacity: 1;
}

.jd-hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(244, 251, 247, 0.91) 48%,
    rgba(255, 255, 255, 0.30) 78%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.jd-hero-slides-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 780px;
  margin-bottom: 12px;
}

.jd-hero-bottom-block {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(203, 213, 225, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.jd-hero-slide-item {
  display: none;
  width: 100%;
  animation: jdHeroSlideFade 0.4s ease forwards;
}

.jd-hero-slide-item.active {
  display: block;
}

@keyframes jdHeroSlideFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jd-hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.jd-hero-feature-chip {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 17, 73, 0.04);
}

.jd-hero-feature-chip .material-symbols-outlined {
  font-size: 18px;
  color: var(--jd-primary);
  flex-shrink: 0;
}

.jd-hero-feature-chip strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #001149;
  line-height: 1.2;
}

.jd-hero-feature-chip span {
  display: block;
  font-size: 10.5px;
  color: #475569;
  line-height: 1.25;
}

.jd-hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 17, 73, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
}

.jd-hero-slider-arrow:hover {
  background: var(--jd-primary);
  transform: translateY(-50%) scale(1.08);
}

.jd-hero-slider-arrow.prev {
  left: 8px;
}

.jd-hero-slider-arrow.next {
  right: 8px;
}

.jd-hero-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 17, 73, 0.08);
}

.jd-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #001149;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.jd-hero-dot:hover {
  border-color: var(--jd-primary);
  transform: scale(1.15);
}

.jd-hero-dot.active {
  background: var(--jd-primary);
  border-color: var(--jd-primary);
  width: 20px;
  border-radius: 9999px;
}

.jd-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f7f0;
  color: var(--jd-primary);
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: var(--jd-radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.jd-hero-title {
  font-family: var(--jd-font-display);
  font-size: 36px;
  font-weight: 800;
  color: #001149;
  line-height: 1.12;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.jd-hero-title span {
  color: var(--jd-primary);
}

.jd-hero-subtitle {
  font-size: 14.5px;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  text-align: justify;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--jd-primary);
}

.jd-hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.jd-hero-mentors-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 0;
  border-top: none;
}

.jd-avatar-stack {
  display: flex;
}

.jd-avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  object-fit: cover;
}

.jd-avatar-stack img:first-child {
  margin-left: 0;
}

.jd-hero-card-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jd-mission-hero-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 12px 32px rgba(0, 17, 73, 0.07);
  border: 1.5px solid #cbd5e1;
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jd-mission-hero-card::before {
  display: none;
}

.jd-mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.jd-mission-img {
  width: 100%;
  height: 116px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* 4. AGE BRACKET PATH SELECTOR + BESIDE ACTIVE MISSION WINDOW */
.jd-path-section {
  max-width: 1340px;
  margin: 16px auto 40px;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}

.jd-path-split-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.jd-path-container {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 12px 32px rgba(0, 17, 73, 0.07);
  border: 1.5px solid #cbd5e1;
  border-top: 5px solid var(--jd-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.jd-path-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.jd-path-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.jd-path-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.jd-path-card:hover {
  border-color: var(--jd-primary-container);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.jd-path-card.active {
  border-color: var(--jd-primary);
  background: #f0fdf4;
}

.jd-path-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

/* 5. SPOTLIGHT ZONE */
.jd-spotlight-section {
  max-width: 1300px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

.jd-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.jd-section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--jd-primary);
  background: #e6f7f0;
  padding: 4px 12px;
  border-radius: var(--jd-radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

.jd-section-title {
  font-family: var(--jd-font-display);
  font-size: 36px;
  font-weight: 800;
  color: #001149;
  margin-bottom: 12px;
}

.jd-section-desc {
  font-size: 16px;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

.jd-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.jd-spotlight-card {
  background: #ffffff;
  border-radius: var(--jd-radius-lg);
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.jd-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.jd-spotlight-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.jd-spotlight-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jd-primary-container);
}

/* 6. ALL 10 JOURNALS SHOWCASE */
.jd-journals-section {
  background: #ffffff;
  padding: 64px 32px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 64px;
}

.jd-journals-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.jd-journals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.jd-journal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.jd-journal-card:hover {
  background: #ffffff;
  border-color: var(--jd-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.jd-journal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}

.jd-journal-title {
  font-family: var(--jd-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.jd-journal-cat {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.jd-journal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  font-size: 11px;
  color: #94a3b8;
}

/* 7. PUBLISHED ARTICLES FEED */
.jd-articles-section {
  max-width: 1300px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

.jd-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.jd-article-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  cursor: pointer;
}

.jd-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.jd-article-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.jd-article-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jd-article-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--jd-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.jd-article-title {
  font-family: var(--jd-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jd-article-author {
  font-size: 13px;
  color: #64748b;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
}

/* 8. 21 SAFE DAILY CHALLENGES & SAFETY SHIELD */
.jd-challenges-section {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
  padding: 64px 32px;
  margin-bottom: 64px;
}

.jd-challenges-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.jd-safety-shield-box {
  background: #ffffff;
  border-left: 6px solid var(--jd-primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0, 108, 73, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.jd-challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.jd-challenge-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #dcfce7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

/* 9. ANCIENT SAGES & CHARACTER MENTORS */
.jd-mentors-section {
  max-width: 1300px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

.jd-mentors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.jd-mentor-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.2s;
}

.jd-mentor-card:hover {
  transform: translateY(-4px);
}

.jd-mentor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 3px solid var(--jd-primary-fixed);
}

/* 10. TEAM UP COLLABORATION (from juniordraft.com) */
.jd-teamup-section {
  background: #ffffff;
  padding: 64px 32px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 64px;
}

.jd-teamup-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.jd-teamup-card {
  border: 1.5px dashed #cbd5e1;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.jd-teamup-card:hover {
  border-color: var(--jd-secondary);
  background: #f8fafc;
}

/* 11. PRICING & SUBSCRIPTION SECTION */
.jd-pricing-section {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

.jd-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.jd-pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
}

.jd-pricing-card.hero {
  border: 2px solid var(--jd-secondary);
  box-shadow: 0 10px 30px rgba(75, 65, 225, 0.15);
}

.jd-pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--jd-secondary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--jd-radius-full);
}

.jd-pricing-card button {
  white-space: normal !important;
  text-align: center;
  min-height: 44px;
  line-height: 1.3;
  padding: 10px 16px;
  box-sizing: border-box;
}

/* 12. FOOTER */
.jd-footer {
  background-color: #001149;
  color: #94a3b8;
  padding: 64px 32px 32px;
  font-size: 14px;
}

.jd-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.jd-footer-brand h3 {
  color: #ffffff;
  font-family: var(--jd-font-display);
  font-size: 24px;
  margin-bottom: 12px;
}

.jd-footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.jd-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jd-footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* 13. MODALS (Create Studio, Article Reader, Explorer Vault) */
.jd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  padding: 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.jd-modal-overlay.open,
.jd-modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.jd-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin: auto 0;
  scrollbar-width: thin;
  scrollbar-color: #006c49 #f1f5f9;
}

.jd-modal-card::-webkit-scrollbar {
  width: 7px;
}

.jd-modal-card::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.jd-modal-card::-webkit-scrollbar-thumb {
  background: #006c49;
  border-radius: 8px;
}

.jd-modal-card::-webkit-scrollbar-thumb:hover {
  background: #005236;
}

.jd-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
  transition: all 0.2s;
  z-index: 10;
  border: none;
  cursor: pointer;
}

.jd-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Article Modal Download & Share Styles */
.jd-article-download-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.jd-download-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #001149;
  color: #ffffff !important;
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 17, 73, 0.18);
}

.jd-download-article-btn:hover {
  background: #002275;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 17, 73, 0.25);
  color: #ffffff !important;
}

.jd-download-article-btn svg {
  width: 17px;
  height: 17px;
  fill: #ff4d4f;
  transition: transform 0.2s ease;
}

.jd-download-article-btn:hover svg {
  transform: scale(1.15);
}

.jd-article-share-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.jd-social-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jd-social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.jd-social-icon-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.jd-social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.jd-social-icon-btn.fb { background: #1877f2; }
.jd-social-icon-btn.tw { background: #000000; }
.jd-social-icon-btn.in { background: #0a66c2; }
.jd-social-icon-btn.wa { background: #25d366; }
.jd-social-icon-btn.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.jd-social-icon-btn.yt { background: #ff0000; }
.jd-social-icon-btn.copy { background: #f1f5f9; color: #334155; width: auto; padding: 0 14px; border-radius: 9999px; gap: 6px; font-size: 12.5px; font-weight: 600; border: 1px solid #cbd5e1; }
.jd-social-icon-btn.copy:hover { background: #e2e8f0; color: #0f172a; }

/* Student Authentication Pill & Header Widget */
.jd-auth-slot {
  display: inline-flex;
  align-items: center;
}

.jd-auth-btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1.5px solid #006c49;
  background: transparent;
  color: #006c49;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.jd-auth-btn-signin:hover {
  background: #e6f7f0;
  transform: translateY(-1px);
}

.jd-auth-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 6px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jd-auth-user-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.jd-auth-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #006c49;
}

.jd-auth-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal Auth Styles */
.jd-auth-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: -24px -24px 20px -24px;
}

.jd-auth-tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  font-family: inherit;
}

.jd-auth-tab-btn.active {
  color: #006c49;
  background: #ffffff;
  border-bottom-color: #006c49;
}

.jd-social-auth-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s;
  font-family: inherit;
}

.jd-social-auth-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.jd-social-auth-btn.google:hover { border-color: #ea4335; color: #ea4335; }
.jd-social-auth-btn.linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.jd-social-auth-btn.facebook:hover { border-color: #1877f2; color: #1877f2; }
.jd-social-auth-btn.instagram:hover { border-color: #e4405f; color: #e4405f; }

@media (max-width: 850px) {
  .jd-contact-editorial-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .jd-contact-form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   Discovery Playground Components
   ========================================== */

.jd-playground-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #001149 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #4edea3;
  box-shadow: 0 0 10px rgba(78, 222, 163, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jd-playground-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(78, 222, 163, 0.5);
  background: linear-gradient(135deg, #002277 0%, #312e81 100%);
}

.jd-playground-page .jd-playground-nav-btn {
  display: none !important;
}

.jd-playground-hero {
  background: radial-gradient(circle at 15% 50%, rgba(0, 108, 73, 0.12), transparent 45%),
              linear-gradient(135deg, #001149 0%, #001966 60%, #172554 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: 0 12px 36px rgba(0, 17, 73, 0.18);
  position: relative;
  overflow: hidden;
}

.jd-playground-cockpit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.jd-playground-avatar-wrap {
  position: relative;
}

.jd-playground-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #4edea3;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.jd-playground-badge-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #4edea3;
  color: #001149;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.jd-playground-stats-grid {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.jd-playground-stat-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 130px;
}

.jd-playground-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #93c5fd;
  margin-bottom: 2px;
}

.jd-playground-stat-value {
  font-family: var(--jd-font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.jd-xp-bar-container {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  height: 10px;
  width: 100%;
  overflow: hidden;
  margin-top: 6px;
}

.jd-xp-bar-fill {
  background: linear-gradient(90deg, #4edea3, #00d984);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.jd-playground-tab-bar {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.jd-playground-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jd-playground-tab:hover {
  color: #001149;
}

.jd-playground-tab.active {
  color: #006c49;
  border-bottom-color: #006c49;
}

.jd-playground-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.jd-playground-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.jd-sage-chat-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 480px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.jd-sage-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jd-sage-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.jd-sage-bubble.sage {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 4px;
  border-left: 3px solid #006c49;
}

.jd-sage-bubble.student {
  align-self: flex-end;
  background: #001149;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.jd-sage-input-wrap {
  display: flex;
  padding: 14px;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.jd-sage-input-wrap input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .jd-playground-cockpit {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .jd-playground-avatar-wrap {
    margin: 0 auto;
  }
  .jd-playground-stats-grid {
    justify-content: center;
  }
}

/* ==============================================
   Floating Quick Action Buttons
   ============================================== */
.jd-floating-submit-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(135deg, var(--jd-primary) 0%, #059669 100%);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--jd-radius-full);
  font-family: var(--jd-font-display);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 108, 73, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.jd-floating-submit-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 108, 73, 0.55);
  background: linear-gradient(135deg, #00875a 0%, #047857 100%);
}

/* ==============================================
   Disclaimer & Consent + Student Guidelines Styles
   ============================================== */
.jd-disclaimer-consent-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.jd-disclaimer-consent-card:hover {
  border-color: #94a3b8;
}

.jd-disclaimer-consent-card input[type="checkbox"],
.jd-disclaimer-consent-card input[type="radio"] {
  accent-color: var(--jd-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.jd-student-guidelines-banner {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jd-student-guidelines-banner:hover {
  box-shadow: 0 8px 24px rgba(0, 17, 73, 0.06);
}

/* Responsive Grids for About Us & Guidelines */
.jd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.jd-commitment-founder-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 28px;
  margin-bottom: 64px;
  align-items: stretch;
}

.jd-tips-submission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 22px;
}

@media (max-width: 850px) {
  .jd-pillars-grid {
    grid-template-columns: 1fr;
  }
  .jd-commitment-founder-grid {
    grid-template-columns: 1fr;
  }
  .jd-tips-submission-grid {
    grid-template-columns: 1fr;
  }
}



/* Discovery Playground Vertical Sidebar Nav */
.jd-playground-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .jd-playground-layout {
    grid-template-columns: 1fr;
  }
}
.jd-playground-vtab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--jd-font-sans);
}
.jd-playground-vtab:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.jd-playground-vtab.active {
  background: #e6f7f0;
  border-color: #4edea3;
  box-shadow: 0 2px 8px rgba(0, 108, 73, 0.08);
}
.jd-playground-vtab.active strong {
  color: #006c49 !important;
}
