/* Mobile Menu Styles - Global */

/* MAIN BUTTON (PILL SHAPE) */
.t-btn-exclusive {
  background: linear-gradient(
    90deg,
    #152430 0%,
    #1d3b52 35%,
    #2a5674 60%,
    #152732 100%
  );
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(21, 36, 48, 0.4);
}

.t-btn-exclusive:hover {
  background: linear-gradient(
    90deg,
    #152732 0%,
    #2a5674 40%,
    #1d3b52 70%,
    #152430 100%
  );
  box-shadow: 0 6px 20px rgba(22, 42, 55, 0.6);
  transform: translateY(-2px);
}

/* CIRCLE BUTTON */
.t-btn-circle-exclusive {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #152430 0%,
    #1d3b52 40%,
    #2a5674 70%,
    #152732 100%
  );
  border: none;
  color: #FFFFFF;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(21, 36, 48, 0.4);
}

.t-btn-circle-exclusive:hover {
  background: linear-gradient(
    135deg,
    #152732 0%,
    #2a5674 40%,
    #1d3b52 80%,
    #152430 100%
  );
  box-shadow: 0 6px 20px rgba(22, 42, 55, 0.6);
  transform: translateY(-2px) scale(1.05);
}

/* Mobile Menu Styles */
@media (max-width: 1199px) {
  /* Mobile header layout */
  .header-area-3-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .header-logo {
    flex: 0 0 auto;
  }

  .header-button {
    flex: 0 0 auto;
    order: 2;
  }

  .header-offcanvas {
    flex: 0 0 auto;
    order: 3;
  }

  /* Ensure main menu is visible */
  .offcanvas-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Side toggle button */
  .side-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
  }

  .side-toggle:focus {
    outline: none;
  }

  .side-toggle i {
    transition: all 0.3s ease;
  }

  /* Change icon to X when menu is open */
  .offcanvas-menu-visible .side-toggle i:before {
    content: "\f00d" !important;
  }

  /* Offcanvas menu */
  .offcanvas-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 80px 30px 30px;
  }

  .offcanvas-menu-visible .offcanvas-menu {
    right: 0 !important;
  }

  /* Ensure menu is visible */
  .offcanvas-menu nav {
    display: block !important;
  }

  .offcanvas-menu .main-menu {
    display: block !important;
  }

  /* Overlay - HIDDEN */
  .offcanvas-overlay {
    display: none !important;
  }

  /* Mobile menu items */
  .offcanvas-menu .main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
  }

  .offcanvas-menu .main-menu > ul > li {
    border-bottom: 1px solid #e5e5e5;
    display: block !important;
  }

  .offcanvas-menu .main-menu > ul > li > a {
    display: block !important;
    padding: 15px 0;
    color: #000000 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
  }

  .offcanvas-menu .main-menu > ul > li > a:hover {
    color: #2a5674 !important;
  }

  /* Submenu styles */
  .offcanvas-menu .dp-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background: #ffffff !important;
    margin: 0;
    border-left: 3px solid #2a5674;
    border-radius: 4px;
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: none;
    transform: none !important;
    transition: max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
  }

  /* Make sure submenu items are visible */
  .offcanvas-menu .dp-menu li {
    border-bottom: none;
    display: block !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }

  /* Ensure links are visible and properly spaced */
  .offcanvas-menu .dp-menu a {
    display: block !important;
    padding: 12px 15px;
    color: #333 !important;
    cursor: pointer !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent !important;
    border-radius: 4px;
    margin: 2px 0;
  }

  /* Hover, focus, and active states */
  .offcanvas-menu .dp-menu a:hover,
  .offcanvas-menu .dp-menu a:focus,
  .offcanvas-menu .dp-menu a:active {
    background: rgba(42, 86, 116, 0.1) !important;
    color: #2a5674 !important;
    padding-left: 20px;
  }

  /* Active dropdown state */
  .offcanvas-menu .menu-item-has-children.active > .dp-menu {
    max-height: 500px;
    padding: 10px 15px;
    margin: 5px 0 10px 0;
  }

  /* Dropdown arrow */
  .offcanvas-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 35px;
  }

  .offcanvas-menu .menu-item-has-children > a:after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 14px;
  }

  .offcanvas-menu .menu-item-has-children.active > a:after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Ensure proper stacking */
  .offcanvas-menu .main-menu > ul > li {
    position: relative;
  }

  /* Nested menus */
  .offcanvas-menu .dp-menu .dp-menu {
    margin-left: 15px;
  }

  /* Close button */
  .offcanvas-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
  }

  .offcanvas-close:hover {
    color: #2a5674;
  }

  /* Hide desktop menu on mobile */
  .header-nav {
    display: none !important;
  }

  /* Adjust header button on mobile */
  .header-button {
    margin-right: 10px;
    display: flex;
    align-items: center;
  }

  .header-button .t-btn-group {
    gap: 5px;
    display: flex;
    align-items: center;
  }

  /* Hide text button on mobile, keep circle button */
  .header-button .t-btn-exclusive {
    display: none;
  }

  /* Ensure circle button is visible on mobile */
  .header-button .t-btn-circle-exclusive {
    display: flex !important;
    width: 45px;
    height: 45px;
    min-width: 45px;
  }
}

/* Desktop - hide mobile menu elements */
@media (min-width: 1200px) {
  .offcanvas-menu,
  .offcanvas-overlay,
  .offcanvas-close {
    display: none !important;
  }
}
