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

/* LAOPACKING Flatsome child - Full CSS: homepage + contact */
/* Prefix: mg- | Breakpoints: 849px tablet, 549px mobile */

/* --- Banner --- */
.mg-page-banner .section-bg {
  background-position: 60% 60%;
}

/* --- Nền band --- */
.mg-band-grey {
  background-color: #f4f4f4;
}

.mg-band-softblue {
  background-color: #dcf1fd;
}

/* --- Danh mục --- */
.mg-category-section .mg-cat-box .col-inner {
  text-align: center;
  padding-bottom: 8px;
}

.mg-category-section .mg-cat-box .featured-box img {
  border-radius: 6%;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.mg-category-section .mg-cat-box .col-inner > p {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.45;
}

/* --- Video --- */
.mg-video-fit {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  border: 1px solid #e0e0e0;
}

.mg-video-fit--wide {
  padding-top: 50%;
}

.mg-video-fit--tall {
  padding-top: 170%;
}

.mg-video-fit .mg-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mg-video-main .col-inner {
  padding-right: clamp(0px, 2vw, 16px);
}

.mg-video-side .col-inner {
  padding-left: clamp(0px, 2vw, 8px);
}

/* --- CTA strip --- */
.mg-cta-strip {
  border-radius: 8px;
  overflow: hidden;
}

.mg-cta-strip .section-content {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 550px) {
  .mg-cta-strip .section-content {
    min-height: 200px;
  }
}

.mg-cta-col {
  color: #f4f4f4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.mg-cta-col > p:first-of-type {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.mg-cta-col .button {
  margin: 4px 6px;
}

/* --- Tiêu đề section --- */
.mg-section-intro {
  text-align: center;
}

.mg-section-intro > p:first-of-type {
  text-transform: uppercase;
  font-size: clamp(1.05rem, 0.8vw + 0.95rem, 1.35rem);
  font-weight: 700;
  color: #282828;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.mg-section-intro > p:first-of-type::after {
  content: "";
  display: block;
  width: 110px;
  max-width: 100%;
  height: 3px;
  margin: 10px auto 12px;
  background-color: #ed1b36;
  border-radius: 2px;
}

.mg-section-intro > p + p {
  margin: 0 auto 8px;
  max-width: 720px;
  color: #282828;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mg-section-intro > p:only-of-type::after {
  margin-bottom: 8px;
}

.mg-title-upper,
.mg-section-title-center {
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 0.8vw + 0.95rem, 1.35rem);
  color: #282828;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.mg-rule-red {
  width: 110px;
  max-width: 100%;
  height: 3px;
  margin: 0 auto 14px;
  background-color: #ed1b36;
  border-radius: 2px;
}

.mg-rule-red--left {
  margin-left: 0;
}

.mg-lead-center {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 720px;
  color: #282828;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mg-partner-section .mg-section-intro > p:first-of-type::after {
  margin-top: 12px;
}

/* --- Card dịch vụ / báo giá --- */
.mg-service-cards .mg-service-card .col-inner,
.mg-quote-cards .mg-quote-card .col-inner {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 9px 9px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mg-service-card .featured-box img,
.mg-quote-card .featured-box img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.mg-service-card .col-inner > p,
.mg-quote-card .col-inner > p {
  margin: 8px 8px 12px;
  font-size: 0.88rem;
  text-align: center;
  color: #4d4d4d;
  line-height: 1.5;
}

/* --- Feedback --- */
.mg-chatshot img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

/* --- Cẩm nang --- */
.mg-camnang-main .col-inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 16px;
}

.mg-camnang-main .col-inner > p:first-of-type {
  text-align: center;
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #282828;
}

.mg-camnang-highlight .col-inner > p {
  text-align: center;
  font-size: 0.92rem;
  color: #4d4d4d;
  line-height: 1.55;
  margin: 0 0 6px;
}

.mg-camnang-highlight .col-inner > p:first-of-type {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 8px;
}

.mg-camnang-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.mg-camnang-posts .col-inner {
  padding-top: 4px;
}

/* --- Sidebar nút --- */
.mg-sidebar-cats .col-inner > p {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #282828;
}

.mg-sidebar-cats .button {
  margin: 0 6px 8px 0;
  border-radius: 10px;
}

.mg-sidebar-cats .col-inner {
  padding-top: 8px;
}

/* --- Đối tác --- */
.mg-partner-section {
  background: #fff;
}

.mg-partner-section .mg-section-intro > p:first-of-type {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.mg-partner-logos .mg-partner-cell .col-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  min-height: 80px;
}

.mg-partner-logo img {
  max-height: 52px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
}

/* --- Contact --- */
.mg-contact-hero {
  color: #fff;
}

.mg-contact-hero .section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.mg-contact-hero .section-content {
  position: relative;
  z-index: 1;
}

.mg-contact-hero-text > p:first-of-type,
.mg-contact-hero-text > p + p {
  color: #fff;
}

.mg-contact-main .row {
  align-items: stretch;
}

.mg-contact-info .col-inner,
.mg-contact-form-col .col-inner {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  padding: clamp(18px, 3vw, 30px);
}

.mg-contact-kicker {
  color: #ed1b36;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.mg-contact-info h2,
.mg-contact-form-col h3 {
  color: #282828;
  font-size: clamp(1.2rem, 1vw + 1rem, 1.7rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.mg-contact-desc,
.mg-contact-form-col .col-inner > p {
  color: #4d4d4d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.mg-contact-list {
  margin: 18px 0 20px;
}

.mg-contact-list p {
  border-bottom: 1px solid #eee;
  color: #4d4d4d;
  line-height: 1.55;
  margin: 0;
  padding: 10px 0;
}

.mg-contact-list p:first-child {
  padding-top: 0;
}

.mg-contact-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mg-contact-list strong {
  color: #282828;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.mg-contact-list a {
  color: #4d4d4d;
}

.mg-contact-list a:hover {
  color: #ed1b36;
}

.mg-contact-info .button {
  border-radius: 10px;
  margin: 0 8px 8px 0;
}

.mg-contact-form-col form {
  margin-bottom: 0;
}

.mg-contact-form-col input,
.mg-contact-form-col textarea,
.mg-contact-form-col select {
  border-radius: 6px;
  box-shadow: none;
  margin-bottom: 10px;
}

.mg-contact-form-col textarea {
  min-height: 130px;
}

.mg-contact-form-col input[type="submit"],
.mg-contact-form-col button[type="submit"] {
  border-radius: 10px;
  margin-bottom: 0;
}

.mg-contact-map {
  background: #f4f4f4;
  height: clamp(300px, 38vw, 460px);
  overflow: hidden;
  width: 100%;
}

.mg-contact-map iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

/* Bao gia single layout */
.mg-quote-single {
  background: #fff;
}

.mg-quote-top {
  background: #eeeeee;
  margin: 34px auto 46px;
  max-width: 1200px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px) 18px;
  position: relative;
}

.mg-quote-top::before {
  background-image: var(--mg-quote-bg);
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0.06;
  position: absolute;
}

.mg-quote-top > .row {
  position: relative;
  z-index: 1;
}

.mg-quote-photo-card,
.mg-quote-spec-box,
.mg-quote-contact-card,
.mg-quote-box,
.mg-quote-sidebar,
.mg-related-quote-card {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

.mg-quote-photo-card {
  padding: 8px;
}

.mg-quote-photo img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.mg-quote-benefits {
  display: grid;
  gap: 12px;
  padding: 18px 14px 14px;
}

.mg-quote-benefit {
  border-bottom: 1px solid #ececec;
  padding-bottom: 10px;
}

.mg-quote-benefit:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mg-quote-benefit strong,
.mg-quote-benefit span {
  display: block;
}

.mg-quote-benefit strong {
  color: #111;
  font-size: 0.9rem;
}

.mg-quote-benefit span {
  color: #444;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 3px;
}

.mg-quote-summary h1 {
  color: #214a9a;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.65rem);
  line-height: 1.3;
  margin: 0 0 10px;
}

.mg-quote-subtitle,
.mg-quote-intro {
  color: #1f1f1f;
  font-size: 1rem;
  line-height: 1.6;
}

.mg-quote-spec-box {
  margin: 16px 0 22px;
  padding: 18px 24px;
}

.mg-quote-spec-box h2 {
  color: #1f1f1f;
  font-size: clamp(1.15rem, 1vw + 0.95rem, 1.55rem);
  margin: 0 0 14px;
  text-align: center;
  text-transform: uppercase;
}

.mg-quote-spec-box table,
.mg-quote-table table {
  border-collapse: collapse;
  width: 100%;
}

.mg-quote-spec-box th,
.mg-quote-spec-box td {
  border: 0;
  color: #222;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.mg-quote-spec-box th {
  color: #333;
  font-weight: 500;
  width: 32%;
}

.mg-quote-actions {
  text-align: center;
}

.mg-quote-actions .button {
  border-radius: 0;
  display: block;
  margin: 10px auto;
  max-width: 360px;
  width: 100%;
}

.mg-quote-contact-card {
  color: #214a9a;
  display: grid;
  gap: 6px;
  margin-top: 120px;
  padding: 18px 12px;
  text-align: center;
}

.mg-quote-contact-card strong {
  color: #111;
}

.mg-quote-contact-card span,
.mg-quote-contact-card a {
  font-size: 0.86rem;
}

.mg-quote-price-section,
.mg-quote-body,
.mg-quote-related {
  padding: 12px 0 42px;
}

.mg-quote-price-section h2,
.mg-quote-related h2 {
  color: #111;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.7rem);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mg-quote-box,
.mg-quote-sidebar {
  padding: 22px;
}

.mg-quote-table {
  margin: 0 auto;
  max-width: 760px;
}

.mg-quote-table th,
.mg-quote-table td {
  border: 1px solid #e4e4e4;
  padding: 10px;
}

.mg-quote-table th {
  background: #214a9a;
  color: #fff;
}

.mg-quote-sidebar {
  margin-bottom: 18px;
  position: sticky;
  top: 90px;
}

.mg-related-quote-card {
  height: 100%;
  text-align: center;
}

.mg-related-quote-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.mg-related-quote-body {
  padding: 16px;
}

.mg-related-quote-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.mg-related-quote-body h3 a {
  color: #ed1b36;
}

.mg-related-quote-body p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.mg-quote-floating {
  bottom: 92px;
  display: grid;
  gap: 8px;
  position: fixed;
  right: 18px;
  z-index: 50;
}

.mg-quote-floating a {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #214a9a;
  display: flex;
  font-size: 0.76rem;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  text-align: center;
  width: 62px;
}

@media (max-width: 849px) {
  .mg-quote-top {
    margin-top: 18px;
  }

  .mg-quote-contact-card {
    margin-top: 16px;
  }

  .mg-quote-sidebar {
    position: static;
  }

  .mg-quote-floating {
    display: none;
  }
}

@media (max-width: 549px) {
  .mg-quote-top {
    padding-left: 8px;
    padding-right: 8px;
  }

  .mg-quote-spec-box,
  .mg-quote-box,
  .mg-quote-sidebar {
    padding: 16px;
  }

  .mg-quote-spec-box th,
  .mg-quote-spec-box td {
    display: block;
    width: 100%;
  }

  .mg-quote-spec-box th {
    padding-bottom: 0;
  }
}


@media (max-width: 849px) {
  .mg-camnang-posts .col-inner {
    margin-top: 16px;
  }

  .mg-sidebar-cats .col-inner {
    margin-top: 24px;
  }

  .mg-contact-form-col .col-inner {
    margin-top: 16px;
  }
}

@media (max-width: 549px) {
  .mg-category-section .mg-cat-box .col-inner > p {
    font-size: 0.72rem;
  }

  .mg-service-card .col-inner > p,
  .mg-quote-card .col-inner > p {
    font-size: 0.82rem;
  }

  .mg-partner-logo img {
    max-height: 40px;
  }

  .mg-contact-hero {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .mg-contact-info .col-inner,
  .mg-contact-form-col .col-inner {
    padding: 18px;
  }

  .mg-contact-info .button {
    display: block;
    margin-right: 0;
    width: 100%;
  }
}

