/* Desktop refinement for homepage sections 10–17. Mobile keeps its dedicated design. */
@media (min-width: 981px) {
  body.page-id-4 .elementor .h77n-case,
  body.page-id-4 .elementor .h77n-commitment,
  body.page-id-4 .elementor .h77n-testimonial,
  body.page-id-4 .elementor .h77n-process,
  body.page-id-4 .elementor .h77n-articles {
    padding: 68px 0;
  }

  body.page-id-4 .elementor .h77n-inner,
  body.page-id-4 .elementor .h77n-case-layout,
  body.page-id-4 .homepage-v3-lead > .container.grid.grid-2 {
    width: min(1180px, calc(100% - 56px)) !important;
  }

  body.page-id-4 .elementor .h77n-h2 .elementor-heading-title {
    font-size: clamp(31px, 2.45vw, 42px);
    letter-spacing: -0.035em;
  }

  /* Dự án nổi bật */
  body.page-id-4 .elementor .h77n-case {
    background:
      radial-gradient(circle at 93% 14%, rgba(31, 117, 214, .09), transparent 28%),
      linear-gradient(180deg, #f5f8fd 0%, #edf3fb 100%);
  }
  body.page-id-4 .elementor .h77n-case-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .9fr);
    gap: 48px;
  }
  body.page-id-4 .elementor .h77n-case-media {
    min-height: 474px;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(6, 36, 95, .14);
  }
  body.page-id-4 .h77n-case-image img {
    min-height: 474px;
  }
  body.page-id-4 .elementor .h77n-case-content {
    gap: 14px;
  }
  body.page-id-4 .elementor .h77n-case-facts {
    gap: 10px;
  }
  body.page-id-4 .elementor .h77n-case-fact,
  body.page-id-4 .elementor .h77n-case-note {
    padding: 13px 15px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(6, 36, 95, .045);
  }
  body.page-id-4 .h77n-case-image-note {
    display: none;
  }

  /* 8 cam kết */
  body.page-id-4 .elementor .h77n-commitment {
    background: #fff;
  }
  body.page-id-4 .elementor .h77n-commitment-head {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 30px;
  }
  body.page-id-4 .elementor .h77n-commitment-lead p {
    color: #53657d;
    font-size: 15px;
    line-height: 1.7;
  }
  body.page-id-4 .elementor .h77n-commitment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  body.page-id-4 .elementor .h77n-commitment-card {
    min-height: 190px;
    gap: 8px;
    padding: 72px 18px 18px;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(6, 36, 95, .065);
  }
  body.page-id-4 .elementor .h77n-commitment-card::before {
    content: "";
    left: 18px;
    top: 17px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #eef5ff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 21px;
  }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(1)::before { background-image: url("icons/team-v2/shield-check.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(2)::before { background-image: url("icons/team-v2/badge-check.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(3)::before { background-image: url("icons/team-v2/heart-handshake.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(4)::before { background-image: url("icons/team-v2/calculator.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(5)::before { background-image: url("icons/team-v2/clipboard-check.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(6)::before { background-image: url("icons/team-v2/sparkles.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(7)::before { background-image: url("icons/team-v2/target.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:nth-child(8)::before { background-image: url("icons/team-v2/handshake.svg"); }
  body.page-id-4 .elementor .h77n-commitment-card:hover::before {
    background-color: #dcebff;
    transform: scale(1.04);
  }
  body.page-id-4 .elementor .h77n-commitment-card::after {
    right: 18px;
    top: 28px;
  }
  body.page-id-4 .h77n-commitment-title .elementor-heading-title {
    font-size: 16px;
  }
  body.page-id-4 .h77n-commitment-text p {
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 4;
  }

  /* Cảm nhận khách hàng */
  body.page-id-4 .elementor .h77n-testimonial {
    background: linear-gradient(180deg, #f3f7fc, #edf4fb);
  }
  body.page-id-4 .elementor .h77n-testimonial-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .55fr);
    gap: 22px;
  }
  body.page-id-4 .elementor .h77n-testimonial-head {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0 auto 10px;
  }
  body.page-id-4 .elementor .h77n-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  body.page-id-4 .elementor .h77n-testimonial-card {
    border-radius: 10px;
  }
  body.page-id-4 .elementor .h77n-testimonial-media {
    height: 210px;
  }
  body.page-id-4 .elementor .h77n-testimonial-body {
    gap: 5px;
    padding: 16px 18px 18px;
  }
  body.page-id-4 .h77n-testimonial-name .elementor-heading-title {
    font-size: 16px;
  }
  body.page-id-4 .h77n-testimonial-quote p {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }
  body.page-id-4 .elementor .h77n-testimonial-note {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 10px;
    background: #eaf1fa;
  }
  body.page-id-4 .elementor .h77n-testimonial-note-image,
  body.page-id-4 .elementor .h77n-testimonial-note-image .elementor-widget-container {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  body.page-id-4 .h77n-testimonial-note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .2;
  }
  body.page-id-4 .elementor .h77n-testimonial-note-text {
    position: relative;
    z-index: 1;
    padding: 32px 26px;
    background: linear-gradient(180deg, rgba(241, 247, 253, .1), rgba(241, 247, 253, .98));
  }
  body.page-id-4 .h77n-testimonial-note-text p {
    margin: 0;
    color: #526a8d;
    font-size: 16px;
    line-height: 1.65;
  }
  body.page-id-4 .h77n-testimonial-note-text p::before {
    content: "“";
    display: block;
    color: #c8d8ed;
    font: 800 62px/0.7 Georgia, serif;
  }

  /* 14 bước trên hai cột ngắn gọn */
  body.page-id-4 .elementor .h77n-process {
    background:
      linear-gradient(90deg, rgba(229, 238, 249, .72), transparent 27%),
      #fff;
  }
  body.page-id-4 .elementor .h77n-process-inner {
    display: grid;
    grid-template-columns: minmax(270px, .68fr) minmax(0, 1.55fr);
    gap: 54px;
    align-items: start;
  }
  body.page-id-4 .elementor .h77n-process-head {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  body.page-id-4 .elementor .h77n-process-head-copy {
    display: grid;
    width: 100%;
    gap: 12px;
  }
  body.page-id-4 .elementor .h77n-process-head-copy > .elementor-widget {
    width: 100%;
  }
  body.page-id-4 .elementor .h77n-process-head > .h77n-split-head-copy {
    width: 100%;
  }
  body.page-id-4 .elementor .h77n-process-heading {
    width: 100% !important;
  }
  body.page-id-4 .elementor .h77n-process-lead p {
    color: #53657d;
    font-size: 14px;
    line-height: 1.65;
  }
  body.page-id-4 .elementor .h77n-process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  body.page-id-4 .elementor .h77n-process-step {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    min-height: 58px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 7px;
    box-shadow: 0 7px 20px rgba(6, 36, 95, .06);
  }
  body.page-id-4 .elementor .h77n-process-number,
  body.page-id-4 .h77n-process-number .elementor-heading-title {
    width: 38px;
    height: 38px;
  }
  body.page-id-4 .h77n-process-number .elementor-heading-title {
    font-size: 12px;
    border-radius: 5px;
    box-shadow: none;
  }
  body.page-id-4 .h77n-process-title .elementor-heading-title {
    font-size: 14px;
    line-height: 1.35;
  }
  body.page-id-4 .elementor .h77n-process-text,
  body.page-id-4 .elementor .h77n-process-meta {
    display: none;
  }

  /* Bài viết mới nhất */
  body.page-id-4 .elementor .h77n-articles {
    background: #eaf2ff;
  }
  body.page-id-4 .elementor .h77n-articles-head {
    margin-bottom: 24px;
  }
  body.page-id-4 .elementor .h77n-articles-grid {
    gap: 18px;
  }
  body.page-id-4 .elementor .h77n-article-card {
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 9px;
  }
  body.page-id-4 .elementor .h77n-article-image,
  body.page-id-4 .elementor .h77n-article-image .elementor-widget-container {
    height: 168px;
  }
  body.page-id-4 .h77n-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
  }
  body.page-id-4 .h77n-article-card:hover .h77n-article-image img {
    transform: scale(1.035);
  }
  body.page-id-4 .elementor .h77n-article-body {
    display: grid;
    gap: 8px;
    padding: 17px 18px 18px;
  }
  body.page-id-4 .elementor .h77n .h77n-article-title {
    margin-top: 0;
  }
  body.page-id-4 .h77n-article-title .elementor-heading-title {
    font-size: 17px;
  }
  body.page-id-4 .h77n-article-text p {
    margin: 0;
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

  /* Form tư vấn ngang, rộng và ngắn */
  body.page-id-4 .homepage-v3-lead {
    position: relative;
    overflow: hidden;
    border-top: 28px solid #fff;
    padding: 66px 0 !important;
    background:
      linear-gradient(90deg, rgba(240, 246, 253, .96) 0%, rgba(240, 246, 253, .9) 34%, rgba(240, 246, 253, .98) 100%),
      url("/wp-content/uploads/2026/09/consultation-before-quotation.webp") left center / 42% auto no-repeat;
  }
  body.page-id-4 .homepage-v3-lead > .container.grid.grid-2 {
    width: min(1380px, calc(100% - 40px)) !important;
    grid-template-columns: minmax(340px, .58fr) minmax(760px, 1.42fr) !important;
    gap: 40px !important;
    align-items: start !important;
  }
  body.page-id-4 .homepage-v3-form-shell,
  body.page-id-4 .homepage-v3-form-shell .h77-reg-root {
    width: 100% !important;
    max-width: none !important;
  }
  body.page-id-4 .elementor .h77n-lead-copy {
    gap: 13px;
  }
  body.page-id-4 .elementor .h77n-lead-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  body.page-id-4 .elementor .h77n-lead-benefit {
    position: relative;
    padding-top: 43px;
    text-align: center;
  }
  body.page-id-4 .h77n-lead-benefit .elementor-heading-title {
    color: #17376a;
    font-size: 12px;
    font-weight: 750;
  }
  body.page-id-4 .elementor .h77n-lead-benefit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff center / 18px no-repeat;
    box-shadow: 0 8px 20px rgba(6, 36, 95, .1);
    transform: translateX(-50%);
  }
  body.page-id-4 .elementor .h77n-lead-benefit-consult::before { background-image: url("icons/team-v2/heart-handshake.svg"); }
  body.page-id-4 .elementor .h77n-lead-benefit-secure::before { background-image: url("icons/team-v2/shield-check.svg"); }
  body.page-id-4 .elementor .h77n-lead-benefit-fast::before { background-image: url("icons/team-v2/message-circle.svg"); }

  body.page-id-4 .h77-quote-form.h77-reg-compact {
    padding: 22px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 54px rgba(6, 36, 95, .13);
  }
  body.page-id-4 .h77-reg-compact .h77-reg-head {
    margin-bottom: 14px;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-head h2 {
    margin: 0 0 4px;
    color: #06245f;
    font-size: 21px;
    line-height: 1.2;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-head p {
    margin: 0;
    color: #68778e;
    font-size: 12px;
  }
  body.page-id-4 .h77-reg-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-field {
    display: grid;
    gap: 5px;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-field > span {
    color: #17376a;
    font-size: 11px;
    font-weight: 750;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-field input,
  body.page-id-4 .h77-reg-compact .h77-reg-field select,
  body.page-id-4 .h77-reg-compact .h77-reg-field textarea {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #172b4d;
    font-size: 12px;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-field textarea {
    min-height: 58px;
    resize: vertical;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-full {
    grid-column: 1 / -1;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 11px;
    color: #69778b;
    font-size: 10.5px;
    line-height: 1.45;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-consent input {
    margin-top: 2px;
  }
  body.page-id-4 .h77-reg-compact .h77-reg-submit {
    width: 100%;
    min-height: 45px;
    margin-top: 12px;
    border-radius: 6px;
    background: linear-gradient(100deg, #06245f, #0d4bb5);
    color: #fff;
    font-size: 12px;
  }

  /* CTA cuối trang nằm gọn trong container, tách rõ với footer */
  body.page-id-4 .elementor .h77n-footer-cta {
    padding: 42px 0 44px;
    background: #f3f7fc;
  }
  body.page-id-4 .elementor .h77n-footer-cta-card {
    width: min(1180px, calc(100% - 56px));
    margin-inline: auto;
    min-height: 168px;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.4fr) minmax(210px, .65fr);
    border: 1px solid rgba(7, 43, 99, .18);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(6, 36, 95, .12);
  }
}

@media (max-width: 980px) {
  body.page-id-4 .elementor .h77n-process-text,
  body.page-id-4 .elementor .h77n-process-meta {
    display: none;
  }
  body.page-id-4 .elementor .h77n-process-list {
    gap: 10px;
  }
  body.page-id-4 .elementor .h77n-process-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 64px;
    align-items: center;
    padding: 10px 12px;
  }
  body.page-id-4 .elementor .h77n-process-number,
  body.page-id-4 .h77n-process-number .elementor-heading-title {
    width: 42px;
    height: 42px;
  }
  body.page-id-4 .h77n-process-number .elementor-heading-title {
    font-size: 13px;
  }
  body.page-id-4 .h77n-process-title .elementor-heading-title {
    font-size: 16px;
    line-height: 1.35;
  }
  body.page-id-4 .elementor .h77n-article-card {
    overflow: hidden;
    padding: 0;
  }
  body.page-id-4 .elementor .h77n-article-image,
  body.page-id-4 .elementor .h77n-article-image .elementor-widget-container {
    height: 190px;
  }
  body.page-id-4 .h77n-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.page-id-4 .elementor .h77n-article-body {
    display: grid;
    gap: 8px;
    padding: 18px;
  }
  body.page-id-4 .elementor .h77n-testimonial-note {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 8px;
  }
  body.page-id-4 .elementor .h77n-testimonial-note-image,
  body.page-id-4 .elementor .h77n-testimonial-note-image .elementor-widget-container {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  body.page-id-4 .h77n-testimonial-note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .24;
  }
  body.page-id-4 .elementor .h77n-testimonial-note-text {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 220px;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(180deg, transparent, rgba(240, 246, 253, .96));
  }
  body.page-id-4 .h77n-testimonial-note-text p {
    color: #526a8d;
    line-height: 1.6;
  }
  body.page-id-4 .elementor .h77n-lead-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  body.page-id-4 .elementor .h77n-lead-benefit {
    position: relative;
    min-height: 68px;
    padding: 42px 4px 0;
    text-align: center;
  }
  body.page-id-4 .h77n-lead-benefit .elementor-heading-title {
    color: #17376a;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
  }
  body.page-id-4 .elementor .h77n-lead-benefit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff center / 18px no-repeat;
    box-shadow: 0 7px 18px rgba(6, 36, 95, .12);
    transform: translateX(-50%);
  }
  body.page-id-4 .elementor .h77n-lead-benefit-consult::before { background-image: url("icons/team-v2/heart-handshake.svg"); }
  body.page-id-4 .elementor .h77n-lead-benefit-secure::before { background-image: url("icons/team-v2/shield-check.svg"); }
  body.page-id-4 .elementor .h77n-lead-benefit-fast::before { background-image: url("icons/team-v2/message-circle.svg"); }
}
