/* ==========================================================================
   DMDG LIVE - Official Master Portal Hub
   Layout: Design Mockup 1 (Papercut Wave Backdrop) + Mockup 3 (3-Column Dashboard)
   Footer: "DMDG(당목담글) 스튜디오 자율 에이전트 엔지니어링 본부" Only
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&family=Nanum+Myeongjo:wght@700;800&display=swap');

:root {
  /* DMDG Signature Palette from Business Card & Mockup 1 */
  --dmdg-teal: #00A896;
  --dmdg-teal-dark: #028090;
  --dmdg-emerald: #02C39A;
  --dmdg-amber: #F4A261;
  --dmdg-orange: #F77F00;
  --dmdg-orange-light: #FCBF49;
  --dmdg-navy: #0B1B3D;
  --dmdg-navy-deep: #070D1E;
  --dmdg-crimson: #E63946;

  /* Neutrals */
  --bg-page: #FBF9F5;
  --bg-card: #FFFFFF;
  --bg-panel: rgba(243, 245, 248, 0.85);
  --border-light: rgba(11, 27, 61, 0.08);
  --border-focus: rgba(0, 168, 150, 0.4);

  --text-main: #0F172A;
  --text-sub: #334155;
  --text-muted: #64748B;

  --shadow-sm: 0 2px 6px rgba(11, 27, 61, 0.04);
  --shadow-md: 0 6px 18px rgba(11, 27, 61, 0.07);
  --shadow-lg: 0 16px 36px rgba(11, 27, 61, 0.1);
  --shadow-wave: 0 10px 30px rgba(0, 168, 150, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Nanum Myeongjo', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Mockup 1 Signature Papercut Wave Frames (Top, Sides, Bottom)
   ========================================================================== */
.wave-backdrop-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-backdrop-top svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 6px 12px rgba(0, 168, 150, 0.15));
}

.wave-backdrop-side-left {
  position: absolute;
  top: 180px;
  left: 0;
  width: 120px;
  height: 600px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.wave-backdrop-side-right {
  position: absolute;
  top: 220px;
  right: 0;
  width: 130px;
  height: 650px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ==========================================================================
   Top Header (Mockup 1 & 3 Fusion)
   ========================================================================== */
.top-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-emblem-small {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
  transition: transform 0.3s ease;
}

.header-brand:hover .brand-emblem-small {
  transform: rotate(6deg) scale(1.08);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(11, 27, 61, 0.4);
  letter-spacing: -0.02em;
}

.brand-sub-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Search Box in Header (Mockup 3 Style) */
.header-search {
  position: relative;
  width: 320px;
}

.header-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.header-search input:focus {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.25);
}

.header-search span {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Quick Nav Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-btn {
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #0B1B3D !important; /* 선명한 딥 네이비 글씨 (모바일 흰색 배경/주황 배경 모두 또렷하게 보임) */
  background: #FFFFFF !important; /* 솔리드 화이트 알약 배경 */
  border: 1.5px solid rgba(11, 27, 61, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  text-decoration: none !important;
}

.nav-link-btn span {
  color: #0B1B3D !important;
  font-weight: 800 !important;
}

.nav-link-btn:hover {
  background: #0B1B3D !important;
  color: #FFFFFF !important;
  border-color: #0B1B3D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 27, 61, 0.25) !important;
}

.nav-link-btn:hover span {
  color: #FFFFFF !important;
}

.nav-link-btn.highlight {
  background: linear-gradient(135deg, #F77F00, #E85D04) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #F77F00 !important;
  box-shadow: 0 4px 12px rgba(247, 127, 0, 0.35) !important;
}

.nav-link-btn.highlight span {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.nav-link-btn.highlight:hover {
  background: #0B1B3D !important;
  border-color: #0B1B3D !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   Hero Centerpiece (Mockup 1 Identity: Large Emblem & Bold Slogan)
   ========================================================================== */
.hero-centerpiece {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 1rem auto 2.5rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: left;
}

.hero-emblem-large {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 168, 150, 0.22), 0 0 24px rgba(247, 127, 0, 0.12);
  border: 3px solid rgba(0, 168, 150, 0.25);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-emblem-large:hover {
  transform: rotate(5deg) scale(1.05);
}

.hero-emblem-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
}

.hero-slogan-main {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 0.5rem;
}

.hero-slogan-en {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dmdg-orange);
  margin-bottom: 0.5rem;
}

.hero-slogan-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Mockup 3 Content Grid: 3 Main Column Panels
   [LIVE WEB APPS] | [INTERACTIVE SIMULATORS] | [WIKIBOOKS]
   ========================================================================== */
.main-dashboard {
  position: relative;
  z-index: 5;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  width: 100%;
  flex: 1;
}

.panels-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Common Dashboard Column Panel */
.dash-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(11, 27, 61, 0.06);
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: uppercase;
}

.panel-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--dmdg-teal);
}

/* ==========================================================================
   Column 1: LIVE WEB APPS Cards
   ========================================================================== */
.app-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(0, 168, 150, 0.1);
  border: 1px solid rgba(0, 168, 150, 0.2);
}

.app-title-group h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.app-title-group span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-tag.live {
  background: #E63946;
  color: #FFFFFF;
}

.badge-tag.pwa {
  background: var(--dmdg-teal);
  color: #FFFFFF;
}

.badge-tag.beta {
  background: var(--dmdg-orange);
  color: #FFFFFF;
}

.badge-tag.new-star {
  background: linear-gradient(135deg, #FFB703, #FB8500);
  color: #0B1B3D !important;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: starPulse 2.2s infinite ease-in-out;
  letter-spacing: -0.01em;
}

.badge-tag.new-emerald {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF !important;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: emeraldPulse 2.2s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 183, 3, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(251, 133, 0, 0.9);
  }
}

@keyframes emeraldPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(5, 150, 105, 0.9);
  }
}

/* 신규 등록 콘텐츠 하이라이트 카드 스타일 */
.is-new-card {
  position: relative !important;
  border: 1.5px solid rgba(251, 133, 0, 0.55) !important;
  box-shadow: 0 4px 18px rgba(251, 133, 0, 0.16) !important;
}

.app-card-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(11, 27, 61, 0.08);
}

.btn-view-app {
  background: linear-gradient(135deg, var(--dmdg-teal), #0077B6);
  color: #FFFFFF;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 168, 150, 0.3);
  transition: all 0.2s ease;
}

.btn-view-app:hover {
  background: linear-gradient(135deg, var(--dmdg-emerald), var(--dmdg-amber));
  box-shadow: 0 4px 10px rgba(247, 127, 0, 0.35);
}

.btn-view-app.gold {
  background: linear-gradient(135deg, var(--dmdg-amber), var(--dmdg-orange));
}

.app-meta-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Column 2: INTERACTIVE SIMULATORS (Mockup 3 Wave Graphic Bars)
   ========================================================================== */
.sim-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sim-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.sim-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-icon-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sim-icon {
  font-size: 1.35rem;
}

.sim-title-wrap h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.sim-title-wrap span {
  font-size: 0.7rem;
  color: var(--dmdg-teal-dark);
  font-weight: 600;
}

/* Visual Wave Graphic Bar (From Mockup 3) */
.sim-wave-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  border: 1px solid rgba(11, 27, 61, 0.05);
}

.wave-bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--dmdg-teal), var(--dmdg-orange));
  animation: wave-bounce 1.4s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 22px; animation-delay: 0.2s; }
.wave-bar:nth-child(3) { height: 16px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 28px; animation-delay: 0.4s; }
.wave-bar:nth-child(5) { height: 18px; animation-delay: 0.25s; }
.wave-bar:nth-child(6) { height: 24px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 14px; animation-delay: 0.15s; }
.wave-bar:nth-child(8) { height: 26px; animation-delay: 0.35s; }

@keyframes wave-bounce {
  0% { transform: scaleY(0.5); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

.sim-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-desc-text {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-sim-action {
  background: rgba(0, 168, 150, 0.1);
  color: var(--dmdg-teal-dark);
  border: 1px solid rgba(0, 168, 150, 0.3);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-sim-action:hover {
  background: var(--dmdg-teal);
  color: #FFFFFF;
}

/* ==========================================================================
   Column 3: WIKIBOOKS (Replacing Movie Scenarios as requested)
   ========================================================================== */
.wikibooks-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.book-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.book-cover-mini {
  width: 58px;
  height: 78px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.4rem;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.book-cover-mini.rea-master {
  background: linear-gradient(135deg, #091e3a, #00f2fe);
}

.book-cover-mini.ide {
  background: linear-gradient(135deg, #2e1065, #8b5cf6);
}

.book-cover-mini.saas {
  background: linear-gradient(135deg, #78350f, #d97706);
}

.book-cover-mini.agent {
  background: linear-gradient(135deg, #064e3b, #059669);
}

.book-cover-mini.office {
  background: linear-gradient(135deg, #1e293b, #475569);
}

.book-cover-mini.rea1 {
  background: linear-gradient(135deg, #064e3b, #047857);
}

.book-cover-mini.rea2 {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.book-cover-mini.rea3 {
  background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.book-cover-mini.math {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}

.book-cover-mini.ai {
  background: linear-gradient(135deg, #431407, #c2410c);
}

.book-cover-mini.malssam {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.book-cover-tag {
  font-size: 0.55rem;
  font-weight: 800;
  opacity: 0.85;
}

.book-cover-title {
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.book-info-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.book-id-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--dmdg-teal-dark);
}

.book-info-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.book-info-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.btn-read-book {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dmdg-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.btn-read-book:hover {
  color: var(--dmdg-orange);
}

/* ==========================================================================
   Footer: Studio Name & Primary Domains
   ========================================================================== */
.clean-footer {
  position: relative;
  z-index: 10;
  background: var(--dmdg-navy);
  color: #FFFFFF;
  padding: 1.6rem 1rem;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.footer-single-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.footer-domains-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
}

.footer-domain-link {
  color: var(--dmdg-orange-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-domain-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .panels-grid {
    grid-template-columns: 1fr;
  }
  .hero-centerpiece {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .top-header {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
  }
  .header-search {
    width: 100%;
  }
  .header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }
  .nav-link-btn {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    color: #0B1B3D;
    background: #FFFFFF;
    border: 1.5px solid rgba(11, 27, 61, 0.25);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  .nav-link-btn.highlight {
    background: #0B1B3D;
    color: #FFFFFF;
    border-color: #0B1B3D;
  }
  .hero-emblem-large {
    width: 140px;
    height: 140px;
  }
}

/* ==========================================================================
   Course Intro & Application Popup Modal (Antigravity IDE × REA)
   ========================================================================== */
.course-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.course-modal-container {
  background: #0b1120;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(245, 158, 11, 0.2);
  color: #f1f5f9;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.25rem 2rem;
}

.course-modal-backdrop.show .course-modal-container {
  transform: translateY(0) scale(1);
}

.course-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.course-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Badge Row */
.course-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.course-badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course-badge-tag.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.course-badge-tag.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

/* Titles */
.course-modal-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.course-modal-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 4 Core Pillars Grid */
.course-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .course-pillars-grid {
    grid-template-columns: 1fr;
  }
  .course-modal-container {
    padding: 1.75rem 1.25rem;
  }
  .course-modal-title {
    font-size: 1.35rem;
  }
}

.course-pillar-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  transition: all 0.25s ease;
}

.course-pillar-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.course-pillar-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.course-pillar-icon {
  font-size: 1.25rem;
}

.course-pillar-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.course-pillar-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* Notice Banner */
.course-notice-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.course-notice-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.course-notice-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.2rem;
}

.course-notice-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Live Goal Bar */
.course-goal-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.75rem;
}

.course-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.course-goal-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.course-goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Modal Bottom Actions */
.course-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-modal-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-course-apply-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.btn-course-apply-cta:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

/* ==========================================================================
   Course Application Form View
   ========================================================================== */
.form-field-group {
  margin-bottom: 1.25rem;
}

.form-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.45rem;
}

.form-field-label .required-dot {
  color: #ef4444;
  margin-left: 2px;
}

.form-field-input, .form-field-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field-input:focus, .form-field-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-field-select option {
  background: #0f172a;
  color: #f8fafc;
}

/* Radio Pill Selector for 내일배움카드 */
.card-radio-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 500px) {
  .card-radio-pills {
    grid-template-columns: 1fr;
  }
}

.card-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.2s ease;
  user-select: none;
}

.card-radio-input {
  display: none;
}

.card-radio-input:checked + .card-radio-label {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fbbf24;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.btn-submit-application {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
  margin-top: 1rem;
}

.btn-submit-application:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
}

/* Card 5-Item Display Limit Rule */
.dmdg-hidden-card {
  display: none;
}

/* ==========================================================================
   Content Visitor Count Badges (Live Web Apps, Simulators, Wikibooks)
   ========================================================================== */
.content-visitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(11, 27, 61, 0.07);
  border-radius: 8px;
  margin: 0.2rem 0;
  font-size: 0.72rem;
}

.visitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0f172a;
  font-weight: 600;
}

.visitor-pill strong {
  color: #028090;
  font-weight: 800;
}

.visitor-views-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 500;
}

.sim-visitor-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  background: rgba(11, 27, 61, 0.03);
  border-radius: 6px;
  margin-top: 0.35rem;
  font-size: 0.7rem;
}

.sim-visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #334155;
  font-weight: 600;
}

.sim-visitor-badge strong {
  color: #f77f00;
  font-weight: 800;
}

.sim-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #059669;
  font-weight: 700;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.book-visitor-stat {
  display: flex;
  align-items: center;
  margin: 0.35rem 0;
}

.book-visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  color: #0369a1;
  font-weight: 600;
}

.book-visitor-badge strong {
  color: #0284c7;
  font-weight: 800;
}

/* ==========================================================================
   DMDG Master Ecosystem Footer - Jennifer & Craig Design System
   ========================================================================== */
.dmdg-master-footer {
  position: relative;
  background: linear-gradient(180deg, #090e1a 0%, #050811 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  padding: 4.5rem 1.5rem 2.5rem 1.5rem;
  margin-top: 5rem;
  overflow: hidden;
}

.dmdg-master-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #00a896, transparent);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.footer-inner-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 3rem;
}

.footer-brand-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.footer-brand-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  max-width: 580px;
  line-height: 1.5;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-top-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-nav-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.86rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-nav-col a:hover {
  color: #f59e0b;
  transform: translateX(3px);
}

.footer-nav-col a .tag-pill {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 700;
}

.footer-nav-col a .tag-pill.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-domain-badge {
  color: #cbd5e1;
  font-weight: 600;
}

.footer-domain-badge a {
  color: #00a896;
  text-decoration: none;
}

.footer-domain-badge a:hover {
  text-decoration: underline;
}

.footer-team-signature {
  color: #94a3b8;
  font-size: 0.8rem;
}

.footer-team-signature strong {
  color: #f59e0b;
}

/* ── Compact Responsive & Modal Helpers ─────────────────────────────────── */
.universal-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.universal-modal-backdrop.show {
  display: flex;
}
.universal-modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.75rem;
  border-radius: 24px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}
.universal-modal-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 0.45rem !important;
  }
  .header-nav .nav-link-btn {
    font-size: 0.78rem !important;
    padding: 0.45rem 0.85rem !important;
  }
}




