html {
  font-size: 14px; /* default */
}

body {
  /* Các style cho body sẽ được lấy từ file /assets/css/style.css */
  /* Bạn có thể thêm các style ghi đè toàn cục ở đây nếu cần */
  font-family: Arial, Helvetica, sans-serif;
}

.badge-text {
    display: block;              /* đổi từ inline-block sang block để full-width */
    width: 100%;                 /* chiếm toàn bộ chiều ngang */
    text-align: center;          /* canh giữa text bên trong */
    color: white;
    background-color: var(--tanspot-base);
    padding: 0.5rem 1rem;
    border-radius: 9999px;       /* bo góc */
    font-size: 1.4rem;           /* ~h3 */
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 1rem;
}


/* ===============================
   CSS CHO TEXT NÓI CHUNG
   =============================== */

.text-highlight {
  color: var(--tanspot-base);
}

.text-bold {
  font-weight: 600;
}

/* ===============================
   CSS CHO BẢNG BÁO GIÁ - TOÀN CỤC
   =============================== */

.tbl-bao-gia {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px; /* Tăng bo góc lên cho đẹp */
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Thêm viền ngoài cho chắc chắn */
}

.tbl-bao-gia th,
.tbl-bao-gia td {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

/* Header đỏ */
.tbl-bao-gia thead th {
  background: var(--bs-danger);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2); /* viền trắng nhẹ */
  border-top: none; /* Bỏ viền trên cùng của header */
}

/* Viền dọc giữa các header */
.tbl-bao-gia thead th + th {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Viền ngang giữa các hàng header */
.tbl-bao-gia thead tr + tr th {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Viền chia dọc trong body */
.tbl-bao-gia tbody td + td {
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hàng ghi chú đặc biệt */
.tbl-bao-gia .ghi-chu-dac-biet td {
  background-color: #fff8f8;
  font-size: 0.9rem;
  color: #222;
  font-weight: 500;
  text-align: center;
}

/* Bỏ viền trên của hàng đầu tiên trong body */
.tbl-bao-gia tbody tr:first-child td {
    border-top: none;
}


/* ===============================
   CSS CHO BACKGROUND NÓI CHUNG
   =============================== */

/* Lớp tiện ích cho màu nền tanspot-base */
.bg-tanspot-base {
  background-color: var(--tanspot-base);
}

/* Lớp tiện ích cho bo 4 góc */
.bg-rounded-all-corners {
  border-radius: 12px; /* Bo 4 góc */
}

.bg-transparent {
  background-color: transparent !important;
}

/* ===============================
   CSS CHO NÚT BẤM CHUNG (THM-BTN)
   =============================== */
.thm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-height: 50px;
  
  background-color: var(--tanspot-base);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  
  border: none;
  border-radius: 50rem; /* Bo tròn 4 cạnh */
  
  transition: all 0.3s ease;
}

.thm-btn:hover {
  color: white;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7); /* Hiệu ứng viền sáng lên */
}

/* ===============================
   CSS CHO CULTURE SECTION
   =============================== */
.culture-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  transition: all 0.5s ease-out;
  cursor: pointer;
}

.culture-item:not(.non-hoverable):hover {
  background-image: linear-gradient(to top, var(--tanspot-base), rgba(210, 4, 45, 0.8));
}

.culture-item .culture-item__title {
  color: #212529; /* text-gray-800 */
  transition: color 0.3s ease-in-out;
}

.culture-item:hover .culture-item__title {
  color: white;
}

.culture-item .culture-item__description {
  color: #495057; /* text-gray-700 */
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.5s ease-out;
  max-width: 250px;
}

.culture-item:hover .culture-item__description {
  opacity: 1;
  transform: translateY(0);
  color: white;
}

/* ===============================
   CSS CHO VAN CHUYEN HANG GHEP
   =============================== */

.hang_ghep__bang_quy_uoc_block {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

.hang_ghep__bang_quy_uoc_block ul {
    list-style: none;
    padding-left: 0;
}

.hang_ghep__bang_quy_uoc_block li {
    margin-bottom: 0.5rem;
}

.hang_ghep__danh_sach_kho_chinh_block {
    margin-top: 1.5rem;
    background-color: #fffbe6; /* light yellow */
    border-radius: 8px;
    border-left: 5px solid #fcc419; /* darker yellow */
    padding: 2rem;
}

.hang_ghep__danh_sach_kho_chinh_child {
    padding: 1.5rem 0;
    border-bottom: 1px solid #fdeec9; /* a light border to separate */
}

.hang_ghep__danh_sach_kho_chinh_child:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.hang_ghep__danh_sach_kho_chinh_child ul {
    list-style-position: inside;
}


/* ===============================
   CSS CHO BAO GIA
   =============================== */

.baoGia_itemContainer {
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  display: flex;
  flex-direction: column;
}

.baoGia_startingPlace {
  font-weight: bold;
  background-color: var(--tanspot-base);
  color: white;
  padding: 0.75rem;
  border-radius: 6px 6px 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem; /* Adjust to align with padding */
  text-transform: uppercase;
}

.baoGia_headerRow,
.baoGia_routeItem {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.baoGia_headerRow {
  font-weight: bold;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 0.5rem;
  color: #555;
}

.baoGia_routeItem {
  border-bottom: 1px solid #f0f0f0;
}

.baoGia_routeItem:last-child {
  border-bottom: none;
}

.baoGia_routeInfo {
  flex: 2;
  text-align: left;
}

.baoGia_priceAndType {
  flex: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: right;
  gap: 1rem; /* Thêm khoảng cách giữa 2 cột */
}

.baoGia_price {
  font-weight: 600;
  color: var(--tanspot-base);
}

.baoGia_priceAndType > div:first-child {
  text-align: left; /* Căn trái cho cột giá cước */
}
.baoGia_priceAndType > div:last-child {
  text-align: right; /* Căn phải cho cột hình thức chạy */
}


.baoGia_gridContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; /* 24px */
}

/* For mobile */
@media (max-width: 768px) {
  .baoGia_gridContainer {
    grid-template-columns: 1fr;
  }
}

.baoGia_gridItem {
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* ===============================
   CSS CHO HEADER
   =============================== */

.page-header {
  height: 50vh;
  max-height: 600px;
  border-radius: 0;
}

@media (max-width: 992px) {
  .page-header {
    height: 35vh;
  }
}

@media (max-width: 576px) {
  .page-header {
    height: 30vh;
  }
}

/* ===============================
   CSS CHO MAIN MENU LINK
   =============================== */
.main-menu__link {
  font-weight: 700 !important; /* Sử dụng !important để ghi đè các style mặc định của template */
}
