/* IvyTech Standalone Navbar — replaces Divi header */

/* === TOP BAR === */
.ivy-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100000;
  background: #0c71c3; color: #fff; font-size: 14px; font-weight: 600;
  line-height: 1.2;
  font-family: 'Poppins', 'Alegreya', Georgia, serif;
  transition: transform 0.3s ease;
}
.ivy-topbar.hidden { transform: translateY(-100%); }
.ivy-topbar .ivy-container {
  max-width: 1477px; margin: 0 auto; padding: 7px 30px;
  display: flex; justify-content: space-between; align-items: center;
}
.ivy-topbar-left { display: flex; align-items: center; gap: 14px; }
.ivy-topbar-right { display: flex; align-items: center; gap: 14px; }

.ivy-phone { display: flex; align-items: center; gap: 5px; color: #fff; }
.ivy-phone svg { width: 14px; height: 14px; fill: #fff; opacity: 0.9; }

.ivy-contact-btn {
  background: #e09900; color: #fff; border: none; padding: 4px 14px;
  border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.2s;
}
.ivy-contact-btn:hover { background: #c98800; }

.ivy-social-links { display: flex; align-items: center; gap: 10px; }
.ivy-social-links a {
  color: rgba(255,255,255,0.8); display: flex; align-items: center;
  transition: color 0.2s;
}
.ivy-social-links a:hover { color: #fff; }
.ivy-social-links svg { width: 16px; height: 16px; fill: currentColor; }

.ivy-cart {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.85); font-size: 14px;
}
.ivy-cart svg { width: 16px; height: 16px; fill: currentColor; }
.ivy-cart:hover { color: #fff; }

/* === MAIN NAV === */
.ivy-navbar {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 99999;
  background: #0c71c3; width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: top 0.3s ease;
}
.ivy-navbar.scrolled { top: 0; }

.ivy-navbar .ivy-container {
  max-width: 1477px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: center; align-items: center;
  position: relative; overflow: visible;
}

.ivy-nav-links {
  display: flex; justify-content: center; align-items: center;
  list-style: none; margin: 0; padding: 8px 0; gap: 0;
}
.ivy-nav-links a {
  display: block; padding: 11px 7px; color: rgba(255,255,255,0.85);
  font-family: 'Alegreya', Georgia, "Times New Roman", serif;
  font-size: 18px; font-weight: bold; letter-spacing: 3px;
  text-decoration: none; text-transform: none; white-space: nowrap;
  transition: color 0.2s, font-size 0.3s, padding 0.3s;
}
.ivy-nav-links a:hover { color: #fff; }
.ivy-nav-links a.active { color: #fff; }

.ivy-enroll-btn {
  display: inline-block; background: #ff236c; color: #fff !important;
  padding: 6px 16px; border-radius: 50px; margin-left: 10px;
  font-family: 'Fredoka One', cursive; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255,35,108,0.3);
  transition: all 0.3s;
}
.ivy-enroll-btn:hover { background: #e0195c; transform: translateY(-1px); }

.ivy-login-btn {
  display: inline-block; background: transparent; color: #2ea3f2 !important;
  padding: 4px 14px; border-radius: 4px; margin-left: 6px;
  border: 2px solid #2ea3f2; font-weight: 600; font-size: 13px;
  transition: all 0.3s;
}
.ivy-login-btn:hover { background: rgba(46,163,242,0.1); }

/* === SCROLLED STATE === */
.ivy-navbar.scrolled .ivy-nav-links a {
  font-size: 16px; padding: 8px 7px;
}
.ivy-navbar.scrolled .ivy-enroll-btn { padding: 5px 14px; font-size: 11px; }
.ivy-navbar.scrolled .ivy-login-btn { padding: 3px 12px; font-size: 12px; }

/* === HAMBURGER === */
.ivy-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: #fff; position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
}
.ivy-hamburger svg { width: 26px; height: 26px; fill: #fff; }

/* === MOBILE MENU === */
.ivy-mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; width: 100%;
  background: rgba(12,113,195,0.97); border-top: 3px solid #2ea3f2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.ivy-mobile-menu.open { display: block; }
.ivy-mobile-menu a {
  display: block; padding: 14px 24px; color: rgba(255,255,255,0.9);
  font-family: 'Alegreya', Georgia, serif; font-size: 16px; font-weight: bold;
  letter-spacing: 3px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.ivy-mobile-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ivy-mobile-menu .ivy-enroll-btn {
  margin: 12px 24px; text-align: center; letter-spacing: 1px; font-size: 14px;
}
.ivy-mobile-menu .ivy-login-btn {
  margin: 0 24px 12px; text-align: center; font-size: 14px; color: #fff !important; border-color: rgba(255,255,255,0.4);
}

/* === DIVI PAGE COMPAT (homepage) === */
.et_fixed_nav.et_show_nav #page-container,
.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container,
.et_fixed_nav.et_show_nav.et_secondary_nav_enabled.et_header_style_centered #page-container,
.et_fixed_nav.et_show_nav.et_header_style_centered #page-container,
#page-container { padding-top: 84px !important; }

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .ivy-nav-links { display: none; }
  .ivy-hamburger { display: block; }
  .ivy-topbar-right { display: none; }
  .ivy-navbar .ivy-container { justify-content: center; }
}
@media (max-width: 767px) {
  .ivy-social-links { display: none; }
  .ivy-topbar .ivy-container { padding: 6px 16px; }
  .ivy-navbar .ivy-container { padding: 0 16px; }
}
