/*
Theme Name: GlobalX
Description: This is a child theme for Flatsome Theme
Author: Lamwebsieutoc.com
Template: flatsome
Version: 3.0
*/

/* =========================
   NAV & GLOBAL ELEMENTS
   ========================= */
   
body {
    font-family: 'svn-gilroy-regular' !important;
}
.nav a, .widget-title {
	font-family:'svn-gilroy-medium' !important;
	font-size: 1em !important;
}
.nav-dropdown a{font-size: .9em !important;}
.nav-line-bottom > li > a:before,
.nav-line-grow > li > a:before,
.nav-line > li > a:before {
  height: 2.5px;
  width: 50%;
}

.mobile-nav .nav-icon .button {
  background-color: #8DC63F;
}

/* Page title & custom title underline */
.page-title,
.title-gx {
  position: relative;
  display: inline-block;
  width: auto !important;
  font-size: 2em;
  padding-bottom: 8px;
}

.page-title::after,
.title-gx::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, #0c2340 50%, #8DC63F 50%);
  border-radius: 3px;
}

/* Image radius */
.image-gx img {
  border-radius: 4%;
}

/* =========================
   NEWSLETTER / CF7
   ========================= */

.newsletter-form-inline {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.newsletter-form-inline input[type="text"],
.newsletter-form-inline input[type="tel"],
.newsletter-form-inline input[type="email"] {
  width: auto !important;
  flex: 1 1 auto !important;
  display: inline-block !important;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 25px 8px 25px 18px;
  box-sizing: border-box;
  min-width: 150px;
  max-width: 310px;
}

.newsletter-form-inline input[type="submit"] {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 7px 85px;
  background: #142d53;
  color: #8DC63F;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.newsletter-form-inline .wpcf7-form-control {
  margin: 0 !important;
}

.wpcf7-spinner {
  display: none !important;
}

/* =========================
   SLIDER / FLICKITY
   ========================= */

.row-slider-carousel .flickity-page-dots {
  bottom: -25px;
}

.flickity-page-dots .dot,
.row-slider .flickity-page-dots .dot {
  width: 12px;
  height: 12px;
  border: none;
  opacity: 1;
  background-color: #8DC63F;
}

.flickity-page-dots .dot.is-selected {
  background-color: #142d53;
}

.flickity-prev-next-button,
.flickity-prev-next-button:hover {
  bottom: 50%;
  background-color: #8DC63F;
  color: #ffffff;
}
.slider-nav-reveal .flickity-prev-next-button{
	color: #142d53;
}
.flickity-prev-next-button:hover {
  opacity: 1;
}

.flickity-prev-next-button.previous {
  left: 0;
  transform: translateX(0);
}

.flickity-prev-next-button.next {
  right: 0;
  transform: translateX(0);
}

.slider .flickity-prev-next-button:hover svg {
  fill: #ffffff;
}
.social-icons-gx {
  color: #ffffff;
}

.post_comments {
	display: none !important;
}
/* =========================
   TỔ CHỨC / SƠ ĐỒ (LINES)
   ========================= */

/* Căn giữa logo + box trên */
.org-top,
.org-mid {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 40px;
}

.org-top-col .col-inner {
  z-index: 2 !important;
}

/* Dây dọc từ logo/box xuống */
.org-top::after,
.org-mid::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 0;
  height: 40px;
  border-left: 2px solid #8DC63F;
}

/* Thanh ngang nối các tỉnh */
.org-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
}

.org-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px solid #8DC63F;
}

/* Dây dọc xuống từng box tỉnh */
.org-item {
  position: relative;
}

.org-item::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 40px;
  border-left: 2px solid #8DC63F;
}

/* Button tùy chỉnh */
.button-gx {
  margin-bottom: 0;
}

.button-x:hover {
  color: #5F9E45 !important;
}

/* =========================
   CATEGORY TABS (BLOG)
   ========================= */

.gx-cat-tabs-section {
  background: #f3f3f3;
  padding: 6px 20px;
  margin: -30px 0 15px;
}

.gx-cat-tabs-wrapper {
  padding-top: 10px;
}

.gx-cat-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.gx-cat-tabs li a {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.97em;
  color: #142d53;
  text-decoration: none;
}

.gx-cat-tabs li.active a {
  color: #5F9E45;
}

.gx-cat-tabs li a:hover {
  opacity: 0.8;
}

/* =========================
   CUSTOM BLOG / RELATED POSTS
   ========================= */

/* Card tổng thể */
.gx-rel-card,
.gx-blog-card {
  text-align: center;
  max-width: 360px;
  margin: 0 auto 30px;
}

/* Thumbnail: bo tròn + tỉ lệ 4:3 */
.gx-rel-thumb,
.gx-blog-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.gx-rel-thumb-inner,
.gx-blog-thumb-inner {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 */
  overflow: hidden;
}

.gx-rel-thumb img,
.gx-blog-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title */
.gx-rel-title,
.gx-blog-title {
  margin: 10px 0 4px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  color: #0c2340;
}

.gx-rel-title a,
.gx-blog-title a {
  color: inherit;
  text-decoration: none;
}

/* Date */
.gx-rel-date,
.gx-blog-date {
  font-size: 12px;
  color: #777777;
  margin-bottom: 0;
}

/* Gạch nhỏ */
.is-divider,
.gx-blog-line,
.gx-rel-line {
  display: block;
  width: 40px;
  height: 2px;
  margin: 5px auto 10px;
  background: linear-gradient(to right, #0c2340 50%, #8DC63F 50%);
  border-radius: 2px;
}

.widget .is-divider {
  margin-left: 0;
}

/* Excerpt */
.gx-rel-excerpt,
.gx-blog-excerpt {
  font-size: 0.9em;
  line-height: 1.6;
}

/* Block Tin tức liên quan */
.gx-related-posts {
  margin-top: 60px;
  text-align: center !important;
}

/* =========================
   PAGINATION / MISC
   ========================= */

.nav-pagination > li > a,
.nav-pagination > li > span {
  border-radius: 10px;
}

.back-to-top.active {
  border-color: #8DC63F;
}

/* Thanh breadcrumbs mobile dưới header – FULL WIDTH */
.gx-mobile-breadcrumbs {
  background: #142D53;
  padding: 6px 20px;
  font-size: 14px;
  width: 100em !important;
  box-sizing: border-box;
  display: none;
  text-transform: uppercase;
}

/* Text & separator */
.gx-mobile-breadcrumbs #breadcrumbs,
.gx-mobile-breadcrumbs .rank-math-breadcrumb {
  margin: 0;
}

.gx-mobile-breadcrumbs a,
.gx-mobile-breadcrumbs span {
  color: #ffffff !important;
  font-weight: 600;
}

/* Dấu > giữa các mục */
.gx-mobile-breadcrumbs .separator,
.gx-mobile-breadcrumbs .separator span {
  margin: 0 6px;
  color: #ffffff !important;
}

.gx-mobile-breadcrumbs .rank-math-breadcrumb a:first-child {
  font-size: 0 !important;              
  position: relative;
}

/* Hiện icon Home thay chữ */ 
.gx-mobile-breadcrumbs .rank-math-breadcrumb a:first-child::before {
  content: "\f015";          
  font-family: "FontAwesome"; 
  font-weight: 900;
  font-size: 16px;
  display: inline-block;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) and (min-width: 768px) {

    .newsletter-form-inline {
        gap: 10px;
    }

    .newsletter-form-inline input[type="text"],
    .newsletter-form-inline input[type="tel"],
    .newsletter-form-inline input[type="email"] {
        width: 200px !important;     
        flex: 0 0 200px !important;   
        padding: 25px 12px !important;
		max-width: 220px;
    }

    .newsletter-form-inline input[type="submit"] {
        flex: 0 0 auto !important;
        white-space: nowrap;
		padding: 6px 30px !important;
    }
}
@media (max-width: 767px) {
.gx-mobile-breadcrumbs {
    display: table-cell !important;
  }
.header-bottom .flex-row {
	padding:0 !important;
}
.newsletter-form-inline {
    flex-wrap: wrap !important;
  }
  
.newsletter-form-inline input[type="text"],
    .newsletter-form-inline input[type="tel"],
    .newsletter-form-inline input[type="email"] {
		max-width: 98%;
    }
  .newsletter-form-inline input[type="submit"] {
    width: 100% !important;
  }

  .homegx-logo .ux-logo-image {
    height: 50px !important;
  }

  .section-homegx {
    padding: 30px 2px !important;
  }

  .homegx-logo .col {
    padding: 2px !important;
  }

.gx-cat-tabs {
  gap: 5px;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.acc-mobile-gx .accordion-title {
	border-top: none !important;
	color: #8DC63F !important;
	font-family: 'Dashicons', svn-gilroy-bold !important;
}

.acc-mobile-gx .accordion-inner {
	padding-left: 20px;
    padding-right: 20px;
}
.button-gx {
  padding: 0 10px !important;
}
}