/* ===================================================================
   Trường Tiểu học Thiện Nghiệp — CSS của TRANG CHỦ (chỉ Default.aspx nạp)

   Giao diện hình vẽ thiếu nhi chủ đề trường học. Markup do Default.aspx.cs sinh ra:
   TÊN CLASS `hm-*` Ở ĐÂY LÀ HỢP ĐỒNG VỚI Default.aspx.cs — sửa một bên phải sửa bên kia
   (xem CLAUDE.md quy tắc 13). Kiểm bằng document.querySelectorAll('<selector>').length.

   Quy ước còn nguyên giá trị:
   - Không hard-code mã màu. Dùng biến trong tokens.css.
   - Sửa file này xong phải tăng ?v=N ở Default.aspx.
   - Giãn cách đặt `gap` ở cha, không `margin` ở con.
   - Các mảng cong giữa section (sóng/bờ cát) là pseudo-element tô bằng màu nền của section kế bên.
   =================================================================== */

/* ---------- Tiêu đề section dùng chung ---------- */
.hm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: clamp(20px, 3vw, 32px);
}
.hm-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: var(--c-accent-soft);
    color: var(--c-primary);
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hm-title {
    position: relative;
    margin: 0;
    padding-bottom: 14px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--c-primary);
}
.hm-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: var(--rule);
    border-radius: var(--rule);
    background: var(--c-accent);
}
.hm-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--c-primary);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--c-primary);
    transition: background var(--t-fast), color var(--t-fast);
}
.hm-more:hover { background: var(--c-primary); color: var(--c-white); }
.hm-head-dark .hm-kicker { background: rgba(255, 255, 255, .14); color: var(--c-accent); }
.hm-head-dark .hm-title { color: var(--c-white); }
.hm-head-dark .hm-more {border-color: var(--c-white);color: var(--c-white);background-color: #960303;}
.hm-head-dark .hm-more:hover { background: var(--c-white); color: var(--c-primary); }

/* ---------- Hero: slide trong khung bo + thanh lối tắt ---------- */
.hm-hero {
    position: relative;
    padding: clamp(20px, 3vw, 36px) 0 0;
    background: var(--c-sky-bg) url("../images/bg-hero.jpg") center / cover no-repeat;
}
/* Bờ cát cong ở đáy hero, cùng màu section giới thiệu. */
.hm-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: clamp(40px, 6vw, 80px);
    background: var(--c-sand);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
/* Slide chiếm 95% chiều ngang màn hình, KHÔNG nằm trong .container. */
.hm-hero-wrap {position: relative;z-index: 1;width: 95%;margin: 0 auto;/* padding-bottom: clamp(40px, 5vw, 66px); */}

.hm-hero-frame {
    overflow: hidden;
    border: 5px solid var(--c-white);
    border-radius: clamp(16px, 2.6vw, 32px);
    background: var(--c-primary-mist);
    box-shadow: 0 20px 50px rgba(18, 71, 154, .3);
}
.hm-hero-slider { position: relative; overflow: hidden; }
/* components.css đệm 6px 4px 10px cho MỌI .js-swiper (chừa chỗ bóng đổ của thẻ) — slide ảnh tràn viền thì bỏ. */
.hm-hero-slider.js-swiper { padding: 0; }
.hm-hero-slider img { display: block; width: 100%; height: auto; }
.hm-hero-slider .swiper-slide { height: auto; }
/* Trước khi Swiper khởi tạo xong, các slide xếp chồng dọc -> chỉ hiện slide đầu để trang không nhảy. */
.hm-hero-slider.swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.hm-hero-empty { height: clamp(200px, 30vw, 380px); background: linear-gradient(120deg, var(--c-sky) 0%, var(--c-primary) 100%); }

.hm-hero-slider .swiper-pagination { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; z-index: 2; }
.hm-hero-slider .swiper-pagination-bullet { width: 9px; height: 9px; background: var(--c-white); opacity: .7; }
.hm-hero-slider .swiper-pagination-bullet-active { width: 26px; border-radius: 6px; background: var(--c-accent); opacity: 1; }

/* Mũi tên: luôn hiện (responsive.css ẩn mũi tên của .js-swiper từ 1199px trở xuống nên phải ghi đè ở đây). */
.hm-hero-slider .swiper-button-prev,
.hm-hero-slider .swiper-button-next {
    display: inline-flex;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 13px;
    border: 0;
    border-radius: 50%;
    background: var(--c-sea);
    color: var(--c-white);
    opacity: .85;
    z-index: 3;
}
.hm-hero-slider .swiper-button-prev:hover,
.hm-hero-slider .swiper-button-next:hover { opacity: 1; background: var(--c-primary); }
.hm-hero-slider .swiper-button-prev { left: 16px; }
.hm-hero-slider .swiper-button-next { right: 16px; }
.hm-hero-slider .swiper-button-prev::after, .hm-hero-slider .swiper-button-next::after { font-size: 15px; font-weight: 700; }

/* Thanh lối tắt: một thanh trắng bo tròn gối lên đáy khung, chia 4 ô bằng vạch mảnh. */
.hm-dock {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: calc(-1 * clamp(26px, 3.4vw, 42px)) clamp(10px, 4vw, 56px) 0;
    padding: 8px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hm-dock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    transition: background var(--t-fast);
}
.hm-dock-item + .hm-dock-item { position: relative; }
.hm-dock-item + .hm-dock-item::before {
    content: "";
    position: absolute;
    left: -2px; top: 18%; bottom: 18%;
    width: 1px;
    background: var(--c-line);
}
a.hm-dock-item:hover { background: var(--c-sand); }
.hm-dock-item .item-icon { flex: 0 0 62px; width: 62px; height: 62px; background: transparent; border-radius: 0; }
.hm-dock-item .item-icon img { width: 62px; height: 62px; object-fit: contain; transition: transform var(--t); }
a.hm-dock-item:hover .item-icon img { transform: translateY(-3px) scale(1.06); }
.hm-dock-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hm-dock-text strong {font-family: var(--font-display);font-size: 20px;font-weight: 700;color: var(--c-primary);}
.hm-dock-text span {margin-top: 1px;font-size: 16px;color: var(--c-muted);}

/* ---------- Giới thiệu: chữ + collage ảnh ---------- */
.hm-welcome {
    padding: clamp(36px, 5vw, 64px) 0 clamp(46px, 6vw, 84px);
    background: var(--c-sand) url("../images/bg-doodle.png") center / cover no-repeat;
}
.hm-welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.hm-welcome-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 3.3rem);
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
    color: var(--c-primary);
}
.hm-welcome-body {font-size: 17px;line-height: 1.8;color: var(--c-body);text-align: justify;font-weight: 500;}
.hm-welcome-body .home-intro-slogan {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 14px;
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-red);
}
.hm-welcome-body .home-intro-slogan::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 86px; height: var(--rule);
    border-radius: var(--rule);
    background: var(--c-accent);
}
.hm-welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hm-welcome-actions .btn-book { padding: 12px 26px; border-radius: var(--radius-pill); font-size: 15px; }
.hm-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 26px;
    border: 2px solid var(--c-primary);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-primary);
    transition: background var(--t-fast), color var(--t-fast);
}
.hm-btn-ghost:hover { background: var(--c-primary); color: var(--c-white); }

/* Collage: ảnh chính dạng vòm + ảnh tròn + ảnh vuông bo góc, đặt bằng % để co giãn theo khung. */
.hm-collage { position: relative; aspect-ratio: 1.06 / 1; }
.hm-collage::before {
    content: "";
    position: absolute;
    right: 2%; bottom: 6%;
    width: 46%; aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--c-accent-soft);
    border: 3px dashed var(--c-accent);
}
.hm-collage-photo { position: absolute; display: block; overflow: hidden; border: 6px solid var(--c-white); background: var(--c-primary-mist); box-shadow: var(--shadow); }
.hm-collage-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-collage-a { left: 0; top: 0; width: 60%; height: 100%; border-radius: 999px 999px 26px 26px; }
.hm-collage-b { right: 0; top: 3%; width: 36%; aspect-ratio: 1 / 1; border-radius: 50%; }
.hm-collage-c { right: 3%; bottom: 3%; width: 42%; aspect-ratio: 1.15 / 1; border-radius: 24px; }

/* ---------- Dải phương châm ---------- */
.hm-motto {
    position: relative;
    padding: clamp(36px, 5vw, 40px) 0;
    background: var(--c-primary) url(../images/bg-motto.png) center / cover no-repeat;
    color: var(--c-white);
    background-color: #1652a4;
}
.hm-motto-grid { display: flex; align-items: stretch; justify-content: center; gap: clamp(14px, 2.4vw, 30px); }
/* Mỗi mục là một tấm thẻ kính mờ: icon to bên trái, tiêu đề + mô tả bên phải, một vạch vàng dưới tiêu đề. */
.hm-motto-item {
    flex: 1 1 0;
    max-width: 540px;
    display: flex;
    align-items: center;
    gap: clamp(26px, 2vw, 43px);
    padding: 20px 30px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 28px;
    background: rgb(7 36 87 / 96%);
    box-shadow: 0 14px 34px rgba(7, 36, 87, .35);
    backdrop-filter: blur(3px);
}
.hm-motto-item .item-icon {
    flex: 0 0 clamp(84px, 9vw, 80px);
    width: clamp(84px, 9vw, 80px);
    height: clamp(84px, 9vw, 80px);
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 0 0 12px var(--c-accent-soft);
}
.hm-motto-item .item-icon img { width: 78%; height: 78%; object-fit: contain; }
.hm-motto-text { display: flex; flex-direction: column; gap: 8px; line-height: 1.25; }
.hm-motto-text strong {
    position: relative;
    padding-bottom: 15px;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--c-accent);
}
.hm-motto-text strong::after {content: "";position: absolute;left: 0;bottom: 8px;width: 65px;height: var(--rule);border-radius: var(--rule);background: var(--c-white);}
.hm-motto-text span {font-size: 18px;font-weight: 400;line-height: 1.45;color: var(--c-white);}
.hm-motto-text { text-shadow: 0 1px 8px var(--c-primary-darker), 0 0 3px var(--c-primary-darker); }
/* Huy hiệu logo ở giữa hai thẻ */
.hm-motto-emblem {
    flex: 0 0 auto;
    align-self: center;
    width: clamp(84px, 9vw, 120px); height: clamp(84px, 9vw, 120px);
    padding: 5px;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 0 0 5px var(--c-accent), 0 10px 26px rgba(7, 36, 87, .4);
}
.hm-motto-emblem img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.hm-motto-sep { align-self: center; width: 14px; height: 14px; flex: 0 0 14px; background: var(--c-accent); transform: rotate(45deg); border-radius: 3px; }

/* ---------- Tin tức: kiểu tạp chí ---------- */
.hm-news {position: relative;padding: clamp(24px, 3vw, 40px) 0 clamp(70px, 9vw, 112px);background: #fbf3e1;}
/* Đáy cong màu cát nối sang khối Hoạt động ngay dưới. */
.hm-news::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(30px, 4.4vw, 60px);
    background: #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hm-news-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }

.hm-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(320px, 38vw, 470px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--c-sea);
    box-shadow: var(--shadow);
}
.hm-feature-media { position: absolute; inset: 0; display: block; }
.hm-feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hm-feature:hover .hm-feature-media img { transform: scale(1.04); }
.hm-feature-body {
    position: relative;
    z-index: 1;
    padding: 90px clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 28px);
    background: linear-gradient(to top, var(--c-sea-deep) 8%, transparent 100%);
    color: var(--c-white);
    pointer-events: none;
}
.hm-feature-body a { pointer-events: auto; }
.hm-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: var(--c-accent);
    color: var(--c-primary-darker);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hm-feature-title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 700; line-height: 1.3; }
.hm-feature-title a { color: var(--c-white); }
.hm-feature-title a:hover { color: var(--c-accent); }
.hm-feature-desc {
    margin: 0 0 10px;
    font-size: .9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-date { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--c-muted); }
.hm-feature .hm-date { color: rgba(255, 255, 255, .8); }

.hm-newslist { display: flex; flex-direction: column; gap: 14px; }
.hm-newsrow {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: clamp(104px, 11vw, 150px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.hm-newsrow:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.hm-newsrow-media { display: block; overflow: hidden; border-radius: 14px; background: var(--c-primary-mist); aspect-ratio: 4 / 3; }
.hm-newsrow-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-newsrow-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-newsrow-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-newsrow-title a { color: var(--c-ink); }
.hm-newsrow-title a:hover { color: var(--c-primary); }
.hm-thumb-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 80px; color: var(--c-sky); font-size: 2rem; }

/* ---------- Bảng thông báo: nền bảng phấn ---------- */
.hm-notice {
    position: relative;
    padding: clamp(64px, 8vw, 100px) 0 clamp(70px, 9vw, 112px);
    background: var(--c-sea) url("../images/bg-notice.jpg") center / cover no-repeat;
}
/* Thông báo đứng ngay dưới dải phương châm, trên tin tức: đáy cong tô bằng màu nền của section tin tức (--c-bg). */
.hm-notice::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: clamp(26px, 3.6vw, 50px);
    background: var(--c-bg);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.hm-notice::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(30px, 4.4vw, 60px);
    background: #fbf3e1;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hm-notice .container { position: relative; z-index: 1; }
.hm-notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hm-notice .notice-item {
    height: 100%;
    padding: 12px 14px 12px 12px;
    border-radius: 18px;
    background: var(--c-white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.hm-notice .notice-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .26); }
.hm-notice .notice-item-icon {/* background: var(--c-primary-mist); *//* color: var(--c-primary); */border-radius: 12px;}
.hm-notice .notice-item:hover .notice-item-title { color: var(--c-red); }

/* ---------- Nền hình vẽ chung cho Hoạt động + Góc học sinh ---------- */
.hm-sand {
    position: relative;
    padding: clamp(30px, 4vw, 56px) 0 clamp(64px, 8vw, 30px);
    background: var(--c-sand) url("../images/bg-doodle.jpg") center / cover no-repeat;
}
.hm-sand::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: clamp(30px, 4.4vw, 60px);
    /* background: var(--c-bg); */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Hoạt động giáo dục là slide Swiper (cấu hình data-* — home.js). Khung đệm chừa chỗ bóng đổ + nhấc thẻ khi hover. */
.hm-cards-slider.js-swiper { padding: 8px 8px 14px; margin: -8px -8px 0; }
.hm-cards-slider .swiper-slide { height: auto; }
.hm-cards-slider .swiper-pagination { margin-top: 14px; text-align: center; }

.hm-act {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: clamp(300px, 32vw, 400px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--c-sea);
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t);
}
.hm-act:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.hm-act-media { position: absolute; inset: 0; display: block; }
.hm-act-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hm-act:hover .hm-act-media img { transform: scale(1.06); }
/* Lớp phủ tối dần xuống đáy để chữ trắng đọc được trên mọi ảnh. */
.hm-act::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--c-sea-deep) 6%, transparent 62%);
    pointer-events: none;
}
.hm-act-body { padding: 22px 22px 24px; }
.hm-act .item-icon {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-primary-darker);
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.hm-act-2 .item-icon { background: var(--c-leaf); color: var(--c-white); }
.hm-act-3 .item-icon { background: var(--c-red); color: var(--c-white); }
.hm-act-title, .hm-act-body p { position: relative; z-index: 2; }
.hm-act-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.hm-act-title a { color: var(--c-white); }
.hm-act-title a:hover { color: var(--c-accent); }
.hm-act-body p { margin: 0; font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }

/* ---------- Góc học sinh ---------- */
.hm-student { margin-top: clamp(40px, 5vw, 64px); }
.hm-stu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-stu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px 18px 16px;
    border: 2px solid var(--c-primary-soft);
    border-radius: 28px;
    background: var(--c-primary-mist);
    transition: transform var(--t), box-shadow var(--t);
}
.hm-stu-2 { border-color: var(--c-accent); background: var(--c-accent-soft); }
.hm-stu-3 { border-color: var(--c-orange); background: var(--c-orange-soft); }
a.hm-stu:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hm-stu .item-icon { flex: 0 0 92px; width: 92px; height: 92px; background: transparent; border-radius: 0; }
.hm-stu .item-icon img { width: 92px; height: 92px; object-fit: contain; transition: transform var(--t); }
a.hm-stu:hover .item-icon img { transform: rotate(-5deg) scale(1.06); }
.hm-stu-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.3; }
.hm-stu-text strong {font-family: var(--font-display);font-size: 1.5rem;font-weight: 800;text-transform: uppercase;color: var(--c-primary);margin-bottom: 6px;}
.hm-stu-text span {font-size: 17px;color: var(--c-body);}
.hm-stu-go {
    flex: 0 0 34px;
    margin-left: auto;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-primary);
    font-size: .8rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
a.hm-stu:hover .hm-stu-go { transform: translateX(3px); background: var(--c-primary); color: var(--c-white); }

/* ---------- Thư viện hình ảnh: bento ---------- */
.hm-gallery {padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 30px);background: var(--c-bg);padding-top: 20px;}
.hm-gal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 15vw, 210px);
    gap: 14px;
}
.hm-gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hm-gal-item:nth-child(4) { grid-column: span 2; }
.hm-gal-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--c-primary-mist);
    box-shadow: var(--shadow-sm);
}
.hm-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hm-gal-item:hover img { transform: scale(1.07); }
.hm-gal-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 34px 16px 12px;
    background: linear-gradient(to top, var(--c-sea-deep), transparent);
    color: var(--c-white);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t), transform var(--t);
}
.hm-gal-item:hover .hm-gal-cap, .hm-gal-item:focus-visible .hm-gal-cap { opacity: 1; transform: none; }

/* ---------- Responsive của trang chủ ---------- */
@media (max-width: 991.98px) {
    .hm-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; margin-right: 0; }
    .hm-dock-item:nth-child(3)::before { display: none; }
    .hm-hero-slider .swiper-button-prev, .hm-hero-slider .swiper-button-next { width: 34px; height: 34px; margin-top: -17px; padding: 10px; }
    .hm-welcome-grid { grid-template-columns: 1fr; }
    .hm-collage { max-width: 560px; width: 100%; margin: 0 auto; }
    .hm-news-grid { grid-template-columns: 1fr; }
    .hm-notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-stu-grid { grid-template-columns: 1fr; }
    .hm-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 28vw, 220px); }
    .hm-gal-item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 767.98px) {
    .hm-head { align-items: flex-start; flex-direction: column; }
    .hm-motto-grid { flex-direction: column; align-items: center; gap: 16px; }
    .hm-motto-item { width: 100%; max-width: none; }
    .hm-motto-sep, .hm-motto-emblem {display: none;}
}
@media (max-width: 575.98px) {
    .hm-hero-frame { border-width: 3px; }
    .hm-dock-item { gap: 8px; padding: 8px; }
    .hm-dock-item .item-icon, .hm-dock-item .item-icon img { width: 44px; height: 44px; flex-basis: 44px; }
    .hm-dock-text strong { font-size: .875rem; }
    .hm-dock-text span { display: none; }
    .hm-notice-grid { grid-template-columns: 1fr; }
    .hm-newsrow { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
    .hm-gal-grid { gap: 10px; }
}
