/*
Theme Name: Teknik Lingkungan UIN SGD
Theme URI: https://tl.uinsgd.ac.id
Author: Jurusan Teknik Lingkungan FST UIN Sunan Gunung Djati Bandung
Author URI: https://uinsgd.ac.id
Description: Theme resmi Jurusan Teknik Lingkungan, Fakultas Sains dan Teknologi, UIN Sunan Gunung Djati Bandung. Desain hijau modern berlandaskan nuansa alam dan nilai-nilai Islam.
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: tekling-uinsgd
Tags: education, university, environment, engineering, green, islamic, indonesia
*/

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
  --primary:        #1a6b3c;
  --primary-dark:   #0d4425;
  --primary-light:  #27914f;
  --primary-muted:  #e8f5ee;
  --primary-border: #b8dfc7;

  --accent:         #f5a623;
  --accent-dark:    #d4881a;
  --accent-light:   #ffc85a;

  --white:    #ffffff;
  --offwhite: #f7faf8;
  --gray-50:  #f2f7f4;
  --gray-100: #e4ede7;
  --gray-200: #c8dace;
  --gray-400: #8aab94;
  --gray-600: #4f6e57;
  --gray-800: #243028;
  --text:     #1c2e21;
  --text-muted: #5f7a65;
  --border:   #d0e5d6;

  --shadow-sm: 0 1px 4px rgba(26,107,60,.07);
  --shadow-md: 0 4px 20px rgba(26,107,60,.12);
  --shadow-lg: 0 8px 40px rgba(26,107,60,.17);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: all .25s ease;
  --transition-slow: all .4s ease;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --container: 1180px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
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; }
button { font-family: var(--font-body); }

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.4rem,3vw,2rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section    { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }
.section-bg { background: var(--gray-50); }
.section-green { background: var(--primary); }
.section-dark  { background: var(--primary-dark); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .label {
  display: inline-block;
  background: var(--primary-muted);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p  { color: var(--text-muted); max-width: 580px; margin-inline: auto; }
.section-title .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.section-title .divider::before,
.section-title .divider::after {
  content: '';
  width: 40px; height: 2px;
  background: var(--primary-border);
  border-radius: 2px;
}
.section-title .divider-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; 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: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-white  { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-muted); color: var(--primary-dark); }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background: var(--primary-dark);
  padding: .45rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar a { color: rgba(255,255,255,.7); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.2rem; }
.topbar-item { display: flex; align-items: center; gap: .35rem; }
.topbar-item i { font-size: .75rem; color: var(--accent); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--primary);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem; padding-block: .85rem;
}

/* Branding */
.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-name {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--primary); line-height: 1.2;
  text-transform: uppercase; letter-spacing: .03em;
}
.brand-text .site-sub {
  font-size: .72rem; color: var(--text-muted);
  line-height: 1.4; max-width: 220px;
}

/* Header right (daftar btn) */
.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Nav */
.main-nav > ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: .9rem .85rem;
  color: var(--gray-800); font-weight: 600; font-size: .875rem;
  white-space: nowrap; position: relative;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute; bottom: 0; left: .85rem; right: .85rem;
  height: 3px; background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0); transition: transform .2s ease;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li.current-menu-item > 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: 230px;
  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: flex; align-items: center; gap: .6rem;
  padding: .6rem 1.2rem; color: var(--gray-800);
  font-size: .85rem; border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.main-nav .sub-menu li a:hover {
  background: var(--primary-muted); color: var(--primary); padding-left: 1.5rem;
}
.main-nav .sub-menu li:last-child a { border-bottom: none; }

/* 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); }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  padding: .6rem 0;
}
.announcement-inner { display: flex; align-items: center; gap: 1rem; }
.ann-badge {
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 4px;
  white-space: nowrap; text-transform: uppercase;
  flex-shrink: 0;
}
.ann-text { color: rgba(255,255,255,.95); font-size: .85rem; flex: 1; }
.ann-text a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative; overflow: hidden;
  background: var(--primary-dark);
}
.slider-track { display: flex; transition: transform .65s cubic-bezier(.4,0,.2,1); }
.slide {
  min-width: 100%; position: relative;
  min-height: 520px; display: flex; align-items: center;
}
.slide-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  filter: brightness(.5);
}
/* Overlay decorative green strip */
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,68,37,.85) 0%, rgba(13,68,37,.4) 55%, transparent 100%);
  z-index: 1;
}
.slide-content {
  position: relative; z-index: 2;
  padding: 3rem 2rem; max-width: 680px; color: #fff;
}
.slide-content .pre-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.slide-content .pre-title::before {
  content: ''; width: 30px; height: 2px; background: var(--accent);
}
.slide-content h2 {
  color: #fff; font-size: clamp(1.6rem,4vw,3rem);
  margin-bottom: 1rem; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.slide-content h2 span { color: var(--accent); }
.slide-content p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; font-size: 1.05rem; }
.slide-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider controls */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 50px; height: 50px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  z-index: 10; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-dots {
  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,.4); border: none; cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 2rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center; padding: 1.2rem 1rem;
  border-right: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: .3rem;
}
.stat-label { font-size: .82rem; color: rgba(255,255,255,.78); }
.stat-icon { font-size: 1.2rem; margin-bottom: .3rem; opacity: .7; }

/* ==========================================================================
   PROGRAM UNGGULAN
   ========================================================================== */
.program-section { background: var(--white); }
.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; transition: var(--transition-slow);
  position: relative; overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: var(--transition);
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-muted), var(--gray-100));
  border: 3px solid var(--primary-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; font-size: 2rem;
  transition: var(--transition);
}
.program-card:hover .program-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
}
.program-card:hover .program-icon i { color: #fff; }
.program-icon i { color: var(--primary); font-size: 1.8rem; transition: var(--transition); }
.program-card h4 { margin-bottom: .6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.program-card p { font-size: .875rem; margin: 0; }

/* ==========================================================================
   NEWS / BERITA
   ========================================================================== */
.news-section { background: var(--gray-50); }

.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);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-border); }
.news-card-img { position: relative; overflow: hidden; }
.news-card-img img { width: 100%; height: 200px; object-fit: cover; transition: var(--transition-slow); }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-cat {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; padding: .2rem .65rem;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.news-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.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-meta { display: flex; gap: .8rem; font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; flex-wrap: wrap; }
.news-meta i { color: var(--primary); }
.news-excerpt { font-size: .85rem; color: var(--text-muted); flex: 1; margin: 0; }
.news-readmore {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--primary); font-size: .82rem; font-weight: 600;
  margin-top: 1rem;
}
.news-readmore:hover { gap: .6rem; }

/* Featured news layout */
.news-featured-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 2rem; margin-bottom: 2.5rem;
}
.news-featured-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.news-featured-card img { width: 100%; height: 300px; object-fit: cover; }
.news-featured-body { padding: 2rem; }
.news-featured-body h3 { margin-bottom: .75rem; }
.news-featured-body h3 a { color: var(--gray-800); }
.news-featured-body h3 a:hover { color: var(--primary); }

.news-sidebar-list { display: flex; flex-direction: column; gap: .75rem; }
.news-sidebar-item {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm);
  padding: .85rem; border: 1px solid var(--border);
  border-left: 3px solid transparent; transition: var(--transition);
}
.news-sidebar-item:hover { border-left-color: var(--primary); background: var(--primary-muted); }
.news-sidebar-item img { width: 75px; height: 75px; object-fit: cover; border-radius: var(--radius-xs); flex-shrink: 0; }
.news-sidebar-text h5 { font-size: .85rem; margin-bottom: .2rem; 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: .72rem; color: var(--text-muted); }

/* ==========================================================================
   KALENDER AKADEMIK WIDGET (homepage)
   ========================================================================== */
.kalender-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.kalender-widget-header {
  background: var(--primary); color: #fff;
  padding: 1rem 1.2rem; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: .5rem;
}
.kalender-list { padding: .5rem 0; }
.kalender-item {
  display: flex; gap: .85rem; align-items: center;
  padding: .75rem 1.2rem; border-bottom: 1px solid var(--gray-100);
}
.kalender-item:last-child { border-bottom: none; }
.kalender-date-box {
  background: var(--primary-muted); border: 1px solid var(--primary-border);
  border-radius: var(--radius-xs); padding: .3rem .5rem;
  text-align: center; min-width: 44px; flex-shrink: 0;
}
.kalender-date-box .day { font-size: .75rem; color: var(--text-muted); }
.kalender-date-box .date { font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.kalender-event { font-size: .85rem; color: var(--gray-800); line-height: 1.4; }

/* ==========================================================================
   TENTANG KAMI SECTION (homepage)
   ========================================================================== */
.about-section { background: var(--white); }
.about-layout {
  display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-main {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--primary); color: #fff;
  padding: 1.5rem; border-radius: var(--radius-md);
  text-align: center; min-width: 120px;
  box-shadow: var(--shadow-md);
}
.about-img-badge .number { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-img-badge .label { font-size: .72rem; opacity: .85; margin-top: .2rem; }
.about-text .label-tag {
  display: inline-block; background: var(--primary-muted);
  color: var(--primary); font-size: .75rem; font-weight: 700;
  padding: .3rem 1rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }
.about-features { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; }
.about-feature-item {
  display: flex; gap: .85rem; align-items: flex-start;
}
.about-feature-icon {
  background: var(--primary-muted); color: var(--primary);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .9rem;
}
.about-feature-text strong { display: block; font-size: .9rem; color: var(--gray-800); margin-bottom: .15rem; }
.about-feature-text span { font-size: .82rem; color: var(--text-muted); }

/* ==========================================================================
   PENELITIAN HIGHLIGHT
   ========================================================================== */
.riset-section { background: var(--primary-dark); color: #fff; }
.riset-section .section-title h2 { color: #fff; }
.riset-section .section-title p { color: rgba(255,255,255,.7); }
.riset-section .section-title .divider::before,
.riset-section .section-title .divider::after { background: rgba(255,255,255,.2); }
.riset-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: 1.8rem;
  transition: var(--transition); cursor: default;
}
.riset-card:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); border-color: var(--accent); }
.riset-number {
  font-size: 2.5rem; font-weight: 800; color: var(--accent);
  font-family: var(--font-heading); line-height: 1; margin-bottom: .5rem;
}
.riset-card h4 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.riset-card p { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; }

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

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4rem 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.7); font-size: .85rem;
  background: rgba(255,255,255,.1); padding: .4rem 1rem;
  border-radius: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.35); }

/* ==========================================================================
   CONTENT LAYOUT (page + sidebar)
   ========================================================================== */
.content-area { padding: 4rem 0 5rem; }
.content-layout {
  display: grid; grid-template-columns: 1fr 300px; 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 { margin: 2rem 0 .75rem; color: var(--primary); font-size: 1.4rem; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 1.5rem 0 .5rem; }
.entry-content p { margin-bottom: 1rem; line-height: 1.8; }
.entry-content ul, .entry-content ol { margin: .75rem 0 1rem 1.2rem; }
.entry-content ul li, .entry-content ol li { margin-bottom: .4rem; color: var(--text-muted); }
.entry-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 1.5rem 0; }
.entry-content th { background: var(--primary); color: #fff; padding: .7rem 1rem; text-align: left; }
.entry-content td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--gray-50); }

/* ==========================================================================
   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: .6rem; border-bottom: 2px solid var(--primary);
}
.widget ul li {
  padding: .4rem 0; border-bottom: 1px solid var(--gray-100);
  font-size: .85rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--gray-600); display: flex; align-items: center; gap: .4rem; }
.widget ul li a:hover { color: var(--primary); padding-left: 4px; }
.widget ul li a::before { content: '›'; color: var(--primary); font-size: 1.1rem; }

/* Search */
.search-form { display: flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.search-form input { flex: 1; padding: .6rem .9rem; border: none; font-family: var(--font-body); font-size: .875rem; outline: none; }
.search-form button { background: var(--primary); color: #fff; border: none; padding: .6rem 1rem; cursor: pointer; transition: var(--transition); }
.search-form button:hover { background: var(--primary-dark); }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: var(--gray-50);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.contact-icon {
  background: var(--primary); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-info-item h5 { font-size: .85rem; color: var(--gray-800); margin-bottom: .2rem; }
.contact-info-item p  { font-size: .85rem; margin: 0; }
.contact-form-wrap { background: var(--white); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-800); margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
  transition: var(--transition); outline: none; background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,60,.1); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   PENELITIAN PAGE
   ========================================================================== */
.riset-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.riset-full-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.riset-full-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-border); }
.riset-full-card-img { width: 100%; height: 180px; object-fit: cover; }
.riset-full-card-body { padding: 1.3rem; }
.riset-full-card-body .tag {
  display: inline-block; background: var(--primary-muted);
  color: var(--primary); font-size: .68rem; font-weight: 700;
  padding: .15rem .6rem; border-radius: 20px; text-transform: uppercase;
  margin-bottom: .5rem;
}
.riset-full-card-body h4 { font-size: .95rem; margin-bottom: .5rem; line-height: 1.4; }
.riset-full-card-body h4 a { color: var(--gray-800); }
.riset-full-card-body h4 a:hover { color: var(--primary); }
.riset-full-card-body p { font-size: .83rem; margin: 0; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.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: #fff; border-color: var(--primary); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--primary); color: #fff;
  width: 46px; height: 46px; 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); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--gray-800); color: rgba(255,255,255,.75); }
.footer-top { padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .site-name { color: #fff; font-size: 1.1rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }
.footer-col h5 {
  color: #fff; font-size: .875rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary); display: inline-block;
}
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; font-size: .85rem; }
.footer-contact-item i { color: var(--accent); flex-shrink: 0; margin-top: 2px; font-size: .9rem; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.info-box {
  background: var(--primary-muted); border-left: 4px solid var(--primary);
  padding: 1rem 1.3rem; border-radius: var(--radius-sm);
  font-size: .9rem; margin-bottom: 1.5rem;
}
.info-box i { color: var(--primary); margin-right: .4rem; }
.warning-box { background: #fff8e1; border-left-color: var(--accent); }
.warning-box i { color: var(--accent); }
.meta-small { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.widget-more {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; color: var(--primary); margin-top: .75rem;
}
.no-thumb { width:100%; height:200px; background:var(--gray-100); display:flex; align-items:center; justify-content:center; }
.no-thumb i { font-size:2.5rem; color:var(--gray-400); }

/* ==========================================================================
   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; }
.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; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1024px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
  .stats-grid  { grid-template-columns:repeat(2,1fr); }
  .dosen-grid  { grid-template-columns:repeat(2,1fr); }
  .news-grid   { grid-template-columns:repeat(2,1fr); }
  .news-featured-layout { grid-template-columns:1fr; }
  .about-layout { grid-template-columns:1fr; }
  .about-img-wrap { display:none; }
  .content-layout { grid-template-columns:1fr; }
  .riset-full-grid { grid-template-columns:repeat(2,1fr); }
  .contact-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .topbar .topbar-right { display:none; }
  .topbar .container { flex-direction:column; gap:.3rem; }
  .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:2px solid var(--border); padding:1rem 0;
    flex-direction:column; align-items:flex-start; z-index:999;
  }
  .main-nav.open { display:flex; }
  .main-nav > ul { flex-direction:column; width:100%; }
  .main-nav > ul > li > a { padding:.7rem 1.5rem; width:100%; }
  .main-nav > ul > li > a::after { display:none; }
  .main-nav .sub-menu {
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; border-left:3px solid var(--primary);
    margin-left:1.5rem; background:var(--gray-50); display:none;
    border-radius:0; border-top:none;
  }
  .main-nav .sub-menu.open { display:block; }
  .site-header { position:relative; }
  .header-inner { position:relative; }
  .header-right .btn { display:none; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .dosen-grid { grid-template-columns:repeat(2,1fr); }
  .news-grid  { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:1.5rem; }
  .footer-bottom { flex-direction:column; gap:.5rem; text-align:center; }
  .hero-slider .slide { min-height:380px; }
  .section { padding-block:3rem; }
  .riset-full-grid { grid-template-columns:1fr; }
  .page-hero { padding:3rem 0; }
  .page-hero::after { display:none; }
}
@media (max-width:480px) {
  .slide-content h2 { font-size:1.6rem; }
  .slide-buttons { flex-direction:column; }
  .slider-arrow { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .dosen-grid { grid-template-columns:repeat(2,1fr); }
}
