/* ==========================================================================
   Hanoi College Theme - Layout Styles (Exact Hex #203B72 & #F36F21)
   ========================================================================== */

/* Topbar (Header phụ: Nền xanh #203B72) */
.site-topbar {
  background-color: #203B72;
  color: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.topbar-links-wrapper {
  display: flex;
  gap: 34px;
  align-items: center;
}

.topbar-link {
  font-family: var(--font-body);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: var(--transition);
  opacity: 0.95;
}

.topbar-link:hover {
  color: #F36F21;
  opacity: 1;
}

/* Main Header (Header chính - Chuẩn Figma Height 71px) */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid #edf2f7;
  height: 71px;
}

.site-header.is-sticky {
  box-shadow: 0 4px 14px rgba(32, 59, 114, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 71px;
  min-height: 71px;
}

/* Site Branding & Brand Name (Tỉ lệ chuẩn cho Header 71px) */
.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-combo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-logo-img,
.site-branding .custom-logo {
  width: auto;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

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

/* HANOI COLLEGE: Roboto 900 Black, Orange #F36F21 */
.brand-name-orange {
  font-family: 'Roboto', 'Montserrat', sans-serif;
  font-size: 23px;
  font-weight: 900;
  color: #F36F21;
  letter-spacing: 0.015em;
  line-height: 1.05;
  display: block;
  text-transform: uppercase;
}

/* OF MANAGEMENT AND BUSINESS: Roboto Condensed 600, Blue #203B72 */
.brand-name-navy {
  font-family: 'Roboto Condensed', 'Barlow Condensed', sans-serif;
  font-size: 10.5px;
  color: #203B72;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  margin-top: 2px;
  line-height: 1;
  display: block;
  white-space: nowrap;
}

/* Main Navigation Menu (Exact Color #F36F21) */
.main-navigation {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 34px;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-navigation ul li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.main-navigation ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  font-family: var(--font-heading);
  color: #F36F21;
  font-weight: 600;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  transition: var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: #d8570c;
}

.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #F36F21;
  transition: width 0.22s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item > a::after {
  width: 100%;
}

/* Dropdown Menu */
.main-navigation ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: var(--border-radius-sm);
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  border: 1px solid #e2e8f0;
  z-index: 100;
  gap: 0;
}

.main-navigation ul li:hover > ul {
  display: flex;
}

.main-navigation ul li ul li a {
  padding: 10px 18px;
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 500;
  text-transform: none;
}

.main-navigation ul li ul li a:hover {
  background-color: #f8fafc;
  color: #F36F21;
}

.main-navigation ul li ul li a::after {
  display: none;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #F36F21;
  padding: 6px;
}

/* ==========================================================================
   FOOTER — Chuẩn 100% theo thiết kế Figma (Nền Vibrant Blue)
   ========================================================================== */

.site-footer {
  background: #162952 center center / cover no-repeat;
  color: #ffffff;
  padding: 55px 0 45px;
  position: relative;
  overflow: hidden;
}

.footer-main-wrapper {
  width: 100%;
}

/* ── ROW 1: Contact Info + Google Map ──────────────────────────────────── */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

/* Cột thông tin trường */
.footer-contact-col {
  flex: 1;
  max-width: 720px;
}

.footer-school-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 18px 0;
  line-height: 1.35;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  color: #ffffff;
  line-height: 1.6;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  color: #ffffff;
}

.footer-contact-text {
  color: #ffffff;
}

.footer-contact-text strong {
  font-weight: 600;
  color: #ffffff;
}

.footer-contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}
.footer-contact-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Cột Google Map */
.footer-map-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-map-header {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.footer-map-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.footer-map-embed {
  width: 320px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer-map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 10px;
}

.footer-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: #64748b;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ── ROW 2: Nav Columns + Social Icons ────────────────────────────────── */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-top: 48px;
}

/* 4 Cột Điều Hướng (Khám phá, Học tập, Kiến tạo, Kết nối) */
.footer-nav-columns {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
}

.footer-nav-col {
  flex: 1;
  min-width: 140px;
}

.footer-nav-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav-list li::before {
  content: '•';
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.footer-nav-list a {
  font-size: 1.02rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.footer-nav-list a:hover {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.9;
}

/* Social icons column (Căn chỉnh theo cột Google Map ở trên) */
.footer-social-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0056b3;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
  color: #004085;
}

.zalo-text {
  font-size: 11px;
  font-weight: 900;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0068ff;
  letter-spacing: -0.5px;
}

/* ── Copyright bar ẩn khi trống ────────────────────────────────────────── */
.footer-bottom:empty {
  display: none;
}

/* ── Responsive Footer ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    gap: 32px;
  }

  .footer-contact-col {
    max-width: 100%;
    width: 100%;
  }

  .footer-map-col,
  .footer-social-col {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .footer-map-embed {
    width: 100%;
    max-width: 100%;
  }

  .footer-nav-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 35px 0 30px;
  }

  .footer-school-name {
    font-size: 1.1rem;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .footer-contact-item {
    font-size: 0.9rem;
    gap: 10px;
  }

  .footer-contact-text {
    word-break: break-word;
  }

  .footer-contact-link {
    word-break: break-all;
  }

  .footer-map-col {
    align-items: stretch;
  }

  .footer-map-header {
    text-align: center;
  }

  .footer-map-embed {
    width: 100%;
    max-width: 100%;
    height: 190px;
  }

  .footer-bottom-row {
    margin-top: 30px;
    gap: 24px;
  }

  .footer-nav-columns {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }

  .footer-nav-heading {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .footer-nav-list {
    gap: 8px;
  }

  .footer-nav-list a {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .footer-social-col {
    padding-top: 5px;
    margin-top: 5px;
  }

  .footer-social-btn {
    width: 36px;
    height: 36px;
  }
}


/* Responsive Navigation Breakpoints */
@media (max-width: 1160px) {
  .main-navigation ul {
    gap: 22px;
  }
  .main-navigation ul li a {
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #F36F21;
    cursor: pointer;
    z-index: 1001;
  }
  
  .main-navigation {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: 16px 24px 24px !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    border-top: 2px solid #F36F21;
    border-bottom: 3px solid #203B72;
    z-index: 99999 !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .main-navigation.is-open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .main-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .main-navigation ul li {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
  }

  .main-navigation ul li:last-child {
    border-bottom: none !important;
  }
  
  .main-navigation ul li a {
    padding: 14px 6px !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #F36F21 !important;
    display: block !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
  }

  .main-navigation ul li a:hover,
  .main-navigation ul li.current-menu-item > a {
    color: #203B72 !important;
    background-color: #f8fafc !important;
    padding-left: 14px !important;
  }

  .main-navigation ul li a::after {
    display: none !important;
  }
  
  .main-navigation ul li ul {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 18px !important;
    display: block !important;
    background-color: #f8fafc !important;
    width: 100% !important;
    height: auto !important;
  }

  .main-navigation ul li ul li {
    border-bottom: 1px dashed #e2e8f0 !important;
  }

  .main-navigation ul li ul li a {
    font-size: 13.5px !important;
    padding: 10px 8px !important;
    color: #475569 !important;
  }
  
  .topbar-links-wrapper {
    gap: 16px;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .topbar-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 15px;
  }
  
  .topbar-links-wrapper {
    gap: 12px;
    justify-content: flex-start;
    min-width: max-content;
  }

  .topbar-link {
    font-size: 11.5px;
    white-space: nowrap;
  }

  .custom-logo-img,
  .site-branding .custom-logo {
    height: 44px;
    max-height: 44px;
  }

  .brand-name-orange {
    font-size: 19px;
  }

  .brand-name-navy {
    font-size: 8.8px;
    letter-spacing: 0.04em;
  }

  .brand-logo-combo {
    gap: 8px;
  }

  .mobile-nav-toggle {
    font-size: 1.45rem;
    padding: 4px;
  }
}

@media (max-width: 380px) {
  .brand-name-orange {
    font-size: 16.5px;
  }

  .brand-name-navy {
    font-size: 7.8px;
  }

  .custom-logo-img,
  .site-branding .custom-logo {
    height: 38px;
    max-height: 38px;
  }
}
