/* Fix for sticky header on scroll */
#main_navbar.affix {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
  max-height: 60px;
  padding: 0 15px;
  display: flex;
  align-items: center;
}

/* Navbar brand layout fix */
#main_navbar.affix .navbar-brand {
  display: flex;
  align-items: center;
  flex-direction: row; /* pastikan logo dan teks sejajar horizontal */
  padding-top: 5px;
  padding-bottom: 5px;
  height: 50px;
  line-height: 50px;
}

#main_navbar.affix .navbar-brand img {
  height: 32px; /* ukuran logo */
  width: auto;
  margin-right: 10px; /* jarak antara logo dan teks */
  object-fit: contain;
}

/* Brand text di sebelah kanan logo */
#main_navbar.affix .navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap; /* cegah teks turun ke bawah */
}

#main_navbar.affix .navbar-brand .brand-text span {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

#main_navbar.affix .navbar-brand .brand-text small {
  font-size: 10px !important;
  color: #666 !important;
}

#main_navbar.affix .navbar-nav > li > a {
  line-height: 50px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Hero section improvements */
.section-hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  align-items: center;
  min-height: 400px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.section-hero .container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-hero p {
  font-size: 1.5rem;
  max-width: 60%;
  margin: 0;
}

#imgberakhlak {
  max-width: 25%;
  float: none;
  margin-left: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-hero {
    flex-direction: column;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .section-hero p {
    max-width: 100%;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  #imgberakhlak {
    max-width: 50%;
    margin: 0 auto;
  }
  #main_navbar.affix .navbar-brand .brand-text span {
    font-size: 12px !important;
  }
}

/* Add spacing between header and our_feature_area */
.our_feature_area {
  margin-top: 80px;
}
