/* #region Header START */

/* ==== Transparent Header ==== */
body.transparent-header .header {
  position: absolute !important;
  width: 100%;
  z-index: 100;
}

/* ==== Default Header (Non-Transparent) ==== */
body:not(.transparent-header) .header,
body:not(.transparent-header) .header.floating_menu {
  background: linear-gradient(146deg, #ffffff 0 30%, #312f45 30% 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body:not(.transparent-header) .header .navbar-nav .nav-link,
body:not(.transparent-header) .header.floating_menu .navbar-nav .nav-link {
  color: #fffefe !important;
}

/* Mobile Gradient Adjustment */
@media (max-width: 768px) {
  body:not(.transparent-header) .header,
  body:not(.transparent-header) .header.floating_menu {
    background: linear-gradient(140deg, #ffffff 0 50%, #312f45 50% 100%);
  }
}

/* ==== Hover State ==== */
body .header .navbar-nav .nav-link:hover,
.header.floating_menu .navbar-nav .nav-link:hover,
body.transparent-header .header:not(.floating_menu) .navbar-nav .nav-link:hover {
  color: #c42728 !important;
}

.menu-bottom .dropdown-menu .dropdown-item:hover {
  color: #c42728 !important;
}

/* ==== Header Core Layout ==== */
body:not(.transparent-header) .header {
  height: 90px;
  min-height: 80px;
  width: 100%;
  position: relative;
  background-color: #fff;
  padding: 0;
  transition: background 0.3s ease-in-out;
}

/* Mobile Override */
@media (max-width: 575.98px) {
  body:not(.transparent-header) .header {
    height: auto;
    background: #ffffff !important;
  }
}

/* ==== Floating Menu ==== */
body.transparent-header .header.floating_menu,
body .header.floating_menu {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: linear-gradient(146deg, #ffffff 0 30%, #c42728 30% 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.transparent-header .header.floating_menu *,
body .header.floating_menu * {
  transition: 0.5s ease-in-out;
}

/* Logo Adjustments for Mobile */
@media (max-width: 768px) {
  .header.floating_menu .logo {
    width: auto;
    padding-top: 3px;
  }
}

/* ==== Navbar & Links ==== */
.header.floating_menu .nav-link {
  padding: 8px 12px;
}

body .header .navbar-nav .nav-link,
.header.floating_menu .navbar-nav .nav-link {
  color: #000 !important;
  font-weight: 700;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

body.transparent-header .header:not(.floating_menu) .navbar-nav .nav-link {
  color: #fff !important;
}

/* ==== Top Info ==== */
.top-info .separator {
  color: #888;
  margin: 0 8px;
  font-weight: 400;
}

.top-info .nav-link {
  color: #333;
  transition: color 0.3s ease;
}

.top-info .nav-link:hover {
  color: #c42728;
}

/* ==== Menu Layout ==== */
.menu-bottom ul li a {
  text-transform: uppercase;
}

body.transparent-header .header.floating_menu .menu-bottom ul li a,
body.header.floating_menu .menu-bottom ul li a {
  color: #333;
}

body.transparent-header .header.floating_menu .menu-bottom ul li a.immg,
body.header.floating_menu .menu-bottom ul li a.immg {
  color: #fff;
}

.header.floating_menu .menu {
  padding-top: 6px;
}

.menu-top {
  width: 100%;
}

.floating_menu .menu .menu-top {
  display: none;
}

/* ==== Mobile Adjustments ==== */
@media (max-width: 768px) {
  body .header {
    background: #fff;
    box-shadow: 0 0 8px 0 #000;
  }

  body.transparent-header .header {
    background: none !important;
    box-shadow: none !important;
  }

  body.transparent-header .header.floating_menu {
    background: #fff;
    box-shadow: 0 0 8px 0 #000;
  }
}

@media (max-width: 479px) {
  .header .navbar-brand {
    width: 180px;
    padding-top: 8px;
  }
  .navbar-brand img {
    max-width: 100%;
    height: 41px;
  }
}

@media (max-width: 767px) {
  .header {
    height: 80px;
    min-height: 80px;
  }
}

/* ==== Global Elements ==== */
.top-bar,
.header {
  position: relative;
  width: 100%;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}

/* ==== Navbar Toggler ==== */
.navbar-toggler {
  border-color: #c42728;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='%23ffffff' stroke-linecap='round' stroke-width='6' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

@media (max-width: 575.98px) {
  .navbar-toggler {
    border-color: #c42728;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(196,39,40,1)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
}

/* ==== Panel Animation ==== */
.panel {
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* ==== Accessibility ==== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* #endregion Header END */

/* ===== Side Menu ===== */
.side_menu {
  width: 280px;
  overflow-y: auto;
}

.menu-link {
  display: block;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.accordion > .panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.active > .panel {
  max-height: 500px;
}

.toggle-icon {
  font-weight: bold;
  transition: transform 0.3s;
}

.accordion.active .toggle-icon {
  transform: rotate(45deg);
}
/* ===== Side Menu END ===== */
