/* Royal Elementor Header CSS - Crestwood University */
:root {
  --primary: #1e3a5f;
  --gold: #c9a84c;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #1e3a5f;
  --text-mid: #4b5563;
}

/* ===== HEADER (Unified Style 4) ===== */
.headertop {
  background: #152d4a;
  color: rgba(255,255,255,0.75);
  padding: 7px 0;
  font-size: 12.5px;
}
.headertop .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.headertop a { color: rgba(255,255,255,0.75); text-decoration: none; }
.headertop a:hover { color: var(--gold); }
.headertop .ht-left span, .headertop .ht-left a { margin-right: 14px; }

.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}
.header-logo .logo-icon {
  width: 46px;
  height: 46px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}
.header-logo .logo-text {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  line-height: 1.1;
}
.header-logo .logo-sub {
  font-size: 11px;
  color: var(--gold);
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.5px;
}

/* ===== DESKTOP MENU ===== */
.desktopmenu { display: flex; align-items: center; gap: 20px; }
.royalmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.royalmenu > li { position: relative; }
.royalmenu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}
.royalmenu > li > a:hover,
.royalmenu > li.active > a {
  color: var(--gold);
  background: rgba(255,255,255,0.08);
}
.royalmenu > li > a .arrow { font-size: 10px; transition: transform 0.25s; }
.royalmenu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.royalmenu .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  list-style: none;
  margin: 0;
  border-top: 3px solid var(--gold);
}
.royalmenu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.royalmenu .dropdown li a {
  display: block;
  padding: 9px 14px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}
.royalmenu .dropdown li a:hover {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 20px;
}

/* Action Button */
.royal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.royal-action-btn:hover {
  background: #b8902e;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

/* ===== MOBILE ===== */
#navigation-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
#navigation-icon span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}
#navigation-icon.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#navigation-icon.active span:nth-child(2) { opacity: 0; }
#navigation-icon.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  background: #152d4a;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}
.mobile-menu ul li a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.mobile-sub { padding-left: 16px; display: none; }
.mobile-sub.open { display: block; }

@media (max-width: 991px) {
  #navigation-icon { display: flex; }
  .desktopmenu { display: none; }
}
