@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap");

:root {
  --primary-color: #0038e1; /* Even Deeper Royal Blue */
  --primary-dark: #0029b3;
  --secondary-color: #10b981; /* Emerald */
  --accent-color: #f59e0b; /* Amber */
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  --gradient-dark: linear-gradient(to right, #111827, #1f2937);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);

  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --reveal-transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Scroll Animation Reveal Classes */
.reveal {
  opacity: 0;
  transition: var(--reveal-transition);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}
.reveal-down {
  transform: translateY(-40px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-scale {
  transform: scale(0.95);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Delay Utilites for Staggering */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  /* Default: Mobile behavior (body scrolls) to support Pull-to-Refresh */
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#scroll-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 50px; /* Space for fixed header on mobile */
  position: relative;
}

@media (min-width: 992px) {
  body {
    overflow: hidden;
    height: 100vh;
  }
  #scroll-content {
    height: calc(100vh - 72px);
    margin-top: 72px;
    padding-top: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

/* Custom Scrollbar Styling */
#scroll-content::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#scroll-content::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: transparent;
}

#scroll-content::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#scroll-content::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.4);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Dark Modal Scrollbar */
.pdf-modal {
  color-scheme: dark; /* Suggests browser to use dark scrollbars for internal UI */
}

.pdf-modal ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5); /* Dark thumb like Classroom */
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.pdf-modal ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.7);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image Placeholder for missing data */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  border: 1px dashed #e2e8f0;
  transition: var(--transition);
}

.img-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.img-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20000 !important;
  background: var(--primary-color); /* Solid Blue */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.site-header.scrolled {
  background: white;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled .logo,
.site-header.scrolled .logo span {
  color: var(--primary-color);
}

.site-header.scrolled .main-nav a {
  color: var(--text-light);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  color: var(--primary-color);
}

.site-header.scrolled .main-nav a::after {
  background: var(--primary-color);
}

.site-header.scrolled .mobile-menu-btn {
  color: var(--text-main);
}

.site-header.scrolled .has-dropdown i {
  color: var(--text-light);
}

.site-header.scrolled .logo-icon-box {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.site-header.scrolled .logo-icon-box i {
  color: white;
}

.site-header.scrolled .logo-text-top {
  color: var(--primary-color);
}

.site-header.scrolled .logo-text-bottom {
  color: #64748b;
}

.site-header.scrolled .btn-header-register {
  background: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.site-header.scrolled .btn-header-register:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  transition: var(--transition);
}

/* Layout Alignment Logic */
.nav-wrapper .logo,
.nav-wrapper .header-action {
  flex: 1;
}
.nav-wrapper .header-action {
  display: flex;
  justify-content: flex-end;
}
.nav-wrapper .main-nav {
  flex: 0 0 auto;
}

/* PMB Inactive State */
.nav-wrapper.pmb-inactive .logo {
  flex: 0 1 auto;
}
.nav-wrapper.pmb-inactive .main-nav {
  margin-left: auto;
  flex: 0 0 auto;
}
.nav-wrapper.pmb-inactive .header-action {
  display: none !important;
}

.site-header.scrolled .nav-wrapper {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
}

.logo-icon-box {
  background: rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  overflow: hidden;
}

.logo-icon-box i {
  font-size: 1.2rem;
  color: white;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-top {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: white;
  transition: var(--transition);
}

.logo-text-bottom {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.btn-header-register {
  background: white;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: none;
}

.btn-header-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #f8fafc;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem !important;
  color: var(--text-main) !important;
  border-bottom: none !important;
  font-size: 0.9rem !important;
}

.dropdown-menu a:hover {
  background: var(--bg-main);
  color: var(--primary-color) !important;
}

.dropdown-menu a::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  overflow: hidden;
}

.logo-icon-box i {
  font-size: 1.2rem;
  color: white;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-top {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: white;
  transition: var(--transition);
}

.logo-text-bottom {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.btn-header-register {
  background: white;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: none;
}

.btn-header-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #f8fafc;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem !important;
  color: var(--text-main) !important;
  border-bottom: none !important;
  font-size: 0.9rem !important;
}

.dropdown-menu a:hover {
  background: var(--bg-main);
  color: var(--primary-color) !important;
}

.dropdown-menu a::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: white;
  min-height: 2.2em; /* Reserve space for typing */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-desc {
  font-size: 1.2rem;
  color: #d1d5db;
  margin-bottom: 2.5rem;
  min-height: 3.6em; /* Reserve space for typing */
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Sections General */
.section {
  padding: 6rem 0;
}

.section-light {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.view-more-container {
  margin-top: 3rem;
  text-align: center;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Kaprodi Section */
.kaprodi-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.kaprodi-img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  z-index: 1;
}

.kaprodi-img {
  width: 100%;
  transition: var(--transition);
}

.kaprodi-img-wrapper:hover .kaprodi-img {
  transform: scale(1.05);
}

.kaprodi-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.kaprodi-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.quote-icon {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.kaprodi-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Cards (Facilities, Activities, News) */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.card-link:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* Alumni Cards */
.alumni-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.alumni-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.alumni-card:hover::before {
  transform: scaleX(1);
}

.alumni-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.alumni-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.alumni-work {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.alumni-year {
  display: inline-block;
  background: var(--bg-main);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Announcements List */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.announcement-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.announcement-icon {
  font-size: 2rem;
  color: #ef4444; /* PDF Red */
  margin-right: 1.5rem;
}

.announcement-content {
  flex-grow: 1;
}

.announcement-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.announcement-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.announcement-action {
  margin-left: 1rem;
}

/* View More Button Container */
.view-more-container {
  text-align: center;
  margin-top: 3rem;
}

/* Page Header (Inner pages) */
.page-header {
  padding: 4.5rem 0 3.5rem;
  background: var(--bg-main); /* Match with page content background */
  color: #475569; /* Slate 600 for description text */
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  color: #0f172a; /* Slate 900 for dark title */
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.page-header p {
  margin-bottom: 0;
}

.page-header + .section {
  padding-top: 0;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-btn {
    display: block;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   REDESIGN BERANDA (NEW STYLES)
   ========================================= */

/* Kaprodi Profile Card */
.kaprodi-profile-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  position: relative;
  max-width: 350px;
  margin: 0 auto; /* Kembali ke rata tengah */
}
.kaprodi-profile-card .card-header {
  background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
  height: 120px;
}
.kaprodi-profile-card .card-body {
  padding: 0 2rem 2rem;
  position: relative;
}
.kaprodi-profile-card .profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: -60px auto 0; /* Pastikan rata tengah */
  display: block;
  background: #f1f5f9;
  object-fit: cover;
}
.kaprodi-profile-card .profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--text-dark);
}
.kaprodi-profile-card .profile-title {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.kaprodi-profile-card .profile-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}
.kaprodi-profile-card .profile-stats {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
}
.kaprodi-profile-card .stat-item {
  margin-bottom: 0.8rem;
}
.kaprodi-profile-card .stat-item:last-child {
  margin-bottom: 0;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
}
.kaprodi-profile-card .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.kaprodi-profile-card .stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.2rem;
}

/* Quote Section */
.kaprodi-grid {
  grid-template-columns: 380px 1fr !important; /* Beri ruang tetap untuk card agar teks bisa lebih lebar */
  gap: 0 !important;
  align-items: center;
}
.quote-section {
  display: flex;
  align-items: flex-start;
  padding-left: 2rem;
  margin-left: 2rem;
  position: relative;
}
.quote-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5%;
  bottom: 5%;
  width: 4px;
  background: var(--primary-color);
  border-radius: 10px;
}
.quote-icon-large {
  position: absolute;
  font-size: 5rem;
  color: #eff6ff;
  line-height: 1;
  top: -10px;
  left: 0.5rem; /* Letakkan sedikit setelah garis biru */
  z-index: 1;
  opacity: 0.8;
}
.quote-content {
  position: relative;
  z-index: 2;
}
.quote-content h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}
.quote-content h2 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.quote-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Features Grid (Mengapa Memilih Kami) */
.feature-section {
  background: #f8fafc;
  padding: 5rem 0;
}
.feature-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.feature-section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.feature-section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-icon {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Cakupan Kurikulum */
.kurikulum-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.kurikulum-info {
  max-width: 500px;
}
.kurikulum-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.kurikulum-slider-dots {
  display: flex;
  gap: 0.5rem;
}
.kurikulum-dot {
  width: 24px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}
.kurikulum-dot.active {
  background: var(--primary-color);
}
.kurikulum-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  height: 100%;
}
.k-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.k-icon-1 {
  background: #fffbeb;
  color: #d97706;
}
.k-icon-2 {
  background: #f0fdf4;
  color: #16a34a;
}
.k-icon-3 {
  background: #fdf4ff;
  color: #c026d3;
}
.k-icon-4 {
  background: #eff6ff;
  color: var(--primary-color);
}
.kurikulum-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.kurikulum-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Dampak Nyata (Stats) */
.stats-section {
  padding: 5rem 0;
  text-align: center;
}
.stats-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.stats-section .container > p {
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.stats-container {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
  position: relative;
  overflow: hidden;
}
.stats-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  opacity: 0.5;
}
.stat-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  z-index: 1;
}
.stat-box h3 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.stat-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Kegiatan Mahasiswa Cards */
.kegiatan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.kegiatan-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.kegiatan-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kegiatan-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kegiatan-card-img {
  height: 200px;
  position: relative;
}
.kegiatan-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kegiatan-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.kegiatan-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kegiatan-date {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.kegiatan-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.kegiatan-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* Responsiveness adjustments */
@media (max-width: 992px) {
  .kaprodi-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .quote-section {
    flex-direction: column;
    padding-left: 0;
    margin-top: 3rem;
    margin-left: 0;
  }
  .quote-section::before {
    display: none;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .kurikulum-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .kegiatan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Alumni New Card Design */
.alumni-card-new {
  background: #ffffff;
  border-radius: 40px;
  padding: 2.2rem 1.2rem 1.2rem;
  text-align: center;
  position: relative;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alumni-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.alumni-img-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 0;
  background: #f1f5f9;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alumni-img-wrapper img,
.alumni-img-wrapper .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.alumni-year-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  z-index: 10;
}

.alumni-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.alumni-job {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.alumni-workplace-box {
  background: #f8fafc;
  border-radius: 20px;
  padding: 1rem 0.8rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.alumni-card-new:hover .alumni-workplace-box {
  background: #f1f5f9;
}

.alumni-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.alumni-company {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

/* =========================================
   NEW CARD STYLES (PROFIL, DOSEN, FASILITAS, PENGUMUMAN, BERITA)
   ========================================= */

/* Profil Program Studi */
.profil-sejarah-card {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
  margin-bottom: 2rem;
}
.sejarah-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1.2rem;
  color: white;
}

/* PMB CTA Section */
.pmb-section {
  padding: 4rem 0 2rem;
}
.pmb-cta-card {
  background: #eff6ff;
  border-radius: 40px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.05);
}
.pmb-cta-card::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 40px;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(var(--primary-color) 20%, transparent 20%);
  background-size: 15px 15px;
  opacity: 0.1;
  z-index: 1;
}
.pmb-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.pmb-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.pmb-desc {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.pmb-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
.pmb-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-number {
  width: 42px;
  height: 42px;
  background: #dbeafe;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.3rem;
}
.step-info p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}
.pmb-image-wrapper {
  position: relative;
  z-index: 2;
}
.pmb-image-bg {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 24px;
  z-index: -1;
  transform: rotate(3deg);
}
.pmb-image {
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 8px solid white;
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}
.pmb-cta-card:hover .pmb-image {
  transform: rotate(0deg) scale(1.02);
}

/* Global PMB Inactive Hide Rules */
body.pmb-inactive #pmb-hero-badge,
body.pmb-inactive #pmb-hero-btn,
body.pmb-inactive #pmb-header-btn,
body.pmb-inactive #pmb-mobile-btn,
body.pmb-inactive #pmb-cta-section {
  display: none !important;
}

@media (max-width: 992px) {
  .pmb-cta-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem; /* Reduced gap for sequential flow */
  }
  .pmb-content {
    display: contents; /* Allows children to be ordered directly within the card */
  }
  .pmb-badge {
    order: 1;
    margin-bottom: 0.5rem;
    align-self: flex-start;
  }
  .pmb-title {
    order: 2;
    font-size: 2.2rem;
    margin-bottom: 0;
  }
  .pmb-image-wrapper {
    order: 3;
    max-width: 100%;
    margin: 1rem 0 2.5rem; /* Narrower top, wider bottom as requested */
  }
  .pmb-image,
  .pmb-image-bg {
    transform: none !important; /* Remove rotation on mobile for cleaner look */
  }
  .pmb-image-bg {
    bottom: -15px !important;
    right: -15px !important;
  }
  .pmb-desc {
    order: 4;
    margin-bottom: 1.5rem;
  }
  .pmb-steps {
    order: 5;
    margin-bottom: 2rem;
  }
  .pmb-cta-card .btn {
    order: 6;
    align-self: stretch;
    text-align: center;
  }
}
.profil-sejarah-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}
.profil-sejarah-card .profil-content {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.profil-visi-misi-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  height: 100%;
}
.vm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.profil-visi-misi-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.profil-visi-misi-card .profil-content {
  line-height: 1.8;
  color: var(--text-light);
}

/* Dosen & Tenaga Kependidikan */
.dosen-card-new {
  background: #ffffff;
  border-radius: 40px;
  padding: 2.2rem 1.2rem 1.2rem;
  text-align: center;
  position: relative;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.dosen-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.dosen-img-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 0;
  background: #f1f5f9;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dosen-img-wrapper img,
.dosen-img-wrapper .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.dosen-nidn-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  z-index: 10;
}

.dosen-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.dosen-job {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dosen-expertise-box {
  background: #f8fafc;
  border-radius: 20px;
  padding: 1rem 0.8rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto;
}

.dosen-card-new:hover .dosen-expertise-box {
  background: #f1f5f9;
}

.expertise-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.expertise-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.expertise-sep {
  height: 1px;
  background: #e2e8f0;
  width: 80%;
  margin: 0 auto 0.5rem;
}

.education-value {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fasilitas Kampus */
.fasilitas-card-new {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.fasilitas-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.fasilitas-img {
  height: 220px;
  width: 100%;
}
.fasilitas-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fasilitas-content {
  padding: 2rem;
  flex: 1;
}
.fasilitas-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.fasilitas-content p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Pengumuman */
.pengumuman-card-new {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}
.pengumuman-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.pengumuman-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.badge-blue {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pengumuman-date {
  color: #94a3b8;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pengumuman-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.pengumuman-desc {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex: 1;
}
.pengumuman-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pengumuman-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-dark {
  background: #0f172a;
  color: white;
}
.btn-dark:hover {
  background: #1e293b;
  color: white;
}
.btn-light-blue {
  background: #eff6ff;
  color: var(--primary-color);
}
.btn-light-blue:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Berita Terbaru */
.berita-card-new {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.berita-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.berita-img-wrapper {
  position: relative;
  height: 220px;
}
.berita-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.berita-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.berita-content-new {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.berita-date {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.berita-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.berita-desc {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.berita-link-new {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}
.berita-link-new:hover {
  gap: 0.8rem;
}

/* Sticky Footer Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

main.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* Full Screen Loader Overlay */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.loader-text {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Remove old top loading bar if any */
#loading-bar {
  display: none !important;
}

/* New Footer Design */
.site-footer {
  background: #0f172a; /* Dark Navy */
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-col p {
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item i {
  color: #3b82f6;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition:
    transform 0.3s,
    color 0.3s;
}

.footer-social a:hover {
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Profil Page Styles */
.profil-section {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
}
.profil-section h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}
.profil-content {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
}
/* Kurikulum Card */
.kurikulum-card-new {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.kurikulum-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.kurikulum-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.5;
}

.kurikulum-card-new:hover::before {
  opacity: 1;
}

.kurikulum-icon {
  width: 45px;
  height: 45px;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.kurikulum-card-new h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.kurikulum-card-new p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* Curriculum Color Variations */
.k-color-web .kurikulum-icon {
  background: #eff6ff;
  color: var(--primary-color);
}
.k-color-web::before {
  background: var(--primary-color);
}
.k-color-web:hover {
  border-color: var(--primary-color);
}

.k-color-data .kurikulum-icon {
  background: #ecfdf5;
  color: #059669;
}
.k-color-data::before {
  background: #059669;
}
.k-color-data:hover {
  border-color: #059669;
}

.k-color-ai .kurikulum-icon {
  background: #f5f3ff;
  color: #7c3aed;
}
.k-color-ai::before {
  background: #7c3aed;
}
.k-color-ai:hover {
  border-color: #7c3aed;
}

.k-color-cyber .kurikulum-icon {
  background: #fff1f2;
  color: #e11d48;
}
.k-color-cyber::before {
  background: #e11d48;
}
.k-color-cyber:hover {
  border-color: #e11d48;
}

.k-color-rpl .kurikulum-icon {
  background: #eef2ff;
  color: #4f46e5;
}
.k-color-rpl::before {
  background: #4f46e5;
}
.k-color-rpl:hover {
  border-color: #4f46e5;
}

.k-color-mobile .kurikulum-icon {
  background: #fff7ed;
  color: #ea580c;
}
.k-color-mobile::before {
  background: #ea580c;
}
.k-color-mobile:hover {
  border-color: #ea580c;
}

/* Section Styles */
.section {
  padding: 5rem 0;
  background: transparent;
}

.section-light {
  background: rgba(255, 255, 255, 0.5);
}

/* =========================================
   DETAIL PAGE STYLES (BERITA & KEGIATAN)
   ========================================= */
.detail-hero {
  height: 450px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.9)
  );
}
.detail-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.detail-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.detail-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.detail-main-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  padding-top: 4rem;
  padding-bottom: 8rem;
  position: relative;
  z-index: 10;
}
.detail-content-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #64748b;
  font-size: 0.95rem;
}
.meta-date-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  text-align: center;
}
.meta-date-box .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  display: block;
}
.meta-date-box .month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.detail-intro-block {
  background: #ffffff;
  border-left: 5px solid var(--primary-color);
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 2.5rem;
  border-radius: 4px 16px 16px 4px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.detail-body-text {
  font-size: 1.15rem;
  line-height: 2.2;
  color: #334155;
  text-align: justify;
}

/* Sidebar Styles */
.sidebar-sticky {
  position: sticky;
  top: 120px;
}
.sidebar-card {
  background: white;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}
.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  text-decoration: none;
  transition: all 0.2s;
  align-items: center;
}
.sidebar-item-img {
  width: 100px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
}
.sidebar-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.sidebar-item:hover .sidebar-item-img img {
  transform: scale(1.1);
}
.sidebar-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-item:hover .sidebar-item-title {
  color: var(--primary-color);
}
.sidebar-item-date {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.4rem;
  display: block;
}

@media (max-width: 1100px) {
  .detail-main-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detail-hero {
    height: 380px;
  }
  .detail-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    height: 320px !important;
    padding-bottom: 2rem !important;
    align-items: flex-end !important;
    display: flex !important;
  }

  .detail-hero-content {
    width: 100% !important;
    padding: 0 !important;
  }

  .detail-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
  }

  .detail-category {
    margin-bottom: 1rem !important;
    padding: 0.4rem 1rem !important;
    font-size: 0.75rem !important;
  }

  .detail-main-layout {
    padding-top: 1.5rem !important;
    padding-bottom: 4rem !important;
  }

  .detail-intro-block {
    padding: 1.5rem !important;
    font-size: 1.05rem !important;
    border-radius: 4px 12px 12px 4px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .detail-body-text {
    margin-top: 1.5rem !important;
    font-size: 1rem !important;
  }

  .detail-content-card {
    width: 100% !important;
  }

  /* Make content full width matching header */
  .detail-main-layout > .container {
    padding: 0 1rem !important;
  }
}

/* Sidebar Footer & See All Button */
.sidebar-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.sidebar-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.sidebar-see-all:hover {
  gap: 1.25rem;
  color: #1d4ed8;
}

/* Capaian Pembelajaran Card */
.capaian-section {
  margin-top: 4rem;
}

.capaian-card {
  background: white;
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.capaian-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.capaian-icon-box {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 56, 225, 0.2);
}

.capaian-header h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a202c;
  margin: 0;
  font-weight: 800;
}

.capaian-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
}

@media (max-width: 768px) {
  .capaian-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .capaian-card {
    padding: 2rem 1.5rem !important;
    border-radius: 1.5rem !important;
  }
  .capaian-header {
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  .capaian-header h2 {
    font-size: 1.25rem !important;
  }
}

.capaian-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.capaian-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0, 56, 225, 0.1);
}

.capaian-item p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Pagination Public (Admin Style) */
.pagination-public {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.8rem;
  margin: 3rem auto 1rem;
  padding-bottom: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.page-btn-pub {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: white;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Outfit", sans-serif;
}

.page-btn-pub.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  transform: scale(1.1);
}

.page-btn-pub:hover:not(.active):not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #f0f7ff;
  transform: translateY(-3px);
}

.page-btn-pub:disabled {
  cursor: not-allowed;
  opacity: 0.3;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .pagination-public {
    gap: 0.5rem;
  }
  .page-btn-pub {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}

/* PDF Viewer Modal (Classroom Style) */
.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* More transparent side area */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pdf-modal.active {
  opacity: 1;
  visibility: visible;
}

.pdf-modal-header {
  height: 64px;
  background: rgba(31, 41, 55, 0.98);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  color: white;
  backdrop-filter: blur(15px);
  z-index: 10;
}

.pdf-modal-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Outfit", sans-serif;
}

.pdf-modal-title i {
  color: #ef4444;
  font-size: 1.2rem;
}

.pdf-modal-title span {
  font-size: 1rem;
  font-weight: 500;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pdf-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pdf-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pdf-modal-body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0; /* Remove padding */
  overflow: hidden;
}

.pdf-iframe-wrapper {
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  position: relative;
  /* Standard properties for modern browsers */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}

.pdf-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color-scheme: dark;
}

.pdf-btn-action {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s;
}

.pdf-btn-action:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .pdf-modal-title span {
    max-width: 150px;
  }
  .pdf-modal-actions .pdf-btn-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
  }
  .pdf-modal-actions .pdf-btn-action span {
    display: none !important;
  }
  .pdf-modal-actions .pdf-btn-action i {
    font-size: 1.25rem !important;
    margin: 0 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .pdf-iframe-wrapper {
    width: 100%;
    border-radius: 0;
  }
}

/* Badge & Important Styles */
/* Badge & Important Styles */
.badge-blue-pill {
  background: #0038e1;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.badge-red-pill {
  background: #ef4444;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.pengumuman-card-final {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.pengumuman-card-final:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.pengumuman-img-wrapper {
  height: 180px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.pengumuman-badge-overlay-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 5;
}

.pengumuman-date-overlay-top {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #475569;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pengumuman-body-new {
  padding: 1.8rem;
  background: white;
}

.pengumuman-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6rem;
}

.btn-light-blue:hover {
  background: #2563eb !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.pengumuman-img-wrapper .img-placeholder {
  border: none;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.pengumuman-img-wrapper .img-placeholder i {
  color: #ef4444; /* PDF Red */
  font-size: 2.5rem;
}

.pengumuman-img-wrapper .img-placeholder span {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* Important Popup Styles */
.popup-stack-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100 !important;
  pointer-events: none;
  transition:
    backdrop-filter 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 1.2s ease;
}

.popup-stack-container.has-items {
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

body.menu-open .popup-stack-container {
  display: none !important;
}

.important-popup {
  width: 380px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  padding: 1.8rem;
  transform: scale(0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  will-change: transform, opacity;
}

.popup-stack-container.has-items .important-popup {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.important-popup.closing {
  transform: scale(1.1) !important;
  opacity: 0 !important;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.popup-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.popup-tag {
  display: inline-block;
  background: #fee2e2;
  color: #ef4444;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.popup-category-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  letter-spacing: 1px;
  border: 1px solid #dbeafe;
  text-transform: uppercase;
}

.popup-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.popup-title-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: all 0.3s ease;
  display: block;
}

.popup-item-row {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.popup-item-row:hover {
  background: #f1f5f9;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.popup-item-row:hover .popup-title-link {
  color: #1e40af;
}

.popup-item-row:last-child {
  margin-bottom: 0 !important;
}

.popup-footer {
  display: flex;
  gap: 1rem;
}

/* popup-btn-primary removed as titles are now clickable */

.popup-btn-secondary {
  flex: 1;
  background: #f8fafc;
  color: #64748b !important;
  text-align: center;
  padding: 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.popup-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 56, 225, 0.3);
}

.popup-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a !important;
}

#header-wrapper {
  position: relative;
  z-index: 22000 !important;
}

/* Mobile Full-Screen Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 19000 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  /* Removed overflow: hidden to allow child scrolling */
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-unroll {
  background: #f8fafc;
  border-bottom: 4px solid var(--primary-color);
  padding-top: 80px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  z-index: 1;
  position: relative;
}

/* Shadow below header when menu is open */
.mobile-menu-unroll::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent);
  z-index: 5;
  pointer-events: none;
}

.mobile-menu-overlay.active .mobile-menu-unroll {
  transform: translateY(0);
}

.mobile-menu-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Momentum scroll for iOS */
  padding: 1.5rem;
  padding-top: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-menu-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link,
.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

.mobile-dropdown-header {
  cursor: pointer;
}

.mobile-dropdown-header i {
  display: none;
}

.mobile-dropdown-content {
  max-height: none;
  overflow: visible;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-dropdown-content a {
  padding: 0.25rem 0;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.mobile-menu-footer {
  padding: 0.8rem 1.5rem;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.btn-mobile-pmb {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #2563eb;
  color: white;
  text-align: center;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .main-nav,
  .header-action {
    display: none !important;
  }

  /* Hero Banner Mobile Optimization */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 80px 0 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-content {
    max-width: 100% !important;
    padding: 0 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important; /* Force center alignment */
    height: 100% !important;
  }

  #pmb-hero-badge {
    display: inline-flex; /* Removed !important to allow JS/class-based hiding */
    width: auto;
    margin-top: 0;
    margin-bottom: 1.2rem;
    transform: scale(0.9);
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.2rem !important;
  }

  .hero-desc {
    font-size: clamp(1rem, 4.5vw, 1.2rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
    max-width: 100% !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  .hero-actions .btn {
    width: 100%;
    margin: 0;
    padding: 1rem;
    display: flex; /* Removed !important to allow JS/class-based hiding */
    justify-content: center;
    align-items: center;
  }
}

/* Important Popup Mobile Styles - SOLID DARK BACKDROP */
@media (max-width: 991px) {
  /* Global Mobile Scrollbar Hider */
  *::-webkit-scrollbar {
    display: none !important;
  }
  html,
  body,
  #scroll-content,
  .pdf-modal,
  .pdf-modal-body,
  .pdf-iframe-wrapper {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }

  .popup-stack-container {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 72px) !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(15, 23, 42, 0) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    z-index: 9000 !important; /* Below header wrapper 22000 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    will-change: backdrop-filter, background;
  }

  .popup-stack-container.has-items {
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(15, 23, 42, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    animation: none !important; /* Disable keyframe animation for smoother transition */
  }

  .important-popup {
    pointer-events: auto !important;
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 !important;
    transform: scale(0.7); /* Initial state for transition */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .important-popup.active {
    transform: scale(1) translateY(0) !important;
  }
}

#kaprodi-sambutan,
#kaprodi-deskripsi,
.hero-title,
.hero-desc {
  position: relative;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    visibility 0.6s;
  transform: translateY(5px);
  /* Removed border-right to eliminate the typing cursor as requested */
}

#kaprodi-sambutan.typed-done,
#kaprodi-deskripsi.typed-done,
.hero-title.typed-done,
.hero-desc.typed-done {
  transform: translateY(0);
}

#kaprodi-sambutan.typing-active,
#kaprodi-deskripsi.typing-active,
.hero-title.typing-active,
.hero-desc.typing-active {
  /* Cursor animation removed */
}

@keyframes blink-caret {
  from,
  to {
    border-right-color: transparent;
  }
  50% {
    border-right-color: inherit;
  }
}
