html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Trang preview: màu nền giống FAQ section */
body.layout-body.page-preview {
  background-color: rgb(245, 245, 247);
}

/* Global typography: use same font as widget banner (Unbeatable).
   Bootstrap sets body font-family, so we must override it here for the whole public site. */
body,
.layout-body,
button,
input,
optgroup,
select,
textarea {
  font-family: "Unbeatable","Arial","Helvetica Neue","Helvetica",sans-serif;
}

/* Match widget banner typography (src/Uop.CMS.Widgets) */
.carousel-root[data-effect="banner"] {
  font-family: "Unbeatable","Arial","Helvetica Neue","Helvetica",sans-serif;
}

/* Show drag cursor over the whole banner (including title/subtitle) */
.carousel-root[data-effect="banner"] .swiper-container,
.carousel-root[data-effect="banner"] .swiper-wrapper,
.carousel-root[data-effect="banner"] .swiper-slide,
.carousel-root[data-effect="banner"] .banner-content,
.carousel-root[data-effect="banner"] .banner-content * {
  cursor: grab;
}
.carousel-root[data-effect="banner"] .swiper-container:active,
.carousel-root[data-effect="banner"] .swiper-wrapper:active,
.carousel-root[data-effect="banner"] .swiper-slide:active,
.carousel-root[data-effect="banner"] .banner-content:active,
.carousel-root[data-effect="banner"] .banner-content:active * {
  cursor: grabbing;
}

/* Match widget banner centering on mobile (Bootstrap can offset widths/margins) */
@media (max-width: 767px) {
  .carousel-root[data-effect="banner"] .placeholder {
    width: 100% !important;
  }

  .carousel-root[data-effect="banner"] .text-component {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .carousel-root[data-effect="banner"] .cta-button-root {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Prevent Bootstrap's `.container` rules from altering widget banner layout */
.carousel-root[data-effect="banner"] .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Ensure navbar stays above hero/content overlays and remains clickable */
header .navbar {
  position: relative;
  z-index: 1030;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===========================
   Footer Styles
   =========================== */

.footer {
  margin-top: auto;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff !important;
}

.footer .card {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.footer .card:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.footer ul {
  padding-left: 0;
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Footer responsive adjustments */
@media (max-width: 767px) {
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  .footer .col-md-6 {
    text-align: center !important;
  }
  
  .footer .text-md-end {
    margin-top: 1rem;
  }
  
  .footer .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem;
  }
}

/* Social icons hover effect */
.footer .fab, .footer .fas {
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer a:hover .fab, 
.footer a:hover .fas {
  transform: scale(1.1);
}

/* App store icons */
.footer img {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer a:hover img {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Footer column structure */
.footer .footer-column {
  min-height: 60px;
}

.footer .footer-column-title {
  color: #fff;
  font-size: 1rem;
}

.footer .footer-link,
.footer .footer-column-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .footer-link:hover,
.footer .footer-column-links a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Bottom component */
.footer .footer-copyright {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer .footer-bottom-actions {
  text-align: left;
}

@media (min-width: 768px) {
  .footer .footer-bottom-actions {
    text-align: right;
  }
}

.footer .footer-actions-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.footer .footer-bottom-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer .footer-bottom-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

.footer .footer-bottom-link i {
  margin-right: 0.25rem;
}

.footer .footer-link-separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
  pointer-events: none;
  user-select: none;
}

/* Public site footer (ViewComponents/Footer/Default.cshtml) — marketing-style layout */
.cms-public-footer {
  --cms-footer-main-bg: #e5e5e5;
  --cms-footer-bottom-bg: #4d4d4d;
  --cms-footer-accent: #ff7900;
  --cms-footer-text: #1a1a1a;
  --cms-footer-muted: #4a4a4a;
  margin-top: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cms-public-footer__btt-bar {
  position: relative;
  z-index: 2;
}

.cms-public-footer__btt-bar .container {
  min-height: 0;
}

.cms-public-footer__btt {
  position: absolute;
  right: calc(var(--bs-gutter-x, 0.75rem) * 0.5 + 12px);
  top: -18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: var(--cms-footer-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cms-public-footer__btt:hover {
  background-color: #ff9330;
  color: #fff;
  transform: translateY(-1px);
}

.cms-public-footer__main {
  background: var(--cms-footer-main-bg);
  color: var(--cms-footer-text);
}

.cms-public-footer__grid {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(var(--cms-footer-cols, 1), minmax(0, 1fr));
}

@media (max-width: 767.98px) {
  .cms-public-footer__grid {
    grid-template-columns: 1fr;
  }

  .cms-public-footer__btt {
    right: 12px;
    top: -14px;
    width: 36px;
    height: 36px;
  }
}

.cms-public-footer__heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.875rem;
  color: var(--cms-footer-text);
}

.cms-public-footer__heading-link {
  color: inherit;
  text-decoration: none;
}

.cms-public-footer__heading-link:hover {
  color: inherit;
  text-decoration: underline;
}

.cms-public-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-public-footer__link-list li {
  margin-bottom: 0.5rem;
}

.cms-public-footer__link {
  color: var(--cms-footer-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.cms-public-footer__link:hover {
  color: var(--cms-footer-text);
  text-decoration: underline;
}

.cms-public-footer__appsocial > .cms-public-footer__heading:not(:first-child) {
  margin-top: 1.35rem;
}

.cms-public-footer__icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.cms-public-footer__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--cms-footer-text);
  font-size: 1.35rem;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cms-public-footer__icon-link:hover {
  color: var(--cms-footer-text);
  opacity: 0.85;
  transform: translateY(-1px);
}

.cms-public-footer__icon-img {
  max-width: 2rem;
  max-height: 2rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cms-public-footer__card-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.5rem;
}

.cms-public-footer__card-desc {
  font-size: 0.85rem;
  color: var(--cms-footer-muted);
  margin: 0 0 0.5rem;
  white-space: pre-line;
}

.cms-public-footer__card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cms-footer-accent);
  text-decoration: none;
}

.cms-public-footer__card-cta:hover {
  text-decoration: underline;
  color: var(--cms-footer-accent);
}

.cms-public-footer__bottom {
  background: var(--cms-footer-bottom-bg);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.45;
}

.cms-public-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.cms-public-footer__bottom-left {
  flex: 1 1 280px;
  min-width: 0;
}

.cms-public-footer__bottom-right {
  flex: 0 1 auto;
  text-align: right;
}

.cms-public-footer__bottom-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cms-public-footer__bottom-link:hover {
  color: #fff;
  opacity: 0.92;
}

.cms-public-footer__bar-sep {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0.35rem;
  user-select: none;
}

.cms-public-footer__copyright {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 767.98px) {
  .cms-public-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cms-public-footer__bottom-right {
    text-align: left;
  }
}

.cms-public-footer--minimal .cms-public-footer__bottom-right {
  text-align: center;
  flex: 1 1 100%;
}

.cms-public-footer--minimal .cms-public-footer__bottom-inner {
  justify-content: center;
}

/* ─── Search Popup — centered modal (U Mobile pattern) ─────────────── */

.search-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}
.search-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

/* Dialog box */
.search-popup-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 780px;
  margin: 80px 24px 40px;
  padding: 32px 36px 36px;
}

/* Close X — top right */
.search-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
}
.search-popup-close:hover { color: #1a1a1a; }

/* Search form row */
.search-popup-form {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

/* Input wrapper — matches design .input-group */
.search-popup-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border: 1px solid #d1d1d1;
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.search-popup-input-wrap.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.search-popup-input-icon {
  width: 18px;
  height: 18px;
  margin-left: 16px;
  margin-right: 12px;
  flex-shrink: 0;
  color: #666;
  stroke-width: 2px;
}
.search-popup-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
  padding: 12px 40px 12px 0;
}
.search-popup-input::placeholder { color: #9ca3af; }
.search-popup-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.search-popup-clear:hover { color: #333; }

/* Submit button — matches design .searchBtn */
.search-popup-submit {
  flex-shrink: 0;
  background-color: #ff6a28;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.2s;
}
.search-popup-submit:hover:not(:disabled) { opacity: 0.9; }
.search-popup-submit:disabled { background-color: #ffd2bc; cursor: not-allowed; }

/* Mobile cancel */
.search-popup-cancel-mobile { display: none; }

@media (max-width: 767px) {
  .search-popup-dialog { margin: 16px 12px; padding: 24px 20px; border-radius: 12px; }
  .search-popup-submit { display: none; }
  .search-popup-cancel-mobile {
    display: inline-block;
    background: none;
    border: none;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    padding: 8px 0;
  }
}

/* Section labels — uppercase gray */
.search-popup-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin: 0 0 12px;
}

/* Suggest label in dropdown — matches design .suggest-label */
.search-popup-suggest-label {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #4D4D4D;
  margin: 0;
}

/* Sections */
.search-popup-section { margin-bottom: 28px; }
.search-popup-section:last-child { margin-bottom: 0; }

/* Keyword tags — orange bordered pills */
.search-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-popup-tag {
  display: inline-block;
  padding: 7px 18px;
  background: #fff;
  border: 1.5px solid #ff6a00;
  border-radius: 24px;
  color: #ff6a00;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.search-popup-tag:hover {
  background: #fff3e6;
  color: #e65e00;
}

/* Popular carousel */
.search-popup-popular {
  position: relative;
}
.search-popup-popular-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.search-popup-popular-track::-webkit-scrollbar { display: none; }

/* Tile cards */
.search-popup-tile {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}
.search-popup-tile:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.search-popup-tile__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}
.search-popup-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-popup-tile__body { padding: 14px; }
.search-popup-tile__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-popup-tile__desc {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Arrow button — orange circle */
.search-popup-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: background 0.2s;
}
.search-popup-arrow:hover { background: #e65e00; }
@media (max-width: 767px) {
  .search-popup-arrow { display: none; }
  .search-popup-tile { flex: 0 0 200px; }
}

/* Suggestions — matches design .suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  z-index: 1000;
  background: #fff;
  border: 1px solid #d1d1d1;
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.search-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
  transition: background-color 0.15s;
}
.search-suggestion-item:hover { background-color: #f9f9f9; color: #333; }
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item__icon { flex-shrink: 0; color: #666; width: 18px; height: 18px; stroke-width: 2px; }

body.search-popup-open { overflow: hidden; }