/* ============================================
   THE USA BOOK WRITING — HEADER STYLES
   Colors: Navy #ffffff | Red #c0272d | Sky #2196c4 | Gold #00a5e5
   ============================================ */

/* ── Reset basics ── */
.top-bar *,
.main-header * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Container ── */
.top-bar .container,
.main-header .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background-color: #ffffff;
  border-bottom: 3px solid #c0272d;
  padding: 8px 0;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  margin-right: 16px;
  transition: color 0.2s;
}

.top-bar-link:hover {
  color: #00a5e5;
}

.top-icon {
  width: 26px;
  height: 26px;
  background-color: #2196c4;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-icon svg {
  width: 13px;
  height: 13px;
  fill: #ffffff;
}

.chat-btn {
  display: inline-block;
  background-color: #2196c4;
  color: #ffffff;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.chat-btn:hover {
  background-color: #0d7ab5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(33, 150, 196, 0.45);
  color: #ffffff;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
  background-color: #0f2156;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  font-family: 'Nunito Sans', Arial, sans-serif;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Brand / Logo ── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 68px;
  height: 68px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.4px;
  font-family: Georgia, serif;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00a5e5;
  text-transform: uppercase;
}

/* ── Nav List ── */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

/* ── Nav Links ── */
.nav-list > li > .nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 26px 15px;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-list > li > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background-color: #c0272d;
  border-radius: 2px 2px 0 0;
  transition: left 0.25s, right 0.25s;
}

.nav-list > li > .nav-link:hover{
    color: #ffffff;
}
.nav-list > li > .nav-link.active {
  color: #00a5e5;
}

.nav-list > li > .nav-link:hover::after,
.nav-list > li > .nav-link.active::after {
  left: 12px;
  right: 12px;
}

.nav-link .arrow {
  font-size: 10px;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.2s;
}

.has-dropdown:hover .arrow,
.has-dropdown.open .arrow {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.has-dropdown {
  position: relative;
}

/*.dropdown {*/
/*  display: none;*/
/*  position: absolute;*/
/*  top: 100%;*/
/*  left: 0;*/
/*  background-color: #ffffff;*/
/*  border-top: 3px solid #c0272d;*/
/*  border-radius: 0 0 8px 8px;*/
/*  list-style: none;*/
/*  min-width: 200px;*/
/*  padding: 6px 0;*/
/*  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);*/
/*  z-index: 100;*/
/*}*/

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background-color: #1a3a7a;
  color: #00a5e5;
}

/* ── CTA Button ── */
.nav-cta {
  background-color: #c0272d !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  border: 2px solid #c0272d;
  margin-left: 8px;
  transition: background-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background-color: transparent !important;
  color: #c0272d !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 39, 45, 0.35);
}

.nav-cta::after {
  display: none !important;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid #00a5e5;
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #00a5e5;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 991px) {


.top-bar{
    display: none;
}

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 3px solid #c0272d;
    padding: 10px 20px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  

    .nav-list > li > .nav-link {
        padding: 13px 10px;
        border-bottom: 1px solid rgb(0 0 0 / 30%);
         color: rgba(0, 0, 0, 0.88);
        font-size: 13px;
    }

  .nav-list > li > .nav-link::after {
    display: none;
  }

  /* Mobile dropdown */
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background-color: rgba(233, 0, 0, 0.2);
    padding: 0;
    margin-top: 0;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding: 10px 28px;
    font-size: 12px;
  }

  .nav-cta {
    margin: 12px 10px 4px !important;
    display: block;
    text-align: center;
  }

  .main-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .top-bar-inner {
    justify-content: center;
  }
  .top-bar-left {
    justify-content: center;
  }
}