.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 790px;
  overflow: hidden;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  margin-top: 110px;
}

/* 2 nửa nền */
.hero-left, .hero-right {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-left  { background-image: url("../images/kaigo-hero-01.png"); }
.hero-right { background-image: url("../images/kaigo-hero-02.png"); }
.hero-left::before{
  content: "";
  position: absolute;
  width: 176px;
  height: 176px;
  left: 63px;
  bottom: 74px;
  background: url("../images/kaigo_hero_circle_left.svg")no-repeat;
  z-index: 2;
  background-size: contain;  
}

.hero-right::before{
  content: "";
  position: absolute;
  width: 221px;
  height: 221px;
  right: 106px;
  bottom: 113px;
  background: url("../images/kaigo_hero_circle_right.svg")no-repeat;
  z-index: 2;
  background-size: contain;  
}

/* overlay */
/* .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  padding-inline: 20px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(2px);
  max-width: 560px;
  left: 50%;
  margin-left: -280px;
} */

.hero-overlay{
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 92vw);
  display: flex;
  justify-content: center;
  text-align: center;
  padding-inline: 20px;
  background: transparent; 
}

/* Box trắng giữa */
.hero-content{
  padding: 150px 48px 36px 48px;
  max-width: 840px;
  background: rgba(245,250,243,0.92);  
  backdrop-filter: blur(2px);          
}

/* Subtitle có đường kẻ trên – dưới */
.hero-subtitle {
  --line: #339933;           
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 2.6px;
  color: var(--line);
  margin: 0 0 16px;
  position: relative;
  padding-block: 10px;       
}
.hero-subtitle::before,
.hero-subtitle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 105%);
  height: 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: .9;
}
.hero-subtitle::before { top: 0; }
.hero-subtitle::after  { bottom: 0; }

.hero-title {
  font-size: clamp(26px, 2.2vw + 12px, 56px);
  font-weight: 700;
  color: #339933;
  line-height: 1.6;
  letter-spacing: 5.6px;
  margin: 0;
}

.hero-title span{
  white-space: nowarp;
  display: inline-block;
}

 .hero-title.mobile{
  display: none;
 }


.hero-tagline{
  position: absolute;
  left: -40%;
  bottom: 0;
  margin: 0;
  pointer-events: none;
  z-index: 3;
  height: clamp(120px, 18vw, 251px);
}

/* .hero-tagline .l1{ font-family: "Brush Script MT","Segoe Script",cursive; font-size: clamp(34px, 3.9vw, 85px); letter-spacing: .08em; }
.hero-tagline .l2{ font-family: "Brush Script MT","Segoe Script",cursive; font-size: clamp(30px, 3.2vw, 85px); letter-spacing: .10em; white-space: nowrap; padding-left: 30%; } */
/* .hero-tagline .l3{ font-family: "Brush Script MT","Segoe Script",cursive; font-size: clamp(36px, 4.4vw, 78px); letter-spacing: .12em; } */

/* Icons nhỏ lại & cố định tỉ lệ */
.hero-icons .icon {
  position: absolute;
}
.hero-icons .left  { top: 50%; margin-top: -54px; left: -12%; }
.hero-icons .right { bottom: 10%; right: -16%; }

.hero-icons img {
  width: clamp(60px, 12vw, 210px);   /* giới hạn min–max */
  height: auto;
  display: block;
}

/* Desktop thường 993px–1439px */
@media (max-width: 1439px) and (min-width: 993px) {
  .hero { height: 790px; margin-top: 102px;}

  .hero-title { font-size: 48px; }

  .hero-subtitle { font-size: 24px; }

  .hero-icons img { width: 180px; }
}

/* Tablet ngang 769px–992px */
@media (max-width: 992px) and (min-width: 769px) {
  .hero { height: 660px; margin-top: 102px;}

  .hero-title { font-size: 38px; line-height: 1.4; }

  .hero-subtitle { font-size: 20px; }

  .hero-icons img { width: 150px; }

  .hero-tagline {
    font-size: 60px;
    left: -20%;
    bottom: 4%;
  }
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 51px;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    min-height: 164px;
    background-size: cover;
    background-position: center;
  }

  .hero-right {
    width: 100%;
    min-height: 153px;
    background-size: cover;
    background-position: center;
  }

  .hero-overlay {
    order: 2;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    align-items: center;
    flex-direction: column;
  }

  .hero-left { order: 1; }
  .hero-right { order: 3; }

  .hero-content {
    background: rgba(255,255,255,0.95);
    padding: 29px 16px 5px 16px;
    margin: 0;              
    border-top: 4px solid #fff; 
    border-bottom: 4px solid #fff;
    position: relative;
  }

  .hero-title {
    display: none;
  }

  .hero-title.mobile {
    font-size: 26px;
    line-height: 1.5;
    letter-spacing: 2px;
    display: block;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .hero-subtitle::before,
  .hero-subtitle::after {
    width: 90%;
  }

  /* Tagline ẩn ở mobile */
  .hero-tagline { display: none; }

  /* Icons đưa vào trong box trắng */
  .hero-icons {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 16px;
    /* position: relative; */
  }

  .hero-icons .icon.left{
    position: absolute;
    left: -20px;
    top: 50%;
    margin-top: -45px;
  }

  .hero-icons .icon.right{
    position: absolute;
    right: -24px;
    bottom: 0;
  }

  .hero-icons img.nurse {
    width: 120px;
    height: 90px;
  }
  .hero-icons img.teacher {
    width: 134px;
    height: 100px;
  }

  .hero-left::before, .hero-right::before{
    content: none;
  }
}
