/* =========================================================
   ASBM University — Home page
   ========================================================= */
/* Shared page pieces (.hm-section, .hm-eyebrow, .hm-title, .hm-cta ...) live in style.css */

/* ---------- Hero ---------- */
.hm-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hm-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    animation: hmKenBurns 22s ease-in-out infinite alternate; transform-origin: 70% 40%;
}
.hm-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(10, 27, 63, .92) 0%, rgba(10, 27, 63, .72) 45%, rgba(10, 27, 63, .25) 100%);
}
.hm-hero > .container { z-index: 2; }
.hm-hero-content { max-width: 640px; padding: 88px 0 96px; }
.hm-hero-title {
    font-family: var(--font-serif); font-weight: 600; color: #fff; line-height: 1.06; letter-spacing: -.015em;
    font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin-bottom: 20px;
}
.hm-word {
    display: inline-block; opacity: 0; transform: translateY(28px);
    animation: hmWordIn .8s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .08s);
}
.hm-hero-lead { font-size: 1.1rem; color: rgba(255, 255, 255, .82); max-width: 460px; margin-bottom: 28px; }
.hm-reveal { opacity: 0; animation: hmFadeUp .8s var(--ease) forwards; animation-delay: var(--d, 0s); }

.hm-stats { position: relative; z-index: 2; background: rgba(10, 27, 63, .96); border-top: 1px solid rgba(255, 255, 255, .1); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hm-stat { padding: 30px 24px; }
.hm-stat:first-child { padding-left: 0; }
.hm-stat + .hm-stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.hm-stat-num { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: #fff; }
.hm-stat-label { margin-top: 8px; font-size: .82rem; color: rgba(255, 255, 255, .65); }

@keyframes hmKenBurns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes hmWordIn { to { opacity: 1; transform: none; } }
@keyframes hmFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Legacy ---------- */
.hm-legacy-media { position: relative; padding-bottom: 40px; }
.hm-legacy-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hm-legacy-img img { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.hm-legacy-media:hover .hm-legacy-img img { transform: scale(1.05); }
.hm-legacy-quote {
    position: absolute; left: -28px; bottom: 0; max-width: 300px; margin: 0;
    background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-lg); border-left: 3px solid var(--gold);
}
.hm-legacy-quote blockquote { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; color: var(--navy-900); margin: 0 0 8px; }
.hm-legacy-quote figcaption { font-size: .75rem; color: var(--muted); }

/* ---------- Five schools ---------- */
.hm-school-list { border-top: 1px solid var(--line); }
.hm-school-row {
    display: grid; align-items: center; gap: 24px; padding: 22px 16px; color: var(--ink);
    grid-template-columns: 56px minmax(200px, 260px) 1fr 120px 0 32px;
    border-bottom: 1px solid var(--line); border-radius: var(--radius);
    transition: background .35s var(--ease), grid-template-columns .45s var(--ease), padding .35s var(--ease);
}
.hm-school-row.is-active { grid-template-columns: 56px minmax(200px, 260px) 1fr 120px 150px 32px; background: var(--soft); }
.hm-school-num { font-family: var(--font-serif); font-size: 1.9rem; color: #b8c2d6; transition: color .3s; }
.hm-school-row.is-active .hm-school-num { color: var(--gold-dark); }
.hm-school-name strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--navy-900); line-height: 1.2; }
.hm-school-name small { color: var(--muted); font-size: .78rem; }
.hm-school-progs { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.hm-school-count { font-size: .84rem; font-weight: 600; color: var(--navy-700); }
.hm-school-thumb { overflow: hidden; border-radius: 10px; height: 90px; opacity: 0; transition: opacity .35s .1s; }
.hm-school-row.is-active .hm-school-thumb { opacity: 1; }
.hm-school-thumb img { width: 150px; height: 90px; object-fit: cover; display: block; }
.hm-school-arrow {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-700);
    border: 1px solid var(--line); background: #fff; transition: all .3s var(--ease);
}
.hm-school-row.is-active .hm-school-arrow { background: var(--navy-800); color: #fff; border-color: var(--navy-800); transform: rotate(-45deg); }
.hm-school-row:hover { color: var(--ink); }

/* ---------- Placements ---------- */
.hm-big-num {
    font-family: var(--font-serif); font-weight: 600; color: var(--navy-800); line-height: 1; letter-spacing: -.03em;
    font-size: clamp(4rem, 9vw, 6.4rem); margin-bottom: 14px;
}
.hm-big-num small { font-size: .45em; color: var(--gold-dark); margin-left: 4px; }
.hm-logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.hm-logo {
    height: 58px; display: grid; place-items: center; text-align: center; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: .82rem; line-height: 1.1; color: var(--c, var(--navy-800));
    filter: grayscale(1); opacity: .75; transition: all .3s var(--ease);
}
.hm-logo:hover { filter: none; opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- Campus life ---------- */
.hm-campus-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; }
.hm-campus-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.hm-campus-item:first-child { grid-row: span 2; }
.hm-campus-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.hm-campus-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 27, 63, .75)); transition: opacity .3s; }
.hm-campus-item:hover img { transform: scale(1.08); }
.hm-campus-cap {
    position: absolute; z-index: 1; left: 12px; bottom: 12px; right: 12px;
    font-size: .8rem; font-weight: 600; color: #fff; transition: transform .35s var(--ease);
}
.hm-campus-cap em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, .8); }
.hm-campus-item:hover .hm-campus-cap { transform: translateY(-4px); }

/* ---------- Quote ---------- */
.hm-quote-mark { display: block; font-family: var(--font-serif); font-size: 5rem; line-height: .6; color: var(--gold); height: 34px; }
.hm-quote { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; color: var(--navy-900); margin: 0 0 16px; }
.hm-quote-by { font-size: .88rem; color: var(--muted); margin: 0; }
.hm-quote-by strong { color: var(--navy-900); }
.hm-also-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; transition: transform .3s var(--ease); }
.hm-also-card:hover { transform: translateY(-4px); }
.hm-also-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hm-also-card blockquote { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--navy-900); margin: 0 0 10px; }
.hm-also-card figcaption { font-size: .8rem; font-weight: 600; color: var(--navy-700); }

/* ---------- News ---------- */
.hm-news-feature { display: block; color: var(--ink); }
.hm-news-img { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 9; }
.hm-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hm-news-feature:hover .hm-news-img img { transform: scale(1.06); }
.hm-news-feature h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25; margin: 6px 0 0; transition: color .25s; }
.hm-news-feature:hover h3 { color: var(--navy-700); }
.hm-news-meta { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.hm-news-list { border-top: 1px solid var(--line); }
.hm-news-item {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
    padding: 22px 4px; border-bottom: 1px solid var(--line); color: var(--ink); transition: padding .3s var(--ease), background .3s;
}
.hm-news-item strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.35; color: var(--navy-900); }
.hm-news-item i { color: var(--navy-700); font-size: 1.1rem; transition: transform .3s var(--ease); }
.hm-news-item:hover { padding-left: 14px; background: var(--soft); }
.hm-news-item:hover i { transform: translate(3px, -3px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
    .hm-school-row, .hm-school-row.is-active { grid-template-columns: 48px 220px 1fr 110px 32px; }
    .hm-school-thumb { display: none; }
}
@media (max-width: 991.98px) {
    .hm-hero-content { padding: 80px 0 90px; }
    .hm-hero::before { background: linear-gradient(180deg, rgba(10, 27, 63, .85), rgba(10, 27, 63, .7)); }
    .hm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-stat { padding: 22px 16px; }
    .hm-stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .hm-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
    .hm-legacy-quote { left: 16px; }
    .hm-school-row, .hm-school-row.is-active { grid-template-columns: 44px 1fr 32px; gap: 6px 16px; }
    .hm-school-num { grid-row: span 3; align-self: start; font-size: 1.6rem; }
    .hm-school-name { grid-column: 2; }
    .hm-school-progs { grid-column: 2; }
    .hm-school-count { grid-column: 2; }
    .hm-school-arrow { grid-column: 3; grid-row: 1; }
    .hm-logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767.98px) {
    .hm-campus-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px 150px; }
    .hm-campus-item:first-child { grid-column: span 2; grid-row: auto; }
    .hm-legacy-img img { height: 300px; }
    .hm-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .hm-hero-content { padding: 60px 0 70px; }
    .hm-hero .btn { flex: 1 1 auto; }
    .hm-legacy-media { padding-bottom: 0; }
    .hm-legacy-quote { position: relative; left: auto; max-width: none; margin: -40px 14px 0; }
    .hm-school-row { padding: 18px 8px; }
    .hm-school-name strong { font-size: 1.15rem; }
}
