@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Black Italic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Bold Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Heavy Italic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Light Italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Medium Italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy SemiBold Italic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Thin Italic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy XBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy XBold Italic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Xlight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/wp-content/themes/base-theme-wp/fonts/SVN-Gilroy Xlight Italic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}

* {
  font-family: 'Gilroy', sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  color: rgba(10, 10, 10, 0.85);
  font-size: 1rem;
  line-height: 1.5;
}

body:not(.defaults) {
  /* background: #fff; */
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

p,
li,
blockquote,
q,
pre,
code,
kbd,
samp {
  color: rgba(10, 10, 10, 0.85);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: normal;
  font-weight: 400;
}

pre,
code,
kbd,
samp {
  font-size: 0.9rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  color: #0a0a0a;
  font-weight: 600;
  line-height: 1.4em;
  letter-spacing: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 10px;
  margin-top: 10px;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #0059a8;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-size: inherit;
  line-height: inherit;
}

h1 {
  font-size: 28px;
  line-height: 1.3em;
}

h2 {
  font-size: 24px;
  line-height: 1.4em;
}

h2 a {
  color: #0a0a0a;
}

h3 {
  font-size: 20px;
  line-height: 1.4em;
}

h4 {
  font-size: 18px;
  line-height: 1.6em;
}

h5 {
  font-size: 17px;
  line-height: 1.75em;
}

h6 {
  font-size: 16px;
  line-height: 1.75em;
}

p {
  margin: 0;
  padding: 5px 0 10px;
}

blockquote,
q {
  quotes: "" "";
  padding: 5px 20px 5px 20px;
  margin: 5px 0 15px;
  border-left: 3px solid #0059a8;
  font-style: italic;
  background-color: ghostwhite;
}

body {
  background-color: #f6f6f6;
}

figure {
  margin-left: auto;
  margin-right: auto;
}

.header-desktop {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
}

.header-mobile {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 2px solid #CBA052;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-desktop .header__logo-img {
  height: 60px;
}

.header-desktop .header__nav-item {
  list-style-type: none;
  position: relative;
  transition: 0.2s;
  height: 100%;
}

.header-desktop .header__nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: transparent;
  transition: 0.2s;
}

.header-desktop .header__nav-item:hover,
.header-desktop .header__nav-item.current-menu-item {
  background-color: transparent;
}

.header-desktop .header__nav-item:hover::after,
.header-desktop .header__nav-item.current-menu-item::after {
  background-color: #B59A6D;
}

.header-desktop .header__nav-item a {
  color: #0A1C3A;
  text-decoration: none;
  line-height: 45px;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 100%;
}

.header-desktop .sub-menu {
  position: absolute;
  width: 220px;
  top: 100%;
  left: 0;
  z-index: 10;
  display: none;
  cursor: pointer;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid #eaeaea;
  border-top: 2px solid #B59A6D;
}

.header-desktop .sub-menu li {
  padding: 0;
  background-color: #fff;
  transition: 0.2s;
}

.header-desktop .sub-menu li a {
  font-size: 14px;
  padding: 10px 15px;
  line-height: 1.5;
  color: #0A1C3A;
  font-weight: 500;
  height: auto;
  text-transform: none;
}

.header-desktop .sub-menu li:hover {
  background-color: #f8f8f9;
}

.header-desktop .sub-menu li:hover > a {
  color: #B59A6D;
}

.header-desktop .sub-menu li:not(:last-child) {
  border-bottom: 1px solid #eaeaea;
}

.header-desktop #topnav-left > .header__nav-item:hover .sub-menu,
.header-desktop #topnav-right > .header__nav-item:hover .sub-menu {
  display: block;
}

.header-desktop .header__search-form input {
  width: 220px;
  font-family: Roboto;
  font-size: 13px;
  padding-left: 8px;
  margin-right: 8px;
}

.header-mobile {
  border-bottom: 1px solid #eaeaea;
  padding: 0 12px;
  z-index: 999;
}

.header-mobile .header__logo {
  padding: 10px 0;
}

.header-mobile .header__logo-img {
  height: 45px;
}

.header-mobile .header__search-form {
  width: 100%;
  padding: 12px;
  top: 100%;
  left: 0;
  background-color: #fff;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  z-index: 998;
}

.header-mobile .header__search-form form input {
  flex: 1;
  border: 1px solid #eaeaea;
  border-right: unset;
  border-radius: 0;
  padding-left: 12px;
  font-family: Roboto;
  font-size: 13px;
}

.header-mobile .header__search-form form button {
  background-color: #dc1616;
  border: 1px solid #dc1616;
  border-left: none;
}

.header__search-icon {
  cursor: pointer;
}

.header-mobile .header__nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  visibility: hidden;
  transition: visibility 0.4s;
}

.header-mobile .header__nav.active {
  visibility: visible;
}

.header-mobile .header__nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  cursor: pointer;
}

.header-mobile .header__nav.active .header__nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.header-mobile .header__nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: #fff;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
  pointer-events: auto;
}

.header-mobile .header__nav.active .header__nav-drawer {
  transform: translateX(0);
}

.header-mobile .header__nav-menu-wrapper {
  padding: 10px 0 30px;
}

.header-mobile ul#topnav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-mobile ul#topnav > li {
  border-bottom: 1px solid #f1f1f1;
}

.header-mobile ul#topnav li a {
  text-decoration: none;
  font-size: 15px;
  color: #0A1C3A;
  padding: 15px 20px;
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.2s;
}

.header-mobile ul#topnav li a:hover,
.header-mobile ul#topnav li.current-menu-item > a {
  color: #B59A6D;
}

.header-mobile ul.sub-menu > li {
  border-top: 1px solid #f1f1f1;
}

.header-mobile ul.sub-menu > li a {
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  padding: 12px 20px 12px 35px;
  color: #33414b;
}

.header-mobile ul.sub-menu > li:hover > a {
  color: #B59A6D;
}

.header-mobile ul li .sub-menu {
  display: none;
  list-style: none;
  padding-left: 0;
  background-color: #fcfcfc;
}

.header-mobile ul li .sub-menu.d-block {
  display: block;
}

footer.footer {
  margin-top: 40px;
  background-color: #041026;
  border-top: 6px solid #CBA052;
  color: #fff;
}

@media only screen and (max-width: 576px) {
  footer.footer {
    margin-top: 20px;
  }
}

.footer__content-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #CBA052;
}

.footer__content-body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.footer__content-body p,
.footer__content-body ul li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.footer__content-body a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__content-body a:hover {
  color: #CBA052;
}

.footer__bottom-row {
  border-color: rgba(255,255,255,0.1) !important;
}

.footer__copyright {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.footer__nav ul {
  white-space: nowrap;
  margin-bottom: 0;
}

.footer__nav ul li a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer__nav ul li a:hover {
  color: #CBA052;
}

/* ACF Content Specific Typography */
.footer__col-1 .footer__content-body > p:first-child {
  font-weight: bold;
  color: #fff !important;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer__content-body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 15px;
}

.footer__content-body ul li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  color: #CBA052;
  font-size: 18px;
  line-height: 1.25;
  top: 0;
}

.footer__content-body ul li,
.footer__content-body ul li a {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Custom 1200px Constrain for Header & Footer & Page Builder */
#header-desktop .container,
#header-desktop .container-fluid,
#header-mobile .container,
#header-mobile .container-fluid,
footer.footer .container,
#page-builder.container {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Company Phone / Email Block */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #CBA052;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 5px;
}

.footer-contact-info h6 {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-weight: 500;
}

.footer-contact-info p {
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 0;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s;
}

.footer-socials a:hover {
  border-color: #CBA052;
  background-color: rgba(203, 160, 82, 0.1);
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.boxnews + .boxnews {
  margin-top: 30px;
}
/* --- RESPONSIVE CONTENT IMAGES & VIDEOS --- */
.wp-caption {
  max-width: 100% !important;
  margin: 0 auto;
}

#page-builder img, 
.wp-caption img {
  max-width: 100% !important;
  height: auto !important; /* Phục hồi tỉ lệ ảnh */
  border-radius: 8px; /* Bo 4 góc */
}

#page-builder iframe {
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9; /* Giữ tỉ lệ chuẩn cho YouTube cả PC và Mobile */
  border-radius: 8px;
}

@media (max-width: 767px) {
  /* Set 90% max width on mobile */
  .wp-caption,
  #page-builder img,
  #page-builder iframe {
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  
  #page-builder iframe {
    width: 100% !important;
  }

  .wp-caption img {
    max-width: 100% !important; /* Keep child at 100% of 90% */
  }
}

/* --- PAGE BUILDER UNIFIED LAYOUT --- */
#page-builder > .row > .col-12 {
  background-color: #ffffff;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 40px;
  border-radius: 8px; /* Bo góc mềm mại cho bảng toàn cục */
}

@media (max-width: 767px) {
  #page-builder > .row > .col-12 {
    padding: 15px; 
  }
}

/* Remove separate box styles from internal parts */
#page-builder .col-12 > div.bg-white {
  background-color: transparent !important;
  border-top: none !important; /* Xoá line dầy cắt dòng */
  padding: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 30px !important;
  margin-bottom: 30px !important;
  border-bottom: 1px dashed #e0e0e0; /* Dùng line đứt mỏng để chia cách nhẹ nhàng */
}

#page-builder .col-12 > div.bg-white:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* --- PAGE BUILDER TYPOGRAPHY OVERRIDES --- */
#page-builder h2, 
#page-builder h2 * {
  font-size: 26px !important;
  color: #0A1C3A !important; /* Prima Navy */
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

#page-builder h3,
#page-builder h3 * {
  font-size: 22px !important; /* Nhỏ hơn H2 khoảng 2 nấc size */
  color: #0A1C3A !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

@media (max-width: 767px) {
  #page-builder h2, 
  #page-builder h2 * {
    font-size: 22px !important;
  }
  #page-builder h3,
  #page-builder h3 * {
    font-size: 19px !important;
  }
}
.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item a {
  color: #1b71b2;
  text-decoration: none;
}

/* Search Page */
.search-page-form-search input {
  flex: 1;
  border: 1px solid #930007;
  height: 36px;
  padding-left: 12px;
  font-size: 14px;
  font-family: Roboto;
}

.search-page-form-search button {
  border: 1px solid #930007;
  background-color: #930007;
  color: white;
  height: 36px;
  width: 120px;
  font-size: 15px;
}

.search-page h1 {
  font-size: 20px;
}

.single-post .post-content figure {
  max-width: 100%;
}

.single-post .post-content img {
  max-width: 100%;
}

.single-post figcaption {
  display: block;
  background: #f2f2f2;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
  color: #666;
  font-size: 13px;
}

.single-post figcaption p {
  margin: 0;
}

.tags {
  border-top: solid 1px #e4e4e4;
  padding: 10px 0;
}

.tags p {
  font-size: 14px;
  margin: 0;
  color: gray;
}

.tags a {
  text-decoration: none;
  color: #282b2d;
  font-weight: bolder;
}

#comments {
  display: none;
}

.comment-form p {
  margin-bottom: 4px;
}

.comment-reply-title {
  font-size: 15px;
  font-weight: bold;
}

.comment-notes {
  display: none;
}

.comment-form-url {
  display: none;
}

.comment-form .form-submit .submit {
  font-size: 14px;
  border-radius: 2px;
  background-color: #c51b1e;
  color: #fff;
  padding: 7px 32px;
  margin: 0;
  cursor: pointer;
  border: 0;
}

.comment-form textarea:focus {
  outline: none;
}

.comment-form textarea {
  background-color: white;
  width: 100%;
  height: 66px;
  border: 1px solid #d9d9d9;
  font-size: 15px;
  padding: 10px;
  box-sizing: border-box;
  -webkiet-box-sizing: border-box;
  -moz-box-sizing: border-box;
  font-family: Roboto;
}

.comment-form-author input,
.comment-form-email input {
  background-color: white;
  width: 100%;
  height: 36px;
  border: 1px solid #d9d9d9;
  font-size: 15px;
  padding: 10px;
  box-sizing: border-box;
  -webkiet-box-sizing: border-box;
  -moz-box-sizing: border-box;
  font-family: Roboto;
}

.comment-form-author,
.comment-form-email {
  display: inline-block;
  width: 48%;
}

.comment-form-email {
  margin-left: 10px;
}

.comment-form input:focus {
  outline: none;
}

.comment-form label {
  font-size: 15px;
}

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

.commentlist .children {
  list-style: none;
}

.comment-body .edit-link {
  display: none;
}

.comment-meta .comment-author {
  display: inline-block;
}

.comment-meta .comment-metadata {
  display: inline-block;
  margin-left: 8px;
}

.comment-meta .comment-metadata a {
  text-decoration: none;
  font-size: 13px;
  color: #9f9f9f;
}

.comment-author .says {
  display: none;
}

.comment-author .fn {
  padding-left: 4px;
}

.comment-author .fn a {
  text-decoration: none;
  color: #282b2d;
  font-size: 16px;
}

.comment-content {
  padding-left: 40px;
  color: #4f4f4f;
  font-size: 15px;
}

.comment-content p {
  margin: 8px 0;
}

.comment-content p:first-child {
  margin-top: 0;
}

.comment-body .reply {
  padding-left: 40px;
}

.comment-body .reply a {
  font-size: 14px;
  color: #757575;
  text-decoration: none;
}

.commentlist footer {
  margin-top: 15px;
}

.commentlist ul.children {
  padding-left: 40px;
}

.comment-author img {
  border-radius: 50%;
}

@media only screen and (max-width: 576px) {
  .comment-author .fn,
  .comment-author .fn a {
    font-size: 16px;
  }

  .comment-meta .comment-metadata a {
    font-size: 12px;
  }

  .comment-content {
    font-size: 14px;
  }

  .comment-body .reply a {
    font-size: 13px;
  }
}

#page-builder .category_section:first-child {
  margin-top: 0 !important;
}

#page-builder .video_section:not(:first-child) {
  margin-top: 30px;
}

.video_section_item .bg-overlay::before {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  transition-duration: 200ms;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
  opacity: 0;
  z-index: 1;
}

.video_section_item .bg-overlay[active="true"]::before {
  opacity: 1;
}

/* Author Page */

.author-page .author-info img {
  border-radius: 50%;
}

.author-page .author-desc {
  font-size: 15px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.pagination .page-numbers {
  padding: 4px 12px;
  border: 1px solid #e5e5e5;
  margin-right: 4px;
}

.pagination .page-numbers {
  padding: 4px 12px;
  border: 1px solid #e5e5e5;
  margin-right: 4px;
  transition: 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: #930007;
  border-color: #930007;
  color: #fff;
}

.pagination .page-numbers {
  color: #757575;
  text-decoration: none;
}

.widget_custom_html {
  list-style: none;
  background-color: white;
}

.widget_custom_html .widgettitle {
  font-size: 1.3rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border-top: 3px solid var(--bs-border-color);
}

.widget_custom_html .custom-html-widget {
  padding: 0 1rem;
  max-height: 350px;
  overflow: auto;
}

.widget_custom_html ul {
  padding-left: 0;
}

.widget_custom_html ul li {
  list-style: none;
}

.widget_custom_html ul li a {
  font-size: 14px;
  color: rgb(102, 116, 138);
  text-decoration: none;
  transition: .3s;
}

.widget_custom_html ul li a:hover {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));
}

.widget_custom_html + .widget_custom_html {
  margin-top: 1.5rem;
}

figure {
  margin: 1rem 0 1rem;
}

.wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
}

/* AI Gold News Table Styling */
.auto-gold-news-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Header mượn style màu Navy của Theme */
.auto-gold-news-container table thead tr,
.auto-gold-news-container table tr:first-child {
  background-color: #0A1C3A;
  color: #fff;
}

.auto-gold-news-container table tr:first-child td,
.auto-gold-news-container table th {
  font-weight: 600;
  color: #fff;
}

.auto-gold-news-container table th,
.auto-gold-news-container table td {
  padding: 12px 15px;
  border: 1px solid #eaeaea;
  text-align: center;
}

.auto-gold-news-container table tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: all 0.2s ease-in-out;
}

.auto-gold-news-container table tbody tr:nth-of-type(even) {
  background-color: #fcfcfc;
}

/* Hover effect */
.auto-gold-news-container table tbody tr:hover {
  background-color: #f4f6f9;
}

/* Fix bảng AI tràn màn hình trên Mobile */
@media (max-width: 768px) {
  .auto-gold-news-container {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }
  .auto-gold-news-container table {
      min-width: 500px; /* Ép bảng giữ nguyên form, cho phép vuốt ngang */
  }
}

/* =======================================================
   AI GOLD PREDICT WIDGET STYLING
========================================================== */
.gold-predict-widget {
  background: transparent;
  padding: 20px 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.gp-title-block h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0A1C3A;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

.gp-title-block h2 span {
  color: #f97316;
}

.gp-date {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gp-trend-badge {
  text-align: right;
  border-left: 2px solid #e5e7eb;
  padding-left: 20px;
}

.lbl-trend {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.val-trend {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
}

.gp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gp-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 25px 25px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.gp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gp-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #fca5a5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gp-badge.outline {
  background-color: #fca5a5; /* Có màu hồng nhạt tương tự mockup */
}

.gp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gp-source {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gp-icon {
  background-color: #fef3c7;
  border-radius: 8px;
  padding: 6px;
  display: flex;
}

.gp-source-name {
  font-weight: 800;
  font-size: 15px;
  color: #111827;
  text-transform: uppercase;
}

.gp-price-tag {
  background-color: #dcfce7;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gp-content {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 25px;
  flex-grow: 1; /* Để đẩy footer xuống dưới cùng */
}

.gp-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 15px;
}

.gp-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.gp-footer a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* RESPONSIVE MÀN HÌNH NHỎ */
@media (max-width: 768px) {
  .gp-grid {
    grid-template-columns: 1fr;
  }
  .gp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .gp-trend-badge {
    border-left: none;
    padding-left: 0;
    text-align: left;
    margin-top: 5px;
  }
}