/**
 * Tema 7 - Modern School Portal Style (Inspirasi: SMPN 254 Jakarta)
 * Primary Color: #041983 (Royal Navy)
 * Accent Color: #f2c808 (Golden Yellow)
 */

:root {
  --primary: #041983;
  --primary-dark: #021059;
  --primary-light: #1a32b0;
  --secondary: #f2c808;
  --secondary-hover: #d9b200;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --card-radius: 1rem;
  --btn-radius: 0.5rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -1px rgba(4, 25, 131, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(4, 25, 131, 0.12);
  --shadow-hover: 0 15px 30px -5px rgba(4, 25, 131, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a:hover {
  color: var(--secondary-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
#topbar {
  background: var(--primary-dark);
  font-size: 13px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid var(--secondary);
}

#topbar .contact-info a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#topbar .contact-info .school-top-name {
  color: #ffffff;
  font-weight: 700;
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

#topbar .contact-info a:hover {
  color: var(--secondary);
}

#topbar .social-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-left: 6px;
  font-size: 13px;
  transition: var(--transition);
}

#topbar .social-links a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
#header {
  background: #ffffff;
  transition: var(--transition);
  z-index: 997;
  padding: 12px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#header.header-scrolled {
  box-shadow: 0 4px 20px rgba(4, 25, 131, 0.1);
  padding: 8px 0;
}

#header .logo img {
  max-height: 52px;
  transition: var(--transition);
}

.school-brand {
  display: inline-flex;
  align-items: center;
}

.school-brand img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.school-brand .school-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.school-brand .school-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* Navbar Links */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  transition: var(--transition);
  border-radius: 6px;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--primary);
  background-color: rgba(4, 25, 131, 0.04);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(4, 25, 131, 0.12);
  border-radius: 12px;
  border-top: 3px solid var(--secondary);
  transition: var(--transition);
  min-width: 220px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  color: var(--text-dark);
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: var(--primary);
  background: rgba(4, 25, 131, 0.05);
  padding-left: 24px;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(4, 25, 131, 0.85);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 15px 0;
  border-radius: 16px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a, .navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--text-dark);
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #f8fafc;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: auto;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/* ==========================================================================
   Two-tone Section Titles (SMPN 254 Signature)
   ========================================================================== */
.section-header {
  margin-bottom: 2.25rem;
  position: relative;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.section-divider {
  display: flex;
  height: 4px;
  width: 72px;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 6px;
}

.section-divider .divider-primary {
  width: 50%;
  background-color: var(--primary);
}

.section-divider .divider-secondary {
  width: 50%;
  background-color: var(--secondary);
}

.section-header.text-center .section-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Hero Banner Carousel
   ========================================================================== */
.hero-slider-wrapper {
  margin-top: 15px;
  margin-bottom: 25px;
}

.hero-slider-wrapper .carousel {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slider-wrapper .carousel-item img {
  border-radius: var(--card-radius);
  object-fit: cover;
  width: 100%;
  max-height: 480px;
}

.hero-slider-wrapper .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid transparent;
  transition: var(--transition);
}

.hero-slider-wrapper .carousel-indicators .active {
  width: 28px;
  border-radius: 6px;
  background-color: var(--secondary);
}

/* ==========================================================================
   Running Announcement Ticker
   ========================================================================== */
.ticker-announcement {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 12px;
}

.ticker-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(4, 25, 131, 0.25);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  font-size: 0.9rem;
}

.ticker-content marquee {
  display: block;
}

.ticker-date {
  background-color: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

/* ==========================================================================
   School Statistics (Counter Cards)
   ========================================================================== */
.counter-section {
  padding: 15px 0 35px;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(4, 25, 131, 0.2);
}

.stat-card:hover::before {
  width: 6px;
  background: var(--secondary);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(4, 25, 131, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: var(--secondary);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

/* ==========================================================================
   Sambutan Kepala Sekolah Section
   ========================================================================== */
.sambutan-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  border-radius: 1.5rem;
  padding: 40px 30px;
  margin-bottom: 45px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.principal-card {
  position: relative;
  text-align: center;
}

.principal-img-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.principal-img-wrapper img {
  max-height: 320px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.principal-img-wrapper:hover img {
  transform: scale(1.03);
}

.principal-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sambutan-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.sambutan-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.btn-sambutan {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(4, 25, 131, 0.25);
}

.btn-sambutan:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(242, 200, 8, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   Quick Portal / Layanan Cards
   ========================================================================== */
.layanan-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.layanan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(4, 25, 131, 0.09);
  border-color: #cbd5e1;
}

.layanan-icon-holder {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.layanan-card:hover .layanan-icon-holder {
  transform: scale(1.12);
}

.layanan-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(4, 25, 131, 0.08), rgba(4, 25, 131, 0.03));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  transition: var(--transition);
  border: 1px solid rgba(4, 25, 131, 0.1);
}

.layanan-card:hover .layanan-icon {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.1);
}

.layanan-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  letter-spacing: 0.2px;
}

.layanan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Berita & Pengumuman Cards
   ========================================================================== */
.news-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(4, 25, 131, 0.2);
}

.news-thumb-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.news-thumb-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

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

.news-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  line-height: 1.6;
}

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

/* Sidebar Mini News / Pengumuman Item */
.mini-item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mini-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.mini-item-img {
  width: 78px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-item-content {
  flex: 1;
}

.mini-item-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.mini-item:hover .mini-item-title {
  color: var(--secondary-hover);
}

/* ==========================================================================
   Galeri Foto & Video
   ========================================================================== */
.gallery-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  background: #0f172a;
  height: 220px;
  display: block;
}

.gallery-card a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(4, 25, 131, 0.95) 0%, rgba(4, 25, 131, 0.7) 60%, transparent 100%);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.gallery-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.gallery-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ffffff;
  color: #e11d48;
}

/* ==========================================================================
   Agenda & Event Timeline
   ========================================================================== */
.agenda-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  transition: var(--transition);
}

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

.agenda-date-box {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
  border-bottom: 3px solid var(--secondary);
}

.agenda-date-box .date-day {
  font-size: 1.3rem;
  font-weight: 800;
}

.agenda-date-box .date-month {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.agenda-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.agenda-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding-top: 55px;
  position: relative;
  border-top: 4px solid var(--secondary);
}

#footer h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

#footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

#footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links li {
  padding: 7px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links li:first-child {
  padding-top: 0;
}

#footer .footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#footer .footer-links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

#footer .footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#footer .footer-contact i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 4px;
}

.footer-bottom {
  background: var(--primary-dark);
  padding: 20px 0;
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--btn-radius);
  padding: 8px 18px;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(242, 200, 8, 0.3);
}

.btn-secondary-custom {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: var(--btn-radius);
  padding: 8px 18px;
  transition: var(--transition);
}

.btn-secondary-custom:hover {
  background-color: var(--secondary-hover);
  color: var(--primary-dark);
}

.badge-gold {
  background-color: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 10px;
}

/* ==========================================================================
   Back to top button
   ========================================================================== */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--secondary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--secondary);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* ==========================================================================
   Breadcrumb & Subpage Header
   ========================================================================== */
.breadcrumbs {
  padding: 24px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  margin-bottom: 35px;
  border-bottom: 3px solid var(--secondary);
}

.breadcrumbs h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  font-size: 14px;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.6);
  content: "/";
}

.breadcrumbs ol a {
  color: var(--secondary);
}

.breadcrumbs ol a:hover {
  color: #fff;
}

/* ==========================================================================
   Content & Sidebar Widgets
   ========================================================================== */
.content-box {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.pointer {
  cursor: pointer;
}

/* ==========================================================================
   Partner & Link Terkait Section
   ========================================================================== */
.partner-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 1.5rem;
  padding: 35px 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 45px;
}

.partner-link-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 20px 24px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
}

.partner-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.partner-link-card img {
  max-height: 64px;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.partner-link-card:hover img {
  transform: scale(1.06);
}

/* Footer Social Pill */
.footer-social-pill {
  transition: var(--transition);
}

.footer-social-pill:hover {
  border-color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.footer-social-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.footer-social-pill a:hover {
  color: #ffc107 !important;
  transform: scale(1.25);
}

/* ==========================================================================
   Location Map Section
   ========================================================================== */
.location-map-section {
  margin-bottom: 45px;
}

.map-iframe-container {
  width: 90%;
  height: 450px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: center;  /* Tengah kanan-kiri */
  align-items: center;      /* Tengah atas-bawah */
  margin: 20px auto;  
  padding: 20px;
}

.map-iframe-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}



