:root {
  --primary-color: #2e7d32;
  --secondary-color: #81c784;
  --accent-color: #ffeb3b;
  --dark-color: #1b5e20;
  --light-color: #e8f5e9;
  --text-color: #212121;
  --light-text: #fafafa;
}

/* Video Section Styles */
.video-section {
  margin-bottom: 3rem;
  background-color: #f5f5f5;
  padding: 2rem 0;
  border-radius: 8px;
}

.video-container {
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-description {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.video-description h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.video-buttons {
  margin-top: 1.5rem;
}

/* Announcements Section Styles */
.announcements {
  margin-bottom: 3rem;
}

.announcements-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.announcement-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.announcement-card.featured {
  background-image: linear-gradient(to right, #e8f5e9, #f1f8e9);
  border-left: 5px solid var(--primary-color);
}

.card-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.25rem 1rem;
  border-bottom-left-radius: 8px;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.announcement-icon {
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.announcement-meta {
  display: flex;
  flex-direction: column;
}

.announcement-category {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.announcement-date {
  font-size: 0.8rem;
  color: #666;
}

.announcement-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.announcement-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.announcement-tags span {
  background-color: #f0f0f0;
  color: #666;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.announcement-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-outline-dark {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline-dark:hover {
  background-color: var(--dark-color);
  color: white;
}

.countdown {
  font-size: 0.9rem;
  color: #e65100;
  font-weight: 500;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.announcement-all {
  text-align: center;
  margin-top: 1.5rem;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.btn-more:hover {
  background-color: var(--light-color);
}

.btn-more i {
  transition: transform 0.3s;
}

.btn-more:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .announcements-grid {
    grid-template-columns: 1fr;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul,
ol {
  list-style-position: inside;
}

/* Header */
header {
  background-color: var(--primary-color);
  padding: 1rem;
  color: var(--light-text);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 60px;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Navigation */
nav {
  background-color: var(--dark-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
}

.main-menu {
  display: flex;
  list-style: none;
  position: relative;
}

.main-menu ul {
  list-style: none;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: block;
  color: var(--light-text);
  padding: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.main-menu > li:hover > a,
.nav-active {
  background-color: var(--primary-color);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}

.main-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  transition: background-color 0.3s;
}

.dropdown li a:hover {
  background-color: var(--light-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/hero/5.jpg"); */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  /* padding: 4rem 1rem; */
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  height: 400px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Welcome Section */
.welcome {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.welcome-img img {
  width: 100%;
  border-radius: 8px;
}

.welcome-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Vision Mission */
.vision-mission {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.vm-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.vm-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* News and Events */
.news-events {
  margin-bottom: 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img {
  height: 200px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Features Section */
.features {
  background-color: #f0f9f5; /* Warna hijau muda lembut */
  padding: 4rem 1rem;
  text-align: center;
}

.features .section-title h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #145c37; /* Hijau gelap */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item:nth-child(1) {
  background-color: #e0f7e9; /* Hijau daun muda */
}

.feature-item:nth-child(2) {
  background-color: #fdf3e7; /* Kuning panen lembut */
}

.feature-item:nth-child(3) {
  background-color: #f4f1ed; /* Cokelat tanah lembut */
}

.feature-item:nth-child(4) {
  background-color: #e7f3fd; /* Biru langit cerah */
}

.feature-icon {
  font-size: 2.5rem;
  color: #198754;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 3rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ddd;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.contact-info p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-info i {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.subfooter {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .welcome {
    grid-template-columns: 1fr;
  }

  .vm-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .logo {
    flex-direction: column;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-menu {
    flex-direction: column;
    display: none;
  }

  .main-menu.show {
    display: flex;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .main-menu > li:hover .dropdown {
    max-height: 500px;
  }
}

/* --- MITRA SECTION STYLING --- */
.mitra-carousel-section {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}

.mitra-carousel-section img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease;
}

/* .swiper-slide {
  margin: 0 !important;
  padding: 0 !important;
} */

.swiper-slide:hover img {
  transform: scale(1.05);
}

.mitra-prev,
.mitra-next {
  color: var(--primary-color);
}

.swiper-button-prev,
.swiper-button-next {
  top: 40%;
}

.dosen-section {
  background: #f9f9f9;
  padding: 3rem 1rem;
  text-align: center;
}

.dosen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.dosen-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.dosen-card:hover {
  transform: translateY(-5px);
}

.dosen-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.dosen-card h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.1rem;
  color: #333;
}

.dosen-card p {
  font-size: 0.95rem;
  color: #666;
}

.btn-profile {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: white;
  background-color: var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-profile:hover {
  background-color: var(--dark-color);
}

.dosen-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .dosen-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 425px) {
  .dosen-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

.dosen-carousel .dosen-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin: 0 10px;
}

.dosen-carousel .dosen-card:hover {
  transform: translateY(-5px);
}

.dosen-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.dosen-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.25rem;
  color: #333;
}

.dosen-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.btn-profile {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: white;
  background-color: var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-profile:hover {
  background-color: var(--dark-color);
}

.image-carousel {
  padding: 2rem;
  background: #f9f9f9;
  text-align: center;
}

.image-carousel img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#testimoni {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

#testimoni .testimoni-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

#testimoni h2 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 10px;
}

#testimoni p {
  color: #555;
  margin-bottom: 40px;
}

.testimoni-list {
  /* display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Animasi fade-in slide-up */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Awal: sembunyi dan tidak animasi */
.testimoni-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

  box-shadow: 0 0 2px 0.1px #555;
  padding: 12px 20px;
  border-radius: 8px;
}

/* Saat elemen muncul di viewport */
.testimoni-item.show {
  opacity: 1;
  transform: translateY(0);
}

.testimoni-item .quote {
  font-style: italic;
  color: #333;
  /* margin-bottom: 24px !important; */
}

.testimoni-item .profile {
  /* margin-top: 15px; */
  display: flex;
  /* align-items: center; */
}

.testimoni-item .profile div {
  text-align: left;
}

.testimoni-item .profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* Statistics Section */
.dosen-stats {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.stats-title {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--light-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ============================= BOOTSTRAP ============================= */
/* Gaya dasar untuk tabel */
table {
  width: 100%;
  border-collapse: collapse; /* Menyatukan border sel menjadi satu */
  margin: 0 0 1rem 0;
}

/* Gaya untuk border tabel */
table.table-bordered {
  border: 1px solid #dee2e6; /* Warna border tabel */
}

table.table-bordered th,
table.table-bordered td {
  border: 1px solid #dee2e6; /* Border pada setiap sel */
  padding: 0.75rem;
  text-align: left; /* Default alignment untuk teks */
}

/* Gaya untuk baris tabel bergaris */
table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f2f2f2; /* Warna latar belakang untuk baris ganjil */
}

table.table-striped tbody tr:nth-of-type(even) {
  background-color: #ffffff; /* Warna latar belakang untuk baris genap */
}

/* Gaya untuk alignment tengah vertikal */
table.align-middle td,
table.align-middle th {
  vertical-align: middle; /* Menjajarkan teks ke tengah secara vertikal */
}

/* Tambahan: Gaya hover untuk baris */
table.table-striped tbody tr:hover {
  background-color: #e9ecef; /* Warna latar belakang saat hover */
}

/* Membuat tabel bisa menggulir secara horizontal di layar kecil */
.table-responsive {
  overflow-x: auto; /* Menambahkan scroll horizontal jika diperlukan */
  -webkit-overflow-scrolling: touch; /* Untuk tampilan lebih mulus di perangkat sentuh */
  margin-bottom: 1rem; /* Memberikan margin bawah agar tidak menempel pada elemen lain */
  -ms-overflow-style: -ms-autohiding-scrollbar; /* Menyembunyikan scrollbar pada IE */
}

/* Membuat tabel dalam kontainer responsif */
.table-responsive table {
  width: 100%; /* Memastikan tabel menggunakan 100% lebar kontainer */
  min-width: 600px; /* Atur lebar minimum agar tabel tidak terlalu kecil */
}

/* Styling umum untuk elemen form */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(38, 143, 255, 0.25);
}

/* Styling untuk elemen textarea */
textarea.form-control {
  resize: vertical; /* Agar textarea bisa diubah ukurannya secara vertikal */
}

/* ============================= BOOTSTRAP ============================= */

.top-img {
  transition: transform 1s ease 0.1s;
}

.top-img:hover {
  transform: scale(1.05);
  transition: transform 1s ease 0s;
  height: 100%;
  z-index: 99;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
