/* ==========================================================================
   Universitas Hamzanwadi - Program Studi Pendidikan Seni
   Modern Academic & Artistic Portal Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0b3954;
  --primary-dark: #062233;
  --primary-light: #16567d;
  --accent-gold: #c59b27;
  --accent-gold-light: #f3df95;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;
  --secondary: #e07a5f;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #0b3954;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(11, 57, 84, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Topbar */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-links, .topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar a:hover {
  color: var(--accent-gold-light);
}

/* Running Marquee / Sekilas Info */
.marquee-bar {
  background: linear-gradient(90deg, #0b3954, #16567d);
  color: #fff;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.marquee-badge {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-right: 1rem;
  white-space: nowrap;
}

.marquee-text {
  overflow: hidden;
  white-space: nowrap;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--accent-gold);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--accent-gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--primary);
  padding-left: 1.25rem;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-pmb-nav {
  background: linear-gradient(135deg, #c59b27, #e0a92d);
  color: #0b3954;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-pmb-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.45);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 34, 51, 0.88) 0%, rgba(11, 57, 84, 0.84) 100%), 
              url('/static/uploads/hero_seni_hamzanwadi.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6.5rem 0 7rem;
  overflow: hidden;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 155, 39, 0.25);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent-gold-light);
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: #0b3954;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #d4a92c;
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
}

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

.stat-item {
  border-left: 3px solid var(--accent-gold);
  padding-left: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Sections Common */
.section {
  padding: 5rem 0;
}

.bg-white {
  background: #ffffff;
}

.bg-surface {
  background: var(--bg-surface);
}

/* Sambutan Kaprodi */
.welcome-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.welcome-image-box {
  position: relative;
}

.welcome-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
}

.welcome-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-gold);
}

.welcome-badge h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.welcome-badge p {
  font-size: 0.8rem;
  color: var(--accent-gold-light);
}

.welcome-text h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.welcome-body {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.welcome-body p {
  margin-bottom: 1rem;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.news-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 57, 84, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title:hover {
  color: var(--primary);
}

.news-snippet {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Agendas List */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.agenda-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
}

.agenda-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.agenda-date-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  text-align: center;
  min-width: 75px;
  box-shadow: 0 4px 10px rgba(11, 57, 84, 0.2);
}

.agenda-day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.agenda-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.agenda-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Faculty Grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.faculty-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.faculty-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.faculty-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.faculty-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faculty-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Polling & PMB CTA Section */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.poll-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.poll-option-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.poll-option-btn:hover {
  background: rgba(197, 155, 39, 0.4);
  border-color: var(--accent-gold);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  padding-left: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Floating WA Button */
.floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .welcome-grid, .cta-banner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.15rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .topbar-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Image Lightbox & Modal Viewer
   ========================================================================== */
.modal-overlay,
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.open,
.modal-overlay.active,
.lightbox-modal.open,
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.open .lightbox-dialog,
.modal-overlay.open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #fff;
  gap: 1rem;
}

.lightbox-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.lightbox-close-btn {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 72vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: #0b1120;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(200, 150, 62, 0.9);
  border-color: #ffd700;
  transform: translateY(-50%) scale(1.12);
}

.lightbox-prev {
  left: -24px;
}

.lightbox-next {
  right: -24px;
}

.lightbox-caption {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-top: 0.75rem;
  color: #fff;
  text-align: left;
}

.lightbox-caption h3 {
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.lightbox-caption p {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Gallery Card Hover Enhancements */
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.gallery-card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.08);
}

.gallery-overlay-badge {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 44, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-overlay-badge {
  opacity: 1;
}

.gallery-overlay-badge span {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay-badge span {
  transform: translateY(0);
}

.gallery-filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gallery-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(11, 57, 84, 0.25);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 4px;
  }
  .lightbox-next {
    right: 4px;
  }
  .lightbox-header {
    flex-wrap: wrap;
  }
  .lightbox-img-wrapper img {
    max-height: 55vh;
  }
}

/* ==========================================================================
   Public Form Controls Design System
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
  position: relative;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-label .required-star {
  color: #ef4444;
  font-weight: 700;
}

.form-label .label-hint {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 57, 84, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Quick subject chips */
.subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.subject-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.subject-chip:hover {
  background: #e2e8f0;
  color: var(--primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.subject-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Form Submit Button */
.btn-submit-gold {
  background: linear-gradient(135deg, var(--accent-gold), #b3861f);
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-shadow: 0 4px 14px rgba(200, 150, 62, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-gold:hover {
  background: linear-gradient(135deg, #d4a73b, var(--accent-gold));
  box-shadow: 0 6px 20px rgba(200, 150, 62, 0.45);
  transform: translateY(-2px);
}

.btn-submit-gold:active {
  transform: translateY(0);
}

.btn-submit-gold:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Contact Card Container */
.contact-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-gold);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

/* Info Item with Icon Box */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--accent-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 57, 84, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Contact Alert */
.contact-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.contact-alert.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.contact-alert.error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* ==========================================================================
   Berita & Publikasi - Search Toolbar & Pagination System
   ========================================================================== */

.berita-toolbar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px -4px rgba(11, 57, 84, 0.08);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}

.berita-search-bar {
  width: 100%;
}

.search-form-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.search-input-group {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-group .search-icon {
  position: absolute;
  left: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input-group .berita-input {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 3rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-group .berita-input:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.search-input-group .berita-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 57, 84, 0.12);
}

.search-input-group .berita-input:focus ~ .search-icon {
  color: var(--primary);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.berita-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(11, 57, 84, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.berita-search-btn:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 16px rgba(11, 57, 84, 0.3);
  transform: translateY(-2px);
}

.berita-search-btn:active {
  transform: translateY(0);
}

/* Category Pills */
.category-pills-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.category-pills-scroll::-webkit-scrollbar {
  height: 4px;
}

.category-pills-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.category-pills-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-pill:hover {
  background: #e2e8f0;
  color: var(--primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(11, 57, 84, 0.25);
  transform: translateY(-1px);
}

/* Result & Filter Status Banner */
.berita-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.berita-status-banner .status-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.berita-status-banner strong {
  color: var(--primary);
}

.btn-reset-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-reset-filter:hover {
  background: #fca5a5;
  color: #7f1d1d;
  transform: translateY(-1px);
}

/* Skeleton / Loading Grid */
.skeleton-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-thumb {
  height: 220px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-line.short { width: 35%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 95%; }

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modern Public Pagination */
.pagination-section {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pagination-info strong {
  color: var(--primary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 57, 84, 0.08);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 57, 84, 0.25);
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.page-btn-nav {
  padding: 0 1rem;
  font-size: 0.875rem;
}

.page-btn-nav svg {
  transition: transform 0.2s ease;
}

.page-btn-nav:hover:not(:disabled) svg.icon-prev {
  transform: translateX(-2px);
}

.page-btn-nav:hover:not(:disabled) svg.icon-next {
  transform: translateX(2px);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 42px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Empty State */
.empty-news-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-news-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.empty-news-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-news-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .berita-toolbar {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .search-form-wrapper {
    flex-direction: column;
  }
  
  .search-input-group {
    width: 100%;
  }
  
  .berita-search-btn {
    width: 100%;
  }

  .pagination-controls {
    gap: 0.35rem;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    font-size: 0.825rem;
  }

  .page-btn-nav {
    padding: 0 0.75rem;
  }
}



