/* Flying Star header alignment + responsive fixes */
.header-section.style2 {
  width: 100%;
  z-index: 999;
}

.header-section.style2 .container {
  max-width: 1320px;
}

.header-section.style2 .header-holder {
  min-height: 92px;
  flex-wrap: nowrap !important;
  gap: 24px;
}

.header-section.style2 .brand-logo {
  flex: 0 0 auto;
  padding: 6px 0 !important;
}

.header-section.style2 .brand-logo .logo,
.header-section.style2 .brand-logo .logo a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-section.style2 .brand-logo img {
  width: 84px !important;
  height: 72px !important;
  max-width: none;
  object-fit: contain;
}

.header-section.style2 .header-menu-part {
  flex: 1 1 auto;
  min-width: 0;
}

.header-section.style2 .header-bottom,
.header-section.style2 .header-wrapper,
.header-section.style2 .menu-area {
  width: 100%;
}

.header-section.style2 .header-wrapper {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.header-section.style2 .menu-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-section.style2 .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0 12px 0 0;
  padding: 0;
}

.header-section.style2 .menu > li {
  margin: 0;
}

.header-section.style2 .menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  white-space: nowrap;
}

.header-section.style2 .login,
.header-section.style2 .signup {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-section.style2 .login {
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
}

.header-section.style2 .signup {
  border: 1px solid #ff0052;
  background: #ff0052;
  color: #fff;
}

.header-section.style2 .login:hover,
.header-section.style2 .signup:hover {
  color: #fff;
  transform: translateY(-1px);
}

.header-section.style2 .header-bar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
}

.header-section.style2 .header-bar span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 0 !important;
  background: #fff;
  border-radius: 4px;
  transition: .25s ease;
}

.header-section.style2 .ellepsis-bar {
  display: none !important;
}

/* Tablet: keep actions visible; collapse only navigation */
@media (max-width: 1199.98px) {
  .header-section.style2 .header-holder,
  .header-section.style2 .header-wrapper {
    min-height: 80px;
  }

  .header-section.style2 .brand-logo img {
    width: 72px !important;
    height: 62px !important;
  }

  .header-section.style2 .menu > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 15px;
  }

  .header-section.style2 .login,
  .header-section.style2 .signup {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 991.98px) {
  .header-section.style2 .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-section.style2 .header-holder {
    min-height: 72px;
    gap: 0;
  }

  .header-section.style2 .header-menu-part,
  .header-section.style2 .header-bottom,
  .header-section.style2 .header-wrapper {
    width: 100%;
  }

  .header-section.style2 .header-wrapper {
    min-height: 72px;
    position: relative;
    justify-content: space-between !important;
    gap: 10px;
  }

  .header-section.style2 .mobile-logo {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
  }

  .header-section.style2 .mobile-logo a {
    display: flex;
    align-items: center;
  }

  .header-section.style2 .mobile-logo img {
    width: 58px !important;
    height: 52px !important;
    max-width: none;
    object-fit: contain;
  }

  .header-section.style2 .menu-area {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 7px;
    position: static;
  }

  .header-section.style2 .login,
  .header-section.style2 .signup {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 7px;
    z-index: 2;
  }

  .header-section.style2 .login i,
  .header-section.style2 .signup i {
    font-size: 15px;
  }

  .header-section.style2 .header-bar {
    display: flex !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    z-index: 3;
  }

  .header-section.style2 .menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin: 0;
    padding: 10px 14px 14px;
    background: #11184a;
    border-top: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 14px 26px rgba(0,0,0,.28);
    z-index: 998;
  }

  .header-section.style2 .menu.active {
    display: block !important;
  }

  .header-section.style2 .menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .header-section.style2 .menu > li:last-child {
    border-bottom: 0;
  }

  .header-section.style2 .menu > li > a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 10px 6px;
    font-size: 15px;
  }
}

/* Small mobile: preserve both buttons with readable labels */
@media (max-width: 575.98px) {
  .header-section.style2 .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-section.style2 .header-holder,
  .header-section.style2 .header-wrapper {
    min-height: 66px;
  }

  .header-section.style2 .header-wrapper {
    gap: 6px;
  }

  .header-section.style2 .mobile-logo img {
    width: 48px !important;
    height: 44px !important;
  }

  .header-section.style2 .menu-area {
    gap: 5px;
  }

  .header-section.style2 .login,
  .header-section.style2 .signup {
    min-height: 36px;
    padding: 6px 8px;
    gap: 4px;
    font-size: 12px;
  }

  .header-section.style2 .login i,
  .header-section.style2 .signup i {
    font-size: 14px;
  }

  .header-section.style2 .header-bar {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .header-section.style2 .header-bar span {
    width: 18px;
  }
}

/* Very narrow phones: keep text, reduce spacing rather than hiding actions */
@media (max-width: 390px) {
  .header-section.style2 .mobile-logo img {
    width: 43px !important;
    height: 40px !important;
  }

  .header-section.style2 .login,
  .header-section.style2 .signup {
    padding: 5px 6px;
    font-size: 11px;
  }

  .header-section.style2 .login i,
  .header-section.style2 .signup i {
    display: none;
  }

  .header-section.style2 .header-bar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

/* ---------------------------------------------------------
   MOBILE HAMBURGER — strong override against theme defaults
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  .header-section.style2 .header-bar {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: pointer;
  }

  .header-section.style2 .header-bar span,
  .header-section.style2 .header-bar span:first-child,
  .header-section.style2 .header-bar span:nth-child(2),
  .header-section.style2 .header-bar span:last-child {
    position: static !important;
    display: block !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 20px !important;
    height: 2px !important;
    min-width: 20px !important;
    min-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 0 !important;
    border-radius: 20px !important;
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
  }

  /* Open-state X animation */
  .header-section.style2 .header-bar.active {
    gap: 0 !important;
  }

  .header-section.style2 .header-bar.active span:first-child {
    position: absolute !important;
    transform: rotate(45deg) !important;
    -webkit-transform: rotate(45deg) !important;
  }

  .header-section.style2 .header-bar.active span:nth-child(2) {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .header-section.style2 .header-bar.active span:last-child {
    position: absolute !important;
    transform: rotate(-45deg) !important;
    -webkit-transform: rotate(-45deg) !important;
  }
}

@media (max-width: 575.98px) {
  .header-section.style2 .header-bar span,
  .header-section.style2 .header-bar span:first-child,
  .header-section.style2 .header-bar span:nth-child(2),
  .header-section.style2 .header-bar span:last-child {
    width: 18px !important;
    min-width: 18px !important;
  }
}

/* ===== 2026-08-28 final responsive header arrangement ===== */
.header-section.style2 .menu-area > .login,
.header-section.style2 .menu-area > .signup{color:#fff !important;text-decoration:none !important;}

@media (max-width: 991.98px){
  .header-section.style2{background:#101846 !important;}
  .header-section.style2 .header-holder{width:100%;}
  .header-section.style2 .header-menu-part{min-width:0;}
  .header-section.style2 .header-wrapper{
    display:grid !important;
    grid-template-columns:auto 1fr !important;
    align-items:center !important;
    width:100% !important;
  }
  .header-section.style2 .mobile-logo{grid-column:1;}
  .header-section.style2 .menu-area{
    grid-column:2;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    min-width:0 !important;
  }
  .header-section.style2 .login,
  .header-section.style2 .signup,
  .header-section.style2 .header-bar{flex-shrink:0 !important;}
  .header-section.style2 .header-bar{border-color:rgba(255,255,255,.28) !important;background:rgba(255,255,255,.07) !important;}
  .header-section.style2 .menu{
    top:100% !important;
    left:-14px !important;
    right:-14px !important;
    width:auto !important;
    border-radius:0 0 14px 14px;
  }
}

@media (max-width:575.98px){
  .header-section.style2 .header-wrapper{grid-template-columns:50px minmax(0,1fr) !important;gap:5px !important;}
  .header-section.style2 .mobile-logo img{width:48px !important;height:46px !important;}
  .header-section.style2 .login,.header-section.style2 .signup{
    min-height:34px !important;
    padding:6px 8px !important;
    font-size:11.5px !important;
    border-radius:7px !important;
  }
  .header-section.style2 .login i,.header-section.style2 .signup i{display:none !important;}
  .header-section.style2 .header-bar{width:35px !important;height:35px !important;flex-basis:35px !important;}
}

@media (max-width:390px){
  .header-section.style2 .container{padding-left:7px !important;padding-right:7px !important;}
  .header-section.style2 .header-holder,.header-section.style2 .header-wrapper{min-height:62px !important;}
  .header-section.style2 .header-wrapper{grid-template-columns:44px minmax(0,1fr) !important;gap:3px !important;}
  .header-section.style2 .mobile-logo img{width:43px !important;height:41px !important;}
  .header-section.style2 .menu-area{gap:4px !important;}
  .header-section.style2 .login,.header-section.style2 .signup{padding:5px 6px !important;font-size:10.5px !important;min-height:32px !important;}
  .header-section.style2 .header-bar{width:32px !important;height:32px !important;flex-basis:32px !important;}
  .header-section.style2 .header-bar span,.header-section.style2 .header-bar span:first-child,.header-section.style2 .header-bar span:nth-child(2),.header-section.style2 .header-bar span:last-child{width:17px !important;min-width:17px !important;}
  .header-section.style2 .menu{left:-7px !important;right:-7px !important;}
}
