/* ==========================================================================
   Navigation & Header Styles - Student Herald
   ========================================================================== */

:root {
  --header-blue: #1769AA;
  --header-blue-hover: #102A43;
  --header-text: #111111;
  --header-text-muted: #666666;
  --header-border: #eaeaea;
  --header-bg: #ffffff;
}

/* --------------------------------------------------
   Header Wrapper
   -------------------------------------------------- */
.site-header {
  position: relative;
  width: 100%;
  background-color: var(--header-bg);
  z-index: 1000;
  padding: 0;
  max-width: none;
  display: block;
}

/* --------------------------------------------------
   Top Main Header Bar
   -------------------------------------------------- */
.header-top-bar {
  background-color: var(--header-bg);
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Left actions: MENU & Search */
.header-left-actions {
  display: flex;
  align-items: center;
}

/* MENU Toggle Button */
.btn-menu-toggle {
  background-color: transparent !important;
  border: none;
  padding: 6px 0;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  color: var(--header-blue) !important;
  font-family: var(--body-font), "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.btn-menu-toggle:hover {
  opacity: 0.85;
}

.btn-menu-toggle:focus {
  outline: none;
}

/* 3-bar hamburger lines */
.menu-icon-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.menu-icon-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--header-blue);
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* Search Toggle Button */
.btn-search-toggle {
  background-color: transparent !important;
  border: none;
  padding: 6px 0;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  color: var(--header-text) !important;
  font-family: var(--body-font), "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  line-height: 1;
}

.btn-search-toggle .search-icon {
  font-size: 13px;
  font-weight: 700;
  color: var(--header-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-search-toggle:hover,
.btn-search-toggle:hover .search-icon {
  color: var(--header-blue) !important;
}

.btn-search-toggle:hover .search-icon {
  transform: scale(1.1);
}

.btn-search-toggle:focus {
  outline: none;
}

/* --------------------------------------------------
   Center Section: Logo
   -------------------------------------------------- */
.header-brand-logo {
  display: inline-block;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-brand-logo:hover {
  opacity: 0.9;
}

.site-logo {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
  margin: 0;
}

/* --------------------------------------------------
   Right Section: Account & Subscribe
   -------------------------------------------------- */
.header-right-actions {
  display: flex;
  align-items: center;
}

/* My Account link */
.account-link {
  color: var(--header-text);
  font-family: var(--body-font), "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s ease;
  line-height: 1;
}

.account-link .account-icon {
  font-size: 18px;
  color: var(--header-text);
  transition: color 0.2s ease;
}

.account-link:hover,
.account-link:hover .account-icon {
  color: var(--header-blue);
}

/* SUBSCRIBE Button */
.btn-subscribe {
  background-color: var(--header-blue);
  color: #ffffff !important;
  font-family: var(--body-font), "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 7px 18px;
  border-radius: 3px;
  display: inline-block;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid var(--header-blue);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(30, 43, 161, 0.2);
}

.btn-subscribe:hover {
  background-color: var(--header-blue-hover);
  border-color: var(--header-blue-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 43, 161, 0.35);
}

.btn-subscribe:active {
  transform: translateY(0);
}

/* --------------------------------------------------
   Expandable Header Search Bar
   -------------------------------------------------- */
.header-search-bar {
  display: none;
  background-color: #fafafa;
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
  padding: 14px 0;
  animation: searchSlideDown 0.25s ease forwards;
}

.header-search-bar.active {
  display: block;
}

@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  gap: 10px;
}

.search-input-icon {
  color: var(--header-text-muted);
  font-size: 16px;
  margin-right: 4px;
}

.search-input {
  flex: 1;
  border: 1px solid #dcdcdc !important;
  border-radius: 4px !important;
  padding: 9px 14px !important;
  font-size: 14px;
  line-height: 1.5 !important ;
  background-color: #ffffff !important;
  color: var(--header-text) !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--header-blue) !important;
  box-shadow: 0 0 0 3px rgba(229, 24, 55, 0.12) !important;
  outline: none !important;
}

.search-submit-btn {
  background-color: var(--header-blue) !important;
  color: #ffffff !important;
  border: none;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-submit-btn:hover {
  background-color: var(--header-blue-hover) !important;
}

.search-close-btn {
  background-color: transparent !important;
  border: none;
  color: var(--header-text-muted) !important;
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-close-btn:hover {
  color: var(--header-blue) !important;
}

/* --------------------------------------------------
   Bottom Category Navigation (Sticky / Fixed on scroll)
   -------------------------------------------------- */
.bottom-category-nav {
  background-color: var(--header-bg);
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 995;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

/* Scrolled / Sticky Active State */
.bottom-category-nav.is-sticky,
.bottom-category-nav.scrolled {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-top-color: transparent;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 4px;
}

.nav-category-item {
  flex-shrink: 0;
}

.nav-category-link {
  display: block;
  padding: 10px 14px;
  font-family: var(--body-font), "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none !important;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.1px;
  transition: color 0.2s ease;
}

.nav-category-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--header-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-category-link:hover,
.nav-category-link.active {
  color: var(--header-blue);
}

.nav-category-link:hover::after,
.nav-category-link.active::after {
  transform: scaleX(1);
}

/* --------------------------------------------------
   Offcanvas Sidebar Menu
   -------------------------------------------------- */
.menu-offcanvas {
  max-width: 340px;
  width: 100%;
  height: 100vh !important;
  max-height: 100vh !important;
  border-right: 1px solid var(--header-border);
  overflow: hidden !important;
}

.menu-offcanvas .offcanvas-header {
  flex-shrink: 0;
}

.menu-offcanvas .offcanvas-body {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.menu-offcanvas .offcanvas-body::-webkit-scrollbar {
  width: 5px;
}

.menu-offcanvas .offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.menu-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.menu-offcanvas .offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.menu-offcanvas .btn-close:focus {
  outline: none;
  box-shadow: none;
}

.offcanvas-section-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888888;
  margin-bottom: 12px;
}

.offcanvas-nav-links {
  margin: 0;
  padding: 0;
}

.offcanvas-nav-links li {
  margin-bottom: 2px;
}

.offcanvas-nav-links li a {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none !important;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.offcanvas-nav-links li a:hover {
  background-color: #f8f9fa;
  color: var(--header-blue);
  padding-left: 16px;
}

.offcanvas-search-box .form-control {
  font-size: 14px;
  display: block;
    width: 1%;
    padding: .375rem .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.offcanvas-search-box .form-control:focus {
  border-color: var(--header-blue);
  box-shadow: 0 0 0 0.25rem rgba(229, 24, 55, 0.15);
}

.offcanvas-search-box .btn-danger {
      background-color: var(--bs-btn-bg) !important;
}

.offcanvas-header .btn-close {
  background-color: transparent !important;
}

.off-logo {
  
}
/* --------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------- */
@media (max-width: 991.98px) {
  .header-top-bar {
    padding: 12px 0;
  }

  .site-logo {
    height: 32px;
  }

  .btn-subscribe {
    padding: 6px 14px;
    font-size: 11.5px;
  }

  .account-link .account-icon {
    font-size: 17px;
  }

  .category-nav-list {
    justify-content: flex-start;
    padding: 0 8px;
  }

  .nav-category-link {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .header-top-bar {
    padding: 10px 0;
  }

  .site-logo {
    height: 26px;
  }

  .btn-menu-toggle {
    font-size: 12px;
    gap: 5px;
  }

  .menu-icon-bars {
    width: 14px;
    height: 10px;
  }

  .btn-search-toggle .search-icon {
    font-size: 14px;
  }

  .btn-subscribe {
    padding: 5px 10px;
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  .account-link .account-icon {
    font-size: 16px;
  }

  .nav-category-link {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}

/* ============================================
   Loader Animation (Existing)
   ============================================ */

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
#loader-wrapper .conatiner {
  width: 50px;
  height: 50px;
}

#loader-wrapper .conatiner .boxes {
  width: 50px;
  height: 50px;
  fill: none;
  stroke-width: 50px;
  stroke: var(--main-color);
  stroke-dasharray: 50;
  stroke-dashoffset: 50%;
  animation: animate 1.5s linear infinite;
}
 @keyframes draw-blue {
    0% { stroke-dashoffset: 1400; fill-opacity: 0; }
    55% { stroke-dashoffset: 0; fill-opacity: 0; }
    80% { stroke-dashoffset: 0; fill-opacity: 1; }
    90% { stroke-dashoffset: 0; fill-opacity: 1; }
    100% { stroke-dashoffset: 0; fill-opacity: 1; }
  }
  @keyframes draw-orange {
    0% { stroke-dashoffset: 600; fill-opacity: 0; }
    55% { stroke-dashoffset: 0; fill-opacity: 0; }
    80% { stroke-dashoffset: 0; fill-opacity: 1; }
    90% { stroke-dashoffset: 0; fill-opacity: 1; }
    100% { stroke-dashoffset: 0; fill-opacity: 1; }
  }
  @keyframes fade-out-stroke-blue {
    0%, 79% { stroke-opacity: 1; }
    95% { stroke-opacity: 0; }
    100% { stroke-opacity: 0; }
  }
  @keyframes fade-out-stroke-orange {
    0%, 79% { stroke-opacity: 1; }
    95% { stroke-opacity: 0; }
    100% { stroke-opacity: 0; }
  }
  @keyframes full-fade {
    0%, 85% { opacity: 1; }
    97% { opacity: 0; }
    100% { opacity: 0; }
  }

 #loader-wrapper .path-blue {
    fill: #60B4CC;
    fill-opacity: 0;
    stroke: #60B4CC;
    stroke-opacity: 1;
    stroke-width: 1.2;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    stroke-linejoin: round;
    stroke-linecap: round;
    animation:
      draw-blue 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite,
      fade-out-stroke-blue 3.2s ease-in-out infinite;
  }

  #loader-wrapper .path-orange {
    fill: #F89933;
    fill-opacity: 0;
    stroke: #F89933;
    stroke-opacity: 1;
    stroke-width: 1.2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    stroke-linejoin: round;
    stroke-linecap: round;
    animation:
      draw-orange 3.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s infinite,
      fade-out-stroke-orange 3.2s ease-in-out 0.3s infinite;
  }

  #loader-wrapper .svg-wrap {
    animation: full-fade 3.2s ease-in-out infinite;
  }

  @keyframes dot1 { 0%,100%{opacity:0.2} 16%{opacity:1} }
  @keyframes dot2 { 0%,100%{opacity:0.2} 33%{opacity:1} }
  @keyframes dot3 { 0%,100%{opacity:0.2} 50%{opacity:1} }

@keyframes animate {
  to {
    stroke-dashoffset: 250%;
  }
}

/* ============================================
   Nav Item
   ============================================ */
.nav-item {
  transition: all 0.3s ease;
}

/* ============================================
   Back to Top (Existing)
   ============================================ */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: "unicons";
  content: "\e84b";
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  color: var(--main-color);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  opacity: 0;
}

.progress-wrap::before {
  position: absolute;
  font-family: "unicons";
  content: "\e84b";
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  opacity: 0;
  background: black;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 2;
  transition: all 200ms linear;
}

.progress-wrap:hover::before {
  opacity: 1;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--main-color);
  stroke-width: 4;
  box-sizing: border-box;
  transition: all 200ms linear;
}
