/* ==========================================================================
   POLITEKNIK JAMBI - CUSTOM STYLESHEET (custom.css)
   Clean, modular, and responsive frontend styles
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL VARIABLES & RESETS
   ========================================================================== */
:root {
  --primary-blue: #003d82;
  --secondary-blue: #004a99;
  --dark-blue: #002654;
  --accent-blue: #0066cc;
  --light-blue: #e3f2fd;
  --cyan-accent: #00bfff;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  max-width: 100%;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

/* Touch device optimizations */
@media (max-width: 640px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }
  a, button {
    -webkit-touch-callout: none;
  }
}

/* Utilitas utility visibility helper */
.hidden {
  display: none !important;
}

/* Global Selection */
::selection {
  background: var(--accent-blue);
  color: var(--white);
}

/* ==========================================================================
   2. NAVBAR & HEADER
   ========================================================================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 0;
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: var(--shadow-strong);
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin: 0 !important;
}

.navbar.scrolled {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066cc, #00bfff, #0066cc);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 100;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nav-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 30px;
  width: 100%;
}

/* Logo & Brand */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}

.brand {
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.brand p {
  margin: 0;
  font-size: 11.5px;
  color: var(--light-blue);
  line-height: 1.2;
  font-weight: 500;
  opacity: 0.95;
  white-space: nowrap;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  outline: none;
}

.menu-toggle:hover, .menu-toggle:focus {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-header,
.mobile-menu-footer {
  display: none;
}

/* ==========================================================================
   3. DESKTOP NAVIGATION (>= 993px)
   ========================================================================== */
@media (min-width: 993px) {
  .nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
  }

  .nav-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .nav-center > ul > li {
    position: relative;
  }

  .nav-center > ul > li > a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border-radius: var(--border-radius);
    position: relative;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .nav-center > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    border-radius: 2px;
    transition: transform 0.3s ease;
  }

  .nav-center > ul > li > a:hover::before,
  .nav-center > ul > li > a.active::before {
    transform: translateX(-50%) scaleX(1);
  }

  .nav-center > ul > li > a:hover,
  .nav-center > ul > li > a.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }

  .caret-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
  }

  /* Styling Khusus Tombol Menu Pendaftaran */
  .nav-pendaftaran-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.15) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    color: #fef08a !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  }

  .nav-pendaftaran-btn:hover,
  .dropdown.open .nav-pendaftaran-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(251, 191, 36, 0.25) 100%) !important;
    color: #ffffff !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  }

  /* Khusus Dropdown Menu Pendaftaran di Ujung Kanan (Agar tidak terpotong) */
  .nav-pendaftaran-item .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    min-width: 285px !important;
    width: max-content !important;
    border-radius: 12px 0 12px 12px !important;
    box-shadow: 0 12px 32px rgba(0, 38, 84, 0.18) !important;
  }

  .nav-pendaftaran-item .dropdown-menu li a {
    white-space: nowrap !important;
    padding: 10px 20px !important;
  }

  .dropdown:hover > a .caret-icon,
  .dropdown.active > a .caret-icon {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(0, 61, 130, 0.1);
    border-radius: 0 0 10px 10px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
  }

  .dropdown:hover > .dropdown-menu,
  .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-menu li a {
    color: var(--primary-blue) !important;
    background: transparent;
    padding: 10px 20px !important;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08) 0%, transparent 100%) !important;
    padding-left: 24px !important;
    color: var(--accent-blue) !important;
  }

  .dropdown-menu li a i {
    width: 18px;
    text-align: center;
    color: var(--accent-blue);
    font-size: 14px;
  }

  .dropdown-sub-menu {
    position: static !important;
    width: 100% !important;
    background: #f8fafc !important;
    border-left: 3px solid var(--accent-blue) !important;
    list-style: none;
    padding: 4px 0 !important;
    margin: 4px 0 !important;
  }

  .dropdown-sub-menu li a {
    padding: 7px 15px 7px 32px !important;
    font-size: 12px !important;
    color: var(--primary-blue) !important;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .nav-all {
    padding: 10px 18px;
  }
  .nav-center > ul > li > a {
    padding: 10px 12px;
    font-size: 11px;
  }
  .brand h1 {
    font-size: 17px;
  }
  .dropdown-menu {
    min-width: 250px;
  }
}

/* ==========================================================================
   4. MOBILE & TABLET DRAWER (<= 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-all {
    padding: 10px 16px;
  }
  .logo {
    height: 44px;
  }
  .brand h1 {
    font-size: 15px;
  }
  .brand p {
    font-size: 10px;
  }
  .menu-toggle {
    display: flex;
  }

  .nav-center {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #00224a 0%, #003366 50%, #002040 100%);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.45);
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    margin: 0;
  }

  .nav-center.active {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-header-logo {
    height: 38px;
    width: auto;
  }

  .mobile-header-text h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 0.5px;
  }

  .mobile-header-text p {
    margin: 0;
    font-size: 10.5px;
    color: #93c5fd;
    line-height: 1.2;
  }

  .close-menu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .close-menu:hover, .close-menu:active {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
  }

  .nav-menu-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    flex: 1 0 auto;
  }

  /* Pada mobile drawer (<= 992px), sembunyikan item dropdown pendaftaran agar tidak dobel dengan tombol PMB kuning di footer */
  .nav-pendaftaran-item {
    display: none !important;
  }

  .nav-center > ul > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0;
    padding: 0;
  }

  .nav-center > ul > li > a {
    width: 100%;
    padding: 13px 20px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
    transform: none !important;
  }

  .nav-center > ul > li > a::before {
    display: none !important;
  }

  .nav-center > ul > li > a:hover,
  .nav-center > ul > li > a:active {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
  }

  .caret-icon {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .dropdown.open > a .caret-icon {
    transform: rotate(180deg);
    color: #38bdf8;
  }

  .dropdown-menu {
    display: none !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border-left: 3px solid #00bfff !important;
    border-radius: 0 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
    overflow: hidden;
  }

  .dropdown.open > .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li {
    margin: 0;
    padding: 0;
  }

  .dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 11px 20px 11px 32px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 12.5px !important;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
    white-space: normal;
    line-height: 1.4;
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding-left: 36px !important;
  }

  .dropdown-menu li a i {
    font-size: 13px;
    color: #38bdf8;
    width: 16px;
    text-align: center;
  }

  .dropdown-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px 11px 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .dropdown-sub-menu {
    background: rgba(0, 0, 0, 0.35);
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
  }

  .dropdown-sub-menu li a {
    padding: 9px 20px 9px 44px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.78) !important;
  }

  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 24px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-shrink: 0;
  }

  .mobile-pmb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fbbf24;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 12.5px;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-align: center;
  }

  .mobile-pmb-btn:hover, .mobile-pmb-btn:active {
    background: #f59e0b;
    transform: translateY(-1px);
  }

  .mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
  }

  .mobile-social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
  }

  .mobile-social-links a:hover {
    background: #38bdf8;
    color: #00224a;
  }

  .mobile-footer-copy {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin: 12px 0 0 0;
  }

  body.menu-open {
    overflow: hidden !important;
    touch-action: none;
  }
}

@media (max-width: 480px) {
  .nav-center {
    width: 86%;
    max-width: 310px;
  }
  .nav-all {
    padding: 8px 12px;
  }
  .logo {
    height: 38px;
  }
  .brand h1 {
    font-size: 14px;
  }
  .brand p {
    font-size: 9.5px;
  }
}

/* ==========================================================================
   5. HOME PAGE - HERO CAROUSEL & SLIDER
   ========================================================================== */
@keyframes infinite-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes infinite-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-scroll {
  animation: infinite-scroll 45s linear infinite;
  display: flex;
  width: max-content;
}

.animate-scroll-reverse {
  animation: infinite-scroll-reverse 45s linear infinite;
  display: flex;
  width: max-content;
}

.pause-animation:hover {
  animation-play-state: paused;
}

.berita-fit {
  object-fit: contain !important;
  background: #f5f5f5;
}

/* Slider otomatis menyesuaikan dengan ukuran dan rasio asli gambar */
.header-carousel,
.owl-carousel,
section.relative.w-full.overflow-hidden.bg-gray-900 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

.header-carousel {
  width: 100%;
  height: auto !important;
  position: relative;
  overflow: hidden;
}

.header-carousel .owl-stage-outer,
.header-carousel .owl-stage,
.header-carousel .owl-item {
  height: auto !important;
}

.header-carousel .item {
  width: 100%;
  height: auto;
  position: relative;
  display: block;
  overflow: hidden;
}

.header-carousel .item img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

@media (min-width: 768px) {
  .carousel-prev { left: 20px; }
  .carousel-next { right: 20px; }
}

.carousel-progress {
  background: #3b82f6;
  height: 3px;
  width: 0%;
}

.owl-dots {
  display: none !important;
}

.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

.owl-carousel .owl-stage {
  will-change: transform;
}

/* ==========================================================================
   6. HOME PAGE - BANNER PMB (PENERIMAAN MAHASISWA BARU)
   ========================================================================== */
.pmb-wrapper {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  padding: 60px 20px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.pmb-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pmb-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pmb-banner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  background: white;
  padding: 50px;
  position: relative;
  z-index: 1;
}

.pmb-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pmb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: 50px;
  width: fit-content;
  border: 2px solid #93c5fd;
  animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.pmb-badge svg {
  stroke: #1e40af;
}

.pmb-title {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pmb-title-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 8px;
}

.pmb-desc {
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.pmb-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.pmb-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-weight: 500;
  font-size: 15px;
}

.pmb-feature-item svg {
  stroke: #10b981;
  background: #d1fae5;
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pmb-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.pmb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.pmb-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pmb-btn:hover::before {
  width: 300px;
  height: 300px;
}

.pmb-btn svg, .pmb-btn span {
  position: relative;
  z-index: 1;
}

.pmb-btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pmb-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.pmb-btn.secondary {
  background: transparent;
  color: #16a34a;
  border: 2px solid #16a34a;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.1);
}

.pmb-btn.secondary:hover {
  background: #16a34a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}

.pmb-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  color: #92400e;
  font-size: 14px;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.pmb-info svg {
  stroke: #f59e0b;
  flex-shrink: 0;
}

.pmb-info strong {
  color: #78350f;
  font-weight: 700;
}

.pmb-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease 0.4s backwards;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.pmb-decoration-circle {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(147, 197, 253, 0.05) 100%);
  border-radius: 50%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.pmb-decoration-dots {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, #93c5fd 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 0;
}

.pmb-img-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pmb-img-box:hover {
  transform: scale(1.03);
}

.pmb-img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.pmb-img-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pmb-stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pmb-stat-card-small {
  width: fit-content;
  padding: 12px 16px;
  align-self: flex-end;
}

.pmb-stat-icon {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pmb-stat-icon-small {
  width: 40px;
  height: 40px;
}

.pmb-stat-content {
  display: flex;
  flex-direction: column;
}

.pmb-stat-number {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.pmb-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 992px) {
  .pmb-banner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }
  .pmb-title { font-size: 36px; }
  .pmb-right { order: -1; }
  .pmb-img-box { max-width: 100%; }
}

@media (max-width: 768px) {
  .pmb-wrapper { padding: 40px 15px; margin: 40px 0; }
  .pmb-banner { padding: 30px 20px; border-radius: 20px; }
  .pmb-title { font-size: 32px; }
  .pmb-buttons { flex-direction: column; }
  .pmb-btn { width: 100%; justify-content: center; }
  .pmb-decoration-circle, .pmb-decoration-dots { display: none; }
  .pmb-stat-card { padding: 14px 16px; }
  .pmb-stat-number { font-size: 20px; }
}

@media (max-width: 480px) {
  .pmb-title { font-size: 28px; }
  .pmb-desc { font-size: 15px; }
  .pmb-badge { font-size: 12px; padding: 8px 16px; }
  .pmb-info { font-size: 13px; padding: 12px 16px; }
}

/* ==========================================================================
   7. FOOTER STYLING
   ========================================================================== */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  padding: 40px 0 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: #60a5fa;
  transform: translateX(5px);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  object-fit: contain;
}

.footer-logo-text h4 {
  font-size: 16px;
  margin: 0 0 5px 0;
  font-weight: 700;
  color: white;
}

.footer-logo-text p {
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social-contact {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.contact-links a:hover {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.contact-links a i {
  font-size: 16px;
}

.visitor-global-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flag-counter-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.supercounter-widget {
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 30px 0 0;
    margin-top: 40px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-logo {
    flex-direction: row;
    text-align: left;
  }
  .footer-logo img {
    width: 50px;
    height: 50px;
  }
  .social-links {
    justify-content: flex-start;
  }
  .contact-links a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-container { padding: 0 15px; }
  .footer-section h3 { font-size: 16px; }
  .footer-logo { padding: 12px; }
  .footer-logo img { width: 45px; height: 45px; }
  .footer-logo-text h4 { font-size: 14px; }
  .social-links a { width: 36px; height: 36px; font-size: 16px; }
}

/* ==========================================================================
   8. ANNOUNCEMENTS & ANIMATIONS
   ========================================================================== */
@keyframes slideIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-slideIn {
  animation: slideIn 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-in forwards;
}

/* ==========================================================================
   9. ARTICLE & NEWS DETAIL CONTENT (CKEDITOR)
   ========================================================================== */
.article-content {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #111827;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.article-content h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.article-content h3 { font-size: 1.35rem; }
.article-content h4 { font-size: 1.15rem; }

.article-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.35rem;
}

.article-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.35rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content blockquote {
  border-left: 4px solid #2563eb;
  background-color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #4b5563;
  margin: 1.75rem 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.75rem auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
}

.article-content a:hover {
  color: #1d4ed8;
}

/* Utility Line Clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   BEASISWA & JALUR RPL SECTION STYLES
   ========================================================================== */
.card-header-beasiswa {
  background: linear-gradient(135deg, #002654 0%, #003d82 60%, #1e40af 100%) !important;
}

.card-header-rpl {
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #002654 100%) !important;
}

.btn-rpl-wa {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.btn-rpl-wa:hover {
  background-color: #047857 !important;
}

