/* assets/css/landing.css */
:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --bg-color: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* COLOR UTILITIES */
.text-red   { color: #dc2626; }
.text-green { color: #16a34a; }
.text-blue  { color: #2563eb; }
.text-primary { color: var(--landing-primary); }

/* Dynamic nav anchor links look like router-links */
.nav-link-a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.nav-link-a:hover { color: #cb3234; }
.nav-link-a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #cb3234;
  transition: width 0.3s;
}
.nav-link-a:hover::after { width: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TOPBAR */
@keyframes topbarPulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)); }
  100% { transform: scale(1); opacity: 0.9; }
}
@keyframes topbarShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.landing-topbar-dtsen {
  background: var(--lc-topbar-bg, #cb3234);
  color: var(--lc-topbar-text, #ffffff);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1001;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.landing-topbar-dtsen::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, #ff0055, #00e5ff, #ffea00, #00ff66, #ff0055);
  background-size: 300% 100%;
  animation: topbarShimmer 4s ease infinite;
}
.topbar-pulse-icon {
  display: inline-block;
  margin-right: 6px;
  animation: topbarPulse 1.8s infinite ease-in-out;
}
.landing-topbar-dtsen i { margin-right: 5px; }
.landing-topbar-dtsen .topbar-link {
  color: var(--lc-topbar-text, #ffffff);
  text-decoration: underline;
  margin-left: 5px;
  font-weight: 600;
}
/* Static content mode */
.topbar-static { text-align: center; }
/* Marquee scroll mode */
@keyframes marqueeScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.topbar-marquee {
  display: inline-block;
  animation: marqueeScroll 22s linear infinite;
  padding-left: 100vw;
}
.topbar-marquee:hover { animation-play-state: paused; }

@keyframes topbarFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.topbar-fade {
  text-align: center;
  animation: topbarFade 2.5s infinite ease-in-out;
}

@keyframes topbarBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.topbar-bounce {
  text-align: center;
  display: inline-block;
  width: 100%;
  animation: topbarBounce 2s infinite ease-in-out;
}
/* NAVBAR */
.landing-navbar-dtsen {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 75px;
  background: var(--lc-navbar-bg, rgba(255,255,255,0.95));
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 1000;
  transition: all 0.3s;
  box-sizing: border-box;
}
.landing-navbar-dtsen.has-topbar {
  top: 35px;
}
.landing-navbar-dtsen.scrolled {
  top: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  background: var(--lc-navbar-bg, rgba(255,255,255,1));
}
.dtsen-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.dtsen-logo-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 15px;
  height: 15px;
  margin-top: -12px; 
}
.dtsen-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.dtsen-dot.red { background: #cb3234; }
.dtsen-dot.black { background: #1e293b; }

.dtsen-brand {
  font-size: 26px;
  font-weight: 900;
  color: var(--lc-navbar-text, #000);
  letter-spacing: -1.5px;
  line-height: 1;
}
.dtsen-subtitle {
  font-size: 9px;
  color: var(--lc-navbar-link, #64748b);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.dtsen-mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--lc-navbar-text, #1e293b);
  cursor: pointer;
}
.dtsen-nav-menu-wrapper {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
}
.dtsen-nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 35px;
}
.dtsen-nav-links a {
  text-decoration: none;
  color: var(--lc-navbar-link, #475569);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s;
}
.dtsen-nav-links a:hover, .dtsen-nav-links a.active {
  color: var(--lc-navbar-active, #cb3234);
}
.dtsen-nav-actions {
  display: flex;
  gap: 12px;
}
.btn-dtsen-login {
  border: 1.5px solid var(--lc-navbar-btn-bg, #cb3234);
  color: var(--lc-navbar-btn-bg, #cb3234);
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
  transition: all 0.2s;
}
.btn-dtsen-login:hover {
  background: rgba(203, 50, 52, 0.05);
}
.btn-dtsen-register {
  background: var(--lc-navbar-btn-bg, #cb3234);
  color: var(--lc-navbar-btn-text, white);
  padding: 8.5px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
  transition: all 0.2s;
  border: 1.5px solid var(--lc-navbar-btn-bg, #cb3234);
}
.btn-dtsen-register:hover { filter: brightness(0.9); }

/* HERO SECTION DTSEN */
@keyframes meshGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatY {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-dtsen {
  min-height: 100vh;
  background: var(--lc-hero-bg-gradient, linear-gradient(-45deg, #f7f9fa, #eef3f7, #fdfbfb, #ebedee));
  background-size: 400% 400%;
  animation: meshGradient 15s ease infinite;
  padding: 160px 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
/* Abstract Shapes for Professional Look */
.hero-dtsen::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(203, 50, 52, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-dtsen::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-dtsen-content {
  flex: 1;
  max-width: 650px;
  animation: fadeUp 0.8s ease-out forwards;
  position: relative;
  z-index: 1;
}
.hero-dtsen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lc-hero-badge-bg, rgba(203, 50, 52, 0.1));
  color: var(--lc-hero-badge-text, #cb3234);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(203, 50, 52, 0.2);
  box-shadow: 0 4px 10px rgba(203, 50, 52, 0.05);
}
.hero-dtsen-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--lc-hero-title, #1e293b);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -1.5px;
}
.hero-dtsen-title .text-red {
  color: var(--landing-primary, #cb3234);
  text-shadow: 0 2px 10px rgba(203, 50, 52, 0.1);
}
.hero-dtsen-subtitle {
  font-size: 16px;
  color: var(--lc-hero-subtitle, #64748b);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-dtsen-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}
.btn-dtsen-primary {
  background: #d3514c; 
  color: white;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 15px rgba(211, 81, 76, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-dtsen-primary:hover {
  background: #bd443f;
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(211, 81, 76, 0.3);
}
.btn-dtsen-outline {
  background: white;
  color: #cb3234;
  border: 1.5px solid rgba(203, 50, 52, 0.3);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-dtsen-outline:hover {
  border-color: #cb3234;
  background: rgba(203, 50, 52, 0.05);
  transform: translateY(-3px);
}
.hero-dtsen-checks {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 45px;
  flex-wrap: wrap;
}
.hero-dtsen-checks span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.hero-dtsen-checks i {
  color: #10b981; 
}
.hero-dtsen-security {
  display: flex;
  align-items: center;
  gap: 16px;
}
.security-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.security-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.security-card i {
  font-size: 22px;
}
.security-card .text-blue { color: #0ea5e9; }
.security-card .text-green { color: #10b981; }
.sc-text {
  display: flex;
  flex-direction: column;
}
.sc-text strong {
  font-size: 11px;
  color: #1e293b;
}
.sc-text span {
  font-size: 10px;
  color: #64748b;
}
.hero-dtsen-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: fadeIn 1.2s ease-out forwards;
  position: relative;
  z-index: 1;
}
.hero-dtsen-image img {
  max-width: 480px; /* Reduced from 100% to match screenshot */
  width: 100%;
  height: auto;
  border-radius: 12px;
  animation: floatY 6s ease-in-out infinite; /* Floating animation */
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
}
.hero-dtsen-image .img-placeholder {
  width: 100%; max-width: 480px; height: 350px; background: white; border-radius: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}

/* SECTION COMMON */
.section {
  padding: 55px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--landing-primary-rgb, 37, 99, 235), 0.2);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(var(--landing-primary-rgb, 37, 99, 235), 0.1);
  color: var(--landing-primary, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* RPS DIRECTORY */
.rps-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.rps-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.rps-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--landing-primary), var(--landing-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rps-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--landing-primary-rgb), 0.2);
}
.rps-card:hover::before {
  opacity: 1;
}
.rps-mk {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}
.rps-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-lock {
  background: rgba(var(--landing-primary-rgb), 0.1);
  color: var(--landing-primary);
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
  width: 100%;
}
.btn-lock:hover {
  background: var(--landing-primary);
  color: white;
}
.btn-outline[disabled] {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  margin-top: auto;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.faq-question {
  padding: 24px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}
.faq-question i {
  color: var(--landing-primary);
  background: rgba(var(--landing-primary-rgb), 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}
.faq-item.active .faq-question {
  color: var(--landing-primary);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  background: var(--landing-primary);
  color: white;
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
}
.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 500px;
  opacity: 1;
}

/* CHAT WIDGET (AI) */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}
.chatbot-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--landing-primary, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(var(--landing-primary-rgb, 37, 99, 235), 0.3);
  border: none;
  transition: all 0.3s;
  outline: none;
}
.chatbot-btn:hover {
  transform: scale(1.1);
}
.chat-widget {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-header {
  background: var(--landing-primary, #2563eb);
  color: white;
  padding: 15px 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.chat-widget.open .chat-header i.fa-chevron-up {
  transform: rotate(180deg);
}
.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: white;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.chat-msg.user {
  background: var(--landing-primary, #2563eb);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-footer {
  display: flex;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 10px;
  background: white;
  gap: 8px;
}
.chat-footer input {
  flex: 1;
  border: 1px solid #e2e8f0;
  outline: none;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 20px;
}
.chat-footer button {
  background: var(--landing-primary, #2563eb);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chat-footer button:hover {
  background: var(--landing-secondary, #1e3a8a);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title {
    font-size: 40px;
  }
  .navbar-links {
    display: none;
  }
  .chatbot-window {
    width: 300px;
    height: 450px;
  }
  .rps-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* SPA Views */
.spa-view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}
.spa-view.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Global Preloader */
.landing-preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--landing-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Detail Kurikulum Table/Grid */
#detail-pl .pl-item {
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--landing-primary);
}
#detail-cpl .cpl-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 15px;
}
#detail-cpl .cpl-item:last-child {
  border-bottom: none;
}
#detail-cpl .cpl-kode {
  font-weight: 700;
  color: var(--landing-secondary);
  white-space: nowrap;
}

.mk-semester-group {
  margin-bottom: 20px;
}
.mk-semester-title {
  background: var(--landing-primary);
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mk-table {
  width: 100%;
  border-collapse: collapse;
}
.mk-table th, .mk-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.mk-table th {
  background: #f8fafc;
  font-weight: 600;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9000;
  padding: 10px 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mobile-bottom-nav .nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.mobile-bottom-nav .nav-item.active {
  color: var(--landing-primary);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 70px; /* Space for bottom nav */
  }
  .chat-widget {
    right: 10px;
    bottom: 80px; /* above mobile bottom nav */
    width: calc(100% - 20px);
  }
}

/* CUSTOM SELECT2 OVERRIDES FOR DEFAULT THEME IN LANDING PAGE */
.rps-filter .select2-container--default .select2-selection--single {
  height: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.1);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  display: block;
}
.rps-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px;
  padding-left: 16px;
  padding-right: 60px; /* Leave space for clear button and arrow */
  color: var(--text-main);
  font-size: 16px;
  text-align: left;
}
.rps-filter .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}
.rps-filter .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #94a3b8;
  margin: 0;
  padding: 0;
  display: inline-block;
  z-index: 10;
  line-height: 1;
}
.rps-filter .select2-container--default .select2-selection--single:focus,
.rps-filter .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--landing-primary);
  box-shadow: 0 0 0 3px rgba(var(--landing-primary-rgb), 0.2);
  outline: none;
}
.rps-filter .select2-container--default .select2-selection__arrow {
  height: 48px;
  width: 30px;
  position: absolute;
  top: 1px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rps-filter .select2-container--default .select2-selection__arrow b {
  border-color: #94a3b8 transparent transparent transparent;
  border-width: 6px 5px 0 5px;
  margin-left: 0;
  margin-top: 0;
  position: static;
}
.rps-filter .select2-container--default.select2-container--open .select2-selection__arrow b {
  border-color: transparent transparent #94a3b8 transparent;
  border-width: 0 5px 6px 5px;
}

/* GLOBAL SELECT2 DROPDOWN CUSTOMIZATION */
.select2-dropdown {
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
  margin-top: 8px;
  z-index: 9999;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--landing-primary);
}
.select2-results__option {
  padding: 12px 16px !important;
  font-size: 15px;
  transition: all 0.2s;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(var(--landing-primary-rgb), 0.1) !important;
  color: var(--landing-primary) !important;
  font-weight: 600;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: var(--landing-primary) !important;
  color: white !important;
}

/* PAGINATION */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.btn-pagination-nav {
  padding: 10px 20px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(0,0,0,0.1);
  background: white;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-pagination-nav:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: rgba(0,0,0,0.2);
}
.btn-pagination-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-pages {
  display: flex;
  gap: 6px;
}
.btn-page {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(0,0,0,0.1);
  background: white;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-page:hover {
  background: #f1f5f9;
}
.btn-page.active {
  background: var(--landing-primary);
  color: white;
  border-color: var(--landing-primary);
  box-shadow: 0 4px 6px -1px rgba(var(--landing-primary-rgb), 0.3);
}

/* FADE SLIDE TRANSITION FOR PAGINATION */
.fade-slide-enter-active,
.fade-slide-leave-active {
  transition: all 0.3s ease;
}
.fade-slide-enter-from {
  opacity: 0;
  transform: translateY(15px);
}
.fade-slide-leave-to {
  opacity: 0;
  transform: translateY(-15px);
}

/* UNIFIED DIRECTORY TOOLBAR */
.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: white;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 0;
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.filter-search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px 0 38px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  background-color: white;
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  border-color: var(--landing-primary);
  box-shadow: 0 0 0 2px rgba(var(--landing-primary-rgb), 0.15);
}

.select-filter-wrapper {
  flex: 0 0 180px;
  width: 180px;
  min-width: 0;
}

.filter-level-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-level-select:focus {
  border-color: var(--landing-primary);
  box-shadow: 0 0 0 2px rgba(var(--landing-primary-rgb), 0.15);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-mode-selector {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.btn-mode {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.btn-mode:hover {
  color: var(--text-main);
}

.btn-mode.active {
  background: white;
  color: var(--landing-primary);
  box-shadow: var(--shadow-sm);
}

/* TOP PAGINATION */
.top-pagination {
  margin-top: 0 !important;
  width: auto;
  gap: 6px;
}

.top-pagination .btn-pagination-nav {
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.top-pagination .btn-pagination-nav:hover:not(:disabled) {
  background: #f1f5f9;
}

.top-pagination .btn-pagination-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.top-pagination .pagination-pages {
  display: flex;
  gap: 4px;
}

.top-pagination .btn-page {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.top-pagination .btn-page:hover {
  background: #f1f5f9;
}

.top-pagination .btn-page.active {
  background: var(--landing-primary);
  color: white;
  border-color: var(--landing-primary);
  box-shadow: 0 2px 4px -1px rgba(var(--landing-primary-rgb), 0.25);
}

/* TABLE VIEW */
.rps-table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.05);
}

.rps-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.rps-table th {
  background: #f8fafc;
  padding: 16px 20px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid #edf2f7;
}

.rps-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f7;
  color: var(--text-main);
  font-size: 15px;
  vertical-align: middle;
}

.rps-table tr:hover td {
  background: #f8fafc;
}

/* STATUS BADGE */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-ready {
  background: #dcfce7;
  color: #15803d;
}

.status-draft {
  background: #fee2e2;
  color: #b91c1c;
}

/* TABLE ACTION BUTTON */
.btn-table-action {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--landing-primary);
  background: transparent;
  color: var(--landing-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-table-action:hover {
  background: var(--landing-primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(var(--landing-primary-rgb), 0.2);
}

/* CARD CLEAN METADATA LAYOUT */
.rps-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
  padding: 0;
}

.detail-item {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 991px) {
  .directory-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar-left {
    width: 100%;
    min-width: 0;
  }
  .search-input-wrapper {
    flex: 1;
    max-width: none;
  }
  .select-filter-wrapper {
    flex: 0 0 180px;
    width: 180px;
  }
  .toolbar-right {
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 576px) {
  .toolbar-left {
    flex-direction: column;
    align-items: stretch;
  }
  .select-filter-wrapper {
    width: 100%;
    flex: 1 1 auto;
  }
  .toolbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .view-mode-selector {
    justify-content: center;
  }
  .top-pagination {
    justify-content: center;
  }
}

/* NEW MODERN HEADER BANNER SYSTEM */
.page-wrapper {
  min-height: 100vh;
  background-color: #f8fafc;
}

.page-header-banner {
  background: linear-gradient(135deg, var(--landing-secondary), var(--landing-primary));
  color: white;
  padding: 120px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 850;
  margin-bottom: 12px;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.5;
}

.page-content-container {
  max-width: 1200px;
  margin: -35px auto 60px; /* pull container slightly up into the banner */
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.btn-back-header {
  position: absolute;
  top: 95px;
  left: 30px;
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.btn-back-header:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* On mobile, make it curved and look like a premium mobile app header */
@media (max-width: 768px) {
  .page-header-banner {
    padding: 100px 20px 65px;
    border-radius: 0 0 35px 35px; /* Curved bottom corners */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
  .page-title {
    font-size: 1.75rem;
  }
  .page-subtitle {
    font-size: 0.95rem;
  }
  .page-content-container {
    margin-top: 15px; /* bring content back down since banner height is reduced */
  }
  .btn-back-header {
    top: 85px;
    left: 15px;
    padding: 6px 12px;
  }
}

/* DIRECTORY EMPTY STATE PLACEHOLDER */
.directory-empty-state {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 50px 30px;
  background: white;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: rgba(var(--landing-primary-rgb), 0.08);
  color: var(--landing-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  animation: pulse-slow 3s infinite ease-in-out;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.95; }
}

.empty-state-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.empty-state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.es-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  padding: 24px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.es-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--landing-primary-rgb), 0.2);
}

.es-card i {
  font-size: 1.7rem;
  color: var(--landing-primary);
  margin-bottom: 15px;
}

.es-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.es-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .empty-state-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* FOOTER */
.landing-footer {
  background: var(--landing-secondary, #1e3a8a);
  color: white;
  padding: 60px 40px 40px;
  margin-top: 60px;
}
.landing-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.landing-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ANNOUNCEMENT POPUP MODAL */
.landing-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75); /* Dark transparent backdrop */
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.landing-popup-dialog {
  background: white;
  width: 90%;
  max-width: 620px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.landing-popup-dialog.is-image-mode {
  background: transparent !important;
  box-shadow: none !important;
  max-width: 650px;
  overflow: visible;
}
.landing-popup-banner-box {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
.landing-popup-banner-box .popup-banner-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}
.landing-popup-banner-box .image-close-btn {
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
.landing-popup-banner-box .image-close-btn:hover {
  background: rgba(220, 38, 38, 0.95) !important;
  transform: scale(1.1) !important;
}

.landing-popup-overlay.show .landing-popup-dialog {
  transform: scale(1);
}

.landing-popup-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); /* Crimson warning gradient */
  color: white;
  padding: 16px 24px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  position: relative;
}

.btn-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-popup-close:hover {
  background: white;
  color: #b91c1c;
}

.landing-popup-content-wrapper {
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 600px) {
  .landing-popup-content-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

.landing-popup-mascot-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-popup-info {
  flex-grow: 1;
}

.landing-popup-subtitle {
  font-size: 1.1rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 12px;
  line-height: 1.4;
}

.landing-popup-bullet-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.landing-popup-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: #334155;
  text-align: left;
}

.landing-popup-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.landing-popup-list li::before {
  content: "•";
  color: #dc2626;
  font-weight: bold;
}

.landing-popup-footer-box {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #1e40af;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.landing-popup-footer-box:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* TOP NOTIFICATION BAR */
.landing-top-bar {
  background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
  color: white;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1001;
  letter-spacing: 0.5px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}
.top-bar-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

/* DTSEN-STYLE HERO BRAND BADGE */
.hero-brand-badge {
  display: inline-block;
  background: rgba(var(--landing-primary-rgb, 37, 99, 235), 0.1);
  color: var(--landing-primary);
  border: 1px solid rgba(var(--landing-primary-rgb, 37, 99, 235), 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-bullet-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}
.hero-bullet-meta div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-bullet-meta i {
  color: var(--landing-primary);
  font-size: 1.05rem;
}

/* STATS ROW */
.stats-container {
  max-width: 1200px;
  margin: -40px auto 40px; /* Overlap hero slightly for premium feel */
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
  z-index: 10;
  border: 1px solid #f1f5f9;
}
.stat-block {
  text-align: center;
  border-right: 1px solid #e2e8f0;
}
.stat-block:last-child {
  border-right: none;
}
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--landing-primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    margin: 20px;
    gap: 24px 10px;
  }
  .stat-block {
    border-right: none;
  }
}
@media (max-width: 600px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* VIDEO TUTORIAL SECTION */
.video-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.video-placeholder-card {
  width: 100%;
  height: 340px;
  background: #0f172a;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}
.video-placeholder-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.play-icon-container {
  width: 75px;
  height: 75px;
  background: var(--landing-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 30px rgba(var(--landing-primary-rgb, 37, 99, 235), 0.6);
  transition: transform 0.3s ease;
}
.play-icon-container:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .video-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* STEPS/TIMELINE */
.steps-timeline {
  max-width: 800px;
  margin: 50px auto;
  position: relative;
  padding-left: 50px;
}
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  width: 2px;
  height: calc(100% - 20px);
  background: #e2e8f0;
}
.step-node {
  position: relative;
  margin-bottom: 30px;
}
.step-node:last-child {
  margin-bottom: 0;
}
.step-number {
  position: absolute;
  left: -42px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--landing-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 0 4px white, 0 3px 6px rgba(0,0,0,0.1);
  z-index: 2;
}
.step-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}
.step-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--landing-primary-rgb), 0.2);
}
.step-title-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 8px;
}
.step-desc-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* REGULATIONS */
.regulations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}
.regulation-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.regulation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--landing-primary);
}
.regulation-icon {
  font-size: 2rem;
  color: var(--landing-primary);
  margin-bottom: 20px;
  background: rgba(var(--landing-primary-rgb), 0.08);
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.regulation-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}
.regulation-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .regulations-grid {
    grid-template-columns: 1fr;
  }
}

/* INTERACTIVE FAQ ACCORDION WITH SKYLINE */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  max-width: 1200px;
  margin: 50px auto;
  align-items: center;
  padding: 0 20px;
}
.faq-skyline-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid white;
}
.faq-skyline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}
@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* BOTTOM CTAs BANNER */
.bottom-banner-section {
  background: var(--lc-banner-gradient, linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%));
  color: var(--lc-banner-title, white);
  padding: 70px 40px;
  text-align: center;
  border-radius: 28px;
  max-width: 1200px;
  margin: 80px auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.bottom-banner-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.bottom-banner-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--lc-banner-title, #ffffff);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.bottom-banner-subtitle {
  font-size: 1.1rem;
  color: var(--lc-banner-text, rgba(255,255,255,0.85));
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.6;
}
.bottom-banner-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bottom-banner-actions .btn-primary,
.bottom-banner-actions a.btn-primary {
  background: var(--lc-cta-btn1-bg, #ffffff) !important;
  color: var(--lc-cta-btn1-text, #1e3a8a) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  border: none;
}
.bottom-banner-actions .btn-primary:hover,
.bottom-banner-actions a.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  filter: brightness(0.97);
}
.bottom-banner-actions .btn-outline,
.bottom-banner-actions a.btn-outline {
  background: transparent !important;
  border: 1.5px solid var(--lc-cta-btn2-border, rgba(255, 255, 255, 0.6)) !important;
  color: var(--lc-cta-btn2-text, #ffffff) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 26px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.bottom-banner-actions .btn-outline:hover,
.bottom-banner-actions a.btn-outline:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: white !important;
  transform: translateY(-2px);
}

/* GLOBAL BUTTON UTILITIES */
.btn-primary, a.btn-primary, button.btn-primary {
  background: var(--landing-primary, #cb3234) !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  padding: 11px 26px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  cursor: pointer !important;
}
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
  filter: brightness(0.92) !important;
}

.btn-outline, a.btn-outline, button.btn-outline {
  background: transparent !important;
  border: 1.5px solid var(--landing-primary, #cb3234) !important;
  color: var(--landing-primary, #cb3234) !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}
.btn-outline:hover, a.btn-outline:hover, button.btn-outline:hover {
  background: rgba(var(--landing-primary-rgb), 0.08) !important;
  transform: translateY(-2px) !important;
}

/* PUBLIC PAGES (DIREKTORI RPS & DETAIL KURIKULUM) FULL-WIDTH MOBILE APP HEADER BANNER */
.page-wrapper {
  min-height: 100vh;
  background: var(--bg-color);
}
.page-header-banner {
  background: var(--lc-direktori-hero-bg, linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%));
  color: white;
  padding: 50px 40px 65px;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 115px !important; /* Banner starts Y=115px cleanly BELOW 110px navbar! No blue bleed under white navbar! */
  margin-left: 0;
  margin-right: 0;
  border-radius: 0 0 45px 45px; /* Full-width mobile app style bottom curve! */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 40px;
  box-sizing: border-box;
}
.page-header-banner.detail-header-banner {
  padding-top: 55px !important;
}
.header-top-bar-nav {
  position: absolute;
  top: 25px;
  left: 40px;
  z-index: 10;
}
.btn-back-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  color: white !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-back-header:hover {
  background: rgba(255,255,255,0.35);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.page-header-banner .page-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--lc-direktori-hero-title, #ffffff);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.page-header-banner .page-subtitle {
  font-size: 1.08rem;
  color: var(--lc-direktori-hero-subtitle, rgba(255,255,255,0.85));
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 404 NOT FOUND STYLES */
.not-found-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  padding: 40px 20px;
  text-align: center;
}
.not-found-content {
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  max-width: 500px;
  width: 100%;
}
.not-found-content h2 {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 700;
}
.not-found-content p {
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.6;
}
.glitch-wrapper {
  margin-bottom: 30px;
}
.glitch {
  position: relative;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: var(--landing-primary, #1e3a8a);
  margin: 0;
  animation: float 4s ease-in-out infinite;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 red;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 83px, 0); }
  20% { clip: rect(62px, 9999px, 11px, 0); }
  40% { clip: rect(98px, 9999px, 32px, 0); }
  60% { clip: rect(15px, 9999px, 55px, 0); }
  80% { clip: rect(81px, 9999px, 49px, 0); }
  100% { clip: rect(4px, 9999px, 26px, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST / MAX-WIDTH)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-dtsen {
    padding: 120px 30px 40px;
    flex-direction: column;
    text-align: center;
  }
  .hero-dtsen-content {
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .hero-dtsen-title {
    font-size: 38px;
  }
  .hero-dtsen-actions, .hero-dtsen-checks {
    justify-content: center;
  }
  .hero-dtsen-security {
    justify-content: center;
    flex-wrap: wrap;
  }
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .faq-layout {
    flex-direction: column;
  }
  .faq-skyline-wrapper, .faq-list {
    flex: 1 1 100%;
  }
  .video-placeholder-card {
    height: 350px;
  }
}

@media (max-width: 768px) {
  /* Navbar & Hamburger Menu */
  .landing-topbar-dtsen {
    display: none !important;
  }
  .landing-navbar-dtsen {
    padding: 0 20px;
    height: 65px;
  }
  .dtsen-mobile-menu-btn {
    display: block;
    margin-left: auto;
  }
  .dtsen-nav-menu-wrapper {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: white;
    flex-direction: column;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top: 1px solid transparent;
    align-items: stretch;
    justify-content: flex-start;
  }
  .dtsen-nav-menu-wrapper.mobile-open {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid #f1f5f9;
  }
  .dtsen-nav-links {
    flex-direction: column;
    gap: 8px;
    margin: 0 0 20px 0;
  }
  .dtsen-nav-links a {
    display: block;
    padding: 12px 16px;
    background: #f8fafc;
    color: #1e293b !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }
  .dtsen-nav-links a.active, .dtsen-nav-links a:hover {
    background: rgba(203, 50, 52, 0.08);
    color: var(--landing-primary, #cb3234) !important;
  }
  .dtsen-nav-actions {
    flex-direction: column;
    gap: 10px;
  }
  .dtsen-nav-actions .btn-dtsen-login {
    width: 100%;
    text-align: center;
  }
  
  /* Hero */
  .hero-dtsen {
    padding: 100px 20px 40px;
  }
  .hero-dtsen-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  .hero-dtsen-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .hero-dtsen-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    box-sizing: border-box;
    align-items: center;
  }
  .btn-dtsen-primary, .btn-dtsen-outline {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  /* Stats */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
  }
  
  /* Sections */
  .section {
    padding: 40px 20px;
  }
  .section-title {
    font-size: 26px;
  }
  
  /* Video */
  .video-placeholder-card {
    height: 250px;
  }
  
  /* Timeline / Steps */
  .steps-timeline {
    flex-direction: column;
    gap: 30px;
  }
  .step-node {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  .step-card {
    margin-top: 0;
    margin-left: 15px;
  }
  .step-number {
    position: static;
    transform: none;
    margin-bottom: 0;
  }
  
  /* Grids */
  .regulations-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Chat Widget */
  .chat-widget {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 0; /* Base state */
    border-radius: 0 !important;
    z-index: 100000 !important;
    margin: 0 !important;
  }
  .chat-widget.open {
    max-height: 100dvh !important;
  }
  .chatbot-wrapper {
    bottom: 95px !important; /* Move the wrapper up to avoid overlap */
  }
  .chatbot-btn {
    display: none !important;
  }

  /* RPS Detail Header */
  .page-header-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px 40px !important;
  }
  .page-header-banner.detail-header-banner {
    padding: 40px 20px !important;
  }
  .page-header-banner .header-top-bar-nav {
    display: none !important;
  }
  .page-header-banner .header-banner-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-header-banner .page-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 0;
    word-break: break-word;
    text-align: center;
  }
  .page-header-banner .page-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
  }

  /* Bottom Banner */
  .bottom-banner-section {
    padding: 50px 20px;
  }
  .bottom-banner-title {
    font-size: 28px;
  }
  .bottom-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    align-items: stretch;
  }
  .bottom-banner-actions a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  /* Footer */
  .landing-footer {
    padding: 40px 20px 90px 20px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
