/* Homepage redesign (approved reference "Foondi Tech Academy Homepage Design.png").
   Everything is scoped to .fta-home, which is only set on the homepage, so no other page is affected.
   Spacing pass (approved 2026-11-04): wider content area and more generous section, text and card spacing. */
.fta-home {
    --fh-teal: #036a7d;
    --fh-teal-hover: #025566;
    --fh-teal-dark: #014a5b;
    --fh-accent: #1fb5c4;
    --fh-navy: #0a1f3d;
    --fh-navy-btn: #0b344c;
    --fh-text: #33465a;
    --fh-muted: #5b6b7c;
    --fh-line: #dce8ef;
    --fh-light: #eef6fb;
    --fh-card-shadow: 0 8px 26px rgba(10, 51, 76, 0.08);
    --fh-font: 'Jost', sans-serif;
    --fh-section-y: 88px;
    font-family: var(--fh-font);
    color: var(--fh-text);
    background: #fff;
}
.fta-home .fh-container { max-width: 1400px; margin: 0 auto; padding: 0 48px; position: relative; }
.fta-home .fh-home h1, .fta-home .fh-home h2, .fta-home .fh-home h3,
.fta-home .fh-header, .fta-home .fh-footer h3 { font-family: var(--fh-font); }
.fta-home .fh-home p { margin: 0; font-weight: 500; }
.fta-home .fh-home ul, .fta-home .fh-home ol { list-style: none; margin: 0; padding: 0; }
.fta-home .fh-home img { max-width: 100%; }

/* ---------- Buttons, labels, cards ---------- */
.fta-home .fh-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.fta-home .fh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 28px; border-radius: 5px; border: 2px solid transparent;
    font-family: var(--fh-font); font-size: 14px; font-weight: 600; line-height: 1;
    letter-spacing: .3px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.fta-home .fh-btn i { font-size: 13px; }
.fta-home .fh-btn-teal { background: var(--fh-teal); color: #fff; box-shadow: 0 6px 16px rgba(3, 106, 125, .22); }
.fta-home .fh-btn-teal:hover, .fta-home .fh-btn-teal:focus { background: var(--fh-teal-hover); color: #fff; }
.fta-home .fh-btn-navy { background: var(--fh-navy-btn); color: #fff; }
.fta-home .fh-btn-navy:hover, .fta-home .fh-btn-navy:focus { background: #071f2e; color: #fff; }
.fta-home .fh-btn-gold { background: #ecb51e; color: var(--fh-navy-btn); box-shadow: 0 6px 16px rgba(236, 181, 30, .3); }
.fta-home .fh-btn-gold:hover, .fta-home .fh-btn-gold:focus { background: #ffc33d; color: var(--fh-navy-btn); }
.fta-home .fh-btn-outline { background: #fff; color: var(--fh-navy); border-color: #1d4f66; }
.fta-home .fh-btn-outline:hover, .fta-home .fh-btn-outline:focus { background: var(--fh-teal); border-color: var(--fh-teal); color: #fff; }
.fta-home .fh-btn:focus-visible, .fta-home .fh-card:focus-visible, .fta-home .fh-header a:focus-visible { outline: 3px solid var(--fh-accent); outline-offset: 2px; }

.fta-home .fh-label {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important;
    font-size: 13.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--fh-teal);
}
.fta-home .fh-label i { font-size: 12px; }
.fta-home .fh-label-light { color: #fff; }
.fta-home .fh-h2 { margin: 0 0 18px; font-size: 36px; line-height: 1.15; font-weight: 800; color: var(--fh-navy); letter-spacing: -.3px; }
.fta-home .fh-card { background: #fff; border-radius: 10px; box-shadow: var(--fh-card-shadow); }

/* Content from the reference that is not yet confirmed: a small note so it is not read as fact */
.fta-home .fh-pending { position: relative; }
.fta-home .fh-pending::after {
    content: attr(data-pending); position: absolute; right: 8px; bottom: -28px;
    font-size: 11.5px; font-style: italic; color: #8a98a6; white-space: nowrap; pointer-events: none;
}

/* Labelled frame for an image that is not yet supplied */
.fta-home .fh-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    padding: 12px; text-align: center; font-size: 13px; line-height: 1.4; color: #6b7c8c;
    background: repeating-linear-gradient(45deg, #e8eef2, #e8eef2 10px, #eef3f6 10px, #eef3f6 20px);
    border: 1px dashed #b7c6d1;
}

/* ---------- Header (homepage only) ---------- */
.fta-home .fh-topbar { background: var(--fh-teal); color: #fff; font-size: 13.5px; line-height: 42px; }
.fta-home .fh-topbar .fh-container { display: flex; justify-content: center; align-items: center; gap: 26px; }
.fta-home .fh-topbar-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.fta-home .fh-topbar-item i { font-size: 13px; }
.fta-home .fh-topbar a { color: #fff; text-decoration: none; }
.fta-home .fh-topbar-sep { width: 1px; height: 15px; background: rgba(255, 255, 255, .6); }
.fta-home .fh-nav { background: #fff; box-shadow: 0 2px 14px rgba(10, 31, 61, .06); position: relative; z-index: 5; }
.fta-home .fh-nav-row { display: flex; align-items: center; height: 92px; }
.fta-home .fh-logo { flex: 0 0 auto; margin-right: 40px; }
/* The menu may hold more items than the 6 in the design (e.g. "Apply Now" from the admissions portal): keep a gap before the search box */
.fta-home .fh-menu { flex: 0 0 auto; margin-right: 28px; }
.fta-home .fh-logo img { display: block; width: 186px; height: auto; }
.fta-home .fh-menu ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.fta-home .fh-menu a {
    display: block; white-space: nowrap; padding: 8px 0; font-size: 14px; font-weight: 700; text-transform: uppercase;
    color: var(--fh-navy); text-decoration: none; letter-spacing: .3px; border-bottom: 2px solid transparent;
}
.fta-home .fh-menu a:hover, .fta-home .fh-menu a:focus { color: var(--fh-teal); border-bottom-color: var(--fh-teal); }
/* Current page marker (About Us); the homepage has no matching menu item, so it is unaffected */
.fta-home .fh-menu a.active { color: var(--fh-navy); border-bottom: 3px solid #f5b120; }
.fta-home .fh-search {
    display: flex; align-items: center; margin-left: auto; width: 250px; flex: 0 1 250px; min-width: 170px; height: 46px;
    border: 1px solid var(--fh-line); border-radius: 6px; background: #fff; overflow: hidden;
}
.fta-home .fh-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 0 0 18px; background: transparent;
    font-family: var(--fh-font); font-size: 14px; color: var(--fh-navy); outline: none; box-shadow: none;
}
.fta-home .fh-search input::placeholder { color: #8d99a6; }
.fta-home .fh-search button { width: 46px; height: 100%; border: 0; background: transparent; color: var(--fh-navy); font-size: 16px; padding: 0; }
.fta-home .fh-search-toggle { position: relative; margin-left: auto; }
.fta-home .fh-search-toggle > summary {
    display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; list-style: none; cursor: pointer;
    border: 1px solid var(--fh-line); border-radius: 6px; background: #fff; color: var(--fh-navy); font-size: 16px;
}
.fta-home .fh-search-toggle > summary::-webkit-details-marker { display: none; }
.fta-home .fh-search-toggle[open] > summary, .fta-home .fh-search-toggle > summary:hover { border-color: var(--fh-teal); color: var(--fh-teal); }
.fta-home .fh-search-toggle .fh-search {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; margin: 0; width: 320px; flex: none;
    box-shadow: var(--fh-card-shadow);
}
.fta-home .fh-join, .fta-home .fh-portal { margin-left: 20px; padding: 0 26px; height: 46px; }
.fta-home .fh-portal + .fh-join { margin-left: 10px; }
.fta-home .fh-burger { display: none !important; margin-left: 12px; width: 46px; height: 46px; border: 0; border-radius: 6px; background: var(--fh-teal); color: #fff; font-size: 18px; }

/* ---------- 1. Hero ---------- */
.fta-home .fh-hero { position: relative; min-height: 560px; background: linear-gradient(90deg, #f2f8fd 0%, #eaf5fb 45%, #e4f1f8 100%); overflow: hidden; display: flex; align-items: center; }
.fta-home .fh-hero > .fh-container { width: 100%; }
.fta-home .fh-hero-media {
    position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
    clip-path: ellipse(100% 125% at 100% 50%);
}
.fta-home .fh-hero-media::before {
    /* teal arc along the curved edge */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 100% 125% at 100% 50%, transparent 97.6%, #1f8ea0 97.7%, #56b7c4 99.2%, transparent 99.3%);
}
.fta-home .fh-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; display: block; }
.fta-home .fh-hero-content { position: relative; z-index: 2; max-width: 520px; padding: 80px 0 76px; }
.fta-home .fh-hero-kicker { font-size: 19px; font-weight: 800; color: var(--fh-teal); text-transform: uppercase; letter-spacing: .4px; line-height: 1.2; margin-bottom: 14px !important; }
.fta-home .fh-hero-title { margin: 0 0 22px; font-size: 56px; line-height: 1.05; font-weight: 800; color: var(--fh-navy); letter-spacing: -.6px; }
.fta-home .fh-hero-text { max-width: 500px; font-size: 18px; line-height: 1.55; color: #1e2f45; margin-bottom: 36px !important; }
.fta-home .fh-hero .fh-btn-teal { min-width: 160px; }
.fta-home .fh-hero .fh-btn-outline { min-width: 200px; }
.fta-home .fh-hero-features { display: flex; gap: 44px; margin-top: 48px !important; }
.fta-home .fh-hero-features li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fta-home .fh-hero-features i { font-size: 34px; color: var(--fh-teal); }
.fta-home .fh-hero-features span { font-size: 14px; font-weight: 700; color: var(--fh-navy); white-space: nowrap; }

/* ---------- 2. Online Education ---------- */
.fta-home .fh-online { background: #f1f8fc; border-top: 1px solid #e3eef5; padding: var(--fh-section-y) 0; }
.fta-home .fh-online-row { display: flex; align-items: center; }
.fta-home .fh-online-intro { flex: 0 0 520px; padding-right: 52px; margin-right: 52px; border-right: 1px solid #d5e3ec; }
.fta-home .fh-online-title { margin: 0 0 18px; font-size: 36px; line-height: 1.15; font-weight: 800; color: var(--fh-navy); }
.fta-home .fh-online-title span { display: block; color: var(--fh-teal); }
.fta-home .fh-online-intro p { font-size: 16px; line-height: 1.6; color: #1e2f45; margin-bottom: 30px !important; }
.fta-home .fh-online-cards { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fta-home .fh-online-card { min-height: 200px; padding: 32px 14px 26px; text-align: center; border: 1px solid #e3edf3; }
.fta-home .fh-online-card i { font-size: 40px; color: var(--fh-teal); display: block; margin-bottom: 18px; }
.fta-home .fh-online-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--fh-navy); }
.fta-home .fh-online-card p { font-size: 14px; line-height: 1.5; color: var(--fh-text); }

/* ---------- 3. About Us + stats ---------- */
.fta-home .fh-about { background: #fff; padding: calc(var(--fh-section-y) + 8px) 0; }
.fta-home .fh-about-row { display: flex; align-items: center; }
.fta-home .fh-about-media { position: relative; flex: 0 0 540px; height: 400px; }
.fta-home .fh-about-img1 { position: absolute; left: 0; top: 0; width: 440px; height: 300px; object-fit: cover; border-radius: 12px; }
.fta-home .fh-about-img2 { position: absolute; left: 290px; top: 196px; width: 250px; height: 170px; object-fit: cover; border-radius: 12px; border: 6px solid #fff; box-shadow: 0 12px 30px rgba(10, 31, 61, .16); }
.fta-home .fh-about-badge {
    position: absolute; left: 372px; top: -10px; width: 136px; height: 136px; border-radius: 50%;
    background: #fff; border: 2px solid #b8dbe2; box-shadow: 0 8px 22px rgba(10, 31, 61, .12);
    display: flex; align-items: center; justify-content: center; padding: 12px;
}
.fta-home .fh-about-badge img { width: 100%; height: auto; }
.fta-home .fh-about-text { flex: 1; margin: 0 56px; }
.fta-home .fh-about-text .fh-h2 { margin-bottom: 20px; }
.fta-home .fh-about-text > p:not(.fh-label) { font-size: 15.5px; line-height: 1.7; color: #1e2f45; margin-bottom: 24px !important; }
.fta-home .fh-checks { margin-bottom: 34px !important; }
.fta-home .fh-checks li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.45; color: #1e2f45; margin-bottom: 14px; }
.fta-home .fh-checks i { font-size: 19px; color: var(--fh-accent); }
.fta-home .fh-stats { flex: 0 0 260px; background: #f2f7fb; border-radius: 14px; padding: 14px 28px; }
.fta-home .fh-stat { display: flex; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid #dfe9f0; }
.fta-home .fh-stat:last-child { border-bottom: 0; }
.fta-home .fh-stat i { width: 42px; text-align: center; font-size: 32px; color: var(--fh-teal); }
.fta-home .fh-stat strong { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; color: var(--fh-navy); }
.fta-home .fh-stat span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.3; color: #3a4b5d; }

/* ---------- 4. Comprehensive Courses ---------- */
.fta-home .fh-courses { background: linear-gradient(90deg, #eaf4fc 0%, #f2f8fd 60%, #eaf3fb 100%); padding: var(--fh-section-y) 0; }
.fta-home .fh-courses-row { display: flex; align-items: center; }
.fta-home .fh-courses-intro { flex: 0 0 500px; padding-right: 60px; }
.fta-home .fh-courses-intro p:not(.fh-label) { font-size: 15.5px; line-height: 1.65; color: #1e2f45; margin-bottom: 32px !important; }
.fta-home .fh-course-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fta-home .fh-course-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 128px; padding: 12px;
    text-decoration: none; text-align: center; border: 1px solid #e1ebf2; transition: transform .2s, box-shadow .2s;
}
.fta-home .fh-course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 51, 76, .14); }
.fta-home .fh-course-card i { font-size: 32px; color: var(--fh-teal); }
.fta-home .fh-course-card span { font-size: 14.5px; line-height: 1.25; font-weight: 700; color: var(--fh-navy); }

/* ---------- 5. Why Choose Us ---------- */
.fta-home .fh-why {
    padding: calc(var(--fh-section-y) - 8px) 0; color: #fff;
    background: linear-gradient(90deg, rgba(4, 72, 92, .97) 0%, rgba(8, 82, 102, .93) 45%, rgba(22, 96, 112, .9) 100%),
                url('/fta_website/static/src/wp/uploads/2023/08/category_bg_1-6-1-1.jpg') center/cover no-repeat;
}
.fta-home .fh-why-row { display: flex; align-items: center; }
.fta-home .fh-why-intro { flex: 0 0 540px; padding-right: 56px; }
.fta-home .fh-why-intro .fh-h2 { color: #fff; }
.fta-home .fh-why-intro p:not(.fh-label) { font-size: 16px; line-height: 1.65; color: #e4f1f4; }
.fta-home .fh-why-items { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.fta-home .fh-why-item { text-align: center; padding: 14px 22px; border-left: 1px solid rgba(255, 255, 255, .22); }
.fta-home .fh-why-item i { font-size: 36px; display: block; margin-bottom: 16px; }
.fta-home .fh-why-item h3 { margin: 0 0 12px; font-size: 17.5px; line-height: 1.2; font-weight: 700; color: #fff; }
.fta-home .fh-why-item p { font-size: 14px; line-height: 1.5; color: #d7e9ee; }

/* ---------- 6. Enrollment Process ---------- */
.fta-home .fh-admission { background: #f7fbfd; padding: var(--fh-section-y) 0; overflow: hidden; }
.fta-home .fh-admission-row { display: flex; align-items: center; }
.fta-home .fh-admission-text { flex: 1; padding-right: 64px; }
.fta-home .fh-admission-text > p:not(.fh-label) { font-size: 15.5px; line-height: 1.65; color: #1e2f45; max-width: 540px; margin-bottom: 36px !important; }
.fta-home .fh-steps { display: flex; gap: 48px; margin-bottom: 36px !important; }
.fta-home .fh-steps li {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    flex: 1 1 0; min-width: 0; height: 100px; padding: 0 12px; line-height: 1.2; text-align: center;
    background: #fff; border: 1px solid #e1ebf2; border-radius: 10px; box-shadow: var(--fh-card-shadow);
    font-size: 15.5px; font-weight: 700; color: var(--fh-navy);
}
.fta-home .fh-steps li + li::before {
    content: "\2192"; position: absolute; left: -34px; top: 50%; transform: translateY(-50%);
    font-size: 20px; color: var(--fh-navy);
}
.fta-home .fh-step-num {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--fh-teal); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.fta-home .fh-admission-media {
    position: relative; flex: 0 0 480px; height: 340px;
    border-radius: 0 16px 16px 0; overflow: hidden;
}
.fta-home .fh-admission-media::before {
    content: ""; position: absolute; left: -70px; top: -40px; bottom: -40px; width: 170px; z-index: 2;
    border-radius: 50%; border-right: 10px solid #3aa3b2; background: #f7fbfd;
}
.fta-home .fh-admission-media .fh-placeholder { border-radius: 0 16px 16px 0; }
.fta-home .fh-admission-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; border-radius: 0 16px 16px 0; }

/* ---------- 7. News & Events ---------- */
.fta-home .fh-news { background: linear-gradient(90deg, #edf6fb 0%, #f4f9fc 100%); padding: var(--fh-section-y) 0 calc(var(--fh-section-y) + 12px); }
.fta-home .fh-news-row { display: flex; align-items: center; }
.fta-home .fh-news-intro { flex: 0 0 440px; padding-right: 56px; }
.fta-home .fh-news-intro p:not(.fh-label) { font-size: 16px; line-height: 1.65; color: #1e2f45; margin-bottom: 32px !important; }
.fta-home .fh-news-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fta-home .fh-news-card { display: block; overflow: hidden; text-decoration: none; border: 1px solid #e1ebf2; transition: transform .2s, box-shadow .2s; }
.fta-home .fh-news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 51, 76, .14); }
.fta-home .fh-news-img { position: relative; height: 150px; }
.fta-home .fh-news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fta-home .fh-news-img .fh-placeholder { font-size: 11px; border: 0; border-bottom: 1px dashed #b7c6d1; }
.fta-home .fh-tag {
    position: absolute; left: 20px; bottom: -12px; padding: 5px 14px; border-radius: 4px;
    background: var(--fh-teal); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
}
.fta-home .fh-news-body { padding: 28px 24px 24px; }
.fta-home .fh-news-body h3 { margin: 0; min-height: 44px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--fh-navy); }
.fta-home .fh-date { display: flex; align-items: center; gap: 9px; margin-top: 14px !important; font-size: 13.5px; color: #33465a; }

/* ---------- Footer (homepage only) ---------- */
.fta-home .fh-footer { background: #014a5b; color: #e3f0f3; padding: 72px 0 0; font-family: var(--fh-font); }
.fta-home .fh-footer a { color: #e3f0f3; text-decoration: none; }
.fta-home .fh-footer a:hover { color: #fff; text-decoration: underline; }
.fta-home .fh-footer-top { display: flex; gap: 48px; padding-bottom: 48px; }
.fta-home .fh-footer-about { flex: 0 0 380px; }
.fta-home .fh-footer-logo img { display: block; width: 220px; height: auto; margin-bottom: 22px; }
.fta-home .fh-footer-about p { font-size: 14.5px; line-height: 1.7; color: #e3f0f3; margin: 0; max-width: 360px; }
.fta-home .fh-footer-col { flex: 1; }
.fta-home .fh-footer-col h3 { margin: 6px 0 20px; font-size: 18px; font-weight: 700; color: #fff; }
.fta-home .fh-footer-col ul { list-style: none; margin: 0; padding: 0; }
.fta-home .fh-footer-col li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.5; margin-bottom: 11px; }
.fta-home .fh-footer-col li a { display: inline-flex; align-items: center; gap: 12px; }
.fta-home .fh-footer-col li i { font-size: 12px; width: 14px; }
.fta-home .fh-footer-contact li { margin-bottom: 16px; }
.fta-home .fh-footer-contact li i { font-size: 15px; }
.fta-home .fh-footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.fta-home .fh-footer-social { display: flex; align-items: center; gap: 12px; }
.fta-home .fh-footer-social span { margin-right: 20px; font-size: 14px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #fff; }
.fta-home .fh-footer-social a { width: 40px; height: 40px; border-radius: 50%; background: #0d3748; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.fta-home .fh-footer-social a:hover { background: var(--fh-teal); text-decoration: none; }
.fta-home .fh-copyright { margin: 0; font-size: 13.5px; line-height: 1.65; color: #e3f0f3; text-align: right; }

/* ---------- Large desktops ---------- */
@media (min-width: 1600px) {
    .fta-home { --fh-section-y: 100px; }
    .fta-home .fh-hero { min-height: 620px; }
}

/* ---------- Small desktops / tablets landscape ---------- */
@media (max-width: 1399.98px) {
    .fta-home { --fh-section-y: 76px; }
    .fta-home .fh-container { padding: 0 36px; }
    .fta-home .fh-logo { margin-right: 28px; }
    .fta-home .fh-menu ul { gap: 20px; }
    .fta-home .fh-menu a { font-size: 13.5px; }
    .fta-home .fh-search { width: 200px; flex-basis: 200px; }
    .fta-home .fh-hero-title { font-size: 50px; }
    .fta-home .fh-online-intro { flex-basis: 420px; padding-right: 40px; margin-right: 40px; }
    .fta-home .fh-h2, .fta-home .fh-online-title { font-size: 33px; }
    .fta-home .fh-online-cards { gap: 18px; }
    .fta-home .fh-online-card { padding: 28px 14px 24px; }
    .fta-home .fh-about-media { flex-basis: 460px; height: 360px; }
    .fta-home .fh-about-img1 { width: 380px; height: 270px; }
    .fta-home .fh-about-img2 { left: 240px; top: 180px; width: 220px; height: 150px; }
    .fta-home .fh-about-badge { left: 312px; width: 120px; height: 120px; }
    .fta-home .fh-about-text { margin: 0 40px; }
    .fta-home .fh-stats { flex-basis: 230px; padding: 10px 22px; }
    .fta-home .fh-courses-intro { flex-basis: 400px; padding-right: 44px; }
    .fta-home .fh-course-grid { gap: 16px; }
    .fta-home .fh-why-intro { flex-basis: 420px; padding-right: 40px; }
    .fta-home .fh-why-item { padding: 12px 14px; }
    .fta-home .fh-admission-text { padding-right: 44px; }
    .fta-home .fh-steps { gap: 40px; }
    .fta-home .fh-steps li + li::before { left: -30px; }
    .fta-home .fh-admission-media { flex-basis: 400px; height: 320px; }
    .fta-home .fh-steps li { font-size: 14.5px; padding: 0 8px; }
    .fta-home .fh-news-intro { flex-basis: 360px; padding-right: 40px; }
    .fta-home .fh-news-cards { gap: 22px; }
}
@media (max-width: 1299.98px) {
    .fta-home .fh-logo { margin-right: 20px; }
    .fta-home .fh-logo img { width: 160px; }
    .fta-home .fh-menu { margin-right: 18px; }
    .fta-home .fh-menu ul { gap: 16px; }
    .fta-home .fh-menu a { font-size: 13px; letter-spacing: 0; }
    .fta-home .fh-search { min-width: 150px; }
    .fta-home .fh-join, .fta-home .fh-portal { margin-left: 14px; padding: 0 18px; }
    .fta-home .fh-portal + .fh-join { margin-left: 8px; }
}
@media (max-width: 1199.98px) {
    .fta-home { --fh-section-y: 68px; }
    .fta-home .fh-menu, .fta-home .fh-search, .fta-home .fh-search-toggle { display: none; }
    .fta-home .fh-nav-row { height: 84px; }
    .fta-home .fh-join, .fta-home .fh-portal { margin-left: auto; }
    .fta-home .fh-portal + .fh-join { margin-left: 10px; }
    .fta-home .fh-burger { display: inline-flex !important; align-items: center; justify-content: center; }
    .fta-home .fh-online-row, .fta-home .fh-courses-row, .fta-home .fh-why-row,
    .fta-home .fh-admission-row, .fta-home .fh-news-row { flex-direction: column; align-items: stretch; gap: 40px; }
    .fta-home .fh-course-grid, .fta-home .fh-news-cards, .fta-home .fh-why-items, .fta-home .fh-online-cards { flex: none; width: 100%; margin-left: 0; }
    .fta-home .fh-online-intro, .fta-home .fh-courses-intro, .fta-home .fh-why-intro,
    .fta-home .fh-news-intro, .fta-home .fh-admission-text { flex: none; padding-right: 0; margin-right: 0; border-right: 0; max-width: 680px; }
    .fta-home .fh-about-row { flex-wrap: wrap; }
    .fta-home .fh-about-text { flex: 1 1 380px; margin-right: 0; }
    .fta-home .fh-stats { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; margin: 48px 0 12px; padding: 8px 24px; }
    .fta-home .fh-stat { border-bottom: 0; gap: 14px; }
    .fta-home .fh-admission-media { flex: none; width: 100%; max-width: 680px; height: 340px; margin: 0 auto; border-radius: 16px; }
    .fta-home .fh-admission-media::before { display: none; }
    .fta-home .fh-admission-media .fh-placeholder, .fta-home .fh-admission-media img { border-radius: 16px; }
    .fta-home .fh-footer-top { flex-wrap: wrap; gap: 40px 32px; }
    .fta-home .fh-footer-about { flex: 1 1 100%; }
    .fta-home .fh-footer-col { flex: 1 1 28%; }
}

/* ---------- Tablets portrait ---------- */
@media (max-width: 991.98px) {
    .fta-home { --fh-section-y: 64px; }
    .fta-home .fh-container { padding: 0 32px; }
    .fta-home .fh-hero { display: block; min-height: 0; }
    .fta-home .fh-hero-media { position: relative; width: 100%; height: 380px; clip-path: none; }
    .fta-home .fh-hero-media::before { display: none; }
    .fta-home .fh-hero-content { max-width: 620px; padding: 48px 0 56px; }
    .fta-home .fh-hero-title { font-size: 46px; }
    .fta-home .fh-about-media { flex: 1 1 100%; max-width: 540px; height: 380px; margin: 0 auto 48px; }
    .fta-home .fh-about-text { flex: 1 1 100%; margin: 0; }
    .fta-home .fh-online-cards, .fta-home .fh-course-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .fta-home .fh-why-items { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .fta-home .fh-why-item:nth-child(odd) { border-left: 0; }
    .fta-home .fh-stats { grid-template-columns: repeat(2, 1fr); }
    .fta-home .fh-news-cards { grid-template-columns: repeat(2, 1fr); }
    .fta-home .fh-steps { flex-wrap: wrap; gap: 24px 44px; }
    .fta-home .fh-steps li { flex: 0 0 calc(50% - 22px); }
    .fta-home .fh-steps li:nth-child(3)::before { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
    .fta-home { --fh-section-y: 56px; }
    .fta-home .fh-container { padding: 0 20px; }
    .fta-home .fh-topbar { line-height: 28px; }
    .fta-home .fh-topbar .fh-container { flex-wrap: wrap; gap: 0 16px; padding-top: 5px; padding-bottom: 5px; }
    .fta-home .fh-topbar-sep, .fta-home .fh-topbar-item:nth-child(3) { display: none; }
    .fta-home .fh-nav-row { height: 72px; }
    .fta-home .fh-logo img { width: 150px; }
    .fta-home .fh-join, .fta-home .fh-portal { display: none; }
    .fta-home .fh-burger { margin-left: auto; }
    .fta-home .fh-hero-media { height: 250px; }
    .fta-home .fh-hero-content { padding: 40px 0 48px; }
    .fta-home .fh-hero-kicker { font-size: 15px; margin-bottom: 10px !important; }
    .fta-home .fh-hero-title { font-size: 38px; margin-bottom: 18px; }
    .fta-home .fh-hero-text { font-size: 16.5px; line-height: 1.6; margin-bottom: 30px !important; }
    .fta-home .fh-btns { flex-direction: column; gap: 14px; }
    .fta-home .fh-btns .fh-btn, .fta-home .fh-btn { width: 100%; height: 50px; }
    .fta-home .fh-hero-features { justify-content: space-between; gap: 12px; margin-top: 40px !important; }
    .fta-home .fh-hero-features span { font-size: 12.5px; white-space: normal; text-align: center; }
    .fta-home .fh-h2, .fta-home .fh-online-title { font-size: 30px; margin-bottom: 16px; }
    .fta-home .fh-online-cards, .fta-home .fh-course-grid { gap: 14px; }
    .fta-home .fh-online-card { min-height: 0; padding: 26px 12px 22px; }
    .fta-home .fh-about-media { height: 290px; margin-bottom: 40px; }
    .fta-home .fh-about-img1 { width: 82%; height: 220px; }
    .fta-home .fh-about-img2 { left: auto; right: 0; top: 150px; width: 55%; height: 130px; border-width: 5px; }
    .fta-home .fh-about-badge { left: auto; right: 4%; top: -6px; width: 96px; height: 96px; padding: 9px; }
    .fta-home .fh-about-text > p:not(.fh-label), .fta-home .fh-checks li { font-size: 15.5px; line-height: 1.65; }
    .fta-home .fh-checks li { align-items: flex-start; }
    .fta-home .fh-checks i { margin-top: 3px; }
    .fta-home .fh-stats { grid-template-columns: 1fr 1fr; padding: 6px 18px; gap: 0 16px; }
    .fta-home .fh-stat { gap: 12px; padding: 16px 0; }
    .fta-home .fh-stat i { width: 32px; font-size: 26px; }
    .fta-home .fh-stat strong { font-size: 21px; }
    .fta-home .fh-course-card { height: 112px; }
    .fta-home .fh-why-item { padding: 8px 10px; }
    .fta-home .fh-steps { flex-direction: column; gap: 14px; }
    .fta-home .fh-steps li { flex: none; width: 100%; height: 64px; flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; padding: 0 18px; }
    .fta-home .fh-steps li + li::before { display: none; }
    .fta-home .fh-admission-media { height: 240px; }
    .fta-home .fh-news-cards { grid-template-columns: 1fr; gap: 22px; }
    .fta-home .fh-news-img { height: 170px; }
    .fta-home .fh-pending::after { position: static; display: block; margin-top: 10px; white-space: normal; }
    .fta-home .fh-footer { padding-top: 56px; }
    .fta-home .fh-footer-col { flex: 1 1 100%; }
    .fta-home .fh-footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
    .fta-home .fh-footer-social span { margin-right: 6px; }
}

/* ---------- Gold hover on every site button (client request 2026-11-11) ----------
   Loaded on all redesigned pages, after the per-page button colours; #wrapwrap and
   !important beat the portal's own !important hover. Gold buttons keep their lighter-gold hover. */
#wrapwrap.fta-home .fh-btn:not(.fk-btn-gold):not(.fh-btn-gold):hover,
#wrapwrap.fta-home .fh-btn:not(.fk-btn-gold):not(.fh-btn-gold):active,
#wrapwrap.fta-home main .btn-primary:not(:disabled):not(.disabled):hover,
#wrapwrap.fta-home main .btn-primary:not(:disabled):not(.disabled):active,
#wrapwrap.fta-home main .btn-outline-primary:hover,
#wrapwrap.fta-home main .btn-secondary:hover,
#wrapwrap.fta-home main .btn-outline-secondary:hover,
#wrapwrap.fta-home .modal .btn-primary:hover {
    background: #ecb51e !important; border-color: #ecb51e !important; color: var(--fh-teal-dark) !important;
    box-shadow: 0 6px 16px rgba(236, 181, 30, .32);
}
