/*====== SITE HEADER — partial/front/header.blade.php ======*/
:root {
  --sh-bg: #ffffff;
  --sh-text: #1d1d1f;
  --sh-muted: #6f6f6f;
  --sh-line: #e9e9e9;
  --sh-hover: #f5f5f5;
}
html[data-theme="dark"] {
  --sh-bg: #151517;
  --sh-text: #ececec;
  --sh-muted: #a0a0a0;
  --sh-line: #2c2c30;
  --sh-hover: #222226;
}

/* row 1 */
.sh-top { background: var(--sh-bg); border-bottom: 1px solid var(--sh-line); }
.sh-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
}
.sh-left { justify-self: start; }
.sh-date { font-size: 14px; color: var(--sh-muted); white-space: nowrap; }
.sh-date .fa { margin-right: 4px; }
.sh-logo { justify-self: center; display: block; }
.sh-logo img { display: block; height: 80px; width: auto; max-width: 100%; }
.sh-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }

.sh-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--sh-text) !important;
  font-size: 20px;
  cursor: pointer;
  transition: background .15s ease;
}
.sh-icon:hover { background: var(--sh-hover); text-decoration: none; }
.sh-theme .fa-sun-o { display: none; }
html[data-theme="dark"] .sh-theme .fa-sun-o { display: inline-block; }
html[data-theme="dark"] .sh-theme .fa-moon-o { display: none; }

/* compact EN | BN switch */
.sh-lang {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 2px;
  border: 1px solid var(--sh-line, #e5e7eb); border-radius: 14px;
  font: 700 11.5px/1 Arial, Helvetica, sans-serif; letter-spacing: .4px;
}
.sh-lang a, .sh-lang .on { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 24px; padding: 0 8px; border-radius: 12px; }
.sh-lang a { color: var(--sh-muted, #6b7280) !important; text-decoration: none; }
.sh-lang a:hover { color: var(--tk-accent, #c4161c) !important; text-decoration: none; }
.sh-lang .on { background: var(--tk-accent, #c4161c); color: #fff; }

/* row 2: menu */
.sh-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sh-bg);
  border-bottom: 1px solid var(--sh-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.sh-nav-inner { display: flex; align-items: center; }
.sh-nav-logo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 0; height: 40px; margin-right: 0; overflow: hidden;
  opacity: 0; transition: width .2s ease, margin .2s ease, opacity .2s ease;
}
.sh-nav-logo img {
  width: 40px; height: 40px; flex: none; object-fit: contain;
  border-radius: 50%; border: 1px solid var(--sh-line); background: #fff; padding: 2px;
}
body.sh-stuck .sh-nav-logo { width: 40px; margin-right: 16px; opacity: 1; }
.sh-menu {
  flex: 1; min-width: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sh-menu > li { position: relative; }
.sh-menu > li > a {
  display: block;
  padding: 15px 15px 13px;
  font-size: 18px;
  font-weight: 500;
  color: var(--sh-text) !important;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.sh-menu > li > a:hover,
.sh-menu > li.active > a {
  color: var(--tk-accent, #c4161c) !important;
  border-bottom-color: var(--tk-accent, #c4161c);
}
.sh-sub {
  display: none;
  position: absolute; left: 0; top: 100%;
  min-width: 190px;
  list-style: none; margin: 0; padding: 6px 0;
  background: var(--sh-bg);
  border: 1px solid var(--sh-line);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  z-index: 1001;
}
.sh-has-sub:hover > .sh-sub { display: block; }
.sh-sub a { display: block; padding: 8px 16px; font-size: 16px; color: var(--sh-text) !important; text-decoration: none; }
.sh-sub a:hover { background: var(--sh-hover); color: var(--tk-accent, #c4161c) !important; }

/* search bar */
/* one bordered box: [ input .................. | 🔍  ✕ ] */
.sh-search { display: none; border-top: 1px solid var(--sh-line); background: var(--sh-bg); padding: 20px 0; }
body.sh-search-open .sh-search { display: block; }
.sh-search-box {
  display: flex;
  align-items: stretch;
  border: 1px solid #dcdcdc;
  background: var(--sh-bg);
}
html[data-theme="dark"] .sh-search-box { border-color: var(--sh-line); }
.sh-search-box:focus-within { border-color: #b5b5b5; }
.sh-search-box input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  font-size: 17px;
  border: 0;
  background: transparent;
  color: var(--sh-text);
  outline: none;
  box-shadow: none;
}
.sh-search-box input::placeholder { color: #9a9a9a; }
.sh-search-box button {
  width: 50px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 22px;
  cursor: pointer;
  transition: color .15s ease;
}
html[data-theme="dark"] .sh-search-box button { color: var(--sh-muted); }
.sh-search-box .sh-search-go { border-left: 1px solid #dcdcdc; }
html[data-theme="dark"] .sh-search-box .sh-search-go { border-left-color: var(--sh-line); }
.sh-search-box button:hover { color: var(--tk-accent, #c4161c); }

/* drawer */
.sh-overlay {
  position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
  z-index: 1999;
}
.sh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 86vw;
  background: var(--sh-bg);
  color: var(--sh-text);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 2000;
  overflow-y: auto;
  box-shadow: -6px 0 24px rgba(0, 0, 0, .15);
}
body.sh-drawer-open { overflow: hidden; }
body.sh-drawer-open .sh-overlay { opacity: 1; visibility: visible; }
body.sh-drawer-open .sh-drawer { transform: translateX(0); }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sh-line); }
.sh-drawer-head img { height: 40px; width: auto; }
/* drawer search: [ input ............ | 🔍 ] */
.sh-drawer-search {
  display: flex; margin: 14px 16px 6px;
  border: 1px solid #dcdcdc; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
html[data-theme="dark"] .sh-drawer-search { border-color: var(--sh-line); }
.sh-drawer-search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px;
  border: 0; outline: none; box-shadow: none;
  background: transparent; color: var(--sh-text); font-size: 16px;
}
.sh-drawer-search button {
  width: 50px; border: 0; cursor: pointer;
  background: var(--tk-accent, #c4161c); color: #fff; font-size: 19px;
}

/* categories & feature links: two columns with divider lines */
.sh-drawer-cats, .sh-drawer-links {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px;
  list-style: none; margin: 0; padding: 4px 16px 10px;
}
.sh-drawer-cats a, .sh-drawer-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--sh-line);
  font-size: 16px; font-weight: 600; line-height: 1.3;
  color: var(--sh-text) !important; text-decoration: none;
}
.sh-drawer-cats a:hover, .sh-drawer-links a:hover { color: var(--tk-accent, #c4161c) !important; }
.sh-drawer-cats a { gap: 8px; }
.sh-cat-ico { width: 18px; height: 18px; object-fit: contain; flex: none; border-radius: 3px; }
.sh-drawer-links { border-top: 1px solid var(--sh-line); padding-top: 6px; }
.sh-drawer-links a { font-size: 15px; }
.sh-drawer-links .fa { width: 20px; font-size: 18px; text-align: center; flex: none; }
.sh-drawer-langs { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--sh-line); }
.sh-drawer-langs a { padding: 5px 12px; border: 1px solid var(--sh-line); border-radius: 20px; font-size: 14px; color: var(--sh-text) !important; text-decoration: none; }
.sh-drawer-langs a.active { background: var(--tk-accent, #c4161c); border-color: var(--tk-accent, #c4161c); color: #fff !important; }
.sh-drawer-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 20px 24px; }
.sh-drawer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sh-hover); color: var(--sh-text) !important;
}
.sh-drawer-social a:hover { background: var(--tk-accent, #c4161c); color: #fff !important; }

/* responsive */
@media (max-width: 991px) {
  .sh-menu { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sh-menu::-webkit-scrollbar { display: none; }
  .sh-menu > li > a { padding: 12px 12px 10px; font-size: 16px; }
  .sh-has-sub:hover > .sh-sub { display: none; } /* sub-menus live in the drawer on small screens */
}
.sh-menu-m { display: none; }

/* mobile: [ ☰ ]  [  logo  ]  [ 🔍 🌙 ] — language switch lives in the drawer */
@media (max-width: 767px) {
  .sh-top-inner { grid-template-columns: 1fr auto 1fr; min-height: 72px; gap: 6px; }
  .sh-left, .sh-logo, .sh-actions { min-width: 0; }
  .sh-date { display: none; }
  .sh-menu-m { display: inline-flex; margin-left: -8px; }
  .sh-menu-d { display: none; }
  .sh-logo { justify-self: center; }
  .sh-logo img { height: 58px; max-width: calc(100vw - 140px); object-fit: contain; }
  .sh-actions { gap: 0; margin-right: -8px; }
  .sh-icon { width: 36px; height: 36px; font-size: 18px; }
  .sh-lang { display: none; }
  /* menu button is on the left, so the drawer opens from the left */
  .sh-drawer { right: auto; left: 0; width: 100%; max-width: 100%; transform: translateX(-100%); box-shadow: none; }
}
