/* Header Styles - Unified Menu Component */

/* Base Container and Row Styles */
.container {
  max-width: 1342px;
  width: 100%;
  padding: 0px 15px;
  margin: 0px auto;
  position: relative;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

address {
  font-style: normal;
}

/* Base Header Styles */
.header {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Header with photo background (for main page) */
.header.header-main {
  background-image: url("");
  /* Background image will be set inline in HTML */
}

/* Header with white background (for internal pages) */
.header.header-white {
  background-color: #FFFFFF;
  min-height: 104px;
}

/* Header Top Section */
.header-top {
  position: relative;
  padding: 16px 0px;
  min-height: 104px;
  display: flex;
  align-items: center;
}

.header-white .header-top {
  min-height: 104px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-top .row {
  gap: 24px;
  position: relative;
  align-items: center;
  width: 100%;
}

.header-main .row {
  color: rgb(255, 255, 255);
}

.header-white .row {
  color: rgb(16, 17, 19);
}

/* Header Logo */
.header-top-left {
  width: 88px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header Right Section */
.header-top-right {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Menu Styles */
.menu-top {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.menu-top .menu-list {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Menu Links - Main Page (White Text) */
.header-main .menu-top a {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  color: rgb(248, 249, 250);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* Menu Links - Internal Pages (Dark Text) */
.header-white .menu-top a {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  color: rgb(16, 17, 19);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* Menu Item Underline Effect - Main Page */
.header-main .menu-top .menu-item > a::after {
  content: "";
  display: block;
  width: 100%;
  background-color: rgb(248, 249, 250);
  height: 2px;
  transform: scale(0);
  transition: all 0.3s linear 0s;
  position: relative;
  top: 4px;
}

.header-main .menu-top .menu-item > a:hover::after {
  transform: scale(1);
}

/* Menu Item Underline Effect - Internal Pages */
.header-white .menu-top .menu-item > a::after {
  content: "";
  display: block;
  width: 100%;
  background-color: rgb(252, 196, 25);
  height: 2px;
  transform: scale(0);
  transition: all 0.3s linear 0s;
  position: relative;
  top: 4px;
}

.header-white .menu-top .menu-item > a:hover::after {
  transform: scale(1);
}

/* Top Button */
.btn-top {
  display: flex;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 40px;
  background-color: rgba(252, 196, 25, 1);
  color: rgba(16, 17, 19, 1);
  text-align: right;
  font-family: Unbounded;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-top:hover {
  background-color: rgba(232, 176, 22, 1);
  transform: translateY(-1px);
}

/* Button base class */
.button {
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: flex-start;
  position: relative;
  flex: 0 0 auto;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  transition: all 0.3s ease;
}

.header-main .hamburger span {
  background-color: rgb(248, 249, 250);
}

.header-white .hamburger span {
  background-color: rgb(16, 17, 19);
}

/* Button Animation */
.btn-animate {
  position: relative;
  overflow: hidden;
}

.btn-animate:hover::before {
  animation: 4s linear 0s 0 normal none running flareAnimation;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

.btn-animate::before {
  content: "";
  position: absolute;
  top: 0px;
  height: 100%;
  width: 45px;
  transform: skewX(-45deg);
  left: -20%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
  animation: 2s linear 0s infinite normal none running flareAnimation;
}

@-webkit-keyframes flareAnimation {
  0% {
    left: -20%;
  }
  100% {
    left: 120%;
  }
}

@keyframes flareAnimation {
  0% {
    left: -20%;
  }
  100% {
    left: 120%;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .menu-top .menu-list {
    gap: 16px;
  }
  
  .menu-top a {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
    position: absolute;
    right: 0;
    top: 21px;
    width: 26px;
    height: 12px;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    margin-bottom: 4px;
    transition: 0.5s all;
  }

  .header-main .hamburger span {
    background-color: #fff;
  }

  .header-white .hamburger span {
    background-color: #101113;
  }

  .hamburger-active .burger-line-1 {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .hamburger-active .burger-line-2 {
    display: none;
  }

  .hamburger-active .burger-line-3 {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .hamburger-active span {
    margin-bottom: -2px;
  }

  .menu-top {
    position: fixed;
    top: 0;
    left: -100%;
    width: 32%;
    height: 100vh;
    padding: 20px 15px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .9);
    -webkit-transition: 0.5s all;
    -o-transition: 0.5s all;
    transition: 0.5s all;
    z-index: 999;
  }

  .menu-top-active {
    left: 0 !important;
  }

  .menu-top .menu-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
  }

  .menu-top .menu-list a {
    color: #fff !important;
    font-size: 18px;
  }

  .btn-top {
    margin-top: 30px;
  }
  
  .header-top-right {
    width: auto;
  }
}

@media (max-width: 480px) {
  .header-top {
    min-height: 80px;
    padding: 12px 0;
  }
  
  .header-white .header-top {
    min-height: 80px;
  }
  
  .header-top-left {
    width: 70px;
  }
  
  .btn-top {
    font-size: 12px;
    padding: 10px 14px;
  }
}

@media (max-width: 400px) {
  .btn-top {
    position: relative;
    right: 0;
    font-size: 11px;
    padding: 8px 12px;
  }
}
