/* =========================================
   1. GOOGLE FONTS (Playfair Display & Inter)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* =========================================
   2. VARIABEL WARNA & DESIGN SYSTEM
   ========================================= */
:root {
  /* Warna Utama */
  --color-primary: #0B3D2E;       /* Hijau Zamrud Gelap (Emerald) */
  --color-primary-light: #145A45; /* Hijau sedikit lebih terang untuk hover */
  --color-accent: #C9A227;        /* Emas (Gold) untuk aksen mewah */
  --color-accent-hover: #DFB833;  /* Emas terang untuk hover */
  
  /* Warna Netral */
  --color-bg: #F8F5F0;            /* Ivory / Krem lembut untuk background */
  --color-surface: #FFFFFF;       /* Putih untuk card/kotak */
  --color-text-main: #1C1C1C;     /* Hampir hitam untuk teks utama */
  --color-text-muted: #555555;    /* Abu-abu gelap untuk teks sekunder */
  
  /* Tipografi */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spasi & Ukuran */
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

/* =========================================
   3. RESET & BASE STYLE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 16px;
}

/* Heading menggunakan font elegan */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   4. KELAS UTILITY (Pembantu Layout)
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Tombol Mewah */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* =========================================
   5. NAVBAR STYLE
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(248, 245, 240, 0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 61, 46, 0.1);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Menu Navigasi */
.navbar-menu ul {
  display: flex;
  gap: 30px;
}

.navbar-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 5px;
}

/* Efek Garis Emas saat Hover */
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--color-primary);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 100vh; /* Memenuhi layar penuh */
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 85px; /* Memberi ruang untuk navbar */
}

/* Gambar Background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* Efek Zoom-in perlahan saat halaman dibuka */
  animation: zoomSlow 20s infinite alternate linear;
}

@keyframes zoomSlow {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Overlay Gelap Hijau Transparan */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(11, 61, 46, 0.95) 0%,
    rgba(11, 61, 46, 0.7) 50%,
    rgba(11, 61, 46, 0.3) 100%
  );
  z-index: 2;
}

/* Konten Teks */
.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
}

.hero-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  /* Animasi masuk */
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 25px;
  /* Animasi masuk */
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  /* Animasi masuk */
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  /* Animasi masuk */
  animation: fadeUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* Tombol Hero (Modifikasi warna) */
.hero-buttons .btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.hero-buttons .btn-primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--color-primary);
}

/* Animasi Fade Up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   7. SECTION UMUM (About & Pusat Studi)
   ========================================= */
.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: #ffffff; /* Putih bersih agar kontras dengan ivory */
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* --- Layout Tentang Kami --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
}

.about-text {
  flex: 1;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* --- Layout Grid 3 Kolom (Pusat Studi) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- Desain Card Elegan --- */
.card {
  background-color: var(--color-bg);
  padding: 40px 30px;
  border-radius: 8px;
  border-top: 4px solid transparent;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(11, 61, 46, 0.1);
  border-top: 4px solid var(--color-accent); /* Garis emas muncul saat di-hover */
}

.card-icon {
  font-size: 40px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.card-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
}
/* =========================================
   8. FOOTER STYLE
   ========================================= */
.footer {
  background-color: var(--color-primary); /* Hijau Zamrud Gelap */
  color: #ffffff;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-title {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

/* Garis emas di bawah judul footer */
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px; /* Efek geser saat di-hover */
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact i {
  font-size: 18px;
  flex-shrink: 0;
}

/* Footer Bottom (Hak Cipta) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials 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: #ffffff;
  font-size: 14px;
  transition: var(--transition);
}

.footer-socials a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-3px);
}
/* =========================================
   9. PAGE HEADER (Untuk Halaman Dalam)
   ========================================= */
.page-header {
  background-color: var(--color-primary);
  padding: 160px 0 80px; /* Padding atas besar karena ada navbar fixed */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Aksen pola atau gradien tipis di background page header */
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(11,61,46,1) 0%, rgba(20,90,69,1) 100%);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: #ffffff;
  font-size: 48px;
  margin-bottom: 15px;
}

.page-header p {
  color: var(--color-accent);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Layout Grid 2 Kolom (Untuk Visi Misi) --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
/* =========================================
   10. DESAIN FOTO KETUA (Mewah & Elegan)
   ========================================= */
.gold-frame {
  position: absolute;
  top: 30px; /* Sesuaikan posisi agar pas di belakang foto */
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--color-accent); /* Garis Emas */
  z-index: 1;
  /* Efek animasi garis emas berputar perlahan (opsional) */
  transition: all 0.5s ease;
}

/* Saat card di-hover, bingkai emas sedikit membesar */
.card:hover .gold-frame {
  transform: translateX(-50%) scale(1.1);
  border-width: 3px;
}
/* =========================================
   11. REPOSITORI PUBLIKASI & FILTER PRODI
   ========================================= */
.prodi-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 50px; /* Membuat tombol bulat lonjong */
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: #fff;
}

.publication-list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  overflow: hidden;
}

.pub-item {
  padding: 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  transition: var(--transition);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item:hover {
  background-color: #fdfdfd;
}

.pub-badge {
  display: inline-block;
  background-color: rgba(201, 162, 39, 0.1); /* Warna emas transparan */
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* =========================================
   12. NEWS SLIDER (SWIPER CAROUSEL)
   ========================================= */
.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.news-card {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

/* Efek: Slide yang tidak aktif akan mengecil dan agak transparan */
.swiper-slide {
    width: 70%; /* Lebar gambar di tengah */
    transition: 0.4s;
    opacity: 0.6;
    transform: scale(0.9);
}

/* Efek: Slide yang aktif (di tengah) akan membesar dan terang */
.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(11, 61, 46, 0.95) 0%, rgba(11, 61, 46, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-tag {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-title {
    color: #ffffff;
    font-size: 28px;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    max-width: 90%;
    line-height: 1.3;
}

.news-link {
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-link:hover {
    color: #ffffff;
}

/* Warna Titik Navigasi Swiper */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: 0.3s;
}
.swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 25px;
    border-radius: 5px;
}