/*
Theme Name: Mg Child
Description: Child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* =========================
   MG CHILD - PHUC ANH
   Primary: #003B8F
   Secondary: #F7931E
========================= */

:root {
  --mg-primary: #003B8F;
  --mg-secondary: #F7931E;
  --mg-red: #E30613;
  --mg-yellow: #FFD400;

  --mg-text: #111827;
  --mg-muted: #666;
  --mg-white: #fff;
  --mg-soft: #F4F8FF;
  --mg-border: rgba(0, 59, 143, .22);
  --mg-shadow: 0 3px 10px rgba(0, 59, 143, .18);
  --mg-radius: 8px;
}

body {
  color: var(--mg-text);
  font-family: Roboto, Arial, sans-serif;
}

.container-width,
.full-width .ubermenu-nav,
.container,
.row {
  max-width: 1570px;
}

.row.row-collapse {
  max-width: 1540px;
}

.row.row-small {
  max-width: 1562.5px;
}

.row.row-large {
  max-width: 1600px;
}

blockquote,
dl,
figure,
form,
ol,
p,
pre,
ul {
  margin-bottom: 6px;
}

/* HERO */

.mg-hero-grid {
  margin-bottom: -40px;
}

.mg-hero-img img,
.mg-side-thumb {
  display: block;
}

.mg-hero-img img {
  width: 100%;
}

.mg-hero-side .img + .img {
  margin-top: 0;
}

.mg-side-thumb {
  margin: 5px auto;
  max-width: 90%;
}

.mg-hero-side-ad {
  background: var(--mg-white);
  border-left: 1px solid var(--mg-border);
  border-right: 1px solid var(--mg-border);
  text-align: center;
}

.mg-hero-side-ad p {
  color: var(--mg-primary);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  padding: 5px 3px;
  text-transform: uppercase;
}

.mg-hero-side-ad .mg-red-line {
  color: var(--mg-red);
}

.mg-hero-side-ad .mg-blue-line,
.mg-hero-side-ad .mg-green-line {
  color: var(--mg-primary);
}

.mg-hero-side-ad .mg-side-phone p {
  background: var(--mg-primary);
  color: var(--mg-white);
  font-size: .82rem;
  margin-top: 5px;
}

/* TRUST STRIP */

.mg-trust-strip,
.mg-trust-row {
  background: var(--mg-primary);
}

.mg-trust-row {
  align-items: center;
  margin-bottom: 0;
  padding: 14px 0;
}

.mg-trust-title,
.mg-trust-title p {
  color: var(--mg-white);
}

.mg-trust-title .featured-box {
  margin-bottom: -15px;
}

.mg-trust-title p {
  font-size: 1.25rem;
  line-height: 1.15;
}

.mg-trust-title p span {
  font-size: 180%;
}

.mg-trust-title mark {
  background: transparent;
  color: var(--mg-yellow);
  padding: 0;
}

.mg-trust-feature {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  min-height: 74px;
  padding: 12px 0;
  position: relative;
}

.mg-trust-feature .featured-box {
  margin: 0;padding: 12px;
}

.mg-trust-feature p {
  color: var(--mg-text);
  font-size: .85rem;
  line-height: 1.4;
}

.mg-trust-feature strong {
  color: var(--mg-primary);
  font-size: 120%;
}

/* SECTION TITLES */

.mg-section-heading {
  margin: 0 0 -15px;
}

.mg-section-heading h2,
.mg-product-title h2,
.mg-about-heading h2 {
  color: var(--mg-primary);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.mg-section-heading h2 {
  font-size: 1.45rem;
  margin: 0;
}

.mg-product-title h2,
.mg-about-heading h2 {
  font-size: 1.85rem;
}

.mg-section-heading h2 span,
.mg-section-heading h2 strong {
  color: var(--mg-secondary);
}

/* SERVICES */

.mg-services {
  background: var(--mg-white);
}

.mg-service-card .box-text {
  background: var(--mg-primary);
  color: var(--mg-white);
  padding: 12px 10px;
  text-align: center;
}

.mg-service-card h3 {
  color: var(--mg-white);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

.mg-service-card h3 span {
  color: var(--mg-secondary);
}

/* PRODUCTS */

.mg-products,
.mg-testimonials,
.mg-partners {
  background: var(--mg-soft);
}

.mg-brand-buttons {
  margin-top: 5px;
}

a.button.primary.nu,
.button.primary.nu {
  background: var(--mg-primary);
  border: 0;
  margin-bottom: 0;
  margin-right: 2px;
  transform: skew(19deg, 0deg);
}

a.button.primary.nu:hover,
.button.primary.nu:hover {
  background: var(--mg-secondary);
}

.nu span {
  display: block;
  line-height: 2.6;
  transform: skew(-19deg, 0deg);
}

.mg-see-more a,
.mg-more-link a {
  color: var(--mg-secondary);
  font-weight: 700;
}

.mg-product-banner,
.mg-product-slider .product-small.box,
.mg-news .post-item .box,
.mg-news-slider .box-blog-post {
  box-shadow: var(--mg-shadow);
}

.mg-product-slider .box-text-products {
  padding: 10px;
}

.mg-product-slider img {
  border-bottom: 1px solid var(--mg-primary);
}

.mg-product-slider a.woocommerce-LoopProduct-link {
  color: var(--mg-primary);
  display: block;
  font-size: 16px;
  font-weight: 700;
  height: 45px;
  overflow: hidden;
}

/* ABOUT */

.mg-video-banner .banner {
  overflow: hidden;
}

.mg-play-button {
  align-items: center;
  border-color: var(--mg-white);
  color: var(--mg-white);
  display: inline-flex;
  justify-content: center;
}

.mg-about-text h3 {
  color: var(--mg-primary);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mg-about-text .mg-slogan {
  color: var(--mg-secondary);
  font-weight: 700;
}

.mg-about-text p {
  color: var(--mg-text);
  line-height: 1.55;
}

/* STATS */

.mg-stat-card {
  background: var(--mg-primary);
  border-radius: var(--mg-radius);
  color: var(--mg-white);
  padding: 10px;
}

.mg-stat-card p,
.mg-stat-card b,
.mg-stat-card strong {
  color: var(--mg-white);
}

.mg-stat-card .item-number {
  color: var(--mg-secondary);
  display: inline-block;
  font-size: 2.4rem;
  line-height: 1;
}

.after-plus:after {
  content: "+";
  padding-left: 5px;
}

.mg-stat-card p:last-child {
  font-size: .8rem;
}

/* REVIEWS / NEWS / PARTNERS */

.mg-review-card {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  padding: 10px 10px 3px;
}

.mg-review-card .box-image {
  width: 31% !important;
}

.mg-review-card h3 {
  color: var(--mg-primary);
  font-size: 1rem;
  margin-bottom: 2px;
}

.mg-review-card p {
  color: var(--mg-text);
  line-height: 1.45;
}

.mg-review-card .mg-stars,
.mg-review-card .box-text img {
  display: block;
  max-width: 119px;
  width: 37%;
}

.mg-news h5.post-title.is-large {
  height: 45px;
  overflow: hidden;
}

.mg-news .box-blog-post .is-divider {
  display: none;
}

.mg-news .from_the_blog_excerpt {
  color: var(--mg-muted);
}

.mg-logo-row .img {
  align-items: center;
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  display: flex;
  min-height: 78px;
  padding: 10px;
}

.mg-logo-row .img img {
  display: block;
  margin: auto;
  max-height: 54px;
  object-fit: contain;
}

/* PRODUCT GIFT BOX */

.prd-gift-box {
  background: #FFF7ED;
  border: 1px solid var(--mg-secondary);
  border-radius: var(--mg-radius);
  color: var(--mg-text);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  padding: 12px 14px;
}

/* ANIMATION */

@keyframes mg-ring {
  0%, 45%, 60%, 75%, 100% {
    transform: rotate(0deg) scale(1) skew(1deg);
  }

  50%, 65% {
    transform: rotate(-25deg) scale(1.1) skew(1deg);
  }

  55%, 70% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
}

.rung img,
.rung1 img,
.rung2 img,
.rung3 img,
.rung4 img {
  animation: mg-ring 4s ease-in-out infinite;
}
/* =========================
   PHUC ANH SERVICE PAGE
========================= */

.pa-service-page {
  align-items: flex-start;
}

.pa-service-page h1 {
  color: var(--mg-primary);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.pa-service-page h2 {
  border-left: 5px solid var(--mg-secondary);
  color: var(--mg-primary);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 18px 0 12px;
  padding-left: 12px;
}

.pa-service-page h3 {
  color: var(--mg-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.pa-service-page p,
.pa-service-page li {
  color: var(--mg-text);
  font-size: 15px;
  line-height: 1.65;
}

.pa-service-page ul,
.pa-service-page ol {
  margin-left: 18px;
}

.pa-main-banner img {
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  display: block;
  width: 100%;
}

.pa-intro {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  padding: 18px 20px 14px;
}

.pa-hotline-row {
  margin-top: 12px;
}

.pa-hotline-row .button {
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pa-hotline-row .button.primary {
  background: var(--mg-primary);
}

.pa-hotline-row .button.secondary {
  background: var(--mg-secondary);
}

.pa-note-box {
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
}

.pa-note-box p {
  margin: 0;
}

.pa-sidebar-box {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  margin-bottom: 14px;
  overflow: hidden;
  padding: 0;
}

.pa-sidebar-box h3 {
  background: var(--mg-primary);
  color: var(--mg-white);
  font-size: 1rem;
  margin: 0;
  padding: 11px 14px;
  text-transform: uppercase;
}

.pa-sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px 10px;
}

.pa-sidebar-box li {
  border-bottom: 1px solid rgba(0, 59, 143, .12);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 8px 0 8px 18px;
  position: relative;
}

.pa-sidebar-box li:before {
  background: var(--mg-secondary);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: 17px;
  width: 6px;
}

.pa-sidebar-box li:last-child {
  border-bottom: 0;
}

.pa-sidebar-cta {
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  text-align: center;
}

.pa-sidebar-cta p {
  color: var(--mg-white);
  line-height: 1.45;
  margin-bottom: 6px;
}

.pa-sidebar-cta strong {
  color: var(--mg-yellow);
}

.pa-card-grid,
.pa-benefit-grid {
  margin-bottom: 0;
}

.pa-service-card,
.pa-benefit-box {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  height: 100%;
  margin-bottom: 15px;
  padding: 15px;
}

.pa-service-card {
  border-top: 4px solid var(--mg-primary);
}

.pa-benefit-box {
  background: var(--mg-soft);
  border-left: 4px solid var(--mg-secondary);
}

.pa-service-card h3,
.pa-benefit-box h3 {
  margin-bottom: 6px;
}

.pa-service-card p,
.pa-benefit-box p {
  margin-bottom: 0;
}

.pa-process {
  background: var(--mg-soft);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  padding: 15px 18px 10px;
}

.pa-process ol {
  counter-reset: pa-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pa-process li {
  border-bottom: 1px dashed rgba(0, 59, 143, .2);
  counter-increment: pa-step;
  margin: 0;
  min-height: 38px;
  padding: 8px 0 8px 42px;
  position: relative;
}

.pa-process li:before {
  align-items: center;
  background: var(--mg-primary);
  border-radius: 50%;
  color: var(--mg-white);
  content: counter(pa-step);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 8px;
  width: 28px;
}

.pa-process li:last-child {
  border-bottom: 0;
}

.pa-faq .accordion-title {
  color: var(--mg-primary);
  font-weight: 800;
}

.pa-faq .accordion-inner {
  background: var(--mg-white);
}

.pa-final-cta {
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  text-align: center;
}

.pa-final-cta h2 {
  border-left: 0;
  color: var(--mg-white);
  margin: 0 0 8px;
  padding-left: 0;
}

.pa-final-cta p {
  color: var(--mg-white);
  margin-bottom: 6px;
}

.pa-final-cta strong {
  color: var(--mg-yellow);
}

/* MOBILE */

@media (max-width: 849px) {
  .pa-service-page h1 {
    font-size: 1.55rem;
  }

  .pa-service-page h2 {
    font-size: 1.25rem;
  }

  .pa-intro,
  .pa-service-card,
  .pa-benefit-box,
  .pa-process {
    padding: 14px;
  }

  .pa-sidebar-box {
    margin-bottom: 10px;
  }
}

@media (max-width: 549px) {
  .pa-service-page p,
  .pa-service-page li {
    font-size: 14px;
  }

  .pa-hotline-row .button {
    font-size: 13px;
  }
}
/* RESPONSIVE */

@media only screen and (min-width: 1120px) {
  .mg-trust-feature-first {
    margin-left: 14px;
  }

  .mg-trust-feature-last {
    margin-right: 14px;
  }

  .mg-trust-feature {
    transform: skew(-19deg, 0deg);
  }

  .mg-trust-feature .featured-box {
    transform: skew(19deg, 0deg);
  }
}

@media (max-width: 849px) {
  .mg-section-heading h2,
  .mg-product-title h2,
  .mg-about-heading h2 {
    font-size: 1.35rem;
  }
	.mg-trust-title .featured-box {margin-bottom:15px}
	.mg-trust-feature .featured-box {padding: none!important}

  .mg-trust-title p {
    font-size: 1rem;
  }

  .mg-trust-title p span {
    font-size: 150%;
  }

  .mg-about-text h3 {
    font-size: 1.35rem;
  }

  .mg-stat-card .item-number {
    font-size: 1.8rem;
  }

  .mg-stat-card p:last-child {
    font-size: .8rem;
  }
}

@media (max-width: 549px) {
  .mg-hero-grid,
  .mg-trust-row {
    margin-bottom: 0;
  }

  .mg-hero-side-ad {
    display: none;
  }

  .mg-trust-feature,
  .mg-trust-feature .featured-box {
    transform: none;
  }

  .mg-brand-buttons {
    text-align: left;
  }

  a.button.primary.nu,
  .button.primary.nu {
    font-size: 10px;
    margin-bottom: 5px;
    margin-right: 1px;
  }

  .mg-service-card h3 {
    font-size: 1rem;
  }

  .mg-review-card .box-image {
    width: 34% !important;
  }

  .mg-logo-row .img {
    min-height: 56px;
    padding: 6px;
  }
}