/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

body {
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

.col,
.gallery-item,
.columns {
  padding: 0 15px 10px !important;
}

.page-wrapper {
  padding: 15px 0 !important;
}

.page-wrapper ul {
  margin-top: 10px;
}

.entry-content,
.entry-header-text {
  padding: 10px 0;
}

.post {
  padding: 10px;
  border-radius: 5px;
  background: #fff;
}

img.size-full.alignnone {
  margin-bottom: 5px !important;
}

h2.is-large,
h5.is-large {
  font-size: 17px;
}

h5.is-large:hover {
  color: red;
}

.post-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.page-title {
  margin: 15px 0;
}

.post_comments,
#comments {
  display: none !important;
}

.img-radius img {
  border-radius: 10px;
}

.img-radius-left img {
  border-radius: 10px 0 0 10px;
}

.img-radius-right img {
  border-radius: 0 10px 10px 0;
}

blockquote {
  position: relative;
  font-size: 16px;
  padding: 0 10px;
  color: #333;
}

.header-main .nav > li > a
{
	color: #08463e;
}

/* --------------------table ----------------------------*/
table {
  font-size: 16px;
  color: #333 !important;
  border-spacing: 0;
  table-layout: auto;
  padding: 0;
  border-color: #ececec;
  width: 100%;
  border-collapse: collapse;
}

td {
  color: #000 !important;
}

table tr:nth-child(even) {
  background-color: #f9f9f9 !important;
}

table tr:nth-child(odd) {
  background-color: #fff !important;
}

table th,
table td {
  padding: 8px !important;
  vertical-align: middle;
  text-align: left;
  border: 1px solid #ddd !important;
}

table tbody tr td,
table tbody tr th {
  background-color: inherit !important;
}

/*---------section-title-----------------*/

.section-title-normal span {
  border-bottom: 2px solid var(--primary-color);
}

.section-title-container {
  margin-bottom: 5px;
}

.titleborder .section-title-normal,
.titlenoborder .section-title-normal,
.titlenoborder span {
  border: none;
}

.titlenoborder b,
.titlecenter .section-title.section-title-center b {
  background: none !important;
}

.titlecenter .section-title.section-title-center span.section-title-main {
  position: relative;
  padding-bottom: 6px;
}

.titlecenter .section-title.section-title-center span.section-title-main:after,
.titlecenter .section-title.section-title-center span.section-title-main:before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.titlecenter .section-title.section-title-center span.section-title-main:after {
  bottom: -1px;
  width: 84px;
  height: 3px;
  background-color: var(--primary-color);
}

.titlecenter .section-title.section-title-center span.section-title-main:before {
  bottom: 0;
  width: 360px;
  height: 1px;
  background-color: rgba(218, 221, 221, 0.5);
}

.titlecenter h2.section-title span {
  line-height: inherit;
}

 
/**---------------- Form Liên Hệ ----------------**/

form {
  margin-bottom: 0 !important;
}

.contact-form {
  margin-top: 20px;
  padding: 15px !important;
  border: 2px solid #e7242a;
  border-radius: 5px;
}

.contact-form h6 {
  padding: 10px 0;
  color: red;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  height: 3em;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus {
  background: #fff;
}

input[type="submit"],.btnsubmit1 {
  min-height: 3em;
  cursor: pointer;
}

.wpcf7-submit {
  padding: 8px 20px;
  color: #fff;
  text-transform: uppercase;
  border: 1px solid #fff !important;
  background: transparent;
  transition: background 0.3s ease;
}

.wpcf7-submit:hover {
  background: red !important;
}

.wpcf7 .col {
  padding: 0 5px 10px !important;
}

.wpcf7-spinner {
  display: none !important;
}

.wpcf7 p {
  margin: 0;
  padding: 0;
}

span.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #fff;
  background: #ff0000;
  padding: 5px;
  text-shadow: none;
}

div.wpcf7-validation-errors {
  margin: 0;
  padding: 5px;
  font-size: 12px;
  text-align: center;
  color: #9c6533;
  background: #f9cd00;
  border: transparent;
  text-shadow: none;
}

div.wpcf7-mail-sent-ok {
  margin: 0;
  padding: 5px;
  font-size: 12px;
  text-align: center;
  color: #fff;
  background: #59a80f;
  border-color: #59a80f;
  text-shadow: none;
}

.btnsubmit1 {
  border-radius: 5px !important; 
  background: linear-gradient(to right, #f48a35, #eb5810);
}
@media (max-width: 768px) {
  input[type="submit"].btnsubmit1 {
    display: block;
    margin: 10px 0 0 0;
    float: right;
  }
}

#footer [type="submit"] {
  width: 100%;
  background: red;
}

.formtaibanggia {
  padding: 20px 10px 0;
  border: 4px double;
  border-radius: 0;
}

.formtaibanggia input[type="text"],
.formtaibanggia .wpcf7 input[type="tel"] {
  margin: 0;
}

.formtaibanggia .large-3 {
  text-align: center;
}

input[type="submit"].btsubmit {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* -------hotline----------- */

.hotline-phone-ring-wrap{position:fixed;bottom:0;left:0;z-index:999999}.hotline-phone-ring{position:relative;width:110px;height:110px;cursor:pointer;display:block;background:transparent;backface-visibility:hidden;transform:translateZ(0);transition:visibility .5s;z-index:11}.hotline-phone-ring-circle{position:absolute;top:0;left:0;width:110px;height:110px;border-radius:50%;border:2px solid #f00;opacity:.5;animation:phonering-alo-circle-anim 1.2s infinite ease-in-out;transform-origin:center}.hotline-phone-ring-circle-fill{position:absolute;top:16px;left:16px;width:80px;height:80px;border-radius:50%;background:rgba(21,100,167,.7);animation:phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;transform-origin:center}.hotline-phone-ring-img-circle{position:absolute;top:31px;left:31px;width:50px;height:50px;border-radius:50%;background:#f00;animation:phonering-alo-circle-img-anim 1s infinite ease-in-out;transform-origin:center;display:flex;align-items:center;justify-content:center}.hotline-phone-ring-img-circle img{width:33px;height:33px}.hotline-bar{position:absolute;left:42px;bottom:31px;width:165px;height:45px;line-height:45px;border-radius:50px;background:#f00;padding:0 10px;cursor:pointer;transition:all .8s;z-index:9}.hotline-bar>a{display:block;font:bold 16px/45px Arial,sans-serif;color:#fff;text-decoration:none;letter-spacing:1px;text-indent:32px}.hotline-bar>a:hover{color:#fff}@keyframes phonering-alo-circle-anim{0%{transform:scale(.5);opacity:.1}30%{transform:scale(.7);opacity:.5}100%{transform:scale(1);opacity:.1}}@keyframes phonering-alo-circle-fill-anim{0%,100%{transform:scale(.7);opacity:.6}50%{transform:scale(1);opacity:.6}}@keyframes phonering-alo-circle-img-anim{0%,50%,100%{transform:rotate(0)}10%,30%{transform:rotate(-25deg)}20%,40%{transform:rotate(25deg)}}.hotline-phone-ring-wrap.fix_tel_right{bottom:0;right:100px;left:auto}@media (max-width:768px){.hotline-bar{display:none}}#navigation_toolbox{position:fixed;bottom:120px;margin-left:18px;z-index:999}#navigation_toolbox ul{margin:0}#navigation_toolbox li{list-style:none;padding:5px}#navigation_toolbox li a{display:block;padding:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:Cardo,serif}#navigation_toolbox.na-right{left:auto;right:10px;bottom:100px;margin-left:0}

/*------------------------------------------------*/

@keyframes hotlinef {
  0%   { color: red; text-decoration: none; }
  50%  { color: #ff0; text-decoration: underline; }
  100% { color: red; text-decoration: none; }
}

.hotline-footer {
  font-weight: 700;
  animation: hotlinef 1.2s infinite ease-in-out;
}



@keyframes hotlinec {
  0%   { color: #ff6600; text-decoration: none; }
  50%  { color: #ff0000; text-decoration: underline; }
  100% { color: #ff6600; text-decoration: none; }
}

.hotline-content {
  font-weight: 700;
  animation: hotlinec 1s infinite ease-in-out;
}
 
.gallery-col
{
	padding:0 5px 10px !important;
}

.gallery-columns-2 .gallery-item img {
  aspect-ratio: 4/3;
  border-radius:5px;
}
.gallery-columns-3 .gallery-item img {
  aspect-ratio: 4/3;
  border-radius:5px;
}
.gallery-columns-4 .gallery-item img {
  aspect-ratio: 4/3;
  border-radius:5px;
}

.large-columns-3 .gallery-col .box-image img {
    aspect-ratio: 4/3;
    border-radius:5px;
}
.large-columns-4 .gallery-col .box-image img {
    aspect-ratio: 4/3;
    border-radius:5px;
}


/*-----hieu ung button ---*/

a.btn {
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}


.my-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #fff;
  animation: tp-typing 4s steps(20, end) infinite;
}

@keyframes tp-typing {
  0%   { width: 0; }
  50%  { width: 100%; }
  55%, 65%, 75% { opacity: 1; }
  60%, 70%      { opacity: 0; }
  80%  { width: 100%; }
  100% { width: 0; }
}


/* Thêm hiệu ứng ánh sáng khi hover vào ảnh bài viết */

.post-item .box-image:hover::before {
  animation: shine 0.75s;
}

@keyframes shine {
  100% { left: 125%; }
}

.post-item .box-image::before {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  content: '';
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
  transform: skewX(-25deg);
}


/*-----------------------*/

.link ul li {
    margin: 0px !important;
    font-size: 14px;
}

.link ul li a {   
    font-size: 14px;  
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;   
}


@media screen and (min-width: 850px)
{
	
.row-large .large-9 {
    max-width: 72%;    
    flex-basis: 72%;
}
.row-large .large-3 {
    max-width: 28%;
    flex-basis: 28%;
}
.blog-single .large-3 #secondary
{
	padding: 0 !important;
}

.row-large>.flickity-viewport>.flickity-slider>.col, .row-large>.col {
    padding: 0 10px 10px !important;
    margin-bottom: 0;
 }

.page-right-sidebar .col {
    padding: 0 10px 10px !important;
    margin-bottom: 0;
 }
}

/*-------- Blog ---------------*/

.blog-archive .post-item .col-inner {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

.blog-archive .post-item .col-inner:hover {
    box-shadow: 0 0 10px rgba(17, 44, 145, 0.4);
}

.blog-archive .post-item .box-image img {
    border-radius: 5px 5px 0 0;
}

.blog-archive .post-item .box-text {
    padding: 10px;
}

.blog-archive .post-item .post-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*------- Xem Them ---------------------*/

#related_posts {
  border-top: 4px double #e8e8e8;
  padding-top: 10px;
}

#related_posts .col {
  float: left;
  margin-left: 0;
  list-style: none;
}

#related_posts .relatedhover:hover {
  border-radius: 3px;
  border-color: #dd9933;
  box-shadow: 0 0 10px rgba(17, 44, 145, 0.4);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#related_posts h6 {
  padding: 20px 0 !important;
  font-size: 17px !important;
  text-transform: none;
}

.relatedcontent h5 {
  padding: 10px 0;
}

.relatedthumb img {
  width: 100%;
  height: 210px;
  padding: 2px;
  object-fit: cover;
  border: 1px solid #e8e8e8;
  border-radius: 5px 5px 0 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.relatedcontent h5 a {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  padding: 0 10px 0 5px;
  font-size: 15px;
  color: #000 !important;
  transition: color 0.3s ease;
}

#related_posts .relatedhover:hover h5 a,
.relatedcontent h5 a:hover {
  color: red !important;
}

/*-------Footer ---------*/

.footer
{
 padding:30px 0 0 !important;
}


#footer .widget {   
 margin-bottom: 10px !important;
}

#footer .widget li
{
	list-style:disc;
	margin-bottom: 5px !important;
}


/* Câu hỏi */
.links > li > a:before,
i[class^="icon-angle-down"],
i[class*=" icon-angle-down"] {
  font-size: 94%;
}

.accordion-title {
  background: #fff;
  border-left: 4px solid #1459ba;
  border-top: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.accordion-title.active {
  background: #1459ba;
  color: #fff;
  border-left: none;
}

.accordion-item {
  margin: 0 10px 5px;
  background: #fff;
  border-right: 1px solid #dcdfe7;
  border-bottom: 1px solid #dcdfe7;
}

/* Hiệu ứng chạy ngang */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}

.marquee span {
  display: inline-block;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
}

/* Hiệu ứng chạy ngang */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Thêm hiệu ứng glow nhẹ */
.marquee span:hover {
  color: #d60000;
  text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
}

/* -------------------------------------------------*/
.ss-top .section-bg-overlay {
    background-color: transparent !important;
    background-image: linear-gradient(180deg, #3e928d 0%, #F2295B00 100%);
}



.text-gradient {
    background-image: linear-gradient(90deg, #05C7BD 0%, #F3582F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/*--------------------------------*/
.bg-content-left,
.bg-content-right {
    position: absolute;
    top: 50%;
    width: 120%;
    transform: translateY(-50%);
    
    padding: 24px 28px;
    border-radius: 16px;
    background: #fff;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    
    z-index: 1;
}

.bg-content-left { left: 0; }
.bg-content-right { right: 0; }

/* Mobile: bỏ absolute, hiển thị bình thường */
@media (max-width: 768px) {
    .bg-content-left,
    .bg-content-right {
        position: relative;   /* không còn absolute */
        top: auto;            /* reset */
        width: 100%;          /* full width */
        transform: none;      /* bỏ translate */
        margin: 15px 0;       /* thêm khoảng cách trên dưới */
    }
}

/*--------------------------------*/

.content-matbang ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* khoảng cách giữa các li */
    padding: 0;
    margin: 10px 15px 0 15px;
}

.content-matbang ul li {
    list-style-type: none;
    flex: 1 1 calc(20% - 15px); /* mặc định 5 cột */
    box-shadow: 0 10px 20px 0 rgba(22, 6, 4, .2);
    border-radius: 20px;
    border-top: 5px solid #164734;
    background: #fff;
    padding: 20px 15px;
    min-height: 115px;
}

/* Tablet: 3 cột */
@media (max-width: 992px) {
    .content-matbang ul li {
        flex: 1 1 calc(33.333% - 15px);
    }
}

/* Mobile: 2 cột */
@media (max-width: 768px) {
    .content-matbang ul li {
        flex: 1 1 calc(50% - 15px);
    }
}

/* Rất nhỏ: 1 cột */
@media (max-width: 480px) {
    .content-matbang ul li {
        flex: 1 1 100%;
    }
}
