/*
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.   ***************/
.text-drak-tr h2:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% - 25px);
    width: 50px;
    background: #002255;
    height: 2px;
}.text-drak-tr h2 {
    color: #002255;
    font-size: 56px;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 50px;
}
.box-about-home p {
    color: #636363;
    font-size: 18px;
}
.text-banner-tr h2 {
    font-size: 70px;
    line-height: 1.4;
}
.text-banner-tr h3 {
    font-size: 36px;
}
.box-about-home h4 {
    font-size: 35px;
    line-height: 1.4;
    color: #030d28;
}
.home .box-about-home {
    position: relative;
    background: #f0f1f2;
    padding: 49px;
    min-height: 500px;
    padding-top: 100px;
    overflow: hidden;
    perspective: 1000px;
}
.box-about-home {
    position: relative;
    background: #f0f1f2;
    padding: 49px;
    min-height: 540px;
    overflow: hidden;
    perspective: 1000px;
}

/* Lớp nền mới để flip */

.box-about-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #002255;
    transform: rotateY(102deg);
    transform-origin: left center;
    transition: transform 0.6s;
    backface-visibility: hidden;
    z-index: 0;
}
.box-about-red:before{
    background: #d10202;
}
/* Khi hover, xoay lớp before vào */
.box-about-home:hover::before {
    transform: rotateY(0deg);
}

/* Nội dung để nằm trên before */
.box-about-home h4,
.box-about-home h5,
.box-about-home p {
    position: relative;
    z-index: 1;
    transition: color 0.6s;
}

.box-about-home:hover h4,
.box-about-home:hover h5,
.box-about-home:hover p {
    color: #fff;
}
.box-about-red {
    display: flex
;
    align-items: center;
}.box-about-home h5 {
    font-size: 30px;
    color: #030d28;
}
.text-banner-tr a.button.primary {
    font-size: 20px;
    height: 68px;
    line-height: 68px;
    padding: 0px 50px;
}
.video-button-tr a.button.open-video.icon.circle.is-outline.is-xlarge {
    background: #d20202;
    border: 16px solid #ffffffb8;
    width: 120px;
    height: 120px;
    line-height: 86px;
}
.text-video-home h2 {
    font-size: 60px;
}a.button.secondary.is-larger {
    font-size: 16px;
    padding: 10px 40px;
}
.video-section-tr {
    padding-bottom: 200px !important;
    padding-top: 100px !important;
}
.box-white-tr {
    background: #ffff;
    margin-top: -147px;    position: relative;
    border-radius: 0px;
    padding: 30px 10%;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.20);
}
.list-icon-2-col li {
    list-style: none;
    margin: 41px 0px;
}
.list-icon-2-col ul {
    margin: 0px;
}
.list-icon-2-col ul strong {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #030d28;
    font-size: 20px;
}
.list-icon-2-col ul strong img {
    margin: 0px !important;
    width: 45px !important;
}
.box-white-tr:after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 40%;
    height: 11px;
    background: #ca0202;
    left: 30%;
    border-radius: 0px 0px 50px 50px;
}
a.button.secondary.is-default.is-small.mb-0 {
    border-radius: 20px;
}
a.button.secondary.is-default.is-small.mb-0:hover {
    background-color: #d10202;
    border: 2px solid #d10202;
}
h5.post-title.is-large {
    font-size: 27px;
}
h5.post-title.is-large a {
    color: #002255;
}
.form-contact-bottom input, .form-contact-bottom select {
    height: 70px;
    background: #fff;
}
body .form-contact-bottom input.wpcf7-form-control.wpcf7-submit {
    background: #d10202;
    height: 60px;
    padding: 0px 50px;
    border-radius: 50px !important;
}
.icon-contact-tr h5 {
    color: #111c16;
    font-size: 22px;
}
.trung-post-list {
  display: flex;
  flex-direction: column;
  gap: 70px;
}
.trung-post-item {
  display: flex;
  justify-content: center;
}
.trung-post-inner {
    display: flex
;
    gap: 20px;
    /* max-width: 1100px; */
    width: 100%;
    align-items: center;
    background: #fff;
    padding: 0px;    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.trung-post-inner.reverse {
  flex-direction: row-reverse;
}
.trung-post-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.trung-post-content {
  padding: 25px;
  flex: 1;
}
.trung-post-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}
.trung-post-title a {
  color: #030d28;
  text-decoration: none;
}
.trung-post-title a:hover {

  text-decoration: underline;
}
.trung-post-excerpt {
  margin-bottom: 20px;
  color: #555;
}
.trung-readmore {
    display: inline-block;
    padding: 8px 15px;
    background: #002255;
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}
.trung-readmore:hover {
    background: #d62828;
    color: #fff;
}
.trung-pagination {
    display: flex
;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}
.trung-post-thumb {
    width: 50%;
}
.wp-pagenavi a, .wp-pagenavi span {
    text-decoration: none;
    border: none;
    padding: 8px 18px;
    margin: 2px;
    background: #e8e8e8;
}
a.previouspostslink, a.nextpostslink, .wp-pagenavi span.current {
    background: #f13b3b;
    color: #fff;
}

a.button.secondary.is-larger:hover {
    color: #002255;
    background: #fff;
    border-color: #000;
}
.flickity-page-dots .dot.is-selected {
    background-color: #db1818;
    opacity: 1 !important;
}
.video-button-tr a.button.open-video.icon.circle.is-outline.is-xlarge:hover {
    background: #002255;
}.trung-post-inner:before {
    content: '';
    position: absolute;
    right: -15px;
    width: 15px;
    height: 200px;
    background: #c60202;
}
.trung-post-inner.reverse:before {
    left: -15px;
}
.video-section-tr:before {
    background-image: linear-gradient(to right, #d10202, #ffffff00);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
@media (max-width: 768px) {
.text-drak-tr h2 {
        font-size: 30px;
    }
.box-about-home h4{
    font-size: 24px;
}
.home .box-about-home, .box-about-home {
  
    padding: 49px;
    min-height: auto;
    padding-top: 50px;
}
.text-video-home h2 {
    font-size: 31px;
}
body{
    font-size: 14px;
}
.video-section-tr {
    padding-bottom: 50px !important;
    padding-top: 50px !important;
}
.box-white-tr {
    margin: 0px;
    padding: 30px;
}
a.button.secondary.is-larger {
    font-size: 14px;
    padding: 6px 25px;
}
.box-white-tr>.col {
    padding-bottom: 0px;
}
.trung-post-inner {
    display: block;
}
.trung-post-thumb {
    width: 100%;
}
.trung-post-inner:before {
    height: 15px;
    width: 200px;
    bottom: -15px;
    left: calc(50% - 100px) !important;
}
.trung-post-title{
    font-size: 18px;
}
.list-icon-2-col li {
    list-style: none;
    margin: 30px 0px !important;
}
.list-icon-2-col li:last-child {
    margin-bottom: 0px !important;
}
.box-about-home h5 {
    font-size: 24px;
    color: #030d28;
}
h5.post-title.is-large {
    font-size: 17px;
}
.list-icon-2-col ul strong {
    font-size: 15px;
}
.list-icon-2-col ul strong img {
    width: 39px !important;
}
.icon-contact-tr {
    text-align: center;
}
.icon-contact-tr img {
    width: 80px;
}
.icon-contact-tr h5 {
    font-size: 18px;
}
.text-banner-tr h2 {
    font-size: 24px;
}
.text-banner-tr h3 {
    font-size: 16px;
}
.text-banner-tr a.button.primary {
    display: none;
}
.video-section-tr:before {
    background-image: linear-gradient(to bottom, #d10202, #ffffff00);
}
span.wpcf7-spinner {
    display: none;
}
}