/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.18.5
Requires at least:    5.9
Requires PHP:         5.6
WC requires at least: 4.7
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/

/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
/*************** ADD CUSTOM CSS HERE.   ***************/

.post-item > .col-inner {
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px 0 #ccc;
  -moz-box-shadow: 0 1px 3px 0 #ccc;
  -webkit-box-shadow: 0 1px 3px 0 #ccc;
}

.single .article-inner {
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px 0 #ccc;
  -moz-box-shadow: 0 1px 3px 0 #ccc;
  -webkit-box-shadow: 0 1px 3px 0 #ccc;
  padding: 40px;
}

.post-sidebar .widget {
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px 0 #ccc;
  -moz-box-shadow: 0 1px 3px 0 #ccc;
  -webkit-box-shadow: 0 1px 3px 0 #ccc;
}

.post-sidebar ul {
  padding: 0 10px;
}

.post_comments {
  display: none;
}

.badge-inner.bg-fill {
  border-radius: 5px;
}

.post-sidebar .widget-title {
  border-radius: 5px 5px 0 0;
}

.post-item .box-text {
  padding: 10px;
}

.post-item .from_the_blog_comments {
  display: none;
}

.post-item img {
  border-radius: 5px 5px 0 0;
}

.section-lottery h1 {
  background: #bb0000;
  color: #fff;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 5px 5px 0 0;
  text-align: center;
}

.section-lottery ul {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  margin-left: 20px;
}

.section-lottery .one-column ul {
  columns: 1;
  -webkit-columns: 1;
  -moz-columns: 1;
  margin-left: 20px;
}

.section-lottery ul a {
  color: black;
}

.section-lottery .button-title {
  border-radius: 5px 5px 0 0;
}

span.widget-title {
  background-color: #cc0000;
  color: white;
  text-align: center;
  display: block;
  padding: 10px 0;
  margin-bottom: 10px;
  font-size: 15px;
}

.widget .current-cat > a {
  color: #ffffff;
}

b,
strong {
  font-weight: bold;
}

.post-template-default .entry-meta {
  padding-left: 0;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  padding: 15px 0;
}

.entry-divider {
  display: none;
}

.entry-content {
  padding-bottom: 0em;
  padding-top: 0em;
}

.custom-category-info a {
  font-weight: bold;
  color: white;
  background-color: #ff6e0d;
  padding: 5px;
  margin-right: 8px;
}

.single .entry-author {
  padding: 15px 0;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 20px;
}

/*related post*/
.pt-related {
  margin-top: 40px;
}
.pt-related-content-item {
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: 5px;
  grid-column-gap: 5px;
  display: grid;
  position: relative;
  margin-top: 15px;
  margin-left: -12px;
  margin-right: -12px;
}

.pt-related .image-cover {
  padding-top: 62.5% !important;
}

.pt-related .box-text-inner {
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
}

.pt-related-title {
  text-transform: none !important;
  padding-bottom: 15px !important;
  display: block;
  position: relative;
}

.pt-related-title span {
  margin-left: 18px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: normal;
}

.pt-related-title:before {
  background-color: #ff464b;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 10px;
  left: 0px;
  position: absolute;
  width: 10px;
  top: 10px;
}

.pt-related .post-title {
  font-size: 16px;
}

.custom-category-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.custom-category-item {
  display: inline-block;
  margin-right: 10px;
}

.custom-category-link {
  text-decoration: none;
  color: #0073aa;
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.custom-category-link:hover {
  background-color: #005177;
  color: #ffffff;
}

.no-category {
  color: #ff0000;
  font-style: italic;
}

.is-divider {
  display: none;
}

#current-datetime {
  font-size: 15px;
}

.box-dan-de {
  background-color: #ffeca0;
}

.box-title {
  color: #cc0000;
  text-shadow: none;
}

#box_kqxs_minhngoc > div:nth-child(1) table td:nth-child(2) {
  display: none;
}

#box_kqxs_minhngoc > div:nth-child(1) table {
  padding: 15px 15px 0;
}

#box_kqxs_minhngoc .content td {
  border: solid 1px #dddfe2;
  padding: 10px 10px;
  color: black;
}

#box_kqxs_minhngoc .content tr:nth-of-type(2n) {
  background-color: #f0f8ff;
}

#box_kqxs_minhngoc .content td:nth-child(2) {
  text-align: center;
  font-weight: bold;
  font-size: 20px !important;
  color: black;
}

#box_kqxs_minhngoc .content tr:nth-child(2) td:nth-child(2) {
  font-size: 30px !important;
  font-weight: bolder;
  color: #e91e63 !important;
}

#box_kqxs_minhngoc .content td:nth-child(2):hover {
  background-color: #fff4c3;
}

.bkm {
  background: #ffeca0 !important;
  text-align: center;
  padding: 10px 0;
}

.bkm .title {
  color: black !important;
  font-weight: bold;
  font-size: 20px !important;
}

#box_kqxs_minhngoc select {
  border-radius: 5px;
}
.row-box {
  box-shadow: 0 1px 3px 0 #ccc;
  -moz-box-shadow: 0 1px 3px 0 #ccc;
  -webkit-box-shadow: 0 1px 3px 0 #ccc;
  margin: 0 -5px !important;
  border-radius: 5px;
}

.row-box > .col {
  padding: 0px;
  border-radius: 5px;
  background-color: white;
}

.row-box .section-title-container {
  background: #bb0000;
  color: #fff;
  margin-bottom: 10px;
  border-radius: 5px 5px 0 0;
}

.row-box .section-title-normal {
  border: none;
}

.row-box .section-title-normal span {
  border: none;
  color: white;
  font-size: 14px;
  padding: 8px 10px 0;
}
.row-box .ux-menu a span {
  padding-left: 5px;
}
.row-box .ux-menu a:before {
  content: "\f105";
  speak: none !important;
  display: inline-block;
  font-display: block;
  font-family: fl-icons !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: 400 !important;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  position: relative;
  text-transform: none !important;
  font-size: 14px;
}

.row-box .ux-menu {
  padding: 0 10px;
}

.single .post-sidebar,
.archive .post-sidebar,
.search .post-sidebar {
  border: none !important;
  padding-left: 0;
}

.taxonomy-description ul,
.entry-content ul {
  margin-left: 15px;
}

.recent-blog-posts a {
  color: #333;
  font-size: 14.5px;
}

.home .col-3 .post-title a {
  font-weight: normal;
  font-size: 14.5px;
}

.home .col-3 .box-text {
  padding: 0 10px;
}

.home .col-3 .row.large-columns-1 {
  padding: 0 15px 10px;
}

.home .col-3 .row.large-columns-1 > .col {
  padding: 5px 0;
}

.section-lottery {
  padding: 15px 0 !important;
}

.from_the_blog_excerpt {
  min-height: 48px;
}
@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/
  .single .post-sidebar,
  .archive .post-sidebar,
  .search .post-sidebar {
    padding-left: 15px;
  }
  .from_the_blog_excerpt {
    min-height: inherit;
  }
  .home .col-2 {
    order: -1;
  }

  .single .article-inner {
    padding: 15px;
  }
}

.troy-lottery-container {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

/* Tiêu đề tỉnh */
.province-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #cc0000;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.lottery-north-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.lottery-button {
  display: block;
  margin: 20px auto;
  padding: 2px 20px;
  font-size: 14px;
  background-color: #cc0000;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  height: 40px;
}

.lottery-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.lottery-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  table-layout: fixed;
}

.lottery-table td,
.lottery-table th {
  border: solid 1px #dddfe2;
  padding: 5px 5px !important;
  color: black;
  text-transform: inherit;
  letter-spacing: normal;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
}

.lottery-table th {
  background-color: #f5f5f5;
}

.lottery-table tbody th {
  width: 60px;
}

.lottery-table tr:nth-of-type(2n) {
  background-color: #f0f8ff;
}

.lottery-table td {
  text-align: center;
  font-weight: bold;
  font-size: 20px !important;
  color: black;
}

.lottery-results #special,
.lottery-results #eighth,
td[data-prize="special"],
td[data-prize="eighth"] {
  font-size: 26px !important;
  font-weight: bolder;
  color: #f44336 !important;
}

.lottery-table td:nth-child(2):hover {
  background-color: #fff4c3;
}

.display-options {
  margin: 0 !important;
  text-align: center;
  display: flex;
  background: #f1f1f1;
  padding: 12px 0 0;
}

.display-options label {
  margin: 0 15px;
  cursor: pointer;
}

.display-options input[type="radio"] {
  margin-right: 5px;
}

/* Styling cho grid số */
.number-compare {
  margin: 0;
}

.number-grid {
  display: flex;
  justify-content: center;
}

.number-cell {
  flex: 0 0 10%;
  height: 45px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.number-cell:hover {
  background-color: #f0f0f0;
}

.number-cell.highlighted {
  background-color: #ffeb3b;
  border-color: #fdd835;
}

.loto-section .title,
.head-tail-section .title {
  background-color: #fff0c1;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
}

/* Styling cho số được highlight */
.lottery-table td .highlight {
  background-color: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
}

.lottery-table .number .highlight {
  background-color: #ffeb3b;
  border-radius: 2px;
  padding: 0 2px;
}

.lottery-table .number {
  display: inline-block;
  padding: 2px 5px;
  margin: 0 3px;
  border-radius: 3px;
}

/* Styles cho bảng lô tô */
.loto-section {
  margin: 0px 0;
}

.loto-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  border-radius: 4px;
}

.loto-number {
  background: white;
  padding: 5px 10px;
  border: 1px solid #ddd;
  width: 10%;
  text-align: center;
  font-weight: bold;
}

/* Số đặc biệt màu đỏ */
.loto-number.special-number {
  color: #f44336;
  font-weight: bolder;
}

/* Số đặc biệt trong bảng đầu-đuôi */
.head-tail-table span.special-number {
  color: #f44336;
  font-weight: bolder;
}

/* Styles cho bảng đầu - đuôi */
.head-tail-section {
  margin: 30px 0;
}

.head-tail-section > div:nth-child(1) {
  font-weight: bold;
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.head-tail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  table-layout: fixed;
}

.head-tail-table th:first-child {
  width: 60px;
  padding: 8px !important;
}
.head-tail-table th,
.head-tail-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #333;
}

.head-tail-table thead th {
  background-color: #fff0c1;
  font-weight: bold;
  text-transform: inherit;
}

/* Styles cho bảng xổ số miền Trung */
.lottery-central-container .lottery-table {
  width: 100%;
  margin-bottom: 20px;
}

.lottery-central-container .lottery-table th:first-child {
  width: 100px;
}

.lottery-central-container .lottery-table td {
  text-align: center;
}

.lottery-central-container .number {
  display: inline-block;
  padding: 2px 5px;
  margin: 2px;
  border-radius: 3px;
}

/* Styles cho bảng phân tích đầu số */
.head-analysis-section {
  margin-top: 30px;
}

.head-analysis-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.head-analysis-table th,
.head-analysis-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  color: black;
}

.head-analysis-table th {
  background-color: #fff0c1;
  font-weight: bold;
}

/* Highlight styles */
.highlight {
  background-color: #ffeb3b;
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== SELECT VÀ BUTTON CÙNG HÀNG ===== */
.troy-lottery-menu {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.troy-lottery-select {
  flex: 1;
  font-size: 16px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  margin-bottom: 0;
}

.troy-lottery-select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

.troy-lottery-select option {
  padding: 10px;
}

/* Button trong menu (cùng hàng với select) */
.troy-lottery-menu .lottery-button {
  margin: 0;
  white-space: nowrap;
  height: 40px;
}

/* Styles cho tab panel ngày trong tuần */
.tab-panel {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 20px 0;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-panel li {
  margin: 0 !important;
}

.tab-panel li a {
  display: block;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: all 0.3s ease;
}

.tab-panel li a:hover {
  background: #f5f5f5;
  border-color: #cc0000;
}

.tab-panel li.active a {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}

/* ===== STYLES CHO BẢNG NHIỀU TỈNH ===== */
.lottery-multi-table {
  width: 100%;
  border-collapse: collapse;
}

.lottery-multi-table th {
  background-color: #f5f5f5;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
}

.lottery-multi-table thead th {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 5px !important;
}

.lottery-multi-table th:first-child {
  width: 60px;
  font-size: 16px !important;
}

.lottery-multi-table .province-cell {
  text-align: center;
  vertical-align: middle;
}

#fourth .number-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  justify-content: center;
}

#fourth .number-wrap .number {
  width: calc(25% - 15px); /* 4 số hàng đầu */
  text-align: center;
}

#fourth .number-wrap .number:nth-child(n + 5) {
  width: calc(33.33% - 15px); /* 3 số kế xuống hàng dưới */
}

#third .number-wrap,
#fifth .number-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  justify-content: center;
}

#third .number-wrap .number,
#fifth .number-wrap .number {
  width: calc(33% - 15px); /* 4 số hàng đầu */
  text-align: center;
}

#third .number-wrap .number:nth-child(n + 5),
#fifth .number-wrap .number:nth-child(n + 5) {
  width: calc(33.33% - 15px); /* 3 số kế xuống hàng dưới */
}

.lottery-multi-table .province-cell .number {
  display: block;
  margin: 2px 0;
}

.lottery-multi-province-container .head-tail-table td {
  text-align: left;
  padding-left: 10px;
}

.list-unstyle {
  list-style: none outside none;
  margin: 0 0 0 0 !important;
  padding: 0;
  columns: 1 !important;
  -webkit-columns: 1 !important;
  border: 1px solid #eee;
}

.list-dau-db li {
  padding: 8px 5px;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  float: left;
  text-align: center;
  width: 20%;
  margin: 0 !important;
  font-weight: bold;
}

.title-bor {
  background: #b00;
  color: white;
  text-align: center;
  font-size: 16px;
  padding: 5px 0;
  margin: 5px 0 0;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .lottery-table tbody th {
    width: 40px;
  }

  .troy-lottery-container {
    padding: 15px;
  }

  .province-title {
    font-size: 20px;
  }

  .lottery-table td,
  .lottery-table th {
    padding: 5px !important;
    font-size: 13px;
  }

  .number-cell {
    font-size: 16px;
  }

  .loto-number {
    width: 20%;
  }

  .lottery-multi-table {
    font-size: 12px;
  }

  .lottery-multi-table th:first-child {
    width: 40px;
  }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .troy-lottery-container {
    padding: 15px;
  }

  .province-title {
    font-size: 20px;
  }

  .lottery-table td,
  .lottery-table th {
    padding: 5px !important;
    font-size: 13px;
  }

  .number-cell {
    font-size: 16px;
  }

  .loto-number {
    width: 20%;
  }

  .lottery-multi-table {
    font-size: 12px;
  }

  .lottery-multi-table th:first-child {
    width: 40px;
  }

  .lottery-table td {
    font-size: 18px;
  }
}

.loader {
  width: 15px;
  height: 15px;
  border: 2px solid #22a627;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
