﻿/* Trang chủ: bố cục cân đối, dễ đọc trên desktop và điện thoại */
:root{--home-ink:#1d2a35;--home-gold:#eeb642;--home-muted:#66737d;--home-paper:#f5f6f7}
html{scroll-behavior:smooth;scroll-padding-top:82px}
body{color:var(--home-ink);font-size:16px;line-height:1.65;overflow-x:hidden}
body>header{background:#172630!important;padding:.55rem 0!important}
body>header .container>div:first-child{line-height:1.55}
body>header .social a{width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:50%;transition:.2s}
body>header .social a:hover{background:var(--home-gold);color:#172630!important}
.navbar{position:sticky;top:0;z-index:1000;padding:.6rem 0!important}
.navbar-brand{font-size:1.12rem;line-height:1.05;color:#1d2a35!important}
.navbar-brand small{font-size:.68rem;letter-spacing:.08em}
.navbar .nav-link{font-weight:600;color:#34434d!important;padding:.6rem .8rem!important}
.navbar .nav-link:hover{color:#a87415!important}
#sec-0{min-height:590px;display:flex;align-items:center;position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(13,24,32,.82),rgba(13,24,32,.52)),url('../Images/banner.jpg') center/cover no-repeat}
#sec-0 .intro{width:100%;padding:5.5rem 0;text-align:left;animation:home-appear .7s ease both}
#sec-0 .intro .container{max-width:1100px}
#sec-0 article h1{font-size:.95rem;letter-spacing:.12em;color:#f5c85d;margin-bottom:1rem}
#sec-0 article h2{font-size:clamp(2.5rem,4.5vw,4rem);line-height:1.12;max-width:760px;margin-bottom:1.1rem;letter-spacing:-.025em}
#sec-0 article h2 span{color:#f2bd4b}
#sec-0 article p{font-size:1.05rem;line-height:1.8;color:rgba(255,255,255,.88);max-width:670px;padding:0;margin-bottom:1.7rem}
#sec-0 article a{background:var(--home-gold);color:#1d2a35;border:0;border-radius:4px;padding:.8rem 1.25rem;transition:transform .2s,background .2s}
#sec-0 article a:hover{background:#ffd16a;color:#1d2a35;transform:translateY(-2px)}
#sec-1{padding:5rem 0;background:#fff}
#sec-1>.container{max-width:1100px;display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:3.5rem}
#sec-1 article{padding:0;text-align:left}
#sec-1 article h2{font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.22;color:#1d2a35;margin-bottom:1rem}
#sec-1 article h3{font-size:1rem;line-height:1.5;color:#a87415;letter-spacing:.06em;margin-bottom:1rem}
#sec-1 article p{font-size:1rem;line-height:1.85;color:var(--home-muted);text-align:left;margin:0}
#sec-1 aside{width:100%;margin:0;position:relative}
#sec-1 aside img{width:100%;height:350px;object-fit:cover;border-radius:7px;box-shadow:0 14px 35px rgba(23,38,48,.14)}
#sec-3{padding:5rem 0;background:var(--home-paper)}
#sec-3>.container{max-width:1100px}
#sec-3 h2{text-align:center;font-size:clamp(1.9rem,3vw,2.6rem);color:#1d2a35;margin:0 0 2.2rem}
#sec-3 .cont{gap:22px!important}
#sec-3 .card{flex:1 1 280px!important;max-width:350px!important;background:#fff;border-radius:7px;overflow:hidden;box-shadow:0 5px 20px rgba(23,38,48,.07);transition:transform .28s,box-shadow .28s}
#sec-3 .card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(23,38,48,.13)}
#sec-3 .card>div:first-child{position:relative;overflow:hidden}
#sec-3 .card-img-top{height:210px;object-fit:cover;transition:transform .45s}
#sec-3 .card:hover .card-img-top{transform:scale(1.035)}
#sec-3 .caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:2rem 1rem .8rem;color:white;font-size:1.08rem;background:linear-gradient(transparent,rgba(10,20,28,.78))}
#sec-3 .card-body{padding:1rem 1.2rem 1.3rem!important}
#sec-3 .card p{font-size:.95rem;line-height:1.7;color:var(--home-muted);min-height:4.8rem}
#sec-3 .btn{background:var(--home-gold);border:0;border-radius:4px;color:#1d2a35;font-weight:600;padding:.55rem 1rem}
#sec-4{padding:4rem max(4%,calc((100vw - 1100px)/2));background:#fff}
#sec-4:before{content:"Công trình tiêu biểu";display:block;text-align:center;font-size:clamp(1.8rem,3vw,2.5rem);font-weight:700;color:#1d2a35;margin:0 0 1.4rem}
#sec-4 .swiper{padding:8px 4px 28px;overflow:hidden}
#sec-4 .swiper-slide{overflow:hidden;border-radius:7px}
#sec-4 .swiper-slide img{height:clamp(230px,25vw,330px);object-fit:cover;border-radius:7px;transition:transform .4s}
#sec-4 .swiper-slide:hover img{transform:scale(1.03)}
#sec-4 .swiper-button-next,#sec-4 .swiper-button-prev{width:40px;height:40px;border-radius:50%;background:#fff;color:#1d2a35;box-shadow:0 3px 14px #17263025}
#sec-4 .swiper-button-next:after,#sec-4 .swiper-button-prev:after{font-size:14px;font-weight:bold}
#sec-4 .swiper-pagination{position:relative;margin-top:8px}
#sec-4 .swiper-pagination-bullet-active{background:var(--home-gold)}
body>footer{margin-top:0!important}
.home-reveal{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.home-reveal.visible{opacity:1;transform:none}
@keyframes home-appear{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(max-width:767.98px){body>header .container{align-items:flex-start!important}.navbar .navbar-nav{align-items:stretch!important}.navbar .nav-link{padding:.65rem .2rem!important}#sec-0{min-height:520px;background-position:58% center}#sec-0 .intro{padding:4.5rem 0;text-align:center}#sec-0 article h2{font-size:clamp(2.25rem,9vw,3.4rem)}#sec-0 article p{margin-left:auto;margin-right:auto}#sec-1{padding:3.5rem 0}#sec-1>.container{grid-template-columns:1fr;gap:1.8rem}#sec-1 article{text-align:center}#sec-1 article p{text-align:left}#sec-1 aside img{height:auto;max-height:360px}#sec-3{padding:3.5rem 0}#sec-3 .card{max-width:430px!important}#sec-3 .card p{min-height:0}#sec-4{padding:3rem 4%}#sec-4 .swiper-button-next,#sec-4 .swiper-button-prev{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.home-reveal{opacity:1;transform:none}}
/* Compact proportions for the hero and introduction sections */
#sec-0{min-height:500px}
#sec-0 .intro{padding:3.8rem 0}
#sec-0 .intro .container{max-width:1040px}
#sec-0 article h1{font-size:.88rem;margin-bottom:.75rem}
#sec-0 article h2{font-size:clamp(2.2rem,3.8vw,3.35rem);max-width:700px;margin-bottom:.9rem}
#sec-0 article p{font-size:1rem;max-width:620px;line-height:1.7;margin-bottom:1.35rem}
#sec-0 article a{padding:.7rem 1.1rem}
#sec-1{padding:3.6rem 0}
#sec-1>.container{max-width:1040px;gap:2.6rem}
#sec-1 article h2{font-size:clamp(1.7rem,2.5vw,2.25rem);margin-bottom:.8rem}
#sec-1 article h3{font-size:.93rem;margin-bottom:.8rem}
#sec-1 article p{font-size:.96rem;line-height:1.75}
#sec-1 aside img{height:310px}
@media(max-width:767.98px){#sec-0{min-height:440px}#sec-0 .intro{padding:3.4rem 0}#sec-0 article h2{font-size:clamp(2rem,8vw,2.8rem)}#sec-1{padding:2.8rem 0}#sec-1>.container{gap:1.4rem}#sec-1 aside img{max-height:300px}}
/* Restore the original sizing and layout of the hero and introduction */
#sec-0{min-height:0;display:block}
#sec-0 .intro{padding:0;text-align:center;animation:none}
#sec-0 .intro .container{max-width:none}
#sec-0 article{display:flex;align-items:center;text-align:center;padding:3rem 0}
#sec-0 article h1{font-size:1.25rem;letter-spacing:normal;font-weight:normal;color:var(--txtaccent);margin-bottom:10px}
#sec-0 article h2{font-size:1.85rem;line-height:1em;max-width:none;letter-spacing:normal;text-transform:uppercase;color:var(--txtaccent);margin-bottom:15px;font-weight:700}
#sec-0 article h2 span{color:var(--haccent)}
#sec-0 article p{font-size:1rem;line-height:normal;color:var(--txtaccent);max-width:none;padding:0 4rem;margin-bottom:3rem}
#sec-0 article a{background-color:var(--txtaccent4);color:var(--haccent2);border:1px solid var(--haccent2);border-radius:0;padding:8px 15px;margin-left:5px;text-transform:uppercase}
#sec-0 article a:hover{background-color:var(--haccent2);color:var(--txtaccent)}
#sec-1{padding:0;background-color:var(--txtaccent)}
#sec-1>.container{display:block;grid-template-columns:none;gap:0;max-width:none}
#sec-1 article{padding-top:20px;text-align:center}
#sec-1 article h2{font-size:1.1rem;line-height:normal;color:var(--textaccent3);margin-bottom:.83rem}
#sec-1 article h3{font-size:1rem;line-height:normal;color:var(--textaccent3);letter-spacing:normal;margin-bottom:0}
#sec-1 article p{font-size:.85rem;line-height:normal;color:var(--txtaccent4);text-align:justify;margin:1.3rem 0 1.1rem}
#sec-1 aside{width:95%;margin:25px auto 0}
#sec-1 aside img{width:auto;height:auto;max-width:100%;object-fit:initial;border-radius:0;box-shadow:none}
@media(min-width:768px){#sec-0 article{padding:5rem 0}#sec-0 article h1{font-size:2rem}#sec-0 article h2{font-size:3.5rem}#sec-0 article p{padding-left:4rem;padding-right:4rem}#sec-1>.container{display:flex;flex-wrap:wrap;justify-content:space-between}#sec-1 article{padding:0;text-align:left;width:51%;display:flex;flex-flow:column nowrap;justify-content:center}#sec-1 article p{padding-right:1rem}#sec-1 aside{width:48%;margin:0;text-align:right}}
@media(min-width:1200px){#sec-0 article p{padding-left:14rem;padding-right:14rem}#sec-1 article h2{font-size:1.8rem}}
@media(max-width:767.98px){#sec-0{min-height:0}#sec-0 .intro{padding:0;text-align:center}#sec-0 article h2{font-size:1.85rem}#sec-1{padding:0}#sec-1>.container{grid-template-columns:none;gap:0}#sec-1 aside img{height:auto;max-height:none}}

/* Compact homepage rhythm while keeping all existing content and controls. */
#sec-0{height:390px;min-height:0;overflow:hidden}
#sec-0 article{height:100%;padding:1rem 0}
#sec-0 article h1{margin-bottom:.5rem}
#sec-0 article h2{margin-bottom:.7rem}
#sec-0 article p{margin-bottom:.9rem}
#sec-1{padding:2rem 0}
#sec-1>.container{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);min-height:350px;gap:2rem;align-items:center}
#sec-1 article{min-width:0}
#sec-1 article h2{margin-bottom:.55rem}
#sec-1 article h3{margin-bottom:.55rem}
#sec-1 article p{line-height:1.65}
#sec-1 aside img{height:260px}
@media(min-width:768px){#sec-1 article{width:auto}#sec-1 aside{width:auto;margin:0;text-align:right}}
#sec-3{padding:2.6rem 0}
#sec-3 h2{margin-bottom:1.35rem}
#sec-3 .card-img-top{height:180px}
#sec-3 .card-body{padding: .8rem 1rem 1rem!important}
#sec-3 .card p{min-height:0;margin-bottom:.8rem}
#sec-4{padding:2rem max(4%,calc((100vw - 1100px)/2))}
#sec-4:before{margin-bottom:.85rem}
#sec-4 .swiper-slide img{height:clamp(180px,22vw,270px)}
#sec-4 .swiper{padding:6px 4px 22px}
#sec-4 .swiper-pagination{margin-top:4px}
@media(max-width:767.98px){
  #sec-0{height:370px;background-position:58% center}
  #sec-0 article{padding:.75rem 0}
  #sec-0 article h1{font-size:1rem}
  #sec-0 article h2{font-size:1.85rem;line-height:1.12}
  #sec-0 article p{padding:0 .5rem;margin-bottom:.8rem}
  #sec-1{padding:1.5rem 0}
  #sec-1>.container{display:flex;flex-direction:column;justify-content:center;min-height:0;gap:.65rem}
  #sec-1 article{width:100%;padding:0}
  #sec-1 article p{margin:.55rem 0;text-align:center}
  #sec-1 aside{width:100%;margin:.25rem auto 0;text-align:center}
  #sec-1 aside img{width:auto;height:145px;max-height:145px;object-fit:contain}
  #sec-3{padding:2rem 0}
  #sec-3 h2{margin-bottom:1rem}
  #sec-3 .cont{gap:16px!important}
  #sec-3 .card-img-top{height:170px}
  #sec-4{padding:1.5rem 4%}
  #sec-4 .swiper-slide img{height:190px}
}
