/* ============================================================
   Sacred Heart School — Navbar & Top Bar Styles
   ============================================================ */

@font-face {
  font-family: 'School Calibri';
  src: url('../fonts/calibri/Calibri.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'School Calibri';
  src: url('../fonts/calibri/Calibribold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- TOP INFO BAR ---- */
.top-bar {
  background: #0b224f;
  padding: 0;
  height: 44px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 100%;
}

/* Left: contact info items */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.top-info-item i {
  font-size: 13px;
  color: #ffffff;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Right: nav links + social icons */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Parent Portal | Alumni | Careers */
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.top-nav-link {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0 10px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.top-nav-link:first-child {
  padding-left: 0;
}
.top-nav-link:last-child {
  padding-right: 0;
}
.top-nav-link:hover { opacity: 0.75; color: #ffffff; }
.top-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

/* Social icon circles */
.top-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b224f;
  font-size: 13px;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.top-social-btn:hover {
  background: #f1f5f9;
  color: #081a3e;
  transform: scale(1.1);
}

/* ---- MAIN NAVBAR ---- */
.navbar {
  background: #ffffff;
  padding: 0;
  box-shadow: 0 2px 12px rgba(26,54,104,0.10);
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  padding: 14px 40px !important;
  gap: 20px;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-decoration: none;
}
.navbar-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name-main {
  font-family: 'Bellanork', 'Black Chancery', cursive;
  font-weight: 700;
  font-size: 24px;
  color: #1a3668;
  letter-spacing: 0.2px;
}
.brand-name-sub {
  font-family: 'Black Chancery', cursive;
  font-size: 23px;
  color: #c8963e;
  /* font-style: italic; */
  letter-spacing: 2px;
  display: block;
  width: 100%;
  text-align: center;
}
.brand-name-affil {
  font-size: 12px;
  color: #6b7280;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Nav links */
.navbar .collapse.navbar-collapse { padding-left: 0; }
.navbar .navbar-nav { gap: 0; }
.navbar .navbar-nav .nav-item { position: relative; margin: 0 2px; }
.navbar .navbar-nav .nav-link {
  color: #1a3668;
  font-family: 'School Calibri', Calibri, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 18px 9px;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
}
.navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 10px; right: 10px;
  height: 2px;
  background: #f5a623;
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 2px;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #f5a623; }
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Dropdown toggle arrow */
.navbar .navbar-nav .dropdown-toggle {
  padding-right: 24px;
}
.navbar .navbar-nav .dropdown-toggle::before {
  content: '\ea4e';
  font-family: 'remixicon';
  font-size: 13px;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: #6b7280;
}
.navbar .navbar-nav .dropdown-toggle::after { display: none; }

/* Dropdown Menu */
.navbar .navbar-nav .dropdown-menu {
  border: none;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(26,54,104,0.14);
  padding: 8px 0;
  min-width: 200px;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border-top: 3px solid #f5a623;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  position: absolute;
}
.navbar .navbar-nav .nav-item:hover > .dropdown-menu,
.navbar .navbar-nav .nav-item:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.navbar .navbar-nav .dropdown-menu .dropdown-item {
  font-size: 13px;
  font-family: 'School Calibri', Calibri, Arial, sans-serif;
  font-weight: 500;
  color: #374151;
  padding: 9px 20px;
  transition: background 0.15s, color 0.15s;
  text-transform: uppercase;
}
.navbar .navbar-nav .dropdown-menu .dropdown-item:hover {
  background: #f4f6fa;
  color: #1a3668;
}

/* Admission Enquiry CTA */
.btn-admission {
  background: #f5a623;
  color: #142954;
  font-family: 'School Calibri', Calibri, Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 12px 16px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  display: inline-block;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  margin-left: 8px;
}
.btn-admission:hover { background: #e09010; color: #ffffff; }

/* Hamburger */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 4px;
  box-shadow: none;
}
.burger-menu { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.burger-menu span {
  display: block;
  width: 26px; height: 2.5px;
  background: #1a3668;
  border-radius: 2px;
}

/* ---- OFFCANVAS / RESPONSIVE NAVBAR ---- */
.responsive-navbar { border: 0 !important; }
.responsive-navbar .offcanvas-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  justify-content: space-between;
}
.responsive-navbar .close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #374151;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.responsive-navbar .close-btn:hover { color: #800020; }
.responsive-navbar .offcanvas-body { padding: 20px 16px; }
.responsive-navbar .accordion-item {
  border: 0;
  background: transparent;
  margin-bottom: 4px;
}
.responsive-navbar .accordion-button,
.responsive-navbar .accordion-button.without-icon {
  font-family: 'School Calibri', Calibri, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a3668;
  background: transparent;
  box-shadow: none;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: block;
  width: 100%;
  text-align: left;
  text-transform: uppercase;
}
.responsive-navbar .accordion-button:hover { color: #800020; }
.responsive-navbar .accordion-button::after { display: none; }
.responsive-navbar .accordion-body a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: #374151;
  font-family: 'School Calibri', Calibri, Arial, sans-serif;
  text-transform: uppercase;
}
.responsive-navbar .accordion-body a:hover { color: #1a3668; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 767px) {
  .top-bar { display: none; }
  .nav-container { padding: 10px 14px !important; flex-wrap: nowrap; justify-content: space-between; }
  .navbar-brand { gap: 8px; max-width: calc(100% - 48px); min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-name-main,
  .brand-name-sub,
  .brand-name-affil {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-name-main { font-size: 14px; }
  .brand-name-sub { font-size: 12px; }
  .brand-name-affil { font-size: 10px; }
  .navbar-brand img { width: 46px; height: 46px; }
  .navbar-toggler { margin-left: auto; flex-shrink: 0; }
}

@media (max-width: 991px) {
  .top-info-item:nth-child(2),
  .top-info-item:nth-child(3) { display: none; }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .navbar .navbar-nav .nav-link { font-size: 13px; padding: 18px 8px; }
  .nav-container { padding: 8px 18px !important; }
}
