/*
Theme Name: thoitiet.online (font-local mirror)
Description: Bản sao style.css không có Google Fonts; tt-font-performance.php chỉ dùng khi source hash khớp.
Author: thoitiet.online
Version: 1.0
*/

span#ui-id-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Bọc menu */
.menu-item {
    position: relative;
}

/* Nút bấm */
.menu-link {
    display: block;
    padding: .5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

/* Dropdown menu chính */
.region-dropdown {
    display: none;
    position: absolute;
    top: 67%;        /* ngay bên dưới nút */
    right: 0;         /* căn lề phải trùng với nút */
    transform: translateX(0);  /* không đẩy qua phải */

    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 9999;

    display: none;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 20px;
    min-width: 700px;
    text-align: center;
}

/* Hover để mở menu (chỉ thiết bị hover thật) */
@media (hover: hover) and (pointer: fine) {
    .menu-item:hover .region-dropdown {
        display: grid;
    }
}
/* Click/tap để mở (JS thêm class .active) */
.menu-item.active .region-dropdown {
    display: grid;
}

/* Nhóm khu vực */
.region-group {
    list-style: none;
}

/* Tiêu đề khu vực */
.region-title {
    display: block;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Tên tỉnh */
.province-link {
    display: block;
    color: #333;
    padding: 2px 0;
    text-decoration: none;
    font-size: 14px;
}

.province-link:hover {
    color: #007bff;
}

/* CSS cho màn hình điện thoại */
@media (max-width: 768px) {
  .region-dropdown {
    position: fixed;
    top: 118px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 92vw;
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    z-index: 9999;
    display: none;
    padding: 8px;
    min-width: 0;
  }
  .region-dropdown .province-item { list-style: none; }
  .region-dropdown .province-link {
    display: block;
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    color: #1f3354;
    line-height: 1.3;
  }
  .region-dropdown .province-link:hover,
  .region-dropdown .province-link:active {
    background: #eef4ff;
    color: #1a73e8;
  }

  .region-content {
    max-height: 100%;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .menu-item.active .region-dropdown {
    display: grid;
  }
  
.weather-item {
    flex: 0 0 135px !important;
    background:  #ffffffbf!important;
    text-align: center;
    color: #000000;
    border-right: 1px solid #228caf;
    padding: 10px 5px;
    border-radius: 20px;
}

  .custom-weather:nth-child(n+4) {
    display: none;
  }

  .col-xl-3.col-md-3.mb-2.card-post {
    width: 100% !important;
}


}

section.news-popular {
    margin-left: .75rem;
    margin-right: .75rem;
}

.child-page-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.child-page-menu li a {
    padding: 6px 12px;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.child-page-menu li a.active {
    background-color: #007bff;
    color: white;
}
.ui-autocomplete {
   z-index: 9999 !important;
}


.rank-math-breadcrumb p {
    margin-bottom: 0 !important;
}

h1.card-title.bold {
    font-size: 20px;
    font-weight: bold;
}
