/* ==========================================================
   HOME - Các khối trang chủ: hero, chỉ số, hệ thống, tin tức, lợi thế, quy trình, kêu gọi hành động.
   ========================================================== */
.sec-ivory, .section-soft {
  background: var(--ivory);
}

.sec-indigo, .section-dark {
  background: var(--indigo);
   color: #d9e0ec;
}

.sec-indigo h2, .sec-indigo h3, .section-dark h2, .section-dark h3 {
  color: var(--white);
}

.sec-indigo p, .section-dark p {
  color: #b9c4d8;
}

.sec-indigo .kicker, .section-dark .eyebrow, .eyebrow-light {
  color: #ff9c8a;
}

.sec-indigo .kicker::before, .section-dark .eyebrow::before {
  background: #ff9c8a;
}

.hero-actions {
  display: flex;
   gap: .9rem;
   flex-wrap: wrap;
}

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
   background: var(--paper);
   overflow: hidden;
}

.hero-grid {
  display: grid;
   grid-template-columns: 1.02fr .98fr;
   gap: clamp(2.5rem, 5vw, 4.5rem);
   align-items: center;
   width: min(100% - 3rem, var(--container));
   margin-inline: auto;
}

.hero .lead {
  margin-bottom: 2.4rem;
}

.hero-art {
  position: relative;
   padding: 0 1.25rem 1.25rem 0;
}

.hero-art::before {
  content: "";
   position: absolute;
   inset: 0 0 1.25rem 1.25rem;
   border: 1.5px solid var(--indigo);
   border-radius: 28px;
   transform: translate(10px, -10px);
   z-index: 0;
}

.hero-art img {
  position: relative;
   z-index: 1;
   border-radius: 28px;
   box-shadow: 0 30px 60px -28px rgba(27,47,79,.45);
}

.float-card {
  position: absolute;
   left: 0;
   bottom: 2.25rem;
   z-index: 2;
   background: var(--white);
   border-radius: 14px;
  
  padding: .9rem 1.1rem;
   box-shadow: 0 16px 40px rgba(27,47,79,.16);
   display: flex;
   gap: .75rem;
   align-items: center;
   max-width: 250px;
  
  animation: imaru-float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
   color: var(--indigo);
   font-size: .92rem;
   line-height: 1.3;
}

.float-card span {
  color: var(--muted);
   font-size: .8rem;
   line-height: 1.4;
}

.dot-live {
  width: 10px;
   height: 10px;
   border-radius: 50%;
   background: var(--vermilion);
   box-shadow: 0 0 0 4px var(--vermilion-soft);
   flex: 0 0 10px;
}

.hero-scroll {
  display: inline-flex;
   align-items: center;
   gap: .8rem;
   margin-top: 2.8rem;
   color: var(--muted);
   font-size: .72rem;
   letter-spacing: .2em;
   text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
   width: 1px;
   height: 36px;
   background: linear-gradient(var(--vermilion), transparent);
}

@keyframes imaru-float {
  0%,100% { transform: translateY(0);
   } 50% { transform: translateY(-8px);
   }
}

.marquee {
  background: var(--indigo);
   color: #d9e0ec;
   padding: 1.1rem 0;
   overflow: hidden;
}

.marquee-track {
  display: flex;
   width: max-content;
   animation: imaru-marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
   align-items: center;
   gap: 2.4rem;
   padding-right: 2.4rem;
   font-family: var(--serif);
   font-size: 1.15rem;
   font-style: italic;
   white-space: nowrap;
   line-height: 1;
}

.marquee-item::after {
  content: "";
   width: 7px;
   height: 7px;
   background: var(--vermilion);
   transform: rotate(45deg);
   flex: 0 0 7px;
}

@keyframes imaru-marquee {
  from { transform: translateX(0);
   } to { transform: translateX(-50%);
   }
}

.split {
  display: grid;
   grid-template-columns: 1fr 1fr;
   gap: clamp(2.5rem, 6vw, 5.5rem);
   align-items: center;
   width: min(100% - 3rem, var(--container));
   margin-inline: auto;
}

.split .lead {
  margin-bottom: 2rem;
}

.stack {
  display: grid;
   border-top: 1px solid var(--rule);
}

.point {
  display: grid;
   grid-template-columns: 52px 1fr;
   gap: 1.1rem;
   align-items: center;
   padding: 1.3rem 0;
   border-bottom: 1px solid var(--rule);
}

.point .ico, .ico {
  width: 52px;
   height: 52px;
   border-radius: 50%;
   background: var(--vermilion-soft);
   color: var(--vermilion-text);
   display: grid;
   place-items: center;
   flex: 0 0 52px;
}

.point .ico svg, .ico svg {
  width: 22px;
   height: 22px;
}

.point strong {
  display: block;
   color: var(--indigo);
   font-size: 1.02rem;
   margin-bottom: .1rem;
}

.point span {
  color: var(--muted);
   font-size: .95rem;
}

.statement {
  position: relative;
   background: var(--indigo);
   color: var(--white);
   border-radius: 4px;
   padding: clamp(2.6rem, 5vw, 3.6rem);
   overflow: hidden;
   margin: 0;
}

.statement::after {
  content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   height: 6px;
   background: var(--vermilion);
}

.statement .big-mark {
  display: block;
   font-family: var(--serif);
   font-size: 5rem;
   line-height: .6;
   color: var(--vermilion);
   margin-bottom: 1.2rem;
   height: .6em;
}

.statement h3 {
  color: var(--white);
   font-size: clamp(1.4rem, 2.5vw, 1.9rem);
   line-height: 1.35;
   font-style: italic;
   margin: 0;
}

.statement p {
  color: #b9c4d8;
   margin: 1.4rem 0 0;
   font-size: .95rem;
}

.sec-head {
  display: grid;
   grid-template-columns: 1fr auto;
   gap: 2rem;
   align-items: end;
   margin-bottom: 3.2rem;
   width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   margin-bottom: 3.2rem;
}

.sec-head p {
  color: var(--muted);
   max-width: 400px;
   margin: 0;
}

.slide {
  display: flex;
   flex-direction: column;
   min-height: 360px;
   padding: 2rem 1.8rem 2.2rem;
  
  background: var(--paper);
   color: inherit;
   border-right: 1px solid var(--rule);
   border-bottom: 1px solid var(--rule);
   transition: background .35s var(--ease);
}

.slide:hover {
  background: var(--white);
   color: inherit;
}

.slide .num {
  font-family: var(--serif);
   font-style: italic;
   font-size: 1rem;
   color: var(--vermilion-text);
   margin-bottom: 2.2rem;
}

.slide .ico {
  width: 52px;
   height: 52px;
   border: 1.5px solid var(--indigo);
   background: transparent;
   color: var(--indigo);
   margin-bottom: 1.6rem;
   transition: background .35s var(--ease), color .35s var(--ease);
}

.slide:hover .ico {
  background: var(--indigo);
   color: var(--white);
}

.slide h3 {
  font-size: 1.22rem;
   min-height: 2.4em;
}

.slide p {
  color: var(--muted);
   font-size: .95rem;
   margin: 0;
}

.slide .more {
  margin-top: auto;
   padding-top: 1.4rem;
   color: var(--vermilion-text);
   font-weight: 600;
   font-size: .88rem;
}

.feature {
  display: grid;
   grid-template-columns: 1fr 1fr;
   gap: clamp(2.5rem, 6vw, 5rem);
   align-items: center;
   width: min(100% - 3rem, var(--container));
   margin-inline: auto;
}

.feature + .feature {
  margin-top: clamp(4.5rem, 9vw, 7rem);
   padding-top: clamp(4.5rem, 9vw, 7rem);
   border-top: 1px solid var(--rule);
}

.feature.flip .feature-media {
  order: 2;
}

.feature h2 {
  margin-bottom: .6em;
}

.feature .lead {
  margin-bottom: 0;
}

.checks {
  display: grid;
   gap: .9rem;
   margin: 1.8rem 0 2.2rem;
}

.checks li {
  position: relative;
   padding-left: 2rem;
   color: var(--indigo);
   font-weight: 500;
   line-height: 1.6;
}

.checks li::before {
  content: "";
   position: absolute;
   left: 0;
   top: .45em;
   width: 12px;
   height: 12px;
   background: var(--vermilion);
   transform: rotate(45deg);
}

.feature-media {
  position: relative;
   background: var(--indigo);
   border-radius: 4px;
   aspect-ratio: 4 / 3.4;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
}

.feature-media::before {
  content: "";
   position: absolute;
   inset: 22px;
   border: 1px solid rgba(255,255,255,.18);
   border-radius: 2px;
}

.feature-media .ico-big {
  width: 132px;
   height: 132px;
   border-radius: 50%;
   border: 1.5px solid rgba(255,255,255,.35);
   color: #ff9c8a;
   display: grid;
   place-items: center;
   position: relative;
   z-index: 1;
   background: transparent;
}

.feature-media .ico-big svg {
  width: 60px;
   height: 60px;
}

.why-grid {
  width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   border-top: 1px solid var(--rule);
}

.why {
  padding: 2.8rem 2.2rem 0 0;
}

.why + .why {
  padding-left: 2.2rem;
   border-left: 1px solid var(--rule);
}

.why .ico {
  width: 48px;
   height: 48px;
   background: transparent;
   color: var(--vermilion-text);
   margin-bottom: 1.4rem;
}

.why .ico svg {
  width: 34px;
   height: 34px;
}

.why p {
  color: var(--muted);
   margin: 0;
}

.timeline {
  width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1.5rem;
}

.tl-step {
  position: relative;
}

.tl-dot {
  position: relative;
   z-index: 1;
   width: 56px;
   height: 56px;
   border-radius: 50%;
   background: var(--paper);
   border: 1.5px solid var(--indigo);
   color: var(--indigo);
   font-family: var(--serif);
   font-size: 1.25rem;
   display: grid;
   place-items: center;
   margin-bottom: 1.6rem;
}

.tl-step:first-child .tl-dot {
  background: var(--indigo);
   color: var(--white);
}

.tl-step:not(:last-child)::after {
  content: "";
   position: absolute;
   top: 28px;
   left: 56px;
   right: -1.5rem;
   height: 1px;
   background: var(--rule);
}

.tl-step h3 {
  font-size: 1.2rem;
}

.tl-step p {
  color: var(--muted);
   font-size: .95rem;
   margin: 0;
   padding-right: 1rem;
}

.process {
  width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1.5rem;
}

.process li {
  position: relative;
}

.process-num {
  display: grid;
   place-items: center;
   width: 56px;
   height: 56px;
   border-radius: 50%;
   border: 1.5px solid var(--indigo);
   color: var(--indigo);
   font-family: var(--serif);
   font-size: 1.25rem;
   margin-bottom: 1.6rem;
}

.process li:first-child .process-num {
  background: var(--indigo);
   color: var(--white);
}

.process h3 {
  font-size: 1.2rem;
}

.process p {
  color: var(--muted);
   font-size: .95rem;
   margin: 0;
}

.process-dark .process-num {
  border-color: #ff9c8a;
   color: #ff9c8a;
}

.process-dark li:first-child .process-num {
  background: #ff9c8a;
   color: var(--indigo);
}

.process-dark h3 {
  color: var(--white);
}

.process-dark p {
  color: #b9c4d8;
}

.cta, .cta-band {
  display: grid;
   grid-template-columns: 1.2fr .8fr;
   gap: 2.5rem;
   align-items: center;
  
  background: var(--indigo);
   color: var(--white);
   border-radius: 4px;
   padding: clamp(2.8rem, 6vw, 4.4rem);
  
  position: relative;
   overflow: hidden;
   width: min(100% - 3rem, var(--container));
   margin-inline: auto;
}

.cta::after, .cta-band::after {
  content: "";
   position: absolute;
   right: -90px;
   top: -90px;
   width: 260px;
   height: 260px;
   border-radius: 50%;
   background: var(--vermilion);
}

.cta > *, .cta-band > * {
  position: relative;
   z-index: 1;
}

.cta h2, .cta-band h2 {
  color: var(--white);
   margin-bottom: .45em;
}

.cta p, .cta-band p {
  color: #c7d1e3;
   max-width: 540px;
   margin: 0;
}

.cta-side {
  display: grid;
   gap: .75rem;
   justify-items: start;
}

.cta-side a:not(.btn) {
  color: var(--white);
   font-weight: 600;
   border-bottom: 1px solid rgba(255,255,255,.35);
   padding-bottom: 2px;
}

.cta-side a:not(.btn):hover {
  color: #ffd1c8;
   border-color: #ffd1c8;
}

.cta-side .btn {
  width: 100%;
   max-width: 260px;
}

.timeline {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.portal-hero {
  padding: clamp(3rem, 6vw, 5rem) 0;
   background: var(--paper);
}

.portal-hero-grid {
  width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: clamp(2rem, 4vw, 4rem);
   align-items: center;
}

.portal-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
   line-height: 1.12;
   margin-bottom: .45em;
}

.portal-hero .lead {
  color: var(--muted);
   font-size: 1.05rem;
   margin-bottom: 2rem;
}

.portal-photo {
  border-radius: var(--r-xl);
   overflow: hidden;
   background: var(--ivory);
   border: 1px solid var(--rule);
   box-shadow: 0 18px 40px -24px rgba(43,33,27,.35);
}

.portal-photo img {
  width: 100%;
   height: auto;
}

.portal-about {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
   background: var(--ivory);
}

.portal-about-grid {
  width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   display: grid;
   grid-template-columns: 1.1fr 1fr;
   gap: clamp(2rem, 4vw, 4rem);
   align-items: center;
}

.portal-about h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
   margin-bottom: .6em;
}

.portal-about p {
  color: var(--ink);
   max-width: 560px;
}

.portal-stats {
  display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1rem;
}

.stat {
  background: var(--white);
   border: 1px solid var(--rule);
   border-radius: var(--r-lg);
   padding: 1.6rem 1rem;
   text-align: center;
}

.stat strong {
  display: block;
   font-size: clamp(1.8rem, 3vw, 2.4rem);
   color: var(--indigo);
   line-height: 1.1;
   font-weight: 800;
}

.stat span {
  display: block;
   color: var(--muted);
   font-size: .84rem;
   margin-top: .5rem;
   line-height: 1.4;
}

.portal-section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

#he-thong.portal-section {
  padding: clamp(4rem, 7vw, 5.5rem) 1.5rem;
}

#he-thong .sec-head {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.portal-section .sec-head {
  margin-bottom: 2.2rem;
}

.portal-section .sec-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.system-grid {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.system-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(43,33,27,.05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.system-card:hover {
  transform: translateY(-3px);
   box-shadow: 0 16px 30px -18px rgba(43,33,27,.35);
   color: var(--ink);
}

.system-logo {
  width: 64px;
   height: 64px;
   border-radius: var(--r-md);
   border: 1px solid var(--rule);
   background: var(--paper);
   display: grid;
   place-items: center;
   margin-bottom: 1.1rem;
   overflow: hidden;
}

.system-logo img {
  width: 100%;
   height: 100%;
   object-fit: contain;
   padding: 6px;
}

.system-letter {
  font-weight: 800;
   color: var(--indigo);
   font-size: .95rem;
   letter-spacing: .02em;
}

.system-card h3 {
  font-size: 1.1rem;
   margin-bottom: .15rem;
}

.system-tag {
  color: var(--vermilion-text);
   font-weight: 600;
   font-size: .85rem;
   margin-bottom: .6rem;
}

.system-card p {
  color: var(--muted);
   font-size: .9rem;
   margin: 0 0 1rem;
}

.system-link {
  margin-top: auto;
   color: var(--indigo);
   font-weight: 700;
   font-size: .86rem;
}

.portal-news {
  background: var(--ivory);
}

.news-grid {
  width: min(100% - 3rem, var(--container));
   margin-inline: auto;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1.25rem;
}

.news-card {
  background: var(--white);
   border: 1px solid var(--rule);
   border-radius: var(--r-xl);
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.news-thumb {
  aspect-ratio: 16 / 10;
   background: var(--paper);
   overflow: hidden;
   display: block;
}

.news-thumb img {
  width: 100%;
   height: 100%;
   object-fit: cover;
}

.news-body {
  padding: 1.2rem 1.3rem 1.4rem;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.news-date {
  color: var(--muted);
   font-size: .78rem;
   margin-bottom: .4rem;
}

.news-body h3 {
  font-size: 1rem;
   margin-bottom: .45rem;
}

.news-body h3 a {
  color: var(--ink);
}

.news-body p {
  color: var(--muted);
   font-size: .88rem;
   margin: 0;
}

.news-more {
  margin-top: auto;
   padding-top: .9rem;
   color: var(--indigo);
   font-weight: 700;
   font-size: .86rem;
}

.news-all {
  display: inline-block;
   margin-top: 1.5rem;
   color: var(--indigo);
   font-weight: 700;
   font-size: .92rem;
}

/* Ảnh dịch vụ chọn từ thư viện (thay cho icon) */
.ico-img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--r-md); background: var(--white); padding: 4px; margin-bottom: 1.2rem; display: block; }

/* Ảnh khối Hệ sinh thái (chọn trong Tùy chỉnh) */
.systems-banner { width: min(100% - 3rem, 1200px); margin: 0 auto 2.2rem; border-radius: var(--r-xl); overflow: hidden; }
.systems-banner img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
