/* ================================================
   TOP BAR — Columbia Global School
   ================================================ */

/* ---------- WRAPPER ---------- */
.topbar {
  background: #0c2b5c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10002;
  transition: top 0.35s ease;
  height: 46px;
}

.topbar.topbar-hidden {
  top: -52px;
}

/* ---------- INNER ---------- */
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  position: relative;
}

/* ---------- LEFT: CONTACT STRIP ---------- */
.contact-strip {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  margin-right: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: #ffffff !important;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  white-space: nowrap;
  transition: color 0.2s ease;
  letter-spacing: 0.1px;
}

.contact-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.contact-item:hover { color: #dca11c !important; }

.contact-item .icon-wrap {
  width: 22px;
  height: 22px;
  background: rgba(220, 161, 28, 0.15);
  border: 1px solid rgba(220, 161, 28, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #dca11c;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.contact-item:hover .icon-wrap {
  background: rgba(220, 161, 28, 0.30);
  border-color: rgba(220, 161, 28, 0.5);
}

/* ---------- CENTER: UTILITY LINKS ---------- */
.topbar-utility-links {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 0;
}

.topbar-util-link {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 46px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.topbar-util-link:hover {
  color: #dca11c !important;
}

.topbar-util-link.active {
  color: #dca11c !important;
  font-weight: 600;
}

.util-sep {
  color: rgba(255, 255, 255, 0.60);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

/* ---------- RIGHT: CTA BUTTONS ---------- */
.cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* btn-enquire as button (not anchor) */
.btn-enquire {
  cursor: pointer;
  outline: none;
  font-family: inherit;
  padding: 0 17px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  color: #fff;
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-enquire:hover {
  background: #dca11c;
  border-color: #dca11c;
  color: #fff;
  box-shadow: 0 0 14px rgba(220, 161, 28, 0.40);
  transform: translateY(-1px);
}

.btn-prospectus {
  padding: 0 15px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-prospectus:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- HEADER POSITION ---------- */
#header.header {
  top: 46px;
  transition: top 0.35s ease;
}

#header.header.scrolled,
#header.header.topbar-scrolled {
  top: 0 !important;
}

/* ---------- HEADER MAIN ROW ---------- */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
}

/* ---------- SCHOOL NO BADGE (below logo) ---------- */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.school-no-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #1189d5;
  background: rgba(17, 137, 213, 0.08);
  border: 1px solid rgba(17, 137, 213, 0.22);
  border-radius: 4px;
  padding: 1px 7px;
  letter-spacing: 0.3px;
  margin-top: 3px;
  white-space: nowrap;
}

.school-no-badge i {
  font-size: 10px;
  color: #1189d5;
}

.school-no-badge strong {
  font-weight: 700;
  color: #0c2b5c;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1300px) {
  .topbar-utility-links { display: none; }
}

@media (max-width: 1300px) {
  .topbar-utility-links { display: none; }
}

@media (max-width: 992px) {
  .topbar-inner { padding: 0 16px; }
  .contact-strip { display: none; }
}

@media (max-width: 768px) {
  .topbar       { height: 42px; }
  .topbar-inner { height: 42px; padding: 0 12px; justify-content: flex-end; }
  #header.header { top: 42px; }
  .contact-strip { display: none; }
  .topbar-utility-links { display: none !important; }
  .cta-group { margin-left: auto; }
  .btn-enquire  { height: 28px; padding: 0 12px; font-size: 11.5px; }
  .btn-prospectus { height: 28px; padding: 0 10px; font-size: 11.5px; }
}

@media (max-width: 480px) {
  .btn-prospectus { display: none; }
}

/* ================================================
   NEWS BAR — Columbia Global School
   ================================================ */

/* ── Outer wrapper ── */
.nb {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: stretch;
  background: #7a0808;
  z-index: 30;
  overflow: hidden;
}

/* ── LATEST badge (left fixed column) ── */
.nb-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  background: #560606;
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.20);
  user-select: none;
}

.nb-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: nbBlink 1s step-start infinite;
}
@keyframes nbBlink { 50%{ opacity:0; } }

/* ── Clipping window ── */
.nb-clip {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

/* ── Scrolling track
   position:absolute  → width = content, NOT constrained by parent
   display:flex       → single-row layout
   flex-wrap:nowrap   → NEVER wraps to second line
── */
.nb-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  padding-left: 24px;
}

/* ── Single item wrapper ── */
.nb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 28px;
}

/* ── Type badge pill ── */
.nb-badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.5;
  color: #fff;
}
.nb-notice { background: #1d4ed8; }
.nb-event  { background: #15803d; }
.nb-news   { background: #6d28d9; }
.nb-result { background: #166534; }

/* ── Item text / link ── */
.nb-text {
  display: inline;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.93);
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: color .2s;
}
a.nb-text:hover { color: #fde68a; }

/* ── Separator ▶ ── */
.nb-sep {
  flex-shrink: 0;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  padding-right: 28px;
}

/* ── Pause / Play button ── */
.nb-btn {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.nb-btn:hover { background: rgba(0,0,0,0.40); }

/* ── Responsive ── */
@media (max-width:768px) {
  .nb          { height:38px; }
  .nb-label    { padding:0 14px; font-size:10px; letter-spacing:2px; }
  .nb-text     { font-size:12px; }
  .nb-badge    { font-size:9.5px; padding:2px 8px; }
  .nb-btn      { flex:0 0 38px; }
}
@media (max-width:480px) {
  .nb-label    { padding:0 10px; font-size:9.5px; }
  .nb-badge    { font-size:9px; padding:2px 7px; }
  .nb-text     { font-size:11.5px; }
}
