﻿@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

.navbar {
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  background: #faf6f2;
}

.navbar a {
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "STIX Two Text", serif;
}

.w-full {
  width: 100%;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.main-menu ul li a {
  color: #111;
}

img.img-logo {
  width: 130px;
}

a.register-btn {
  float: right;
  border: solid 1px #111;
  padding: 10px 25px;
  border-radius: 25px;
  color: #222;
}

a.mobile-btn {
  float: right;
  border: solid 1px #111;
  padding: 10px 25px;
  border-radius: 25px;
  color: #222;
}

.header {
  border-bottom: solid 1px #ccc;
}

a.underline-link {
  color: #0039a6;
  text-decoration: underline;
  font-weight: 700;
}

ul.side-menu li a {
  color: #011638;
  font-size: 18px;
}

ul.side-menu li a.active {
  color: #0039a6;
  font-weight: 700;
  background: #efecea;
  border-radius: 10px;
}

.navbar-collapse {
  justify-content: center;
}

a.link-btn {
  padding: 10px 30px;
  border-radius: 25px;
  color: #fff;
  background: #0039a6;
}

gray {
  color: #666;
}

.download-div {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}

.download-div h4 {
  float: left;
  margin-right: 10px;
  padding-top: 10px;
}

.download-div a {
  border: solid 1px #444;
  color: #111;
  border-radius: 25px;
  width: 100%;
  padding: 10px 15px;
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 2px;
  display: inline-block;
  text-align: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0; /* align right */
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

/* show dropdown when active */
.dropdown.active .dropdown-menu {
  display: block;
}

.drop-opt {
  padding-top: 2px;
}

.drop-opt::after {
  display: none !important;
}

.head-links a {
  border: solid 1px #011638;
  color: #011638;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 400;
}

.payment-btn {
  background: #0046c0;
  color: #fff !important;
  border: solid 1px #0046c0 !important;
}

.account-div label {
  font-size: 14px;
  font-weight: 600;
}

.account-div input {
  padding: 7px;
}

a.account-action {
  border: solid 1px #011638;
  color: #011638;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 400;
  margin-top: 20px;
  display: inline-block;
}

.save-action {
  background: #0046c0;
  color: #fff !important;
  border: solid 1px #0046c0 !important;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: #fcf9f6;
  border-bottom: 1px solid #e6e6e6;
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px; /* spacing between menu items */
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: rgba(1, 22, 56, 0.8);
  font-weight: 500;
  padding: 8px 4px;
  display: inline-block;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}

/* Dropdown menu */
.dropdown {
  display: none;
  position: absolute;
  top: 100%; /* align right below menu */
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000;
  margin-top: 0px !important;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: rgba(1, 22, 56, 0.8);
  transition: background 0.2s;
  font-size: 14px;
}

.dropdown a:hover {
  background: #eaf3ff;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown {
  display: block;
}

/* Client Portal button */
.register-btn {
  padding: 8px 20px;
  border: 1px solid #000;
  border-radius: 20px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: background 0.3s;
  white-space: nowrap;
}

.register-btn:hover {
  background: #000;
  color: #fff;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: block;
}

/* Mobile */

/* HIDE hamburger by default */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #000;
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  padding-top: 12px;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-logo img {
  height: 40px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  align-self: flex-end;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: rgba(1, 22, 56, 0.8);
  font-size: 14px;
}

.mobile-item > a,
.mobile-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 12px 0;
  font-weight: 500;
  cursor: pointer;
  color: rgba(1, 22, 56, 0.8);
  font-size: 14px;
}

.mobile-submenu {
  padding-left: 16px;
  list-style: none;
}

.mobile-submenu li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(1, 22, 56, 0.8);
}

.mobile {
  display: none;
}

.portal-btn {
  padding: 8px 24px;
  height: 40px;
  width: 157px;
  border: 1px solid #000;
  border-radius: 20px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
  white-space: nowrap;
}

.portal-btn:hover {
  background: #000;
  color: #fff;
}

/* Show on small screens */
@media (max-width: 768px) {
  .mobile {
    display: block;
  }
  .mobile-btn{
  text-align: center;
  margin-top: 1rem;
  }
  .navbar {
    padding: 12px 20px;
  }
  .navbar-nav, .register-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
  .bottom {
    display: block;
    padding-bottom: 48px;
    margin-top: 48px;
    .ft-anchor {
      width: auto;
    }
    .ft-right {
      margin-top: 48px;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(auto, 1fr);
    }
  }

  .ft-header {
    flex-direction: column;
    row-gap: 40px;
    img {
      height: 40px;
    }
  }
}

/* --- MOBILE SUBMENU FIX --- */
.mobile-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-submenu.open {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  color: rgba(1, 22, 56, 0.8);
}
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1280px;
  }
}
