@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ---------- Header bar ---------- */
.heading_section {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #253d55;
  min-width: 250px;
  max-width: 1000px;
  height: 80px;
  border-radius: 0 0 25px 25px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-inline: 25px;
  gap: 20px;
  z-index: 1000;
}

.heading_section img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.heading_section a {
  text-decoration: none;
  color: white;
  cursor: pointer;
}

.heading_section a h1 {
  text-shadow: rgb(16, 18, 19) 3px 0px 0px, rgb(16, 18, 19) 2.83487px 0.981584px 0px, rgb(16, 18, 19) 2.35766px 1.85511px 0px, rgb(16, 18, 19) 1.62091px 2.52441px 0px, rgb(16, 18, 19) 0.705713px 2.91581px 0px, rgb(16, 18, 19) -0.287171px 2.98622px 0px, rgb(16, 18, 19) -1.24844px 2.72789px 0px, rgb(16, 18, 19) -2.07227px 2.16926px 0px, rgb(16, 18, 19) -2.66798px 1.37182px 0px, rgb(16, 18, 19) -2.96998px 0.42336px 0px, rgb(16, 18, 19) -2.94502px -0.571704px 0px, rgb(16, 18, 19) -2.59586px -1.50383px 0px, rgb(16, 18, 19) -1.96093px -2.27041px 0px, rgb(16, 18, 19) -1.11013px -2.78704px 0px, rgb(16, 18, 19) -0.137119px -2.99686px 0px, rgb(16, 18, 19) 0.850987px -2.87677px 0px, rgb(16, 18, 19) 1.74541px -2.43999px 0px, rgb(16, 18, 19) 2.44769px -1.73459px 0px, rgb(16, 18, 19) 2.88051px -0.838247px 0px;
  margin-bottom: 0 !important;
  font-family: 'Cairo', sans-serif;
}

/* ---------- Menu toggle: hamburger → Zoho-style Z ---------- */
.menu-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle-btn.is-open {
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  position: relative !important;
  display: block;
  width: 22px;
  height: 16px;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  margin: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
}

.menu-toggle > span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition:
    top 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

.menu-toggle > span:nth-child(1) {
  top: 0;
}

.menu-toggle > span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle > span:nth-child(3) {
  bottom: 0;
}

/* Z shape (Zoho-like) when menu is open */
.menu-toggle.is-open > span:nth-child(1) {
  top: 0;
  transform: none;
}

.menu-toggle.is-open > span:nth-child(2) {
  top: 50%;
  width: 118%;
  left: -9%;
  transform: translateY(-50%) rotate(-42deg);
}

.menu-toggle.is-open > span:nth-child(3) {
  bottom: 0;
  transform: none;
}

.profile_btn {
  color: white;
  text-decoration: none;
  font-size: 24px;
  margin-left: 10px;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1040;
  --bs-backdrop-bg: #000;
  --bs-backdrop-opacity: 0.5;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--bs-backdrop-zindex);
  width: 100vw;
  height: 100vh;
  background-color: var(--bs-backdrop-bg);
}

.modal-backdrop.show {
  opacity: var(--bs-backdrop-opacity);
}

/* ---------- Offcanvas drawer ---------- */
.offcanvas {
  --bs-offcanvas-width: 280px;
  position: fixed;
  bottom: 0;
  z-index: var(--bs-offcanvas-zindex);
  display: flex;
  flex-direction: column;
  width: var(--bs-offcanvas-width) !important;
  max-width: 88vw;
  color: #fff !important;
  visibility: hidden;
  background: linear-gradient(180deg, #2a4560 0%, #1c3044 100%) !important;
  background-clip: padding-box;
  outline: 0;
  border: none !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  transition: var(--bs-offcanvas-transition);
  font-family: 'Cairo', sans-serif;
}

.offcanvas.offcanvas-end {
  top: 0;
  right: 0;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateX(100%);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 64px;
}

.offcanvas-header .btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.12) !important;
  opacity: 1;
  background-size: 12px;
  filter: invert(1) brightness(1.2);
  flex-shrink: 0;
}

.offcanvas-header .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
}

.logo_section {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cairo', sans-serif;
  flex: 1;
  min-width: 0;
}

.logo_section img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.offcanvas-title {
  text-decoration: none;
  font-size: 15px !important;
  font-weight: 600;
  color: #fff !important;
  text-shadow: none !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offcanvas-body {
  display: flex !important;
  flex-direction: column;
  padding: 12px 14px 20px !important;
  overflow-y: auto;
}

/* ---------- Nav links ---------- */
.menu {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
  flex: 1 1 auto;
}

.menu .lists {
  display: block;
  padding: 11px 14px;
  background: transparent;
  border-radius: 10px;
  width: 100%;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.18s ease, color 0.18s ease;
}

.menu .lists li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu .lists:hover {
  background: rgba(65, 163, 249, 0.18);
  color: #fff;
}

.menu-divider,
.offcanvas-body > hr {
  width: 100% !important;
  margin: 14px 0 !important;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* ---------- Action buttons ---------- */
.nav_btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.nav_btn .btn_login,
.nav_btn .btn_dalil,
.menu .btn_login,
.menu .btn_dalil {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  min-height: 44px;
  background-color: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px !important;
  text-decoration: none;
  color: #fff !important;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.nav_btn .btn_login i,
.nav_btn .btn_dalil i,
.menu .btn_login i,
.menu .btn_dalil i {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.95;
}

.nav_btn .btn_login li,
.nav_btn .btn_dalil li,
.menu .btn_login li,
.menu .btn_dalil li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  font-size: inherit;
  font-weight: inherit;
}

.nav_btn .btn_login,
.menu .btn_login {
  background: #0b5ed7 !important;
  border-color: transparent;
}

.nav_btn .btn_login:hover,
.nav_btn .btn_dalil:hover,
.menu .btn_login:hover,
.menu .btn_dalil:hover {
  background-color: #0a58ca !important;
  border-color: transparent;
  transform: translateY(-1px);
}

.nav_btn .btn_dalil:hover,
.menu .btn_dalil:hover {
  background-color: rgba(65, 163, 249, 0.28) !important;
}

.police_footer {
  position: absolute;
  bottom: 5px;
  text-align: center;
  left: 50px;
  color: #f1f1f1af;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
}

@media (max-width: 500px) {
  .heading_section {
    position: fixed;
    justify-content: right;
    background-color: #253d55;
    min-width: 100%;
    max-width: 100%;
    border-radius: 0;
    font-size: 12px;
  }

  .heading_section a h1 {
    font-size: 20px !important;
  }

  .offcanvas {
    --bs-offcanvas-width: min(300px, 88vw);
  }
}

@media (max-width: 768px) {
  .offcanvas.offcanvas-end {
    top: 0;
    right: 0;
    width: var(--bs-offcanvas-width) !important;
    transform: translateX(100%);
  }

  .offcanvas-title {
    font-size: 14px !important;
  }
}
