* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-grad-start: #00004d; /* Deep Navy */
  --blue-grad-end: #0a0a85;   /* Medium Navy */
  --yellow-grad-start: #ffde00; /* Bright Yellow */
  --yellow-grad-end: #ffb300;   /* Deep Yellow */
  --cyan-accent: #00AEEF; /* Dari logo Kampus Merdeka */
  --text-navy: #000033;
  --bg-light: #f4f7f6;
}

body {
  font-family: 'nunito';
  color: #333;
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

main {
  margin: 0 auto;
  padding-bottom: 20px;
  padding-top: 110px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

main.content-loaded {
  opacity: 1;
  transform: translateY(0);
}

/*ANIMATION LOADER*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light); /* Warna background preloader */
  z-index: 99999; /* Memastikan preloader berada paling atas */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*NAVIGATION BAR*/
nav {
  width: 100%;
  z-index: 9999;
}

#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: transparent;
  transition: all 0.4s ease-in-out;
}

.nav-header {
  background-color: var(--yellow-grad-end); /* Warna solid bagian atas */
  padding: 8px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 35px;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  height: 40px; /* Tinggi pasti agar transisi mulus */
}

.nav-header a {
  color: var(--blue-grad-end);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: bold;
}

.nav-header a:hover {
  color: #58b0f3;
}

.main-nav {
  background-color: transparent; 
  transition: all 0.4s ease-in-out;
  padding: 15px 40px;
}

/* --- KONDISI SAAT DI-SCROLL (.navbar-scrolled) --- */
#main-navbar.hide-top-bar .nav-header {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

#main-navbar.solid-nav {
  background-color: var(--blue-grad-start); /* Menjadi biru solid */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Pastikan bagian dalam main-nav tidak menutupi warna biru dari bungkus luarnya */
#main-navbar.solid-nav .main-nav {
  background-color: transparent; 
}

.nav-container {
  max-width: 100%;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

.nav-menu {
  background-color: var(--blue-grad-start);
  max-width: 100%;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  z-index: 9999;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: auto;
  height: 60px;
  margin: 0;
  padding: 0;
}

.nav-links {
  font-family: 'Trebuchet MS';
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: 'Trebuchet MS';
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-links a:hover {
  color: #58b0f3;
}

.nav-links > li:last-child .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown {
  position: relative;
  color: #fff;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgb(3, 3, 102);
  backdrop-filter: blur(10px);
  min-width: 220px;
  list-style: none;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-link:hover {
  color: white;
  padding-left: 25px;
}

/*HOME - BANNER SECTION*/
.banner-home {
  padding: 0;
}

.banner-home .banner-home-slider {
  position: relative;
  overflow: hidden;
}

.banner-home .banner-home-item {
  position: relative;
  height: 80vh;
  min-height: 600px;
}

.banner-home .banner-home-item img {
  width: 100%;
  height: 100%;
}

.banner-home .banner-home-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.banner-home .swiper-button-prev,
.banner-home .swiper-button-next {
  color: var(--contrast-color);
  width: 60px;
  height: 60px;
}

.banner-home .swiper-button-prev::after,
.banner-home .swiper-button-next::after {
  font-size: 32px;
}

.banner-home .swiper-button-prev:hover,
.banner-home .swiper-button-next:hover {
  color: var(--accent-color);
}

.banner-home .swiper-wrapper {
  height: auto !important;
}

/*HOME - CONTENT SECTION*/
.content-home {
  max-width: 100%;
  margin: 25px;
}

.heading-home {
  margin: 0;
  padding: 10px;
  width: 100%;
  text-align: center;
  justify-content: center;
  display: inline-block;
  color: white;
  background-color: rgb(3, 3, 102);
  border-radius: 10px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card {
  background: #f8fafc;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.highlight-text {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 25px;
  text-align: center !important;
}

.main-home p {
  margin-bottom: 15px;
  text-align: justify;
}

.section-main {
  color: #1e3a8a;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
}

.custom-list {
  list-style: none;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.custom-list li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -4px;
}

.custom-list-numbered {
  padding-left: 20px;
}

.custom-list-numbered li {
  margin-bottom: 12px;
  padding-left: 10px;
}

.video-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

video {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.divider {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #58b0f3);
  width: 90%;
  margin: 40px auto;
  border-radius: 2px;
  opacity: 0.5;
}

/*TITLE - ALL SECTION*/
.title-content {
  background: rgb(211, 211, 211);
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.title-content h1 {
  color: white;
  font-size: 2rem;
  margin: 25px;
  text-align: center;
  display: inline-block;
  border: 2px;
  padding: 10px;
  background-color: rgb(3, 3, 102);
  width: 450px;
  border-radius: 10px;
  box-shadow: 0 0 10px 2px #3b82f6;
}

/*MAIN - CONTENT SECTION*/
.main-content .list-item h2 {
  margin: 25px;
}

.main-content .list-item {
  margin: 25px;
  padding: 0;
  text-align: justify;
  flex: 1;
}

/*STRUKTUR ORGANISASI SECTION*/
.table-organisasi {
  margin: 25px;
}

/*DOSEN SECTION*/
.main-content {
  padding: 0;
}

.main-content p {
  text-align: justify;
}

.main-content .container-item {
  width: 400px;
  padding: 5px;
  display: table-cell;
}

.main-content .container-item img {
  width: 150px;
  height: 150px;
}

/*ALL - TABLE SECTION*/
table {
  border-collapse: collapse;
  width: 100%;
}

tr:nth-child(odd) {
  background-color: rgb(211, 211, 211);
}

td {
  border: 1px solid;
  text-align: left;
  padding: 5px;
}

/*BIODATA - DOSEN SECTION*/
.dosen-layout-container {
  display: grid;
  grid-template-columns: 300px 1fr; /* Membagi menu kiri dan konten kanan */
  gap: 40px;
  align-items: start;
}

.main-content .list-dosen {
  text-align: left;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-content .list-dosen a {
  color: #334155;
  text-decoration: none;
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 0;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.main-content .list-dosen a.active {
  color: white;
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.main-content .list-dosen a:hover:not(.active) {
  color: white;
  background-color: #58b0f3;
  border-color: #58b0f3;
}

.main-content .dosen-item {
  margin: 0;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.dosen-header {
  margin-bottom: 25px;
}

.main-content .dosen-item h2 {
  margin: 0 0 15px 0;
  font-size: 1.75rem;
  color: #1e3a8a;
}

.nav-dosen a {
  color: #58b0f3;
  text-decoration: none;
}

.nav-dosen a:hover {
  color: #3b82f6;
}

.dosen-details-wrapper {
  display: flex;
  gap: 30px;
  flex-direction: column;
  align-items: center;
}

.dosen-image {
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.dosen-image img {
  height: auto;
  width: 250px;
  display: block;
  object-fit: contain;
}

.dosen-content {
  flex: 1;
  width: 100%;
}

.biodata-dosen {
  margin: 0 0 25px 0 !important;
  line-height: 1.7;
  text-align: justify;
}

.dosen-matkul {
  background-color: #eff6ff;
  padding: 12px 20px;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  margin-bottom: 25px;
}

.dosen-matkul p {
  margin: 0 !important;
  color: #1e40af;
}

.dosen-matkul h3 {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 12px;
}

.dosen-matkul ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.dosen-matkul ul li {
  position: relative;
  padding-left: 20px;
  color: #475569;
}

.dosen-matkul ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 2px;
}

.dosen-publikasi {
  display: block;
  margin-top: 30px;
}

.publikasi-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.publikasi-container img {
  box-sizing: border-box;
  width: auto; 
  height: 120px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

/*STRUKTUR - KURIKULUM SECTION*/
.toggle-container {
  margin: 20px 50px;
}

.toggle-menu {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.toggle-header {
  width: 100%;
  padding: 15px;
  background-color: #f8f8f8;
  text-align: left;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.toggle-header:hover {
  background-color: #eee;
}

.toggle-content {
  display: none;
  overflow: hidden;
  padding: 20px;
  background-color: white;
}

.toggle-item.active .toggle-content {
  padding: 15px;
}

/*PANDUAN - AKADEMIK SECTION*/
.main-content .tab-menu {
  text-align: center;
  background-color: white;
  padding: 10px;
}

.main-content .tab-menu a {
  color: black;
  text-decoration: none;
  display: inline-block;
  max-width: 250px;
  border-radius: 10px;
  margin: 10px;
  padding: 10px;
}

.main-content .tab-menu a.active {
  color: white;
  background-color: #3b82f6;
}

.main-content .tab-menu a:hover:not(.active) {
  color: white;
  background-color: #58b0f3;
}

/*CPL SECTION*/
.main-content .table-cpl {
  margin: 25px;
}

/*LABORATORIUM SECTION*/
.lab-layout-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.main-content .menu-lab {
  text-align: left;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-content .menu-lab a {
  color: #334155;
  text-decoration: none;
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 0;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.main-content .menu-lab a.active {
  color: white;
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.main-content .menu-lab a:hover:not(.active) {
  color: white;
  background-color: #58b0f3;
  border-color: #58b0f3;
}

.main-content .lab-item {
  margin: 0;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.lab-header {
  margin-bottom: 25px;
}

.main-content .lab-item h2 {
  margin: 0 0 15px 0;
  font-size: 1.75rem;
  color: #1e3a8a;
}

.custom-line {
  width: 100%;
  height: 4px;
  background-color: #58b0f3;
  border-radius: 2px;
}

.lab-details-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.lab-text {
  flex: 1;
}

.lab-description {
  margin: 0 0 25px 0 !important;
  line-height: 1.7;
  color: #475569;
  text-align: justify;
}

.lab-meta {
  background-color: #eff6ff;
  padding: 12px 20px;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  margin-bottom: 25px;
}

.lab-meta p {
  margin: 0 !important;
  color: #1e40af;
}

.lab-instruments h3 {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 12px;
}

.lab-instruments ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.lab-instruments ul li {
  position: relative;
  padding-left: 20px;
  color: #475569;
}

.lab-instruments ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 2px;
}

.lab-image {
  flex-shrink: 0;
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.lab-image img {
  height: auto;
  width: 180px;
  display: block;
  object-fit: contain;
}

/*TRACER - STUDY SECTION*/
main p {
  text-align: left;
  margin: 25px;
}

main ol {
  display: block;
  list-style-type: decimal;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
  unicode-bidi: isolate;
  text-align: left;
}

main ol p {
  margin: 15px;
}

main ol p a {
  color: white;
  text-decoration: none;
  display: inline-block;
  border: 2px;
  padding: 10px;
  background-color: #58b0f3;
  border-radius: 5px;
}

main ol p a:hover {
  background-color: #3b82f6;
}

/*BEASISWA SECTION*/
.scholarship-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.scholarship-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.scholarship-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.card-top-border {
  height: 6px;
  width: 100%;
}

.border-scg { background: var(--cyan-accent); }
.border-djarum { background: var(--cyan-accent); }
.border-unggulan { background: var(--cyan-accent); }
            
.scholarship-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.badge-container {
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-s1 { background-color: var(--yellow-grad-start); }

.scholarship-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.scholarship-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.scholarship-meta {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.meta-item:last-child {
  margin-bottom: 0;
}

.meta-icon {
  margin-right: 8px;
  font-weight: bold;
  color: #2e7d32;
}

.btn-apply {
  display: block;
  text-align: center;
  background-color: var(--blue-grad-end);
  color: white;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-apply:hover {
  background-color: var(--cyan-accent);
}

/*ALUMNI SECTION*/
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  color: #2c3e50;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.title-line {
  width: 80px;
  height: 4px;
  background-color: var(--yellow-grad-end);
  margin: 0 auto;
  border-radius: 2px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.alumni-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
  text-align: center;
}

.alumni-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.alumni-card:hover .card-img img {
  transform: scale(1.08);
}

.card-info {
  padding: 25px 20px;
}

.card-info h3 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.company-badge {
  display: inline-block;
  background: var(--cyan-accent);
  color: var(--text-navy);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.job-role {
  color: #7f8c8d;
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
}

/*PRESTASI SECTION*/
.prestasi-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-center {
  text-align: center;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.section-title-center::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--yellow-grad-end);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.prestasi-swiper {
    padding: 20px 10px 50px 10px;
}

/* Prestasi Card Styling */
.prestasi-card {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prestasi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.prestasi-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.prestasi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prestasi-card:hover .prestasi-img img {
  transform: scale(1.1);
}

.badge-kategori {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--yellow-grad-end);
  color: var(--bg-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

.prestasi-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prestasi-date {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 8px;
  display: block;
}

.prestasi-info h3 {
  font-size: 1.3rem;
  color: var(--text-navy);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

.prestasi-author {
  font-size: 0.9rem;
  color: var(--text-navy);
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 15px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/*PENGUMUMAN SECTION*/
.announcement-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.announcement-card {
  background: #ffffff;
  border-left: 5px solid var(--cyan-accent);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 1.5rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg-light);
}

.badge-akademik { background-color: var(--cyan-accent); }
.badge-pendanaan { background-color: var(--yellow-grad-start); }

.announcement-title {
  font-size: 1.25rem;
  color: #333;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.announcement-body {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
 }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  background-color: #edf2f7;
  color: var(--blue-grad-end);
  border: 1px solid var(--blue-grad-end);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background-color: var(--cyan-accent);
  color: #ffffff;
}

/*FOOTER*/
footer {
  background:var(--blue-grad-start);
  color: #fff;
  padding: 40px 16px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
  background: var(--blue-grad-start);
  color: white;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px 20px;
}

.footer-section img {
  width: auto;
  height: 80px;
  margin: 0;
  padding: 0;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--yellow-grad-start);
}

.footer-section p {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-links img {
  border-radius: 20px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #ffffff;
  font-size: 0.875rem;
}

/* --- TOMBOL HAMBURGER MOBILE --- */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--bg-light);
  cursor: pointer;
}

/* --- RESPONSIVE ADJUSTMENTS FOR MOBILE--- */
@media (max-width: 768px) {
  /*HOME*/
  .swiper-container-wrapper { padding: 0; }
  .knowledge-prev, .knowledge-next { display: none !important; }
  .knowledge-swiper { height: 380px; }
  .heading-home { padding: 20px 10px !important; }
  .heading-home h1 { font-size: 1.5rem; }
  .card.interactive-card { padding: 15px; }

  /*NAVBAR*/
  .menu-toggle { 
    display: block; 
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 5%;
    left: auto;
    width: auto;
    background: var(--blue-grad-start);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    z-index: 999;
    overflow: hidden;
  }
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li a {
    display: block;
    padding: 15px 20px;
  }

  .nav-links .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: var(--blue-grad-start);
    padding-left: 20px;
  }
    
  .nav-links .dropdown:hover .dropdown-menu,
  .nav-links .dropdown:active .dropdown-menu {
    display: block;
  }

  /*FOOTER*/
  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
    
  .footer-section {
    margin: 15px 0;
  }

  .social-links {
    justify-content: center;
  }

  /*DOSEN ALL*/
  .list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px; 
  }

  .container-item {
    width: 100%;
    max-width: 320px;
    padding: 0 15px;
  }

  .container-item img {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
  }

  .container-item p {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  /*DOSEN PERSONAL*/
  .dosen-layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .main-content .list-dosen {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }

  .dosen-details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Pusatkan elemen */
    gap: 20px;
  }

  .dosen-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .dosen-image img {
    width: 160px; /* Lebar foto proporsional untuk HP */
    height: auto;
  }

  .dosen-content {
    width: 100%;
  }

  .biodata-dosen {
    width: 100%;
    overflow-x: auto; 
  }
  
  .biodata-dosen table {
    width: 100%;
    min-width: 300px;
  }

  .publikasi-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
  }

  .publikasi-container img {
    max-width: 80px;
    height: auto;
  }

  .dosen-header h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 5px;
  }

  /*LABORATORIUM*/
  .lab-layout-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .main-content .menu-lab {
    padding: 15px;
  }

  .main-content .lab-item {
    padding: 20px;
  }

  .main-content .lab-item h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .lab-details-wrapper {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
  }

  .lab-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .lab-image img {
    width: 150px;
  }

  .lab-instruments ul {
    grid-template-columns: 1fr;
  }
}

