/*
Theme Name: iTenki.org
Description: Website dự báo thời tiết online
Author: iTenki.org
Version: 1.0
*/

/* Import font Be Vietnam Pro */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@100;400;700&display=swap');

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 */
.menu-item:hover .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: absolute;
    left: 0;
    right: 0;
    width: 90vw;
    grid-template-columns: repeat(3, minmax(50px, 1fr));
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    transform: translate(-12%);
    min-width: 0;
    top: 45px !important;
  }

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

  .menu-item.active .region-dropdown {
    display: block;
  }
  
.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;
}



@media (min-width: 576px) {
    .justify-content-sm-between {
        justify-content: space-between !important;
        align-items: center;
    }
}
html {
    margin-top: 0;
}


    .live-container {
      display: inline-flex;
      align-items: center;
      background-color: #d0e8ff;
      padding: 6px 12px;
      border-radius: 20px;
      max-height: max-content;
      gap: 5px;
      margin-right: 10px;
      color: #007bff;
    }

    .live-dot {
      position: relative;
      width: 12px;
      height: 12px;
      background-color: #4CAF50;
      border-radius: 50%;
      margin-right: 8px;
    }

    .live-dot::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgb(35 177 41);
      transform: translate(-50%, -50%) scale(1);
      animation: pulse 1.5s ease-out infinite;
    }

    @keyframes pulse {
      0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
      }
      100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
      }
    }