/* TRANG_CHU_v1 — khung trang chủ dùng chung ba site hobao. Mỗi site đặt bảng màu riêng bằng biến --tc-* trên <body class="tc tc-<ma>">.
   Nền SÁNG, chữ tối, nút có nhãn chữ. Ảnh là ảnh chụp thật trong thế giới (WebP + JPEG dự phòng). */
[hidden]{display:none!important}
.tc{--tc-nen:#f6f8fb;--tc-the:#fff;--tc-chu:#1d2a3a;--tc-mo:#56657a;--tc-vien:#e1e6ee;--tc-nhan:#3f8f4f;--tc-nhan-dam:#2c6b39;--tc-phu:#eef6ee;--tc-phu2:#fff6dc;--tc-bo:22px;
  background:var(--tc-nen);color:var(--tc-chu)}
.tc main{max-width:1180px;margin:0 auto;padding:0 max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))}
.tc h1,.tc h2,.tc h3{letter-spacing:-.01em;line-height:1.2}
.tc h2{font-size:clamp(22px,2.6vw,30px);margin:0 0 6px}
.tc .tc-muc{margin:44px 0 0}
.tc .tc-muc > .tc-phu{color:var(--tc-mo);margin:0 0 16px;max-width:640px}
.tc .tc-nhan-nho{display:inline-block;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--tc-nhan-dam);margin-bottom:6px}

/* ---- ảnh đầu trang ---- */
.tc-dau{position:relative;margin:16px 0 0;border-radius:var(--tc-bo);overflow:hidden;background:#cfe3f5;box-shadow:0 18px 50px rgba(20,40,70,.16);isolation:isolate}
.tc-dau picture,.tc-dau img{display:block;width:100%;height:100%}
.tc-dau img{aspect-ratio:16/9;object-fit:cover;min-height:300px}
.tc-dau-chu{position:absolute;inset:auto 0 0 0;padding:clamp(18px,4vw,44px);background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.88) 38%,#fff 70%);z-index:1}
.tc-dau h1{font-size:clamp(28px,4.6vw,52px);margin:0 0 8px;max-width:15ch;color:var(--tc-chu)}
.tc-dau p{margin:0 0 16px;font-size:clamp(16px,1.6vw,19px);max-width:56ch;color:#2b3a4d}
.tc-hang{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.tc-nut{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:12px 24px;border-radius:16px;font:700 17px/1.1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-decoration:none;cursor:pointer;border:2px solid transparent;-webkit-tap-highlight-color:transparent;transition:transform .12s,box-shadow .12s}
.tc-nut svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tc-nut.chinh{background:var(--tc-nhan);color:#fff;box-shadow:0 8px 20px color-mix(in srgb,var(--tc-nhan) 35%,transparent)}
.tc-nut.chinh:hover{transform:translateY(-1px);box-shadow:0 12px 26px color-mix(in srgb,var(--tc-nhan) 40%,transparent)}
.tc-nut.phu{background:#fff;color:var(--tc-chu);border-color:var(--tc-vien)}
.tc-nut.phu:hover{border-color:var(--tc-nhan)}
.tc-nut:focus-visible,.tc a:focus-visible,.tc button:focus-visible{outline:3px solid var(--tc-nhan);outline-offset:2px}
.tc-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--tc-vien);font-weight:700;font-size:14.5px;color:var(--tc-chu);text-decoration:none;cursor:pointer;font-family:inherit}
.tc-chip .cham{width:10px;height:10px;border-radius:50%;background:#2fb35a;box-shadow:0 0 0 4px rgba(47,179,90,.18)}
.tc-chip b{font-size:16px}
.tc-chip:hover{border-color:var(--tc-nhan)}
@media (max-width:899.98px){
  .tc-dau{margin:12px -4px 0;border-radius:18px}
  .tc-dau img{min-height:0;aspect-ratio:16/9;max-height:62vh}
  .tc-dau-chu{position:static;background:#fff;padding:18px 18px 20px}
  .tc-hang .tc-nut{flex:1 1 auto}
}

/* ---- việc làm được ---- */
.tc-viec{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.tc-viec > div{background:var(--tc-the);border:1px solid var(--tc-vien);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:6px}
.tc-viec .ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--tc-phu);color:var(--tc-nhan-dam);margin-bottom:4px}
.tc-viec .ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tc-viec h3{margin:0;font-size:18px}
.tc-viec p{margin:0;color:var(--tc-mo);font-size:15.5px}

/* ---- dải ảnh ---- */
.tc-anh{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.tc-anh figure{margin:0;background:#fff;border:1px solid var(--tc-vien);border-radius:18px;overflow:hidden}
.tc-anh img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.tc-anh figcaption{padding:10px 14px;font-size:14.5px;color:var(--tc-mo)}
.tc-anh figcaption b{color:var(--tc-chu)}

/* ---- thẻ chung ---- */
.tc-the{background:var(--tc-the);border:1px solid var(--tc-vien);border-radius:18px;padding:18px}

/* ---- dành cho bố mẹ ---- */
.tc-bo-me{display:grid;grid-template-columns:auto 1fr;gap:16px 20px;align-items:start;background:var(--tc-phu2);border:1px solid color-mix(in srgb,var(--tc-phu2) 60%,#d9c58a);border-radius:20px;padding:22px}
.tc-bo-me .ic{width:56px;height:56px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--tc-nhan-dam)}
.tc-bo-me .ic svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tc-bo-me h2{margin-top:2px}
.tc-bo-me ul{margin:8px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px 18px}
.tc-bo-me li{position:relative;padding-left:26px;font-size:15.5px}
.tc-bo-me li:before{content:"";position:absolute;left:2px;top:5px;width:14px;height:8px;border-left:3px solid var(--tc-nhan);border-bottom:3px solid var(--tc-nhan);transform:rotate(-45deg)}
@media (max-width:560px){.tc-bo-me{grid-template-columns:1fr;padding:18px}}

/* ---- site chị em ---- */
.tc-chi-em{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.tc-chi-em a{display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;background:#fff;border:2px solid var(--tc-vien);color:var(--tc-chu);text-decoration:none;min-height:84px}
.tc-chi-em a:hover{border-color:var(--m)}
.tc-chi-em svg{width:52px;height:52px;flex:0 0 auto}
.tc-chi-em b{display:block;font-size:18px}
.tc-chi-em small{display:block;color:var(--tc-mo);font-size:14px}
.tc-chi-em em{margin-left:auto;font-style:normal;font-weight:800;color:var(--m);white-space:nowrap}
.tc-chan{max-width:1180px;margin:40px auto 0;padding:22px 16px 28px;color:var(--tc-mo);font-size:14px;text-align:center;border-top:1px solid var(--tc-vien)}

/* ---- bảng màu từng site ---- */
.tc-huy{--tc-nen:#f3f6ee;--tc-nhan:#2f7d40;--tc-nhan-dam:#245f31;--tc-phu:#e3f0dc;--tc-phu2:#fbf3e4;--tc-vien:#dfe5d6}
.tc-huy .tc-dau{border-bottom:8px solid #8a5a35}
.tc-huy .tc-viec .ic{background:linear-gradient(#7cc456 0 34%,#9a6a42 34%);color:#fff}
.tc-tin{--tc-nen:#f5f7fd;--tc-nhan:#2563d6;--tc-nhan-dam:#1d4fae;--tc-phu:#e6eefd;--tc-phu2:#fff5d9;--tc-vien:#dfe5f3;--tc-bo:28px}
.tc-tin .tc-viec > div:nth-child(4n+1) .ic{background:#e6eefd;color:#1d4fae}
.tc-tin .tc-viec > div:nth-child(4n+2) .ic{background:#fdeaea;color:#b8322b}
.tc-tin .tc-viec > div:nth-child(4n+3) .ic{background:#fff1d0;color:#9a6400}
.tc-tin .tc-viec > div:nth-child(4n+4) .ic{background:#e2f6e8;color:#1f7a3e}
.tc-khanh{--tc-nen:#fffaf0;--tc-nhan:#c8392b;--tc-nhan-dam:#a32c20;--tc-phu:#fff0c9;--tc-phu2:#fff3d6;--tc-vien:#efe2c6}
.tc-khanh .tc-dau{border-top:8px solid #f2c230}
.tc-khanh .tc-viec .ic{background:#fff0c9;color:#a32c20}
@media (prefers-reduced-motion:reduce){.tc-nut{transition:none}.tc-nut:hover{transform:none}}
/* ≥900px: chữ bên trái, ảnh bên phải — không chữ nào đè lên ảnh */
@media (min-width:900px){
  .tc-dau{display:grid;grid-template-columns:minmax(360px,.85fr) 1.3fr;background:#fff;align-items:stretch}
  .tc-dau picture{grid-column:2;grid-row:1;min-height:100%}
  .tc-dau img{height:100%;min-height:420px;aspect-ratio:auto}
  .tc-dau-chu{position:static;grid-column:1;grid-row:1;background:#fff;display:flex;flex-direction:column;justify-content:center;padding:40px 36px 40px 44px}
  .tc-dau h1{font-size:clamp(34px,3.6vw,50px)}
}
/* điện thoại xoay ngang (thấp): chữ + nút "Vào ngay" cạnh ảnh, không bị đẩy xuống dưới màn hình */
@media (min-width:600px) and (max-height:500px){
  .tc-dau{display:grid;grid-template-columns:1fr 1fr;background:#fff;align-items:stretch}
  .tc-dau picture{grid-column:2;grid-row:1}
  .tc-dau img{height:100%;max-height:none;aspect-ratio:auto}
  .tc-dau-chu{grid-column:1;grid-row:1;padding:16px 18px}
  .tc-dau h1{font-size:26px}
  .tc-dau p{font-size:15px;margin-bottom:10px}
  .tc-dau .tc-nut{min-height:46px;padding:10px 16px;font-size:16px}
}
