.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 2;
}

.navbar, .buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}

.brand {
  font-weight: bolder;
  font-size: 1.5em;
}

.brand:hover {
  font-weight: bolder;
  color: #428aff;
}

button {
  border: none;
  transition: 0.3s;
  cursor: pointer;
}

.btn {
  font-family: "Poppins", sans-serif;
  font-size: 1.1em;
  background: #428aff;
  padding: 0.5em 1.3em;
  border-radius: 16px;
  color: #fff;
}

.btn:hover {
  background: #3877db;
}

.menu-btn {
  margin-left: 1em;
  background: none;
  display: inline-block;
}

.menu-btn span {
  font-size: 2.3em;
}

.dropdown-mega > div, .sub-dropdown > div {
  cursor: pointer;
}

.dropdown-mega > div a {
  font-weight: bold;
}

/* Override Bootstrap hover effect for menu links */
.dropdown-mega a:hover {
  color: #000 !important;
  text-decoration: none;
}

@media screen and (min-width: 800px) {
  .navbar {
    padding: 0 1.5em;
  }
  .dropdown-mega > div {
    padding: 1.5em 1em;
  }
  .mega-menu {
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
  .menu-btn {
    display: none;
  }
  .menu {
    background: #fff;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    padding: 0 2em;
    overflow-y: scroll;
    transition: 0.4s ease-in-out;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2em;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  .menu > li {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    width: 100%;
  }
  .sub-dropdown > div span:first-child {
    font-weight: bold;
  }
  .dropdown-mega > div {
    border-bottom: 3px #fff solid;
    transition: 0.3s;
  }
  .dropdown-mega:hover > div {
    border-color: #000;
  }
  .dropdown-mega li {
    margin-bottom: 1em;
  }
  .dropdown-mega > div span:last-child,
  .sub-dropdown > div {
    display: none;
  }
  /* Width */
  .menu::-webkit-scrollbar {
    width: 8px;
  }
  /* Track */
  .menu::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  /* Handle */
  .menu::-webkit-scrollbar-thumb {
    background: #888;
  }
  /* Handle on hover */
  .menu::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  /* Hide menu */
  .menu {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
  }
  /* Only show menu when hovering over the specific dropdown-mega */
  .dropdown-mega:hover > .menu {
    height: auto;
    padding: 2em;
    opacity: 1;
    visibility: visible;
    display: grid;
  }
}
/* Responsive for medium screens (992px - 1440px) */
@media screen and (min-width: 992px) and (max-width: 1440px) {
  .menu {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
  }
}
/* Responsive for small-medium screens (801px - 992px) */
@media screen and (min-width: 801px) and (max-width: 991px) {
  .menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    width: 70%;
  }
}
/* Responsive Design */
@media screen and (max-width: 800px) {
  .navbar {
    padding: 1em 1.5em;
  }
  .menu-container {
    background: #fff;
    position: absolute;
    top: 4.4em;
    left: 0;
    width: 100%;
    overflow-y: hidden;
    transition: 0.3s ease-in-out;
  }
  /* Width */
  .mega-menu::-webkit-scrollbar {
    width: 8px;
  }
  /* Track */
  .mega-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  /* Handle */
  .mega-menu::-webkit-scrollbar-thumb {
    background: #888;
  }
  /* Handle on hover */
  .mega-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  .mega-menu {
    padding: 0 1em 1em 1em;
    height: 100%;
    overflow-y: scroll;
  }
  .mega-menu li {
    font-weight: bold;
    font-size: 1.1em;
  }
  .mega-menu li > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
  }
  .menu li {
    padding: 0 1em;
    font-size: 1em;
    font-weight: 400;
  }
  .menu a {
    display: block;
    margin: 0.8em 0;
  }
  .menu {
    display: none;
    transition: all 0.3s ease;
  }
  /* Toggle class for Javascript */
  .menu-show {
    display: block;
  }
  .material-symbols-outlined {
    transition: 0.3s;
  }
  /* Toggle class for javascript */
  .icon-rotated {
    transform: rotate(90deg);
  }
  .dropdown-mega > div, .sub-dropdown > div {
    cursor: pointer;
    padding: 0.5em;
  }
  .sub-menu {
    font-size: 0.9em;
    display: none;
  }
  /* Toggle class for Javascript */
  .sub-menu-show {
    display: block;
  }
  /* Removed hover background change for dropdown items */
  /* Hide menu */
  .menu-container {
    height: 0;
  }
  /* Toggle class for javascript */
  .mega-menu-show {
    height: 50vh;
  }
}
.logo_company_header .logo_header {
  max-width: 250px;
}

.logo_company_header .logo_header_mobile {
  display: none;
}

.logo_company_header .logo_header_desktop {
  display: block;
}

.dropdown-mega .menu li {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.dropdown-mega .menu li img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5em;
}

@media (max-width: 991.98px) {
  .logo_company_header .logo_header {
    max-width: 60px;
  }
  .logo_company_header .logo_header_mobile {
    display: block;
  }
  .logo_company_header .logo_header_desktop {
    display: none;
  }
  .dropdown-mega .menu {
    padding-left: 0;
    display: block;
    grid-template-columns: 1fr;
  }
  .dropdown-mega .menu img {
    display: none;
  }
}
.dropdown-mega .menu a {
  line-height: 1rem;
  display: flex;
  text-align: center;
  margin-top: 0.5em;
  word-wrap: break-word;
  max-width: 100%;
}

/* Contact Button Styles */
.contact-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #e60000;
  border-radius: 15px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
  max-width: 280px;
  text-decoration: none;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.contact-main {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ff4444, #cc3333);
  border-radius: 11px;
  padding: 6px 8px;
  width: 100%;
}

.contact-icon {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  color: #fff;
  animation: phoneRing 1.5s ease-in-out infinite;
}

/* Phone ring animation - stronger shake */
@keyframes phoneRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  8% {
    transform: rotate(-15deg);
  }
  16% {
    transform: rotate(15deg);
  }
  24% {
    transform: rotate(-15deg);
  }
  32% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  48% {
    transform: rotate(10deg);
  }
  56%, 70% {
    transform: rotate(0deg);
  }
}
.contact-icon i {
  font-size: 16px;
  color: white;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  color: white;
  flex: 1;
}

.contact-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.contact-phone {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1px;
  color: white;
  animation: phoneZoom 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Phone number zoom animation - more steps, faster */
@keyframes phoneZoom {
  0%, 100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.01);
  }
  20% {
    transform: scale(1.02);
  }
  30% {
    transform: scale(1.03);
  }
  40% {
    transform: scale(1.04);
  }
  50% {
    transform: scale(1.05);
  }
  60% {
    transform: scale(1.04);
  }
  70% {
    transform: scale(1.03);
  }
  80% {
    transform: scale(1.02);
  }
  90% {
    transform: scale(1.01);
  }
}
.contact-hours {
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
  color: #666;
  margin-top: 2px;
  text-align: center;
  padding: 0 4px;
}

/* Responsive design for contact button */
@media screen and (max-width: 1200px) {
  .contact-button {
    max-width: 240px;
    padding: 3px;
  }
  .contact-main {
    padding: 4px 6px;
  }
  .contact-header {
    font-size: 10px;
  }
  .contact-phone {
    font-size: 14px;
  }
  .contact-hours {
    font-size: 8px;
  }
  .contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
  .contact-icon i {
    font-size: 14px;
  }
}
@media screen and (min-width: 799px) and (max-width: 1140px) {
  .contact-button {
    display: none;
  }
}
@media screen and (max-width: 798px) {
  .contact-button {
    display: none;
  }
}
