/* iHuman Assignments Help: 2026 homepage (templates/home-redesign.php) */
:root {
    --ih-navy: #0b3a5b;
    --ih-navy-deep: #082b45;
    --ih-ink: #13283b;
    --ih-muted: #4a5d6e;
    --ih-gold: #f2b632;
    --ih-gold-deep: #e09a12;
    --ih-sky: #eef5fa;
    --ih-line: #dbe6ef;
    --ih-radius: 16px;
    --ih-shadow: 0 10px 30px rgba(11, 58, 91, .08);
}

body.ih-home { margin: 0; background: #fff; color: var(--ih-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
.ih-home *, .ih-home *::before, .ih-home *::after { box-sizing: border-box; }
.ih-home h1, .ih-home h2, .ih-home h3 { font-family: Poppins, Inter, sans-serif; color: var(--ih-navy); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.ih-home a { color: inherit; text-decoration: none; }
.ih-home ul, .ih-home ol, .ih-home li { list-style: none; margin: 0; padding: 0; }
.ih-home li::marker, .ih-home li::before { content: none !important; }
.ih-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ih-icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.ih-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 10px; font-family: Poppins, sans-serif; font-weight: 600; font-size: .95rem; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.ih-btn:hover { transform: translateY(-1px); }
.ih-btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.ih-btn--gold { background: linear-gradient(180deg, var(--ih-gold), var(--ih-gold-deep)); color: var(--ih-navy-deep) !important; box-shadow: 0 6px 18px rgba(224, 154, 18, .35); }
.ih-btn--outline { border-color: rgba(255, 255, 255, .85); color: #fff !important; }
.ih-btn--outline:hover { background: rgba(255, 255, 255, .1); }
.ih-btn--navy { background: var(--ih-navy); color: #fff !important; }

/* Header */
.ih-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--ih-line); }
.ih-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.ih-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.ih-logo__mark { width: 54px; height: 40px; }
.ih-logo__text { display: flex; flex-direction: column; line-height: 1; }
.ih-logo__text strong { font-family: Poppins, sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ih-navy); letter-spacing: -.02em; }
.ih-logo__name { font-family: Poppins, sans-serif; font-size: .95rem; font-weight: 700; color: var(--ih-navy); }
.ih-logo__tag { font-size: .72rem; color: var(--ih-muted); margin-top: 3px; }
.ih-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ih-line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ih-burger span { width: 20px; height: 2px; background: var(--ih-navy); border-radius: 2px; }

/* Top bar */
.ih-topbar { background: var(--ih-navy-deep); color: rgba(255, 255, 255, .82); font-size: .8rem; }
.ih-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ih-topbar__note, .ih-topbar__contact, .ih-topbar__contact a { display: inline-flex; align-items: center; gap: 7px; }
.ih-topbar__contact { gap: 22px; }
.ih-topbar__contact a:hover { color: var(--ih-gold); }
.ih-topbar .ih-icon { width: 15px; height: 15px; color: var(--ih-gold); }

/* Main menu */
.ih-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ih-menu { display: flex; align-items: center; gap: 4px; }
.ih-menu > li { position: relative; }
.ih-menu__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; border-radius: 8px; background: none; font: 500 .93rem/1.2 Inter, sans-serif; color: var(--ih-ink); cursor: pointer; position: relative; transition: color .15s, background .15s; white-space: nowrap; }
.ih-menu__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ih-gold); transform: scaleX(0); transition: transform .2s; }
.ih-menu__link:hover, .ih-menu__item--drop.is-open > .ih-menu__link { color: var(--ih-navy); background: var(--ih-sky); }
.ih-menu__link.is-active { color: var(--ih-navy); font-weight: 600; }
.ih-menu__link.is-active::after { transform: scaleX(1); }
.ih-menu__toggle .ih-icon { width: 16px; height: 16px; transition: transform .2s; }
.ih-menu__item--drop.is-open .ih-menu__toggle .ih-icon { transform: rotate(180deg); }
.ih-nav__cta { font-size: .9rem; padding: .78em 1.2em; white-space: nowrap; }

/* Services dropdown */
.ih-mega { position: absolute; top: calc(100% + 12px); left: 50%; width: 620px; padding: 14px; background: #fff; border: 1px solid var(--ih-line); border-radius: var(--ih-radius); box-shadow: 0 24px 50px rgba(11, 58, 91, .16); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.ih-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.ih-menu__item--drop.is-open .ih-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1101px) {
    .ih-menu__item--drop:hover .ih-mega, .ih-menu__item--drop:focus-within .ih-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .ih-menu__item--drop:hover .ih-menu__toggle .ih-icon { transform: rotate(180deg); }
}
.ih-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ih-mega__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.ih-mega__item:hover, .ih-mega__item:focus-visible { background: var(--ih-sky); }
.ih-mega__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--ih-sky); color: var(--ih-navy); transition: background .15s, color .15s; }
.ih-mega__item:hover .ih-mega__icon { background: var(--ih-navy); color: var(--ih-gold); }
.ih-mega__icon .ih-icon { width: 22px; height: 22px; }
.ih-mega__item strong { display: block; font: 600 .92rem/1.3 Poppins, sans-serif; color: var(--ih-navy); }
.ih-mega__item small { display: block; margin-top: 2px; font-size: .8rem; color: var(--ih-muted); }
.ih-mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(105deg, var(--ih-navy-deep), var(--ih-navy)); color: rgba(255, 255, 255, .85); font-size: .82rem; }
.ih-mega__chat { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 8px; background: var(--ih-gold); color: var(--ih-navy-deep) !important; font: 600 .82rem/1 Poppins, sans-serif; }
.ih-mega__chat:hover { background: #fff; }
.ih-mega__chat .ih-icon { width: 16px; height: 16px; }

/* Hero */
.ih-hero { position: relative; overflow: hidden; background: linear-gradient(105deg, var(--ih-navy-deep) 0%, var(--ih-navy) 48%, #0f4a72 100%); color: #fff; }
.ih-hero__photo { position: absolute; inset: 0 0 0 52%; background-size: cover; background-position: 42% 30%; }
.ih-hero__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ih-navy) 0%, rgba(11, 58, 91, .45) 18%, rgba(11, 58, 91, 0) 45%); }
.ih-hero__photo::after { content: ""; position: absolute; top: -10%; left: 2%; width: 14px; height: 120%; background: linear-gradient(180deg, var(--ih-gold), var(--ih-gold-deep)); transform: skewX(-18deg); box-shadow: 18px 0 0 -6px rgba(242, 182, 50, .35); }
.ih-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; min-height: 460px; padding-top: 56px; padding-bottom: 56px; }
.ih-hero__copy { border-left: 6px solid var(--ih-gold); padding-left: 28px; align-self: center; max-width: 600px; }
.ih-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
.ih-hero h1 span { color: var(--ih-gold); display: block; }
.ih-hero__lead { margin: 18px 0 26px; font-size: 1.1rem; color: rgba(255, 255, 255, .9); max-width: 34em; }
.ih-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ih-badges li { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ih-navy); border-radius: 999px; padding: 8px 15px; white-space: nowrap; font-weight: 600; font-size: .9rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.ih-badges .ih-icon { width: 22px; height: 22px; }
.ih-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ih-books { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-bottom: -8px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.ih-book { display: block; width: 220px; padding: 7px 18px; border-radius: 3px 7px 7px 3px; font-family: Poppins, sans-serif; font-weight: 600; font-size: .88rem; color: #fff; border-left: 8px solid rgba(255, 255, 255, .25); }
.ih-book--1 { background: #f7f9fb; color: var(--ih-navy); transform: translateX(-12px); }
.ih-book--2 { background: #1d4f8c; transform: translateX(-4px); }
.ih-book--3 { background: #c4335e; transform: translateX(6px); }
.ih-book--4 { background: #6a3aa2; transform: translateX(-2px); }
.ih-book--5 { background: #123f6e; transform: translateX(8px); }

/* Sections */
.ih-section { padding: 64px 0; }
.ih-section--tight { padding: 22px 0; }
.ih-heading { text-align: center; margin-bottom: 36px; }
.ih-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); display: inline-flex; align-items: center; gap: 24px; }
.ih-heading h2::before, .ih-heading h2::after { content: ""; width: 90px; height: 3px; background: var(--ih-gold); border-radius: 3px; }
.ih-heading p { color: var(--ih-muted); margin: 10px 0 0; font-size: 1.05rem; }

.ih-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ih-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(180deg, #fff, var(--ih-sky)); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 26px 16px 22px; box-shadow: var(--ih-shadow); scroll-margin-top: 110px; transition: transform .15s, box-shadow .15s; }
.ih-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 58, 91, .12); }
.ih-card__icon { color: var(--ih-navy); margin-bottom: 12px; }
.ih-card__icon .ih-icon { width: 58px; height: 58px; stroke-width: 1.4; }
.ih-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.ih-card p { font-size: .88rem; color: var(--ih-muted); margin: 0 0 14px; flex: 1; }
.ih-card__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--ih-gold-deep); font-weight: 700; font-family: Poppins, sans-serif; font-size: .95rem; }

/* Trusted partner (shared content) */
.ih-partner { background: var(--ih-sky); }
.ih-partner__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ih-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ih-gold-deep); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.ih-partner h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.ih-partner__lead { color: var(--ih-muted); font-size: 1.05rem; margin: 14px 0 22px; }
.ih-partner__panel { background: #fff; border-radius: var(--ih-radius); padding: 28px; box-shadow: var(--ih-shadow); border-top: 5px solid var(--ih-gold); }
.ih-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ih-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ih-navy); }
.ih-checks .ih-icon { color: #1aa36f; width: 22px; height: 22px; }
.ih-partner__note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--ih-line); color: var(--ih-muted); font-size: .95rem; }

/* How it works */
.ih-steps { display: flex; align-items: center; gap: 28px; background: var(--ih-sky); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 22px 34px; box-shadow: var(--ih-shadow); }
.ih-steps h2 { font-size: 1.9rem; white-space: nowrap; padding-right: 28px; border-right: 2px solid var(--ih-line); }
.ih-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; flex: 1; }
.ih-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ih-ink); font-size: 1rem; line-height: 1.3; }
.ih-steps li + li { border-left: 2px solid var(--ih-gold); padding-left: 20px; }
.ih-steps__n { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(180deg, var(--ih-gold), var(--ih-gold-deep)); color: #fff; font-family: Poppins, sans-serif; font-weight: 800; font-size: 1.3rem; }
.ih-steps li .ih-icon { width: 38px; height: 38px; color: var(--ih-navy); stroke-width: 1.5; }

/* CTA */
.ih-cta { display: flex; align-items: center; gap: 28px; background: linear-gradient(105deg, var(--ih-navy-deep), var(--ih-navy)); color: #fff; border-radius: var(--ih-radius); padding: 30px 40px; margin-bottom: 48px; }
.ih-cta__icon { color: var(--ih-gold); padding-right: 28px; border-right: 2px solid var(--ih-gold); }
.ih-cta__icon .ih-icon { width: 72px; height: 72px; stroke-width: 1.4; }
.ih-cta__copy { flex: 1; }
.ih-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ih-cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); }

/* Footer */
.ih-footer { background: var(--ih-navy-deep); color: rgba(255, 255, 255, .78); padding-top: 52px; font-size: .93rem; }
.ih-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.ih-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.ih-footer li { margin-bottom: 9px; }
.ih-footer a { display: inline-flex; align-items: center; gap: 8px; }
.ih-footer a:hover { color: var(--ih-gold); }
.ih-logo--light .ih-logo__text strong, .ih-logo--light .ih-logo__name { color: #fff; }
.ih-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.ih-footer__bottom span { display: inline-flex; align-items: center; gap: 6px; }

/* Responsive */
@media (max-width: 1240px) {
    .ih-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .ih-burger { display: flex; }
    .ih-header__inner { position: relative; }
    .ih-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--ih-line); box-shadow: 0 16px 30px rgba(11, 58, 91, .12); }
    .ih-nav.is-open { display: flex; }
    .ih-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .ih-menu > li { border-bottom: 1px solid var(--ih-line); }
    .ih-menu__link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1rem; border-radius: 0; }
    .ih-menu__link::after { display: none; }
    .ih-menu__link:hover, .ih-menu__item--drop.is-open > .ih-menu__link { background: none; }
    .ih-menu__link.is-active { color: var(--ih-gold-deep); }
    .ih-mega { position: static; width: auto; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
    .ih-mega::before { display: none; }
    .ih-menu__item--drop.is-open .ih-mega { display: block; transform: none; }
    .ih-mega__grid { grid-template-columns: 1fr; }
    .ih-mega__item { padding: 10px 8px; }
    .ih-mega__foot { flex-direction: column; align-items: flex-start; }
    .ih-nav__cta { margin-top: 16px; white-space: normal; }
    .ih-topbar__note { display: none; }
    .ih-topbar__inner { justify-content: center; }
}
@media (max-width: 600px) {
    .ih-topbar__contact a:last-child { display: none; }
}
@media (max-width: 900px) {
    .ih-hero__photo { inset: 0; opacity: .28; }
    .ih-hero__photo::after { display: none; }
    .ih-hero__inner { grid-template-columns: 1fr; min-height: 0; }
    .ih-books { display: none; }
    .ih-partner__inner { grid-template-columns: 1fr; gap: 28px; }
    .ih-steps { flex-direction: column; align-items: stretch; }
    .ih-steps h2 { border-right: 0; padding-right: 0; }
    .ih-steps ol { grid-template-columns: 1fr; }
    .ih-steps li + li { border-left: 0; padding-left: 0; }
    .ih-cta { flex-direction: column; text-align: center; padding: 28px 22px; }
    .ih-cta__icon { border-right: 0; padding-right: 0; }
    .ih-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ih-wrap { padding: 0 16px; }
    .ih-cards { grid-template-columns: 1fr; }
    .ih-checks { grid-template-columns: 1fr; }
    .ih-heading h2::before, .ih-heading h2::after { display: none; }
    .ih-hero__copy { padding-left: 18px; }
    .ih-hero__actions .ih-btn { width: 100%; }
    .ih-logo__tag { display: none; }
    .ih-logo__text strong { font-size: 1.4rem; }
    .ih-footer__inner { grid-template-columns: 1fr; }
}
