/* ========================================
   HEADER / TOPBAR / NAVIGATION
   ======================================== */

/* ========== TICKER ========== */
.ticker {
  background: var(--gold);
  padding: 9px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--crimson);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-right: 16px;
}

.ticker-content {
  font-size: 13.5px;
  color: var(--crimson-dark);
  font-weight: 600;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ========== TOPBAR ========== */
.topbar {
  background: var(--crimson-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 6px 0;
}

.topbar-inner {
  max-width: var(--site-container);
  margin: auto;
  padding: 0 var(--site-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-left: 16px;
}

.topbar a:hover {
  color: var(--gold-light);
}

/* ========== HEADER ========== */
header {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: relative;
  z-index: 50;
}

.header-inner {
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 0 var(--site-padding);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--crimson);
  color: #ffffff;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.logo-text .school {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  font-weight: 600;
}

.logo-text .dept {
  font-size: 18px;
  color: var(--crimson);
  font-weight: 800;
}

/* Drupal header region */
.header-inner .region-header {
  flex: 1;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* Hide duplicated Drupal branding */
.header-inner .block-system-branding-block,
.header-inner .block--system-branding-block,
.header-inner .site-branding {
  display: none !important;
}

.header-inner .block > h2,
.header-inner .block__title {
  display: none !important;
}

/* Search */
.header-inner .search-block-form {
  margin-left: auto;
}

.header-inner .search-block-form form {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.header-inner .search-block-form label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.header-inner .search-block-form input[type="search"],
.header-inner .search-block-form input[type="text"] {
  width: 220px;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 14px;
}

.header-inner .search-block-form input[type="submit"],
.header-inner .search-block-form button[type="submit"] {
  background: var(--crimson);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
}

/* ========== NAVIGATION ========== */
nav {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  border-bottom: 3px solid var(--gold);
}

/* Sticky main menu */
.cdsonla-page > nav {
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 0 var(--site-padding);
}

.nav-inner ul,
.nav-inner ul.menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-inner ul li,
.nav-inner ul.menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.nav-inner ul li a,
.nav-inner ul.menu > li > a {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,0.92) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-inner ul li a:hover,
.nav-inner ul.menu > li > a:hover,
.nav-inner ul.menu > li > a.is-active {
  background: rgba(255,255,255,0.14);
  color: var(--gold-light) !important;
}

/* Dropdown */
.nav-inner ul li ul {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column !important;
  background: white;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  border-top: 3px solid var(--gold);
  z-index: 999;
  padding: 6px 0 !important;
}

.nav-inner ul li:hover ul {
  display: flex !important;
}

.nav-inner ul li ul li a {
  color: var(--gray-800) !important;
  padding: 10px 18px;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}

.nav-inner ul li ul li a:hover {
  background: rgba(155,28,46,0.06);
  color: var(--crimson) !important;
  border-left-color: var(--crimson);
}

/* Hide search if placed in menu */
.nav-inner .search-block-form {
  display: none !important;
}

/* ========== RESPONSIVE HEADER ========== */
@media (max-width: 600px) {
  .topbar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  .header-inner .region-header {
    width: 100%;
    justify-content: flex-start;
  }

  .header-inner .search-block-form {
    margin-left: 0;
    width: 100%;
  }

  .nav-inner {
    overflow-x: auto;
  }

  .nav-inner ul {
    min-width: max-content;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.site-logo-img {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text .school {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  line-height: 1.3;
}

.logo-text .dept {
  font-size: 22px;
  font-weight: 850;
  color: #a71920;
  line-height: 1.25;
}

.header-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 260px;
}

.header-extra .region-header,
.header-extra .block,
.header-extra .content {
  margin: 0;
  padding: 0;
}

.header-extra form {
  margin: 0;
}

@media (max-width: 768px) {
  .site-logo-img {
    width: 58px;
    height: 58px;
  }

  .logo-text .school {
    font-size: 11px;
  }

  .logo-text .dept {
    font-size: 17px;
  }

  .header-inner {
    gap: 14px;
  }
}
/* ========================================
   HEADER SPACING FIX
   Tăng khoảng trắng trên/dưới quanh logo
   ======================================== */

header {
  background: #ffffff;
}

.header-inner {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  min-height: auto !important;
  display: flex;
  align-items: center;
}

/* Giữ logo không bị phóng quá to */
.logo-wrap .site-logo-img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  display: block;
}