@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #ffffff;
  color: #212121;
}

/* ===== TOP BANNER ===== */
.top-banner {
  background: #673ab7;
  color: white;
  padding: 14px 20px;
}
.banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: center;
}
.banner-inner span {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}
.btn-top {
  color: white !important;
  text-decoration: none;
  border: 2px solid white;
  background: transparent;
  padding: 7px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-top:hover {
  background: white;
  color: #673ab7 !important;
}

/* ===== NAVBAR ===== */
.navbar {
  display: block !important;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  flex-wrap: nowrap !important;
}
.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}
.hamburger-btn {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block !important;
  width: 20px;
  height: 2px;
  background: #444 !important;
  border-radius: 1px;
  margin: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #212121;
  text-decoration: none;
  min-width: 0;
}
.navbar-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-navbar {
  width: auto !important;
  height: 40px !important;
  max-width: 90px;
  object-fit: contain;
  flex-shrink: 0;
  display: block !important;
}
.search-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #444;
  font-size: 18px;
  flex-shrink: 0;
}
.search-btn:hover { color: #673ab7; }

/* ===== SEARCH BOX ===== */
.search-box {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 14px;
}
.search-box.active { display: flex; }
.search-box input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 15px;
  outline: none;
}
.search-box input:focus {
  border-color: #673ab7;
}
.search-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #444;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.search-close:hover { color: #673ab7; }

mark.search-highlight {
  background: #f3d20c;
  color: #111;
}

/* ===== FOTO DOSEN/STAFF (sebelum video) ===== */
.banner-photo {
  width: 100%;
  line-height: 0;
  background: #1a2b4d;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  background: #f3d20c;
  padding: 32px 32px 0;
  box-sizing: border-box;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  max-width: 832px;
  margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== HERO TEXT ===== */
.hero-text {
  background: #f3d20c;
  padding: 32px 40px 48px;
  max-width: 880px;
  margin: 0 auto;
  box-sizing: border-box;
}
.hero-text h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  line-height: 1.25;
  color: #111;
}
.hero-text p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 16px;
  color: #111;
}
.slogan-text {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-align: center !important;
  color: #111;
  margin-bottom: 0;
}

/* ===== VISI SECTION (kuning, menyambung dari hero) ===== */
.visi-section {
  background: #f3d20c;
  padding: 0 40px 48px;
  max-width: 880px;
  margin: 0 auto;
  box-sizing: border-box;
}
.visi-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: capitalize;
  text-align: center;
  color: #111;
  margin: 36px 0 16px;
  letter-spacing: 0.2px;
}
.visi-section p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  color: #111;
  margin-bottom: 14px;
}
.misi-list {
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #111;
  text-align: justify;
}
.misi-list li { margin-bottom: 12px; }

/* ===== BANNER UNGU: PROFIL LULUSAN / TAMBAHAN ===== */
.profil-banner {
  background: #673ab7;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.06) 25%, transparent 25%);
  background-size: 40px 40px;
  padding: 36px 24px;
  text-align: center;
}
.profil-banner h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ===== PROFIL LULUSAN UTAMA (kuning) ===== */
.profil-section {
  background: #f3d20c;
  padding: 8px 40px 48px;
  max-width: 880px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== PROFIL LULUSAN TAMBAHAN (berseling abu/putih) ===== */
.profil-tambahan {
  max-width: 880px;
  margin: 0 auto;
}

.profil-item {
  padding: 40px 40px;
  box-sizing: border-box;
  text-align: center;
}
.profil-item.bg-light { background: #f4f4f4; }
.profil-item.bg-white { background: #ffffff; }

.profil-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 28px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.profil-job {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 16px;
  text-align: left;
  letter-spacing: 0.2px;
}
.profil-desc {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  color: #111;
  margin: 0;
}
.profil-item .misi-list {
  text-align: left;
}
@media (max-width: 768px) {
  .profil-banner h2 { font-size: 22px; }
  .profil-section { padding: 8px 24px 40px; }
  .profil-item { padding: 32px 24px; }
  .profil-job { font-size: 19px; }
}

/* ===== GRID LAYOUTS ===== */
.container-inner { max-width: 1100px; margin: auto; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}
.grid-3 .news-card {
  width: 100%;
  max-width: 340px;
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .news-card { max-width: 420px; }
}

/* ===== STATS ===== */
.stats-section { background: #673ab7; padding: 56px 16px; color: white; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  max-width: 1000px;
  margin: auto;
}
.stat-num {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #f3d20c;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 36px; }
}

/* ===== FOOTER GRID ===== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}
.footer-bottom {
  text-align: center;
  color: #9e9e9e;
  font-size: 13px;
  margin-top: 24px;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== SECTION UMUM ===== */
.section-white { background: #fff; padding: 60px 20px; }
.section-gray { background: #f5f5f5; padding: 60px 20px; }

.section-title {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 40px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* (Dosen lama di beranda sudah dipindah ke halaman dosen.html tersendiri) */

/* ===== BERITA ===== */
.news-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.13); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 18px; }
.news-content h5 { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: #212121; }
.news-content p { font-size: 13px; color: #616161; margin: 0 0 10px; }
.news-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #673ab7;
  text-decoration: none;
}
.news-link:hover { text-decoration: underline; }

/* ===== GALERI ===== */
.gallery-img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 4px; margin-bottom: 18px;
}

/* ===== FOOTER ===== */
footer {
  background: #212121;
  color: #e0e0e0;
  padding: 52px 20px 28px;
  font-size: 15px;
}
footer .container { max-width: 1100px; margin: auto; }
footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
footer p { color: #bdbdbd; line-height: 1.8; font-size: 14px; }
footer hr { border-color: #424242; margin: 28px 0 18px; }
footer .text-center { color: #9e9e9e; font-size: 13px; }
.footer-menu { padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: #bdbdbd; text-decoration: none; font-size: 14px; }
.footer-menu a:hover { color: #f3d20c; }

/* ===== SIDEBAR — Google Sites Style ===== */
.sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100%;
  background: white;
  z-index: 9999;
  transition: left .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 3px 0 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  font-family: 'Roboto', sans-serif;
}
.sidebar.active { left: 0; }

/* Close button row */
.sidebar-close-row {
  display: flex;
  align-items: center;
  padding: 14px 16px 8px;
}
.sidebar-close-btn {
  background: none; border: none;
  font-size: 22px; color: #444;
  cursor: pointer; padding: 4px;
  line-height: 1;
}

/* Sidebar nav list */
.sidebar-nav { padding: 8px 0 20px; }

/* Top-level item */
.sidebar-nav .nav-item {
  position: relative;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  color: #212121;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.sidebar-nav .nav-link:hover { background: #f5f5f5; color: #212121; }
.sidebar-nav .nav-link.active-item {
  background: #212121;
  color: #fff;
  border-radius: 2px;
  margin: 0 8px;
  padding: 10px 16px;
}
.sidebar-nav .nav-link .chevron {
  font-size: 13px;
  color: #888;
  transition: transform .2s;
}
.sidebar-nav .nav-item.open .nav-link .chevron {
  transform: rotate(180deg);
}

/* Sub-menu */
.sidebar-submenu {
  display: none;
  padding: 0;
  background: #fff;
}
.sidebar-nav .nav-item.open .sidebar-submenu { display: block; }
.sidebar-submenu a {
  display: block;
  padding: 9px 24px 9px 40px;
  color: #444;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.sidebar-submenu a:hover { background: #f5f5f5; color: #212121; }

.overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  display: none; z-index: 9998;
}
.overlay.active { display: block; }

/* ===== PAGE HEADER (halaman selain beranda) ===== */
.page-header {
  background: #f3d20c;
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}
.page-header p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

/* ===== DOSEN GRID ===== */
.dosen-section {
  background: #f4f4f4;
  padding: 48px 24px;
}
.dosen-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dosen-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dosen-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #e8e8e8;
}
.dosen-card h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #111;
  margin: 16px 16px 4px;
}
.dosen-card p {
  font-size: 14px;
  color: #666;
  margin: 0 16px 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 24px; }
  .hero-text p { font-size: 15px; }
  .section-title { font-size: 24px; }
  .visi-title { font-size: 20px; }
  .navbar-brand { font-size: 16px; }
  .navbar-inner { height: 56px; padding: 0 12px; }
  .logo-navbar { width: 36px; height: 36px; }
  .banner-inner { gap: 12px; }
  .banner-inner span { font-size: 18px; }
  .btn-top { padding: 6px 16px; font-size: 13px; }
  .banner-photo img { max-height: 380px; }
  .page-header { padding: 32px 20px; }
  .page-header h1 { font-size: 24px; }
  .dosen-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dosen-section { padding: 32px 16px; }
  .dosen-card h3 { font-size: 14px; margin: 12px 10px 2px; }
  .dosen-card p { font-size: 12px; margin: 0 10px 12px; }
}

@media (max-width: 420px) {
  .navbar-brand span { display: none; }
}

/* ===== ARTIKEL / BERITA DETAIL ===== */
.article-section {
  background: #fff;
  padding: 40px 24px 64px;
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-back {
  display: inline-block;
  font-size: 14px;
  color: #673ab7;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 600;
}
.article-back:hover { text-decoration: underline; }
.article-tag {
  display: inline-block;
  background: #f3d20c;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.3;
  color: #111;
  margin: 0 0 12px;
}
.article-meta {
  font-size: 14px;
  color: #757575;
  margin-bottom: 24px;
}
.article-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 32px;
  display: block;
}
.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: #212121;
  text-align: justify;
  margin-bottom: 20px;
}
.article-body h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #111;
  margin: 32px 0 14px;
}
.article-source {
  font-size: 13px;
  color: #9e9e9e;
  font-style: italic;
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .article-section { padding: 28px 18px 48px; }
  .article-title { font-size: 22px; }
  .article-body p { font-size: 15px; }
}
