
/* Navbar */

:root {
  --navbar-height: 70px;
}

.navbar {
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1070 !important;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.navbar-brand {
  letter-spacing: -0.5px;
  padding: 5px;
}

.logo-navbar {
  height: 40px;
  width: 80px;
    background-image: var(--logo-path);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  width: 50px;
  height: 50px;
  color: var(--blue-950);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: none;
}

.search-btn:hover {
  color: var(--blue-700);
  border: none;
}

.navbar-toggler {
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: transparent;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-toggler:hover {
  border-radius: var(--radius);
  background: none;
  border: none;
}

.navbar-toggler:focus, navbar-toggler.active  {
  box-shadow: none;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: var(--blue-950);
  border-radius: 3px;
  transition: 0.3s;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 25px;
  height: 3px;
  background: var(--blue-950);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

.menu-open .hamburger {
  background: transparent;
}

.menu-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background: var(--blue-700);
}

.menu-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  background: var(--blue-700);
}

.close-btn {
  width: 50px;
  height: 50px;
  color: var(--blue-950);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: none;
}

.close-btn:hover {
  border-radius: var(--radius);
  background: var(--blue-200);
  border: none;
}

/* OVERLAY FADE + SLIDE */
.menu-overlay {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: 100vh;
    backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  z-index: 1072 !important;
}

.menu-overlay.menu-open {
  opacity: 1;
  visibility: visible;
}

.navbar-collapse {
  opacity: 0.7;
  position: fixed;
  top: var(--navbar-height);
  right: -300px;
  height: calc(100vh + var(--navbar-height));
  width: 100%;
  z-index: 1074 !important;
  background: var(--blue-100);
  padding: 3rem 2rem;
  overflow-y: auto;
  max-width: 300px;
  transition: all 0.5s cubic-bezier(0, 0.3, 0.1, 1);
}

.navbar-collapse.menu-open {
  opacity: 1;
  visibility: visible;
  right: 0;
}

.navbar-nav {
  flex-direction: column;
  gap: 1.2rem;
  margin-left: auto;
}

.nav-link {
  color: var(--blue-900) !important;
  font-weight: 400;
  font-size: 1.1rem;
  padding: 1rem !important;
  border-radius: 16px;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(127,127,127,0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active  {
  color: var(--blue-700) !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(10px);
}

.nav-link i {
  width: 24px;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-right: 12px;
}

.dropdown-menu {
  border: none;
  margin: 0.5rem 0 0 1rem;
  padding: 7px;
  transition: all 0.5s ease-out;
  background: rgba(127,127,127,0.1);
}

.dropdown-item {
  color: var(--blue-900) !important;
  padding: 0.5rem !important;
  margin-bottom: 5px;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--blue-100);
  transition: width 0.3s ease;
  z-index: -1;
}
.dropdown-item:hover::before {
  width: 100%;
}

.dropdown-item:hover {
  background: none;
}

/* DARKMODE TOGGLE  */
.toggle {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(127,127,127,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-950);
  z-index: 1075 !important;
}

.switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--blue-100);
    border: 2px solid var(--blue-900);
  border-radius: 26px;
  cursor: pointer;
  transition: 0.3s;
}

.switch span {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--blue-950);
  border-radius: 50%;
  transition: 0.3s;
}

.switch.on {
  background: var(--blue-200);
}

.switch.on span {
  transform: translateX(22px);
}

/* search modal  */

.search-body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2); 
  overflow: hidden;
  z-index: 1080 !important;
  opacity: 0.7;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0, 0.3, 0.1, 1);
}

.search-body.search-open-show {
  opacity: 1;
  visibility: visible;
}


.search-container {
  position: fixed;
  top: -35%;
  width: 100vw;
  height: auto;
  min-height: 200px;
  max-height: 85vh;
  background: var(--blue-100);
    color:var(--blue-900);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0, 0.3, 0.1, 1);
  z-index: 1081 !important;
  opacity: 0.7;
  visibility: hidden;
  border-radius: 0 0 15px 15px;
}

.search-container.search-open-show {
    top: 0;
  opacity: 1;
  visibility: visible;
}

.search-header {
  flex-shrink: 0;
  height: var(--navbar-height);
  background: var(--blue-200);
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1082 !important;
}

.search-modal-title {
  font-size: 1.5rem;
  font-family: var(font-secondary);
  color: var(--blue-900);
  margin: 0;
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue-900);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-modal-close:hover {
  color:var(--blue-700);
  border: none;
}

.search-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 50px;
  scroll-behavior: smooth;
  transition: all 0.3s cubic-bezier(0, 0.3, 0.1, 1);
  opacity: 0.7;
  visibility: hidden;
  z-index: 1083 !important;
  scrollbar-width: none;
}

.search-content.search-open-show {
  opacity: 1;
  visibility: visible;
  transition: all 0.3s cubic-bezier(0, 0.3, 0.1, 1);
}

.search-input-wrapper {
  position: sticky;
  padding: 2rem;
  top: 0;
  background: var(--blue-100);
    color: var(--blue-900);
  z-index: 1084 !important;
}

.search-input {
  width: 100%;
  max-width: 400px;
  height: 50px;
  margin: 0 auto;
  display: block;
  padding: 1rem 1rem 1rem 3.5rem;
  border-radius: 12px;
    border: none;
  font-size: 1rem;
  background: var(--blue-100);
    color: var(--blue-900);
  transition: all 0.3s ease;
  outline: none;
    opacity: 0.8
}
.search-input::placeholder {
    color: var(--blue-900);
}
/*input.search-input::placeholder{
  color: var(--blue-950);
}*/

.search-input:focus {
  border:none;
    opacity:1;
}

.search-input-icon {
  position: absolute;
  left: 3.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-900);
  font-size: 1.7rem;
  pointer-events: none;
}

.typing {
  color: var(--blue-900);
  font-style: italic;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.stats-search {
  padding: 0;
  margin: 4px;
  font-size: 15px;
    color: var(--blue-900);
}

.result {
  background: var(--blue-50);
  color: var(--blue-900);
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: auto;
  transition: all 0.5s;
  cursor: pointer;
  border:2px solid transparent;
}
.result-card {
    border: 2px solid var(--blue-950);
    border-radius: 12px;
    transition: all 0.5s ease;
}

.result-card:hover {
    border: 2px solid var(--blue-700);
    border-radius: 12px;
    transition: all 0.5s ease;
    background: var(--blue-200);
}


.result-header {
  background: var(--blue-100);
  font-family: var(--font-secondary);
  color: var(--blue-900);
  padding: 10px 20px;
    border-radius: 12px 12px 0 0;
}

.result-title {
  margin: 0 0 5px 0;
}

.result-category {
  font-size: 15px;
  font-family: var(--font-secondary);
}

.result-body {
  padding: 10px;
}

.result-snippet {
  color: var(--blue-900);
  font-family: var(--font-primary);
  opacity: 0.9;
  padding: 0 10px;
    border-radius: 12px 12px 0 0;
}

.no-results {
  text-align: center;
  padding: 10px;
  color: var(--blue-900);
  opacity: 0.85;
  margin-bottom: 20px;
}

.info-input {
  text-align: center;
  padding: 10px;
  color: var(--blue-900);
  margin-bottom: 20px;
}

.highlight {
  background: none;
  color: var(--blue-700);
  margin-left:1px;
  margin-right:1px;
}

@media (min-width: 768px) {
  .search-input-icon {
    left: 3.2rem;
  }
}

@media (min-width: 1024px) {
  .search-input-icon {
    left: 5rem;
  }
}


/* Weather widget */

.weather {
  margin-top: 2rem;
  padding: 5px 10px;
  text-align: left;
  align-items: left;
  display: flex;
  flex-direction: column;
  
}

.temp {
  font-size: 22px;
  line-height: 20px;
  font-weight: 700;
  margin-top: 7px;
  margin-bottom: 7px;
}

.cond {
  font-size: 16px;
}

.city {
  font-size: 16px;
}

.city-icon {
  margin-right: 3px;
}

.icon {
  font-size: 4rem;
  margin-bottom: 15px;
  display: none;
}


.stat {
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: none;
}

/* Kenapa harus bandung section index */

.kenapa-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.kenapa-image-slide {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.kenapa-image {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  max-width: 600px;
  padding:5px;
  margin:0;
}

/* Responsive */
@media (max-width: 767px) {
  .kenapa-image-container { height: 300px; }
}
             @media (min-width: 1100px) {
             .kenapa-image {
             padding-top: 2.75rem;
             padding-bottom: 2.75rem;
             }} 

/* Dots Indicator */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .highlight-event-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hightlight-event-content {
    padding-top: 5rem;
    padding-bottom: 3.3rem;
  }
}
@media (max-width: 640px) {
  .highlight-event-container {
    padding: 0;
  }
}

 @media (min-width: 900px) {
   .highlight-event-slider {
    max-width: 300px;
    height: 300px;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 14px;
  }
}


/* Informasi Terkini index */

.event-news-section {
  padding: 7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.event-news-cards-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: center;
}

.event-news-card {
  background: var(--blue-50);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: none;
  transition: box-shadow 0.2s ease;
  max-width: 550px;
  width: 96%;
  margin: 1rem;
  padding: 0rem 1rem 3rem 1rem;
}

.event-news-card:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.event-news-image {
  height: 280px;
  margin: 1.1rem auto;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px;
}

.event-news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--blue-accent);
  color: var(--blue-100);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-news-content {
  text-align: center;
}

.event-news-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-900);
  text-align: center;
}

.event-news-excerpt {
  text-align: center;
}

.event-news-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  max-width: 200px;
}

.event-news-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}