/*
Theme Name: Kimia UIN SGD
Theme URI: https://chem.uinsgd.ac.id
Author: Jurusan Kimia FST UIN Sunan Gunung Djati Bandung
Author URI: https://uinsgd.ac.id
Description: Theme resmi untuk website Jurusan Kimia, Fakultas Sains dan Teknologi, UIN Sunan Gunung Djati Bandung. Menampilkan profil jurusan, berita akademik, fasilitas laboratorium, dan informasi kemahasiswaan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kimia-uinsgd
Tags: education, university, academic, chemistry, indonesia, rtl-language-support, blog, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS RESET & ROOT VARIABLES
   ========================================================================== */
:root {
  --primary:        #1a4a8a;
  --primary-dark:   #0f2f5c;
  --primary-light:  #2563b0;
  --accent:         #e8a020;
  --accent-light:   #f5c352;
  --white:          #ffffff;
  --gray-50:        #f8f9fc;
  --gray-100:       #f0f2f7;
  --gray-200:       #e2e6ef;
  --gray-400:       #9aa3b8;
  --gray-600:       #5a6380;
  --gray-800:       #2c3350;
  --text:           #1e2640;
  --text-muted:     #6b7494;
  --border:         #dde2ef;
  --shadow-sm:      0 1px 4px rgba(26,74,138,.08);
  --shadow-md:      0 4px 16px rgba(26,74,138,.12);
  --shadow-lg:      0 8px 32px rgba(26,74,138,.16);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --transition:     all .25s ease;
  --font-heading:   'Merriweather', Georgia, serif;
  --font-body:      'Source Sans 3', 'Segoe UI', sans-serif;
  --container:      1180px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
ul { list-style: none; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-800);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin-inline: auto; }

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 1rem auto 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.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; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #c7891a;
  border-color: #c7891a;
  color: var(--white);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: .4rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--white); }
.topbar-left { display: flex; gap: 1.5rem; align-items: center; }
.topbar-right { display: flex; gap: 1rem; align-items: center; }
.topbar-item { display: flex; align-items: center; gap: .35rem; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: .9rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.site-branding img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-text .site-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.brand-text .site-subtitle {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 220px;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 0; }
.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: 1rem .9rem;
  color: var(--gray-800);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .9rem;
  right: .9rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a { color: var(--primary); }
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.main-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu li a {
  display: block;
  padding: .65rem 1.2rem;
  color: var(--gray-800);
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.main-nav .sub-menu li a:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-left: 1.5rem;
}
.main-nav .sub-menu li:last-child a { border-bottom: none; }

/* Sub-sub menu */
.main-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: 3px solid var(--accent);
  transform: translateX(8px) translateY(0);
}
.main-nav .sub-menu li:hover > .sub-menu {
  transform: translateX(0) translateY(0);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  min-height: 480px;
}
.slider-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.slide {
  min-width: 100%;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.slide-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(.55);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 650px;
  color: var(--white);
}
.slide-content .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.slide-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.slide-content p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
  color: var(--white);
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.8); }

/* ==========================================================================
   PROFILE CARDS (Sejarah, Visi Misi)
   ========================================================================== */
.profile-section { background: var(--gray-50); }
.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.profile-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.profile-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.profile-card-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.profile-card h4 { margin-bottom: .75rem; color: var(--gray-800); }
.profile-card p { color: var(--text-muted); font-size: .9rem; flex: 1; }
.profile-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .875rem;
  margin-top: 1rem;
}
.profile-card-link:hover { gap: .7rem; }

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news-section { background: var(--white); }
.news-featured {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-bottom: 3rem;
}
.news-featured-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.news-featured-main img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.news-featured-body { padding: 1.8rem; }
.news-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.news-featured-main h3 { margin-bottom: .75rem; font-size: 1.3rem; }
.news-featured-main h3 a { color: var(--gray-800); }
.news-featured-main h3 a:hover { color: var(--primary); }
.news-meta { display: flex; gap: 1rem; color: var(--text-muted); font-size: .8rem; margin-bottom: .75rem; }
.news-meta span { display: flex; align-items: center; gap: .3rem; }

.news-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.news-sidebar-item {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.news-sidebar-item:hover {
  border-left-color: var(--primary);
  background: var(--gray-100);
}
.news-sidebar-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.news-sidebar-text h5 { font-size: .875rem; margin-bottom: .25rem; line-height: 1.4; }
.news-sidebar-text h5 a { color: var(--gray-800); }
.news-sidebar-text h5 a:hover { color: var(--primary); }
.news-sidebar-text .date { font-size: .75rem; color: var(--text-muted); }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card-body { padding: 1.2rem; }
.news-card-body h4 { font-size: .95rem; margin-bottom: .5rem; line-height: 1.4; }
.news-card-body h4 a { color: var(--gray-800); }
.news-card-body h4 a:hover { color: var(--primary); }
.news-card-body .date { font-size: .75rem; color: var(--text-muted); }

/* ==========================================================================
   PROGRAM HIGHLIGHTS
   ========================================================================== */
.highlights-section { background: var(--gray-50); }
.highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.highlight-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.highlight-card h4 { margin-bottom: .5rem; font-size: 1rem; }
.highlight-card p { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   LABORATORY / FASILITAS
   ========================================================================== */
.lab-section { background: var(--primary-dark); color: var(--white); }
.lab-section .section-title h2 { color: var(--white); }
.lab-section .section-title p { color: rgba(255,255,255,.7); }
.lab-section .section-title::after { background: var(--accent); }

.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lab-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.lab-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.lab-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(.8);
  transition: var(--transition);
}
.lab-card:hover img { filter: brightness(1); }
.lab-card-body { padding: 1.2rem; }
.lab-card-body h4 { color: var(--white); margin-bottom: .5rem; font-size: .95rem; }
.lab-card-body p { color: rgba(255,255,255,.65); font-size: .85rem; margin: 0; }

/* ==========================================================================
   DOSEN / STAFF
   ========================================================================== */
.dosen-section { background: var(--white); }
.dosen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.dosen-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--gray-50);
  transition: var(--transition);
}
.dosen-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: var(--white);
}
.dosen-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary);
}
.dosen-card h5 { font-size: .9rem; margin-bottom: .25rem; color: var(--gray-800); }
.dosen-card .dosen-title { font-size: .78rem; color: var(--text-muted); }
.dosen-card .dosen-expertise {
  display: inline-block;
  margin-top: .5rem;
  background: var(--gray-100);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
}

/* ==========================================================================
   PENGUMUMAN / ANNOUNCEMENT
   ========================================================================== */
.announcement-bar {
  background: var(--accent);
  padding: .75rem 0;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.announcement-label {
  background: var(--white);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}
.announcement-text {
  color: var(--white);
  font-size: .875rem;
  flex: 1;
  overflow: hidden;
}
.announcement-text a { color: var(--white); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
}
.footer-top { padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .site-title { color: var(--white); font-size: 1.2rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }

.footer-col h5 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-col ul li a:hover { color: var(--accent-light); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  font-size: .875rem;
}
.footer-contact-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ==========================================================================
   SINGLE POST / PAGE
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.4); }

.content-area { padding: 4rem 0; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.entry-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.entry-content h2, .entry-content h3 { margin: 1.5rem 0 .75rem; }
.entry-content p { margin-bottom: 1rem; line-height: 1.8; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
}
.widget ul li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--gray-600); }
.widget ul li a:hover { color: var(--primary); padding-left: 6px; }

/* ==========================================================================
   SEARCH
   ========================================================================== */
.search-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-form input {
  flex: 1;
  padding: .65rem 1rem;
  border: none;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
}
.search-form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .65rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4, .dosen-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .news-featured { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar .container { flex-direction: column; gap: .3rem; text-align: center; }
  .topbar-right { display: none; }
  
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav > ul > li > a { padding: .75rem 1.5rem; width: 100%; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    margin-left: 1rem;
    background: var(--gray-50);
    display: none;
    border-radius: 0;
  }
  .main-nav .sub-menu.open { display: block; }
  .main-nav .sub-menu .sub-menu { left: 0; border-top: none; transform: none; }

  .site-header { position: relative; }
  .header-inner { position: relative; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dosen-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  
  .hero-slider { min-height: 320px; }
  .slide { min-height: 320px; }

  .section { padding-block: 3rem; }
}

@media (max-width: 480px) {
  .dosen-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-arrow { display: none; }
}

/* ==========================================================================
   WORDPRESS DEFAULTS
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .3rem; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
