:root {
  --primary-color: #3f51ff;
  --accent-color: #00b7d8;
  --text-primary: #0b1220;
  --text-secondary: #556680;
  --muted: #6b7280;
  --card-bg: linear-gradient(180deg, #ffffff, #fbfdff);
  --surface: #f6f8ff;
  --shadow-strong: 0 18px 40px rgba(63, 81, 255, 0.08);
}

/* Reset / Utilities */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--surface);
  color: var(--text-secondary);
}
.text-muted.small {
  font-size: 0.82rem;
}

/* Navbar */
.navbar {
  margin: 15px;
  background: linear-gradient(
    135deg,
    rgba(63, 81, 255, 0.06),
    rgba(0, 183, 216, 0.04)
  );
  border-radius: 14px;
  padding: 10px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  flex-shrink: 0;
  margin-right: auto;
}

.navbar-toggler {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(9, 132, 227, 0.1);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: 10;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 20px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: #0984e3;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: 0;
}

.navbar-toggler-icon::after {
  bottom: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 9px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 9px;
}

.navbar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.navbar.bg-white {
  border: 1px solid rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
}

.navbar.scrolled {
  border-radius: 30px;
  padding: 12px 0;
  background: var(--card-bg);
}

.brand-container {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.brand-text {
  font-style: italic;
  font-weight: 550;
  font-size: 1.9rem;
  color: rgb(121, 217, 255);
}
.brand-text span {
  color: rgb(0, 165, 231);
}

.navbar-nav {
  gap: 10px;
  display: flex;
  align-items: center;
}
.nav-link {
  padding: 10px 20px !important;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.nav-link .nav-icon {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: #fff !important;
  transform: translateY(-2px);
}
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  transform: scale(1.1);
  color: white;
}

/* Hero */
.hero-section {
  background: linear-gradient(
    180deg,
    rgba(112, 114, 255, 0.08),
    rgba(0, 188, 212, 0.04)
  );
  padding: 48px 0;
  border-radius: 14px;
  margin: 12px 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
}
.hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.05;
}
.hero-sub {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.05rem;
}
.hero-img {
  max-width: 420px;
}

/* Buttons: global */
.btn {
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.12s ease;
  border-radius: 10px;
}
.btn:hover {
  transform: translateY(-3px);
}

/* Primary / CTA */
.btn-cta,
.btn-primary {
  background: linear-gradient(90deg, var(--primary-color), #5f86ff);
  color: #fff;
  border: none;
  box-shadow: 0 12px 36px rgba(63, 81, 255, 0.12);
}
.btn-cta:hover,
.btn-primary:hover {
  filter: brightness(1.03);
}

/* White / light buttons made visible */
.btn-light,
.btn-outline-light {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: 0 6px 20px rgba(11, 18, 32, 0.04);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.92);
}
.btn-light:hover,
.btn-outline-light:hover {
  background: #f4f6ff;
  color: var(--primary-color);
  box-shadow: var(--shadow-strong);
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(63, 81, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(63, 81, 255, 0.1);
}
.card .card-title {
  color: var(--text-primary);
}
.card .card-text {
  color: var(--text-secondary);
}

/* Feature cards accent */
.feature-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid rgba(11, 18, 32, 0.04);
  position: relative;
  overflow: visible;
}
.feature-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -8px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 6px;
  opacity: 0.95;
}

/* Testimonial */
.testimonial-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(63, 81, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(63, 81, 255, 0.1);
}
.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(63, 81, 255, 0.08);
  flex-shrink: 0;
}
.testimonial-quote {
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.testimonial-meta strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}
.testimonial-meta small {
  color: var(--muted);
}

/* Agenda compact date badge */
.agenda-date {
  width: 56px;
  text-align: center;
  background: linear-gradient(180deg, rgba(63, 81, 255, 0.06), rgba(0, 183, 216, 0.03));
  border-radius: 8px;
  padding: 8px 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Berita / carousel */
.berita-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  background: var(--card-bg);
}
.berita-img {
  height: 420px;
  object-fit: cover;
  width: 100%;
  display: block;
  filter: brightness(0.78);
  transition: transform 0.45s ease, filter 0.3s ease;
}
.berita-card:hover .berita-img {
  transform: scale(1.03);
  filter: brightness(0.88);
}

/* overlay darker for readability */
.berita-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
  color: #fff;
  min-height: 120px;
  border-radius: 0 0 12px 12px;
}

/* Thumbs */
.berita-thumbs-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.berita-thumb {
  width: 84px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.berita-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(63, 81, 255, 0.1);
  border-color: rgba(63, 81, 255, 0.95);
}

/* ===== MODERN SEARCH ===== */
.search-modern-wrapper {
  position: relative;
  z-index: 99999 !important; 
}

.search-modern-wrapper.search-dropdown-fixed {
  position: fixed !important;
  top: 100px; 
  left: 0;
  width: 100vw;
  z-index: 2147483647 !important;
  background: transparent;
  pointer-events: none;
}

.search-modern-input {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(63, 81, 255, 0.12);
  overflow: auto;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-modern-input:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 12px 36px rgba(63, 81, 255, 0.18);
}

.search-modern-input .form-control {
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  background: transparent;
}

.search-modern-input .form-control:focus {
  box-shadow: none;
  border: none;
}

.search-modern-input .input-group-text {
  border: none;
  color: var(--primary-color);
  padding: 0 16px;
  background: transparent !important;
}

.search-dropdown {
  position: fixed !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
  max-height: 500px;
  overflow-y: auto;
  z-index: 999999999 !important;
  display: none;
}



.search-loading {
  padding: 20px;
  text-align: center;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-list-item {
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.search-list-item:last-child {
  border-bottom: none;
}

.search-list-item:hover {
  background: linear-gradient(90deg, rgba(63, 81, 255, 0.05), transparent);
}

.search-item-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}

.search-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-excerpt {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-item-date {
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}

.search-no-results {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
}

.search-no-results-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-top: 1px solid rgba(63, 81, 255, 0.1);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

/* Footer Brand */
.footer-brand h5 {
  color: var(--text-primary);
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  color: white;
  margin-right: 8px;
}

.footer-brand p {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Social Links */
.footer-socials {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(63, 81, 255, 0.08);
  border-radius: 10px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(63, 81, 255, 0.2);
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link::before {
  content: "→";
  opacity: 0;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 6px;
}

.footer-link:hover::before {
  opacity: 1;
}

/* Contact Section */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(63, 81, 255, 0.04);
}

.footer-contact-item:hover {
  background: rgba(63, 81, 255, 0.08);
  transform: translateX(4px);
  text-decoration: none;
  color: inherit;
}

.footer-contact-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  flex: 1;
}

.footer-contact-text small:first-child {
  color: var(--text-primary);
}

.footer-contact-text small {
  text-decoration: none;
}

/* Footer Divider */
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e9ecef, transparent);
  margin: 40px 0;
}

/* Bottom Footer */
footer .small {
  font-weight: 500;
}

footer .small strong {
  color: var(--text-primary);
}

.footer-bottom-link {
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-bottom-link:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
}

/* Back to Top Button */
.footer-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

#backToTop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(63, 81, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

#backToTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(63, 81, 255, 0.3);
}

/* Show Back to Top */
.footer-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-avatar {
    width: 60px;
    height: 60px;
  }

  .agenda-date {
    width: 48px;
    font-size: 0.9rem;
    padding: 6px 4px;
  }

  .footer-brand {
    margin-bottom: 30px;
  }

  footer .row:first-child {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 30px;
  }

  .footer-bottom-link {
    font-size: 0.85rem;
  }

  #backToTop {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  footer {
    margin: 0;
    padding-top: 40px !important;
    padding-bottom: 60px !important;
  }

  .footer-divider {
    margin: 30px 0;
  }

  .footer-contact-item {
    padding: 10px;
  }

  footer .row:last-child {
    flex-direction: column-reverse;
    gap: 20px;
  }

  footer .row:last-child > div {
    text-align: center;
  }

  footer .row:last-child > div:last-child ul {
    justify-content: center !important;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-img {
    max-width: 260px;
    margin: auto;
  }

  .brand-text {
    font-size: 1.3rem;
  }

  .berita-img {
    height: 220px;
  }

  .navbar {
    margin: 8px;
    padding: 6px 12px;
  }

  .nav-link {
    padding: 10px 12px !important;
  }
}

@media (max-width: 991px) {
  .navbar {
    padding: 8px 15px;
    margin: 8px;
  }

  .navbar .container {
    display: flex;
    flex-wrap: wrap;
  }

  .navbar-brand {
    margin-right: auto;
    padding: 0;
  }

  .navbar-toggler {
    order: 10;
    margin-left: auto;
  }

  .navbar-collapse {
    order: 100;
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    padding: 12px 15px !important;
    width: 100%;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  }

  .dropdown-menu {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(246, 248, 255, 0.96)
    );
    border: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-top: 5px !important;
  }

  .dropdown-item {
    padding: 10px 15px;
    border-radius: 6px;
  }

  .dropdown-item:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
  }

  .berita-img {
    height: 320px;
  }
}

@media (max-width: 991px) {
  .search-modern-wrapper.search-dropdown-fixed {
    top: 70px;
  }
}

