/* ==========================================================================
   DMD (Didascou Media Digital) — Halaman Utama (Portal & Agency Landing)
   File Khusus: main.css (Terpisah Murni Tanpa Campuran CSS Admin)
   Reference Design: Curved Dark Hero, 3D Workspace, 4 Service Cards, Portal Berita
   Brand Colors: Deep Royal Purple (#160228, #3B0764), Bright Gold Yellow (#FFDD00)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Brand Palette from Reference Screenshot */
  --dmd-purple-dark:    #160228;
  --dmd-purple-deep:    #2A044D;
  --dmd-purple-brand:   #3B0764;
  --dmd-purple-medium:  #581C87;
  --dmd-purple-light:   #7E22CE;
  --dmd-purple-soft:    #F5F3FF;

  --dmd-yellow-bright:  #FFDD00;
  --dmd-yellow-gold:    #FF9E00;

  /* Surfaces */
  --bg-page:            #FFFFFF;
  --bg-surface:         #FFFFFF;
  --text-main:          #0F172A;
  --text-body:          #334155;
  --text-muted:         #64748B;
  --border-light:       #E2E8F0;
  --border-subtle:      #F1F5F9;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Shadows */
  --shadow-subtle: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-card:   0 8px 24px rgba(35, 4, 64, 0.06);
  --shadow-btn:    0 6px 18px rgba(255, 221, 0, 0.35);
  --shadow-popup:  0 25px 50px -12px rgba(22, 2, 40, 0.4);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-width: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. Navbar (Persis Foto Referensi Klien)
   ========================================================================== */
.agency-navbar {
  background-color: var(--dmd-purple-dark);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72px;
}

/* Logo Navbar (Langsung Menempel di Navbar Tanpa Shape & Background Putih) */
.nav-logo-link,
.nav-logo-badge {
  background: transparent;
  background-color: transparent;
  padding: 10px 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  z-index: 10;
  text-decoration: none;
}

.nav-logo-link img,
.nav-logo-badge img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-logo-link:hover img,
.nav-logo-badge:hover img {
  transform: scale(1.04);
}

/* Navigation Links */
.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.nav-link {
  color: #E2E8F0;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 24px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--dmd-yellow-bright);
}

.nav-link.active {
  color: var(--dmd-yellow-bright);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--dmd-yellow-bright);
  border-radius: var(--radius-full);
  animation: dmdUnderlineGrow 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center;
}

@keyframes dmdUnderlineGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Navbar Dropdown (Desktop: hover or click-open, Mobile: accordion) */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: linear-gradient(160deg, #1A0231 0%, #2D0B4E 100%);
  border: 1px solid rgba(255, 221, 0, 0.15);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform: translateX(-50%) translateY(8px);
}

.nav-dropdown-menu.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Desktop: show on hover or when toggle click opened */
@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown-item {
  display: block;
  padding: 9px 20px;
  color: #E2E8F0;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: rgba(255, 221, 0, 0.1);
  color: var(--dmd-yellow-bright);
  border-left-color: var(--dmd-yellow-bright);
  padding-left: 24px;
}

.nav-dropdown-item.active {
  background: rgba(255, 221, 0, 0.15);
  color: var(--dmd-yellow-bright);
  border-left-color: var(--dmd-yellow-bright);
  font-weight: 700;
  padding-left: 24px;
}

.nav-dropdown-item + .nav-dropdown-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.btn-cta-contact {
  background: var(--dmd-yellow-bright);
  color: var(--dmd-purple-dark);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-contact:hover {
  background: #FFE838;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 221, 0, 0.5);
}

.nav-mobile-toggle {
  display: none;
  font-size: 1.6rem;
  color: #FFFFFF;
  padding: 6px;
}

.nav-mobile-cta {
  display: none;
}

/* ==========================================================================
   2. Hero Section (Curved Deep Purple, Cyber Grid, 3D Setup)
   ========================================================================== */
.hero-wrapper {
  background: linear-gradient(135deg, #160228 0%, #2A044D 50%, #3B0764 100%);
  position: relative;
  padding: 60px 0 120px 0;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 5;
}

.hero-wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.hero-wave-bottom .shape-fill {
  fill: #FFFFFF;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 10;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.hero-headline .text-white {
  display: block;
  color: #FFFFFF;
}

.hero-headline .text-yellow {
  display: block;
  color: var(--dmd-yellow-bright);
  text-shadow: 0 0 25px rgba(255, 221, 0, 0.35);
}

.hero-paragraph {
  font-size: 1.05rem;
  color: #E2E8F0;
  line-height: 1.65;
  max-width: 520px;
  font-weight: 400;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-hero-start {
  background: linear-gradient(135deg, var(--dmd-yellow-bright) 0%, var(--dmd-yellow-gold) 100%);
  color: var(--dmd-purple-dark);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-hero-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 221, 0, 0.5);
}

.btn-hero-portfolio {
  background: #FFFFFF;
  color: var(--dmd-purple-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-hero-portfolio:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
}

.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Visual Floating Oval Portal (Bentuk Oval Sempurna & Menyatu Harmonis dengan Tema DMD) */
.hero-oval-badge {
  position: relative;
  width: 100%;
  max-width: 490px;
  aspect-ratio: 4 / 3;
  border-radius: 50%; /* Oval / Elips sempurna */
  overflow: hidden;
  background: radial-gradient(ellipse at center, #FFFFFF 62%, #FAF5FF 85%, #F3E8FF 100%);
  border: 3.5px solid rgba(255, 221, 0, 0.9); /* Aksen kuning emas khas DMD */
  box-shadow: 
    0 0 0 6px rgba(168, 85, 247, 0.3),           /* Glowing ring ungu neon */
    0 0 28px rgba(255, 221, 0, 0.4),            /* Aura kuning emas menyala */
    0 25px 60px rgba(10, 1, 20, 0.7);           /* Drop shadow kedalaman 3D */
  animation: floatAnim 4s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hero-oval-badge:hover {
  box-shadow: 
    0 0 0 8px rgba(168, 85, 247, 0.45),
    0 0 38px rgba(255, 221, 0, 0.6),
    0 30px 70px rgba(10, 1, 20, 0.8);
}

.hero-3d-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(0.97); /* Padding presisi agar ilustrasi 3D bernapas lega dan tidak terpotong */
  transition: transform 0.3s ease;
}

.hero-oval-badge:hover .hero-3d-asset {
  transform: scale(1.02);
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.hero-radar-rings {
  position: absolute;
  bottom: -25px;
  right: -20px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 16px rgba(126, 34, 206, 0.2);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   3. "Layanan Unggulan Kami" (Persis 4 Card dari Foto Referensi)
   ========================================================================== */
.services-container-section {
  background-color: #FFFFFF;
  padding: 40px 0 60px 0;
  position: relative;
  z-index: 20;
}

.services-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.service-card-item:hover {
  transform: translateY(-4px);
  border-color: #C084FC;
  box-shadow: var(--shadow-card);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.service-card-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   4. Portal Berita & Publikasi Terkini
   ========================================================================== */
.news-platform-section {
  background-color: #F8FAFC;
  padding: 50px 0 70px 0;
  border-top: 1px solid var(--border-light);
}

.portal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-header-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.portal-header-info h3 span {
  color: var(--dmd-purple-medium);
}

.portal-header-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portal-search-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.portal-search-wrap input {
  width: 100%;
  padding: 10px 40px 10px 38px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.portal-search-wrap input:focus {
  border-color: var(--dmd-purple-brand);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(88, 28, 135, 0.12), 0 4px 14px rgba(0, 0, 0, 0.05);
}

.portal-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.portal-search-wrap input:focus ~ .portal-search-icon {
  color: var(--dmd-purple-brand);
}

.portal-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #F1F5F9;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #64748B;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}

.portal-search-clear:hover {
  background: #E2E8F0;
  color: var(--dmd-purple-brand);
  transform: translateY(-50%) scale(1.1);
}

/* Search Dropdown Popup */
.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 440px;
  max-width: 95vw;
  background: #FFFFFF;
  border: 1px solid rgba(88, 28, 135, 0.15);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(26, 2, 49, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1200;
  overflow: hidden;
  animation: dmdFadeInDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-dropdown-header {
  padding: 10px 16px;
  background: linear-gradient(135deg, #1A0231 0%, #2D0B4E 100%);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 221, 0, 0.15);
}

.search-dropdown-header span:first-child {
  color: var(--dmd-yellow-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-hint-esc {
  font-size: 0.68rem;
  color: #CBD5E1;
  font-weight: 500;
  opacity: 0.85;
}

/* Topic Match Row */
.search-topics-match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FAF5FF;
  border-bottom: 1px solid rgba(88, 28, 135, 0.08);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.search-topic-label {
  font-weight: 700;
  color: var(--dmd-purple-dark);
  white-space: nowrap;
}

.search-topics-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.search-topic-btn {
  background: var(--dmd-purple-brand);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.search-topic-btn:hover {
  background: var(--dmd-purple-medium);
  transform: translateY(-1px);
}

/* List Results */
.search-dropdown-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item:focus {
  background: #FDF9E7;
  outline: none;
}

.search-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #E2E8F0;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.search-item-cat {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--dmd-purple-brand);
  background: rgba(88, 28, 135, 0.08);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.search-item-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.search-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.search-item-title mark {
  background: rgba(255, 221, 0, 0.45);
  color: var(--dmd-purple-dark);
  font-weight: 800;
  padding: 0 2px;
  border-radius: 2px;
}

/* Empty State */
.search-dropdown-empty {
  padding: 28px 16px;
  text-align: center;
}

.search-dropdown-empty p {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.search-dropdown-empty span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer View All */
.search-dropdown-footer {
  padding: 10px 16px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  text-align: center;
}

.btn-search-view-all {
  background: none;
  border: none;
  color: var(--dmd-purple-brand);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.btn-search-view-all:hover {
  color: var(--dmd-purple-medium);
  transform: translateX(2px);
}

/* Running Ticker (Trending News Bar) */
.news-ticker-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--dmd-purple-brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 22px;
  gap: 10px;
}

.ticker-badge {
  background: linear-gradient(135deg, #1A0231 0%, #3B0764 100%);
  color: var(--dmd-yellow-bright);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(26, 2, 49, 0.2);
}

.ticker-content-track {
  flex: 1;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-item {
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-40%);
  pointer-events: none;
}

.ticker-item.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.ticker-tag {
  font-size: 0.68rem;
  background: var(--dmd-purple-soft);
  color: var(--dmd-purple-brand);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
  cursor: pointer;
}

.ticker-link:hover {
  color: var(--dmd-purple-medium);
}

.ticker-nav-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ticker-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ticker-btn:hover {
  background: var(--dmd-purple-brand);
  color: #FFFFFF;
  border-color: var(--dmd-purple-brand);
}

/* Lead Carousel Controls & Dots */
.lead-carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 5;
}

.lead-carousel-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.lead-carousel-btn:hover {
  background: var(--dmd-purple-brand);
  border-color: var(--dmd-yellow-bright);
  transform: scale(1.08);
}

.lead-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: auto;
  z-index: 6;
}

.lead-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  padding: 0;
}

.lead-dot.active {
  background: var(--dmd-yellow-bright);
  width: 22px;
  border-radius: 10px;
}

/* Category Filter Tabs */
.category-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
  padding-bottom: 4px;
}
.category-filter-strip::-webkit-scrollbar { display: none; }

.category-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  transition: var(--transition);
}

.category-tab-btn:hover {
  color: var(--dmd-purple-medium);
  border-color: #C084FC;
}

.category-tab-btn.active {
  background: var(--dmd-purple-brand);
  color: #FFFFFF;
  border-color: var(--dmd-purple-brand);
}

/* News Layout: Lead Story + Trending */
.news-showcase-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 28px;
  margin-bottom: 40px;
}

.lead-card-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.lead-card-box:hover {
  border-color: #C084FC;
  box-shadow: var(--shadow-card);
}

.lead-thumb-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: #F1F5F9;
}

.lead-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lead-card-box:hover .lead-thumb-wrap img {
  transform: scale(1.03);
}

.category-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--dmd-purple-brand);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  border: 1px solid rgba(88, 28, 135, 0.2);
}

.lead-content-wrap {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lead-article-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 10px;
}

.lead-card-box:hover .lead-article-title {
  color: var(--dmd-purple-medium);
}

.lead-article-excerpt {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.article-meta-row strong {
  color: var(--dmd-purple-brand);
}

.meta-divider-dot {
  width: 4px;
  height: 4px;
  background-color: #CBD5E1;
  border-radius: 50%;
}

.trending-feed-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--dmd-purple-soft);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.trending-header-bar h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dmd-purple-brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trending-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.trending-card-item:hover {
  border-color: #D8B4FE;
  transform: translateX(3px);
  box-shadow: var(--shadow-subtle);
}

.trending-rank-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #D8B4FE;
  line-height: 1;
  min-width: 26px;
}

.trending-text-block {
  flex: 1;
}

.trending-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 4px;
}

.trending-card-item:hover .trending-card-title {
  color: var(--dmd-purple-medium);
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.news-card-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card-box:hover {
  border-color: #C084FC;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.news-card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F1F5F9;
  cursor: pointer;
}

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

.news-card-box:hover .news-card-thumb img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title:hover {
  color: var(--dmd-purple-medium);
}

.news-card-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-share-trigger {
  background: var(--dmd-purple-soft);
  color: var(--dmd-purple-brand);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-share-trigger:hover {
  background: var(--dmd-purple-medium);
  color: #FFFFFF;
}

/* Magazine Multi-Block Layout & Sidebar */
.portal-magazine-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 32px;
  margin-top: 10px;
}

@media (max-width: 991px) {
  .portal-magazine-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.portal-main-column {
  min-width: 0;
}

.portal-sidebar-column {
  min-width: 0;
}

.magazine-block-section {
  margin-bottom: 38px;
}

.block-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
  position: relative;
}

.block-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dmd-purple-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.block-section-bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--dmd-yellow-bright);
  border-radius: 2px;
}

/* Spotlight Dual Grid (1 Big Left + 3 Right List) */
.spotlight-dual-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .spotlight-dual-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight-main-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.spotlight-main-card:hover {
  border-color: #C084FC;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.spotlight-main-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #F1F5F9;
}

.spotlight-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spotlight-main-card:hover .spotlight-main-thumb img {
  transform: scale(1.04);
}

.spotlight-main-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotlight-main-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
}

.spotlight-main-card:hover .spotlight-main-title {
  color: var(--dmd-purple-medium);
}

.spotlight-main-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-mini-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.spotlight-mini-item:hover {
  border-color: #D8B4FE;
  box-shadow: var(--shadow-subtle);
  transform: translateX(3px);
}

.spotlight-mini-thumb {
  width: 86px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #E2E8F0;
}

.spotlight-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-mini-content {
  flex: 1;
  min-width: 0;
}

.spotlight-mini-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-mini-item:hover .spotlight-mini-title {
  color: var(--dmd-purple-medium);
}

.spotlight-mini-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Triplet Grid (3 Columns) */
.news-triplet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 850px) {
  .news-triplet-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.triplet-card-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.triplet-card-item:hover {
  border-color: #C084FC;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.triplet-card-thumb {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #F1F5F9;
}

.triplet-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.triplet-card-item:hover .triplet-card-thumb img {
  transform: scale(1.04);
}

.triplet-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.triplet-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.triplet-card-item:hover .triplet-card-title {
  color: var(--dmd-purple-medium);
}

.triplet-card-meta {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sidebar Widgets */
.sidebar-widget-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-subtle);
}

.widget-header-bar {
  border-bottom: 2px solid var(--dmd-purple-soft);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.widget-header-bar h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dmd-purple-brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.sidebar-popular-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-popular-item:last-child {
  border-bottom: none;
}

.sidebar-popular-item:hover {
  transform: translateX(3px);
}

.sidebar-popular-rank {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #D8B4FE;
  line-height: 1;
  min-width: 26px;
}

.sidebar-popular-content {
  flex: 1;
}

.sidebar-popular-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-popular-item:hover .sidebar-popular-title {
  color: var(--dmd-purple-medium);
}

.sidebar-popular-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-compact-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-compact-item:last-child {
  border-bottom: none;
}

.sidebar-compact-thumb {
  width: 60px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-compact-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-compact-item:hover .sidebar-compact-title {
  color: var(--dmd-purple-medium);
}

/* Newsletter Widget */
.widget-newsletter-box {
  background: linear-gradient(135deg, #1A0231 0%, #3B0764 100%);
  color: #FFFFFF;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.widget-newsletter-box::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 221, 0, 0.15);
  pointer-events: none;
}

.widget-newsletter-box h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.widget-newsletter-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.newsletter-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.82rem;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--dmd-yellow-bright);
  color: var(--dmd-purple-dark);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #FFE84D;
  transform: translateY(-1px);
}

/* Load More Button */
.load-more-wrap {
  margin-top: 28px;
  text-align: center;
}

.btn-load-more {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  background: #FFFFFF;
  color: var(--dmd-purple-brand);
  border: 2px solid var(--dmd-purple-brand);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more:hover {
  background: var(--dmd-purple-brand);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 28, 135, 0.25);
}

/* ==========================================================================
   5. Center Pop-up Dialog: Link Copied
   ========================================================================== */
.center-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.center-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.center-popup-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-popup);
  border: 1px solid var(--border-light);
  transform: scale(0.92);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-popup-overlay.show .center-popup-box {
  transform: scale(1);
}

.popup-icon-circle {
  width: 60px;
  height: 60px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px auto;
  border: 2px solid #BBF7D0;
}

.popup-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.popup-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
}

.link-preview-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.link-preview-text {
  font-size: 0.78rem;
  color: var(--dmd-purple-brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
  text-align: left;
}

.btn-popup-close {
  background: var(--dmd-purple-brand);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  width: 100%;
  transition: var(--transition);
}

.btn-popup-close:hover {
  background: var(--dmd-purple-medium);
}

/* ==========================================================================
   6. Reader Modal & Share Buttons
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-popup);
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 10;
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background: #F8FAFC;
  color: var(--text-main);
}

.modal-content-body {
  padding: 24px;
}

.article-reader-headline {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 10px 0 14px 0;
}

.article-reader-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}

.article-img-caption {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.article-reader-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #1F2937;
  margin-bottom: 24px;
}

.share-section-box {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 24px;
}

.share-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dmd-purple-brand);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.btn-share-btn {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #FFFFFF;
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.btn-share-wa { background-color: #25D366; }
.btn-share-wa:hover { background-color: #20BA5A; }

.btn-share-ig {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}
.btn-share-ig:hover { filter: brightness(1.08); }

.btn-share-tw { background-color: #000000; }
.btn-share-tw:hover { background-color: #262626; }

.btn-share-fb { background-color: #1877F2; }
.btn-share-fb:hover { background-color: #1464CC; }

.btn-share-copy { background-color: var(--dmd-purple-brand); }
.btn-share-copy:hover { background-color: var(--dmd-purple-medium); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--dmd-purple-dark);
  color: #CBD5E1;
  padding: 40px 0 24px 0;
  border-top: 3px solid var(--dmd-yellow-bright);
}

.footer-inner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-info {
  max-width: 440px;
}

.footer-brand-logo {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-brand-info p {
  font-size: 0.84rem;
  color: #CBD5E1;
  line-height: 1.55;
}

.footer-social-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-block span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F8FAFC;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social-btn:hover {
  background: var(--dmd-yellow-bright);
  color: var(--dmd-purple-dark);
}

.footer-bottom-bar {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-bar a {
  color: #CBD5E1;
}

.footer-bottom-bar a:hover {
  color: var(--dmd-yellow-bright);
}

/* ==========================================================================
   8. Mobile Responsiveness (Mobile-First Polish & Overlap Fixes)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  /* Navbar & Logo Badge Mobile Polish */
  .navbar-container {
    padding: 0 16px;
    min-height: 58px;
    position: relative;
  }

  .nav-logo-link,
  .nav-logo-badge {
    background: transparent;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 1002;
  }

  .nav-logo-link img,
  .nav-logo-badge img {
    height: 38px;
    width: auto;
  }

  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFFFFF;
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    z-index: 1002;
    line-height: 1;
  }

  .btn-cta-contact {
    display: none;
  }

  /* List Navbar Menu Mobile (Tampil Rapi Tanpa Ketimpah) */
  .nav-links-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #140224;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--dmd-yellow-bright);
    flex-direction: column;
    padding: 14px 16px 20px 16px;
    gap: 6px;
    margin: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
    z-index: 1001;
    animation: slideDownNavMenu 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links-menu.open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #F1F5F9;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    transition: var(--transition);
  }

  .nav-link:hover, .nav-link:focus {
    background: rgba(255, 221, 0, 0.1);
    color: var(--dmd-yellow-bright);
  }

  .nav-link.active {
    background: rgba(255, 221, 0, 0.15);
    color: var(--dmd-yellow-bright);
    font-weight: 800;
    box-shadow: inset 4px 0 0 var(--dmd-yellow-bright);
  }

  .nav-link.active::after {
    display: none !important; /* Hilangkan garis underline desktop agar tidak mencoret teks link */
  }

  .nav-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dmd-yellow-bright);
    color: var(--dmd-purple-dark);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 12px;
    border-radius: var(--radius-full);
    margin-top: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
  }

  /* Mobile Dropdown Accordion */
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #F1F5F9;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus {
    background: rgba(255, 221, 0, 0.1);
    color: var(--dmd-yellow-bright);
  }

  .nav-dropdown.open .nav-dropdown-toggle {
    background: rgba(255, 221, 0, 0.15);
    color: var(--dmd-yellow-bright);
    font-weight: 800;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: unset;
    width: 100%;
    border-radius: 0 0 8px 8px;
    border: none;
    border-left: 3px solid var(--dmd-yellow-bright);
    margin-left: 12px;
    padding: 4px 0;
    background: rgba(26, 2, 49, 0.6);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 6px 0;
  }

  .nav-dropdown-item {
    padding: 10px 18px;
    font-size: 0.86rem;
    border-left: none;
    transition: var(--transition);
  }

  .nav-dropdown-item:hover,
  .nav-dropdown-item:focus {
    padding-left: 22px;
    color: var(--dmd-yellow-bright);
  }

  .nav-dropdown-item.active {
    background: rgba(255, 221, 0, 0.18);
    color: var(--dmd-yellow-bright);
    font-weight: 700;
    padding-left: 24px;
  }


  .hero-wrapper {
    padding: 36px 0 80px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    position: relative;
    z-index: 10;
  }

  .hero-text-col {
    align-items: center;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 5.5vw, 2.3rem);
    line-height: 1.2;
  }

  .hero-paragraph {
    font-size: 0.92rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.55;
  }

  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 10px;
  }

  .btn-hero-start, .btn-hero-portfolio {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }

  .hero-visual-col {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-oval-badge {
    max-width: min(320px, 86vw);
    aspect-ratio: 4 / 3;
    border-radius: 50%;
    border-width: 2.5px;
    box-shadow: 
      0 0 0 4px rgba(168, 85, 247, 0.3),
      0 0 20px rgba(255, 221, 0, 0.35),
      0 16px 40px rgba(10, 1, 20, 0.65);
  }

  .hero-3d-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-radar-rings {
    display: none;
  }

  /* Section Layanan Unggulan Cards Mobile */
  .services-container-section {
    padding: 40px 0 30px 0;
  }

  .services-title {
    font-size: 1.4rem;
    margin-bottom: 18px;
    text-align: center;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card-item {
    padding: 16px 18px;
    border-radius: 12px;
    gap: 14px;
  }

  .service-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .service-card-text h4 {
    font-size: 0.95rem;
  }

  .service-card-text p {
    font-size: 0.78rem;
  }

  /* Section Portal Berita & Publikasi Mobile */
  .news-platform-section {
    padding: 40px 0 60px 0;
  }

  .portal-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .portal-header-info h3 {
    font-size: 1.3rem;
  }

  .portal-search-wrap {
    max-width: 100%;
    width: 100%;
  }

  .search-dropdown-menu {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .category-filter-strip {
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 6px;
  }

  .category-tab-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .news-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .lead-thumb-wrap {
    height: 210px;
  }

  .lead-content-wrap {
    padding: 16px;
  }

  .lead-article-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .lead-article-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .trending-feed-column {
    gap: 10px;
  }

  .trending-card-item {
    padding: 12px;
    gap: 12px;
    border-radius: 10px;
  }

  .trending-rank-num {
    font-size: 1.3rem;
    min-width: 22px;
  }

  .trending-card-title {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card-thumb {
    height: 170px;
  }

  .news-card-body {
    padding: 14px;
  }

  .news-card-title {
    font-size: 0.95rem;
  }

  .footer-inner-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-links-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@keyframes slideDownNavMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-logo-link,
  .nav-logo-badge {
    background: transparent;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-logo-link img,
  .nav-logo-badge img {
    height: 34px;
  }

  .hero-headline {
    font-size: 1.65rem;
  }

  .lead-thumb-wrap {
    height: 180px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-box {
    max-height: 94vh;
    border-radius: 12px;
  }

  .modal-content-body {
    padding: 16px;
  }

  .article-reader-headline {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .article-reader-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .share-btn-item {
    font-size: 0.76rem;
    padding: 7px 10px;
  }
}
