/* Original homepage hero and the project-first content sections. */
.a1-homepage {
  --a1-home-ink: #153b2e;
  --a1-home-muted: #4a5e53;
  --a1-home-paper: #fcfaf4;
  --a1-home-white: #fffefa;
  --a1-home-line: #e0ddcf;
  --a1-home-gold: #806337;
}
.a1-homepage #main { background: var(--a1-home-paper); }

.a1-homepage :is(.section-projects, .a1-home-guides, .a1-exam-feature, .a1-home-contact) a:focus-visible {
  outline: 2px solid #285c47;
  outline-offset: 4px;
}
.a1-homepage :is(#du-an-noi-bat, #thu-vien-chu-de) { scroll-margin-top: 7rem; }
.a1-homepage .property-hero-slideshow .property-hero-shell {
  min-height: clamp(500px, 43vw, 640px);
}
.a1-homepage .property-hero-copy { width: min(640px, 55%); }
.a1-homepage .property-hero-copy h1 {
  font-size: clamp(43px, 4.5vw, 72px);
  line-height: 1.1;
  margin-bottom: .85rem;
}
.a1-homepage .property-hero-copy > p:not(.eyebrow) { max-width: 44ch; }
.a1-homepage .property-hero-copy .button-row { gap: .7rem; }
.a1-homepage .property-hero-copy .button,
.a1-homepage .property-hero-copy .a1-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .68rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}
.a1-homepage .property-hero-copy .a1-hero-secondary {
  border: 1px solid #fff6d996;
  color: #fff9eb;
  background: #152f2780;
  text-decoration: none;
}
.a1-homepage .property-hero-copy .a1-hero-secondary:hover { background: #173d30; }
.a1-homepage .ntd-slideshow-home .ntd-slide-media::after {
  background: linear-gradient(90deg, #122f27f7 0%, #16342be3 30%, #16342b84 52%, #16342b00 80%),
    linear-gradient(0deg, #10291fdb, transparent 34%);
}

.a1-homepage :is(.a1-home-compare, .a1-home-zalo) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .64rem .95rem;
  border: 1px solid #b6c4b8;
  border-radius: 6px;
  color: var(--a1-home-ink);
  background: var(--a1-home-white);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.a1-homepage :is(.a1-home-compare, .a1-home-zalo):hover {
  border-color: #758d7e;
  background: #ebf1e8;
}

.a1-homepage :is(.section-projects, .a1-home-guides) { padding-block: clamp(2.45rem, 5.5vw, 4.75rem); }
.a1-homepage :is(.section-projects, .a1-home-guides) .section-heading {
  align-items: end;
  gap: .8rem 1.5rem;
  margin-bottom: clamp(1.1rem, 2.8vw, 2rem);
}
.a1-homepage :is(.section-projects, .a1-home-guides) .section-heading h2 {
  margin-bottom: .36rem;
  color: var(--a1-home-ink);
  font-size: clamp(28px, 3.35vw, 46px);
  line-height: 1.18;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.a1-homepage :is(.section-projects, .a1-home-guides) .section-heading p {
  margin-bottom: 0;
  color: var(--a1-home-muted);
  line-height: 1.6;
}
.a1-homepage .section-projects { background: #f2f0e7; border-color: var(--a1-home-line); }
.a1-homepage :is(.a1-home-project-actions, .a1-home-contact-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1rem;
}
.a1-homepage :is(.a1-home-project-actions, .a1-home-guides .section-heading) .text-link { min-height: 44px; }
.a1-homepage .section-projects .projects-grid { gap: clamp(16px, 2.3vw, 30px); }
.a1-homepage .section-projects .project-card {
  display: flex;
  flex-direction: column;
  border-color: var(--a1-home-line);
  border-radius: 13px;
  background: var(--a1-home-white);
  box-shadow: 0 5px 18px #1735250c;
}
.a1-homepage .section-projects .project-cover img { transition-duration: .35s; }
.a1-homepage .section-projects .project-label {
  background: #fffefaef;
  color: var(--a1-home-ink);
  border-color: #d9cfb4;
  border-radius: 5px;
}
.a1-homepage .section-projects .project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2.2vw, 28px);
}
.a1-homepage .section-projects .card-meta {
  margin-bottom: .55rem;
  color: var(--a1-home-muted);
  font-size: .79rem;
  letter-spacing: 0;
  text-transform: none;
}
.a1-homepage .section-projects .card-meta span { margin-inline: .36em; }
.a1-homepage .section-projects .project-card-body h3 { margin-bottom: .5rem; }
.a1-homepage .section-projects .project-card-body > p:not(.card-meta) { min-height: 0; margin-bottom: .8rem; }
.a1-homepage .section-projects .card-bottom { margin-top: auto; padding-block: .4rem 0; }
.a1-homepage .section-projects .card-bottom .text-link { min-height: 44px; }
.a1-homepage .section-projects .cover-arrow { display: none; }

.a1-homepage .a1-knowledge-audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(15px, 2.3vw, 30px);
  align-items: stretch;
}
.a1-homepage .a1-knowledge-track {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.6vw, 35px);
  border: 1px solid var(--a1-home-line);
  border-top: 3px solid #a58b57;
  border-radius: 13px;
  background: var(--a1-home-white);
}
.a1-homepage .a1-knowledge-broker { background: #edf3eb; border-color: #d4e0d1; border-top-color: #4b7460; }
.a1-homepage .a1-knowledge-track h3 {
  margin: 0 0 .8rem;
  color: var(--a1-home-ink);
  font: 400 clamp(23px, 2.5vw, 33px)/1.2 Lora, Georgia, serif;
}
.a1-homepage .a1-knowledge-track ul { list-style: none; margin: 0 0 .65rem; padding: 0; }
.a1-homepage .a1-knowledge-track li { border-top: 1px solid #d9ded1; }
.a1-homepage .a1-knowledge-track li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .23rem .7rem;
  min-height: 44px;
  padding-block: .72rem;
  color: var(--a1-home-ink);
}
.a1-homepage .a1-knowledge-track li a::after { content: '↗'; color: var(--a1-home-gold); grid-column: 2; grid-row: 1; }
.a1-homepage .a1-knowledge-track li strong { grid-column: 1; font-weight: 700; }
.a1-homepage .a1-knowledge-track li a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.a1-homepage .a1-knowledge-track li span {
  grid-column: 1;
  color: var(--a1-home-muted);
  font-size: .89rem;
  line-height: 1.54;
}
.a1-homepage .a1-knowledge-all { margin-top: auto; min-height: 44px; align-self: start; }

.a1-homepage .a1-exam-feature {
  grid-template-columns: minmax(0, 1fr) min(24%, 220px);
  gap: clamp(18px, 4vw, 56px);
  margin-block: 0 clamp(1.5rem, 3vw, 2.7rem);
  padding: clamp(20px, 3.6vw, 48px);
  border-color: #d4dfd1;
  background: #e8efe6;
  color: var(--a1-home-ink);
}
.a1-homepage .a1-exam-feature h2 {
  color: var(--a1-home-ink);
  font-size: clamp(28px, 3.6vw, 48px);
}
.a1-homepage .a1-exam-feature p:not(.eyebrow) { color: var(--a1-home-muted); }
.a1-homepage .a1-exam-feature .eyebrow { color: var(--a1-home-gold); }
.a1-homepage .a1-exam-feature img { border-color: #c8d3c5; }
.a1-homepage .a1-exam-feature .button { background: #204a38; border-color: #204a38; color: #fffdf5; }
.a1-homepage .a1-exam-feature .button:hover { background: #143728; border-color: #143728; }
.a1-homepage .a1-home-contact {
  margin-block: 0 clamp(2.5rem, 5vw, 4.4rem);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--a1-home-line);
  border-radius: 12px;
  background: var(--a1-home-white);
}
.a1-homepage .a1-home-contact .button { min-height: 46px; }

@media (max-width: 900px) {
  .a1-homepage :is(#du-an-noi-bat, #thu-vien-chu-de) { scroll-margin-top: 6rem; }
}
@media (max-width: 780px) {
  .a1-homepage .property-hero-slideshow { background: #fcfaf3; }
  .a1-homepage .property-hero-slideshow > .ntd-slideshow-home {
    position: relative;
    inset: auto;
    height: clamp(240px, 54vw, 340px);
  }
  .a1-homepage .ntd-slideshow-home .ntd-slide-media::after {
    background: linear-gradient(0deg, #102b23eb, #102b2340 38%, transparent 69%);
  }
  .a1-homepage .ntd-slideshow-home .ntd-slide-caption {
    inset: auto 18px 65px 18px;
    max-width: 100%;
  }
  .a1-homepage .ntd-slideshow-home .ntd-slide-link {
    display: grid;
    width: fit-content;
    max-width: 100%;
    padding: .55rem .76rem;
  }
  .a1-homepage .ntd-slideshow-home .ntd-slide-link strong { font-size: clamp(17px, 4.3vw, 21px); }
  .a1-homepage .ntd-slideshow-home .ntd-slideshow-controls { inset: auto 18px 10px 18px; }
  .a1-homepage .property-hero-slideshow .property-hero-shell { min-height: 0; padding-block: 1.3rem 1.65rem; }
  .a1-homepage .property-hero-copy { width: 100%; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .a1-homepage .property-hero-copy .eyebrow { color: #72582f; }
  .a1-homepage .property-hero-copy h1 {
    max-width: 16ch;
    margin-bottom: .67rem;
    color: #203b30;
    font-size: clamp(31px, 7vw, 49px);
  }
  .a1-homepage .property-hero-copy h1 span { color: inherit; }
  .a1-homepage .property-hero-copy > p:not(.eyebrow) { color: #3d5749; margin-bottom: 1rem; }
  .a1-homepage .property-hero-copy .button {
    background: #244c3a;
    border-color: #244c3a;
    color: #fffdf7;
  }
  .a1-homepage .property-hero-copy .button:hover { background: #183b2e; }
  .a1-homepage .property-hero-copy .a1-hero-secondary {
    color: #244c3a;
    background: #fffefa;
    border-color: #b0bdb1;
  }
  .a1-homepage .property-hero-copy .a1-hero-secondary:hover { background: #eaf0e7; }
}

@media (max-width: 680px) {
  .a1-homepage .a1-knowledge-audiences { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .a1-homepage :is(#du-an-noi-bat, #thu-vien-chu-de) { scroll-margin-top: 5rem; }
  .a1-homepage .a1-home-project-actions { margin-top: .65rem; }
  .a1-homepage .a1-exam-feature { grid-template-columns: minmax(0, 1fr) 70px; }

  /* The phone action and the two existing support widgets share one mobile row. */
  .a1-homepage:has(.a1-sales-widgets) { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .a1-homepage:has(.a1-sales-widgets) .mobile-contact:has(.a1-mobile-consult) {
    grid-template-columns: minmax(84px, 29%) minmax(0, 1fr);
    min-height: calc(64px + env(safe-area-inset-bottom));
    align-items: center;
    padding-block: 0 env(safe-area-inset-bottom);
    z-index: 73;
  }
  .a1-homepage:has(.a1-sales-widgets) .mobile-contact .a1-mobile-consult { display: none; }
  .a1-homepage .a1-sales-widgets .a1-widget { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .a1-homepage .a1-sales-widgets .a1-widget-lead {
    left: max(calc(29% + 8px), calc(50% - 87px));
    width: min(174px, calc(71% - 72px));
  }
  .a1-homepage .a1-sales-widgets .a1-widget-lead .a1-chat-launch {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding-inline: .45rem;
    box-shadow: none;
    font-size: .8rem;
  }
  .a1-homepage .a1-sales-widgets .a1-widget-chat .a1-chat-launch {
    width: 44px;
    height: 44px;
    box-shadow: none;
  }
  .a1-homepage .a1-sales-widgets .a1-widget-panel { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
  .a1-homepage .property-hero-copy .button,
  .a1-homepage .property-hero-copy .a1-hero-secondary { padding-inline: .75rem; }
  .a1-homepage .property-hero-copy .button-row { gap: .5rem; }
  .a1-homepage .a1-exam-feature { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .a1-homepage .section-projects .project-cover img { transition: none; }
}
