/**
 * Tuệ Tĩnh High-Performance Modern Portal & Public Service System
 * UX/UI Design for Health & Medical College (Desktop & Mobile-First)
 */

:root {
  --tt-primary: #018838;
  --tt-primary-dark: #006629;
  --tt-primary-light: #e8f5e9;
  --tt-accent-red: #d32f2f;
  --tt-accent-orange: #f57c00;
  --tt-erp: #0284c7;
  --tt-erp-dark: #0369a1;
  --tt-erp-light: #e0f2fe;
  --tt-text-main: #1e293b;
  --tt-text-muted: #64748b;
  --tt-bg-card: #ffffff;
  --tt-border: #e2e8f0;
  --tt-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --tt-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --tt-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --tt-radius: 12px;
}

/* ==========================================================================
   1. TOP BAR UTILITIES & ERP PORTAL SWITCH (DESKTOP)
   ========================================================================== */
.tt-topbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--tt-border);
  font-size: 13px;
  color: var(--tt-text-muted);
  padding: 6px 0;
  position: relative;
  z-index: 1000;
}
.tt-topbar .tt-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.tt-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tt-topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tt-topbar-left .fa {
  color: var(--tt-primary);
}
.tt-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tt-badge-slogan {
  background: var(--tt-primary-light);
  color: var(--tt-primary-dark);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ERP Button in Topbar */
.tt-btn-erp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
}
.tt-btn-erp:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.45);
  color: #ffffff !important;
}
.tt-btn-erp .tt-pulse-dot {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: ttPulse 1.8s infinite;
}

/* Admission Button in Topbar */
.tt-btn-admit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.3);
  transition: all 0.25s ease;
}
.tt-btn-admit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.45);
  color: #ffffff !important;
}

@keyframes ttPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   2. DIGITAL PUBLIC SERVICE & STUDENT HUB (CỔNG DỊCH VỤ CÔNG & TIỆN ÍCH)
   ========================================================================== */
.tt-public-service-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 24px 20px 20px;
  margin: 18px 0 28px;
  box-shadow: var(--tt-shadow-sm);
  position: relative;
}
.tt-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tt-primary);
  flex-wrap: wrap;
  gap: 10px;
}
.tt-service-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--tt-primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tt-service-title .fa {
  color: var(--tt-accent-orange);
  font-size: 22px;
}
.tt-service-subtitle {
  font-size: 13px;
  color: var(--tt-text-muted);
}

/* 6-Card Public Services Grid */
.tt-service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1199px) {
  .tt-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .tt-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.tt-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 14px;
  background: var(--tt-bg-card);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  text-decoration: none !important;
  color: var(--tt-text-main) !important;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}
.tt-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tt-shadow-md);
  border-color: var(--tt-primary);
}
.tt-service-card.card-erp {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #bae6fd;
}
.tt-service-card.card-erp:hover {
  border-color: var(--tt-erp);
}
.tt-service-card.card-admission {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
  border-color: #fecaca;
}
.tt-service-card.card-admission:hover {
  border-color: var(--tt-accent-red);
}

.tt-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}
.tt-service-card:hover .tt-service-icon {
  transform: scale(1.1);
}
.icon-erp { background: #e0f2fe; color: #0284c7; }
.icon-admit { background: #fee2e2; color: #dc2626; }
.icon-grade { background: #fef3c7; color: #d97706; }
.icon-cert { background: #ecfdf5; color: #059669; }
.icon-desk { background: #ede9fe; color: #7c3aed; }
.icon-tuition { background: #fce7f3; color: #db2777; }

.tt-service-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.tt-service-desc {
  font-size: 11px;
  color: var(--tt-text-muted);
  line-height: 1.3;
}
.tt-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-erp { background: #0284c7; color: #fff; }
.badge-hot { background: #dc2626; color: #fff; animation: ttPulse 1.5s infinite; }

/* ==========================================================================
   3. ADMISSION TRUST STATS (NIỀM TỰ HÀO & TRUYỀN THÔNG)
   ========================================================================== */
.tt-trust-stats-bar {
  background: linear-gradient(135deg, #018838 0%, #005a24 100%);
  color: #ffffff;
  border-radius: var(--tt-radius);
  padding: 22px 15px;
  margin: 20px 0 28px;
  box-shadow: 0 4px 15px rgba(1, 136, 56, 0.25);
}
.tt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 15px;
}
@media (max-width: 767px) {
  .tt-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.tt-stat-item {
  padding: 6px 10px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.tt-stat-item:last-child {
  border-right: none;
}
@media (max-width: 767px) {
  .tt-stat-item:nth-child(2) {
    border-right: none;
  }
}
.tt-stat-number {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #fde047;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 5px;
}
.tt-stat-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,0.92);
}

/* ==========================================================================
   4. FLOATING CONTACT ACTIONS (DESKTOP & TABLET)
   ========================================================================== */
.tt-floating-widget {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tt-float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 22px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  position: relative;
}
.tt-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.tt-float-hotline { background: #dc2626; animation: ttPulse 1.8s infinite; }
.tt-float-zalo { background: #0068ff; }
.tt-float-admit { background: #018838; }

.tt-float-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tt-float-btn:hover .tt-float-tooltip {
  opacity: 1;
}

/* ==========================================================================
   5. MOBILE-FIRST BOTTOM NAVIGATION BAR (FIXED DOCK)
   ========================================================================== */
.tt-mobile-dock {
  display: none;
}
@media (max-width: 991px) {
  .tt-mobile-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 99999;
    border-top: 1px solid var(--tt-border);
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
  }
  body {
    padding-bottom: 65px !important;
  }
  .tt-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--tt-text-muted) !important;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
    position: relative;
  }
  .tt-dock-item .fa {
    font-size: 18px;
    margin-bottom: 2px;
  }
  .tt-dock-item.item-active, .tt-dock-item:hover {
    color: var(--tt-primary) !important;
  }
  .tt-dock-item.item-erp {
    color: var(--tt-erp) !important;
  }
  .tt-dock-item.item-admit {
    color: var(--tt-accent-red) !important;
  }
  .tt-dock-highlight {
    background: var(--tt-accent-red);
    color: #fff !important;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .tt-dock-highlight .fa {
    font-size: 20px;
    margin-bottom: 0;
  }
  .tt-dock-highlight span {
    font-size: 9px;
    line-height: 1;
    margin-top: 2px;
  }
}

/* ==========================================================================
   6. QUICK ADMISSION MODAL (POPUP XÉT TUYỂN NHANH)
   ========================================================================== */
.tt-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  backdrop-filter: blur(4px);
}
.tt-modal-backdrop.active {
  display: flex;
}
.tt-modal-box {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: ttModalIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}
@keyframes ttModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.tt-modal-header {
  background: linear-gradient(135deg, #018838 0%, #005a24 100%);
  color: #fff;
  padding: 20px 24px;
  position: relative;
}
.tt-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-modal-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.tt-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.tt-modal-close:hover {
  background: rgba(255,255,255,0.35);
}
.tt-modal-body {
  padding: 24px;
}
.tt-form-group {
  margin-bottom: 14px;
}
.tt-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tt-text-main);
  margin-bottom: 5px;
}
.tt-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--tt-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
}
.tt-form-control:focus {
  outline: none;
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px rgba(1, 136, 56, 0.15);
}
.tt-btn-submit-admit {
  width: 100%;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #ffffff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tt-btn-submit-admit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}


/* ==========================================================================
   TTMP MODERN ADMISSIONS & ACADEMIC HUB (2026-2045)
   ========================================================================== */

/* Section Headings */
.tt-section-heading {
  text-align: center;
  margin-bottom: 30px;
}
.tt-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.tt-main-title {
  font-size: 26px;
  font-weight: 900;
  color: #074b35;
  letter-spacing: 0.5px;
  margin: 4px 0 8px;
  text-transform: uppercase;
}
.tt-heading-desc {
  font-size: 14px;
  color: #475569;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 1. Majors Grid */
.tt-majors-section {
  padding: 35px 0 25px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.tt-majors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tt-major-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}
.tt-major-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(11, 110, 79, 0.12);
  border-color: #0b6e4f;
}
.major-card-header {
  text-align: center;
  margin-bottom: 14px;
  position: relative;
}
.major-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.badge-duoc { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.badge-dieuduong { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.badge-yhct { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-rang { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }
.badge-thammy { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }

.major-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #0b6e4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
  transition: transform 0.25s ease;
}
.tt-major-card:hover .major-icon {
  transform: scale(1.12);
  background: #0b6e4f;
  color: #fff;
}
.major-name {
  font-size: 16px;
  font-weight: 800;
  color: #074b35;
  margin: 0 0 4px;
  line-height: 1.3;
}
.major-code {
  font-size: 11.5px;
  color: #64748b;
}
.major-card-body {
  flex: 1;
}
.major-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 55px;
}
.major-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 12px;
  color: #334155;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}
.major-specs li {
  margin-bottom: 5px;
}
.major-specs i {
  color: #0b6e4f;
  width: 14px;
  margin-right: 4px;
}
.major-highlight {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.4;
}
.major-jobs {
  font-size: 11.5px;
  line-height: 1.4;
  margin-bottom: 15px;
}
.jobs-label {
  display: block;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 2px;
}
.jobs-text {
  color: #475569;
}
.btn-major-apply {
  width: 100%;
  background: #0b6e4f;
  color: #fff;
  border: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-major-apply:hover {
  background: #074b35;
  box-shadow: 0 4px 10px rgba(11, 110, 79, 0.25);
  transform: translateY(-1px);
}

/* 2. Admission Calculator */
.tt-calculator-section {
  padding: 35px 0 25px;
  background: #ffffff;
}
.tt-calculator-box {
  background: #ffffff;
  border: 2px solid #0b6e4f;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(11, 110, 79, 0.08);
  overflow: hidden;
}
.calc-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.calc-title {
  font-size: 22px;
  font-weight: 900;
  color: #074b35;
  margin: 0 0 8px;
}
.calc-subtitle {
  font-size: 13px;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.5;
}
.comb-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comb-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s;
}
.comb-chip input {
  display: none;
}
.comb-chip.active {
  background: #dcfce7;
  border-color: #86efac;
  color: #065f46;
  font-weight: 700;
}
.subject-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.sub-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-input {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #074b35;
  height: 40px;
  padding: 4px;
}

/* Calculator Result Panel */
.result-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.score-display {
  margin-bottom: 12px;
}
.score-number {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: #fef08a;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.score-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a7f3d0;
  margin-top: 4px;
}
.result-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.status-pass {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.status-check {
  background: #f59e0b;
  color: #ffffff;
}
.scholarship-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.quick-reserve-box {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 14px;
}
.reserve-input {
  background: #ffffff;
  border: none;
  font-size: 13px;
  height: 38px;
}
.btn-reserve-pass {
  width: 100%;
  margin-top: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  transition: all 0.2s;
}
.btn-reserve-pass:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* 3. Partner Hospitals */
.tt-hospitals-section {
  padding: 35px 0 30px;
  background: #f8fafc;
}
.tt-hospital-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.tt-hospital-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.tt-hospital-card:hover {
  border-color: #0b6e4f;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(11, 110, 79, 0.08);
}
.h-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.h-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.h-tag {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.tt-hospital-trust-bar {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, #074b35, #0b6e4f);
  color: #fff;
  border-radius: 10px;
  padding: 18px 15px;
  text-align: center;
  flex-wrap: wrap;
  gap: 15px;
}
.trust-stat-item {
  flex: 1;
  min-width: 180px;
}
.trust-stat-item .stat-number {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #fef08a;
  line-height: 1;
  margin-bottom: 4px;
}
.trust-stat-item .stat-lbl {
  font-size: 12px;
  color: #e2e8f0;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .tt-majors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tt-hospital-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .tt-majors-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tt-hospital-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tt-main-title {
    font-size: 20px;
  }
  .tt-calculator-box {
    border-radius: 10px;
  }
}

/* ==========================================================================
   TTMP MODERN UNBREAKABLE FOOTER SYSTEM (CSS GRID 2026)
   Eliminates all column collapse / float reflow bugs across all devices
   ========================================================================== */
.tt-site-footer {
  margin-top: 30px;
  background: #ffffff;
  border-top: 3px solid #0b6e4f;
  padding: 30px 20px 0 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.tt-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-bottom: 25px !important;
  align-items: start !important;
  width: 100% !important;
}

.tt-footer-col {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.tt-footer-col .widget-title,
.tt-footer-col .text-widget {
  color: #074b35 !important;
  border-bottom: 2.5px solid #0b6e4f !important;
  padding-bottom: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Column 1: School contact text */
.tt-footer-col .text-ft p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tt-footer-col .text-ft p:first-child {
  font-weight: 800;
  color: #074b35;
  font-size: 14px;
}
.tt-footer-col .text-ft p i {
  color: #0b6e4f;
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Column 2: Quick Links */
.tt-footer-col .menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tt-footer-col .menu li {
  margin-bottom: 6px !important;
  padding-left: 0 !important;
}
.tt-footer-col .menu li a {
  color: #475569 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}
.tt-footer-col .menu li a:before {
  content: "▪" !important;
  color: #0b6e4f !important;
  font-size: 14px !important;
}
.tt-footer-col .menu li a:hover {
  color: #0b6e4f !important;
  transform: translateX(4px) !important;
  font-weight: 600 !important;
}

/* Column 3: Map Embed */
.tt-footer-col iframe {
  border-radius: 8px;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 220px !important;
}

/* Column 4: Channels & Services */
.tt-footer-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.tt-channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 12.5px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}
.tt-channel-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tt-channel-item.ch-zalo {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534 !important;
}
.tt-channel-item.ch-zalo:hover {
  background: #dcfce7;
  transform: translateX(3px);
}
.tt-channel-item.ch-phone {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af !important;
}
.tt-channel-item.ch-phone:hover {
  background: #dbeafe;
  transform: translateX(3px);
}
.tt-channel-item.ch-dvc {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e !important;
}
.tt-channel-item.ch-dvc:hover {
  background: #fef9c3;
  transform: translateX(3px);
}
.tt-channel-item.ch-qr {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8 !important;
}
.tt-channel-item.ch-qr:hover {
  background: #f3e8ff;
  transform: translateX(3px);
}

.tt-social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tt-social-icons .btn-soc,
.tt-social-icons .btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.2s ease;
}
.tt-social-icons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Modern Copyright Bar */
.tt-modern-copyright {
  background: #074b35 !important;
  color: #e2e8f0 !important;
  padding: 16px 20px !important;
  margin-left: -20px !important;
  margin-right: -20px !important;
  margin-top: 20px !important;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.tt-copy-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.tt-copy-inner .copy-text {
  font-size: 13px !important;
  color: #ffffff !important;
  margin: 0 !important;
}
.tt-copy-inner .copy-stats {
  font-size: 11.5px !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
}
.tt-copy-inner .copy-stats strong {
  color: #86efac;
}

/* Responsive Footer Breakpoints */
@media (max-width: 991px) {
  .tt-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 640px) {
  .tt-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .tt-site-footer {
    padding: 20px 12px 0 12px;
  }
  .tt-modern-copyright {
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding: 14px 10px !important;
  }
}

/* ==========================================================================
   TTMP FULL HOMEPAGE ELEVATION (CLEAN CANVAS 2026)
   Transforms outdated boxed layout into modern digital university portal
   ========================================================================== */
body {
  background-color: #f1f5f9 !important;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#page.container {
  max-width: 1240px !important;
  width: 95% !important;
  background: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  margin: 15px auto 30px auto !important;
  padding: 0 20px !important;
  overflow: hidden;
}

/* TTMP Single-Line Navbar System (Chống rớt dòng 100%) */
.navbar-default {
  background: linear-gradient(135deg, #074b35 0%, #0b6e4f 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(11, 110, 79, 0.2) !important;
  margin-top: 10px !important;
  margin-bottom: 15px !important;
  min-height: 50px !important;
}

.navbar-default .navbar-collapse {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-left: 0 !important;
  padding-right: 12px !important;
}

.navbar-default .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  float: none !important;
  margin: 0 !important;
}

.navbar-default .navbar-nav > li {
  float: none !important;
  display: inline-block !important;
}

.navbar-default .navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2px !important;
  padding: 15px 12px !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fef08a !important;
}

/* Hotline Pill Badge (Trắng / Viền ngọc sang trọng) */
.navbar-default .hotline {
  position: static !important;
  height: auto !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.navbar-default .hotline p {
  background: #ffffff !important;
  color: #074b35 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  margin: 0 !important;
  line-height: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  letter-spacing: 0.3px !important;
  transition: transform 0.2s ease !important;
}

.navbar-default .hotline p:hover {
  transform: scale(1.03) !important;
}

.navbar-default .hotline p .fa {
  color: #dc2626 !important;
  font-size: 14px !important;
  animation: ttmpPhoneRing 2s infinite !important;
}

@keyframes ttmpPhoneRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

/* Sub-menu Dropdowns (Nền xanh ngọc đậm sang trọng) */
.navbar-default ul li > .sub-menu {
  background: #074b35 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  padding: 6px 0 !important;
  min-width: 290px !important;
}

.navbar-default .sub-menu li {
  height: auto !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.navbar-default .sub-menu li:last-child {
  border-bottom: none !important;
}

.navbar-default .sub-menu li a {
  padding: 9px 16px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #f1f5f9 !important;
  text-transform: none !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.navbar-default .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fef08a !important;
  padding-left: 20px !important;
}

.navbar-default ul li > .sub-menu .sub-menu {
  border-radius: 8px !important;
  margin-left: 2px !important;
}

/* Modernize Ticker / Slogan Bar - Desktop only */
@media (min-width: 992px) {
  .slogand {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .slogand p {
    margin: 0;
    color: #0b6e4f;
    font-weight: 600;
    font-size: 13px;
  }
}

/* Modernize Boxtinnoibat (Featured News Sidebar) */
.boxtinnoibat {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}
.boxtinnoibat .title-t1 {
  background: linear-gradient(135deg, #074b35, #0b6e4f) !important;
  padding: 10px 14px !important;
  margin: 0 !important;
}
.boxtinnoibat .title-t1 h4 {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  letter-spacing: 0.5px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.boxtinnoibat .box-bg-xam {
  background: #ffffff !important;
  padding: 10px 12px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
}
.boxtinnoibat #scroller {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.boxtinnoibat #scroller li {
  padding: 8px 0 !important;
  border-bottom: 1px dashed #e2e8f0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.boxtinnoibat #scroller li:last-child {
  border-bottom: none !important;
}
.boxtinnoibat #scroller li a {
  color: #1e293b !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  display: block !important;
}
.boxtinnoibat #scroller li a:hover {
  color: #0b6e4f !important;
}

/* Modernize News Grid (home-list-tin-tuc) */
.home-list-tin-tuc .box-ct-cd {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.home-list-tin-tuc .box-ct-cd:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: #0b6e4f !important;
}
.home-list-tin-tuc .title-ct {
  background: #f8fafc !important;
  border-bottom: 2px solid #0b6e4f !important;
  margin: 0 !important;
  padding: 10px 14px !important;
}
.home-list-tin-tuc .title-ct a {
  color: #074b35 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}
.home-list-tin-tuc .tin1 .img-tin1 img {
  border-radius: 0 !important;
  transition: transform 0.3s ease !important;
}
.home-list-tin-tuc .box-ct-cd:hover .tin1 .img-tin1 img {
  transform: scale(1.04) !important;
}
.home-list-tin-tuc .caption-ct h3 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #1e293b !important;
  margin: 8px 12px 12px 12px !important;
  height: 40px !important;
  overflow: hidden !important;
}
.home-list-tin-tuc .caption-ct h3:hover {
  color: #0b6e4f !important;
}

/* ==========================================================================
   MOBILE FLOATING WIDGETS COEXISTENCE (NO CLASH / NO OVERLAP)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Language Switcher -> Docked to Bottom-Left */
  .vdg-language-switcher {
    bottom: 72px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 99990 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border-radius: 20px !important;
    padding: 3px 8px !important;
  }
  .vdg-language-switcher select {
    font-size: 11px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-width: 110px !important;
  }

  /* 2. Chatbot AI -> Docked to Bottom-Right */
  .ttmp-ai-fab {
    bottom: 72px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 99995 !important;
    box-shadow: 0 6px 18px rgba(7, 75, 53, 0.45) !important;
  }
  .ttmp-ai-fab-icon {
    font-size: 20px !important;
  }
  .ttmp-ai-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
    top: -4px !important;
    right: -4px !important;
  }
  .ttmp-ai-window {
    right: 8px !important;
    bottom: 68px !important;
    width: calc(100vw - 16px) !important;
    height: 470px !important;
    z-index: 99999 !important;
  }

  /* 3. Back to Top -> Placed safely above Chatbot */
  #back_top {
    bottom: 128px !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    border-radius: 8px !important;
    opacity: 0.85 !important;
    z-index: 99980 !important;
  }

  /* 4. Bottom Navigation Dock -> Clean Center Red Button */
  .tt-mobile-dock {
    height: 56px !important;
    z-index: 99998 !important;
  }
  .tt-dock-highlight {
    width: 48px !important;
    height: 48px !important;
    margin-top: -18px !important;
    border: 2.5px solid #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35) !important;
  }
  .tt-dock-highlight .fa {
    font-size: 17px !important;
    margin-bottom: 0px !important;
  }
  .tt-dock-highlight span {
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin-top: 2px !important;
  }
}
