/* ==========================================================
   header.css — extracted from includes/header.php inline <style> blocks
   ========================================================== */

/* ---- Font overrides (Google Sans Flex) ---- */
/* OVERRIDE DM SANS WITH GOOGLE SANS FLEX - HIGHEST PRIORITY */
*:not(i):not([class*="fa"]):not([class*="fab"]):not([class*="fas"]) {
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav .nav-link,
.contact-details,
.top-header,
.follow-text,
.trak-announce-text,
.navbar-brand,
.navbar-light .navbar-nav .nav-link {
    font-family: 'Google Sans', 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Icon exceptions - CRITICAL */
i, [class^="fa-"], [class*=" fa-"],
i.fas, i.fab, i.far, i.fal, i.fad,
.fa, .fas, .fab, .far, .fal, .fad,
[class*="bi-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* ---- Nav link / top header / dropdown sizing ---- */
  /* Force nav links to lighter weight */
  .navbar-nav .nav-link,
  .navbar-light .navbar-nav .nav-link,
  #navbarCollapse .nav-link,
  #mainNavbar .nav-link {
    font-weight: 500 !important;
    font-size: 15px !important;
    -webkit-font-smoothing: antialiased;
  }

  /* Top header bar font size */
  .contact-details,
  .top-header .contact-details,
  .top-header small,
  .follow-text {
    font-size: 13.2px !important;
    font-weight: 400 !important;
  }

  /* Dropdown menu font size */
  .dropdown-menu,
  .dropdown-menu .dropdown-item,
  .navbar-light .navbar-nav .dropdown-menu a {
    font-size: 15px !important;
  }

  /* Fix social icons to be circles */
  .header-social-icons .social-link {
    border-radius: 50% !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

/* ---- Mobile portal bar ---- */
.mobile-portal-bar {
  display: none;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-portal-bar::-webkit-scrollbar {
  display: none;
}
.mobile-portal-link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.mobile-portal-link-last {
  border-right: none;
}
.mobile-portal-link i {
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

/* Narrow screens: tighten spacing/type before falling back to scroll */
@media (max-width: 480px) {
  .mobile-portal-link {
    padding: 8px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .mobile-portal-link i {
    font-size: 11px;
  }
}

/* Very narrow screens: allow the bar to scroll horizontally instead of squeezing/cutting labels */
@media (max-width: 360px) {
  .mobile-portal-bar {
    justify-content: flex-start;
  }
  .mobile-portal-link {
    flex: 0 0 auto;
    padding: 8px 14px;
  }
}

/* ---- Announcement bar / carousel ---- */
/* ── Announcement bar ── */
.trak-announce-bar {
  width: 100%;
  background: linear-gradient(135deg, #6B4FB8 0%, #8B6FD9 100%);
  border-bottom: 3px solid #B60D09;
  padding: 8px 15px;
  box-shadow: 0 2px 8px rgba(60, 31, 128, 0.2);
}

.trak-announce-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.trak-announce-carousel-wrap {
  flex: 1;
  min-width: 250px;
  position: relative;
  min-height: auto;
}

.trak-announce-slide {
  display: none;
  animation: slideIn 0.4s ease-in-out;
}

.trak-announce-slide.active {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.trak-announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.trak-announce-text {
  flex: 1;
  min-width: 200px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
  font-family: 'Google Sans Flex', sans-serif;
}

.trak-announce-text strong {
  font-weight: 700;
  font-family: 'Google Sans', sans-serif;
}

.trak-announce-cta {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.trak-announce-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
}

.trak-announce-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trak-announce-prev, .trak-announce-next {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.trak-announce-prev:hover, .trak-announce-next:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.trak-announce-dots {
  display: flex;
  gap: 5px;
}

.trak-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.trak-dot.active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

.trak-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Large Desktop */
@media (min-width: 1200px) {
  .trak-announce-bar {
    padding: 10px 20px;
  }
  
  .trak-announce-inner {
    gap: 16px;
  }
  
  .trak-announce-badge {
    font-size: 11px;
    padding: 5px 11px;
  }
  
  .trak-announce-text {
    font-size: 0.92rem;
  }
  
  .trak-announce-cta {
    padding: 7px 15px;
    font-size: 0.88rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .trak-announce-bar {
    padding: 8px 12px;
  }

  .trak-announce-inner {
    gap: 10px;
  }

  .trak-announce-carousel-wrap {
    min-width: 150px;
  }

  .trak-announce-text {
    font-size: 0.85rem;
  }

  .trak-announce-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Small Tablet / Large Mobile */
@media (max-width: 768px) {
  .trak-announce-bar {
    padding: 12px 14px;
  }

  .trak-announce-inner {
    gap: 10px;
    flex-wrap: wrap;
  }

  .trak-announce-carousel-wrap {
    order: 2;
    width: 100%;
    min-width: 100%;
  }

  .trak-announce-slide.active {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .trak-announce-badge {
    order: 1;
    font-size: 10px;
    padding: 4px 10px;
    background: #B60D09;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(182, 13, 9, 0.4);
  }

  .trak-announce-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .trak-announce-text strong {
    color: #ffd66b;
  }

  .trak-announce-cta {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 14px;
    background: #fff;
    color: #3C1F80;
    border: none;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }

  .trak-announce-cta:active {
    transform: scale(0.97);
  }

  .trak-announce-nav {
    order: 4;
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 20px;
  }

  .trak-announce-prev, .trak-announce-next {
    width: 30px;
    height: 30px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
  }

  .trak-announce-dots {
    gap: 5px;
  }

  .trak-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
  }

  .trak-dot.active {
    width: 18px;
    background: #ffd66b;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .trak-announce-bar {
    padding: 10px 12px;
  }

  .trak-announce-carousel-wrap {
    min-width: 100%;
    order: 1;
  }

  .trak-announce-badge {
    font-size: 9px;
    padding: 3px 9px;
    order: 0;
  }

  .trak-announce-text {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .trak-announce-text strong {
    display: block;
    margin-bottom: 3px;
  }

  .trak-announce-cta {
    width: 100%;
    font-size: 0.8rem;
    padding: 9px 12px;
  }

  .trak-announce-nav {
    width: 100%;
    gap: 8px;
    margin-top: 6px;
  }

  .trak-announce-prev, .trak-announce-next {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .trak-announce-dots {
    gap: 4px;
  }

  .trak-dot {
    width: 6px;
    height: 6px;
  }

  .trak-dot.active {
    width: 16px;
  }
}