.bhu-header {
  background: #f1f5f9;
  color: var(--bhu-text);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--bhu-shadow-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.bhu-header.hide {
  transform: translateY(-100%);
  box-shadow: none;
}

.bhu-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top {
  background: #144C85;
  padding: 1px 0;
  font-size: 0.7rem;
  color: #fff;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-top-right,
.auth-area,
.lang-toggle {
  display: inline-flex;
  align-items: center;
}

.header-top-right {
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.auth-area { gap: 6px; }

.header-top .auth-link,
.header-top .auth-link:hover {
  color: #fff;
}

.bhu-logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}

.bhu-emblem {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--bhu-green-dark);
  font-weight: bold;
  flex-shrink: 0;
  overflow: hidden;
}

.bhu-emblem img.bhu-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bhu-title { line-height: 1.3; }
.bhu-title h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.bhu-title p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 2px;
}

.lang-toggle {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.15);
  padding: 2px;
  border-radius: 50px;
}

.lang-btn {
  padding: 2px 10px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.3;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--bhu-gold);
  color: var(--bhu-green-dark);
}

.bhu-nav {
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav-link {
  color: #144C85;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 999px;
  transition: all 0.2s;
  display: block;
}

.nav-link:hover, .nav-link.active {
  background: #006a4e;
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #144C85;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  background: #CDEADD;
  color: var(--bhu-text);
  padding: 40px 0;
  position: relative;
}

.tools-page-header,
.blog-page-header,
.guides-page-header,
.premium-page-header,
.about-page-header,
.contact-page-header {
  margin-top: 10px;
}

.about-page-header,
.contact-page-header {
  border-radius: 12px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header p {
  color: var(--bhu-text-secondary);
  margin-top: 8px;
}

.bhu-date-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.35;
  text-align: center;
  font-size: 0.75rem;
  white-space: nowrap;
}

.bhu-date-week,
.bhu-date-cal,
.bhu-date-greg { display: block; }

.sdn-en { display: none; }
html[lang="en"] .sdn-bn { display: none; }
html[lang="en"] .sdn-en { display: inline; }

.footer {
  background: #f1f5f9;
  color: #000;
  padding: 40px 0 0;
  margin-top: 60px;
  box-shadow: 0 -10px 15px -3px rgba(0,0,0,0.1), 0 -4px 6px -2px rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--bhu-gold);
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #000; font-size: 0.9rem; }
.footer a:hover { color: var(--bhu-gold); }

.footer-bottom {
  color: #fff;
  border-top: none;
  position: relative;
  width: auto;
  margin-left: 0;
  padding: 1px 20px;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.6;
  opacity: 1;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: #144C85;
}

.footer-bottom > * {
  position: relative;
  z-index: 1;
}

.footer-bottom a,
.footer-bottom a:hover {
  color: #fff;
  font-size: 0.7rem !important;
}

html[lang="en"] .bhu-date-note [data-i18n="todayNoteTitle"] { display: inline; }

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .bhu-header > .container { flex-wrap: wrap; }
  .bhu-logo-area { justify-content: space-between; }
  .bhu-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 20px;
    width: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    background: transparent;
  }
  .bhu-nav.open { display: flex; }
  .nav-link {
    padding: 6px 12px;
    border-radius: 10px;
    width: 100px;
    background: transparent;
    text-align: center;
    line-height: 1.35;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top-right { gap: 6px; }
  .bhu-date-note { font-size: .75rem; }
}
