/* =========================================================
   TIOSH College of Professional Studies – homepage styles
   All classes are prefixed with .t- so they don't clash with
   WPLMS / Elementor styles.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Mulish:ital,wght@0,400;0,700;0,800;1,800;1,900&display=swap");

:root {
  --t-navy: #0B2A78;
  --t-royal: #2A32C8;
  --t-amber: #F5B700;
  --t-deep: #071A4D;
  --t-tint: #EDF2FF;
  --t-tint-2: #D3DDF7;
  --t-line: #DDE4F5;
  --t-ink: #13204A;
  --t-body: #4A5578;
  --t-soft: #C3D0F5;
  --t-radius: 14px;
  --t-max: 1240px;
  --t-head: "Sora", "Mulish", sans-serif;
  --t-text: "Mulish", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */
.t-page { font-family: var(--t-text); color: var(--t-ink); background: #fff; line-height: 1.5; }
.t-page *, .t-page *::before, .t-page *::after { box-sizing: border-box; }
.t-page a { color: var(--t-royal); text-decoration: none; }
.t-page a:hover { color: var(--t-navy); text-decoration: underline; }
.t-page *:focus-visible { outline: 3px solid var(--t-amber); outline-offset: 2px; }
.t-page img { max-width: 100%; display: block; }
.t-wrap { max-width: var(--t-max); margin: 0 auto; padding: 0 24px; }
.t-section { padding: 64px 0 32px; }
.t-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.t-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--t-royal); }
.t-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--t-amber); }
.t-h2 { margin: 0 0 8px; font-family: var(--t-head); font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--t-navy); letter-spacing: -0.01em; line-height: 1.2; }
.t-lead { margin: 0; font-size: 16px; color: var(--t-body); max-width: 620px; }
.t-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }

/* Image placeholder box – put an <img> inside */
.t-ph { background: var(--t-tint-2); color: #3B4B7A; font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.t-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; transition: filter .15s; white-space: nowrap; }
.t-btn:hover { filter: brightness(1.12); }
.t-btn--primary { background: var(--t-royal); color: #fff !important; }
.t-btn--navy { background: var(--t-navy); color: #fff !important; }
.t-btn--amber { background: var(--t-amber); color: var(--t-deep) !important; font-weight: 800; }
.t-btn--outline { background: transparent; border: 1.5px solid var(--t-navy); color: var(--t-navy) !important; }
.t-btn--white { background: #fff; color: var(--t-navy) !important; }
.t-btn--lg { height: 48px; padding: 0 26px; }
.t-link { font-weight: 700; font-size: 14px; }

/* ---------- Promo bar ---------- */
.t-promo { background: var(--t-deep); color: #fff; font-size: 14px; padding: 10px 24px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.t-page .t-promo a { color: var(--t-amber); font-weight: 700; }

/* ---------- Brand lockup ---------- */
.t-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.t-brand__word { position: relative; font-family: var(--t-text); font-style: italic; font-weight: 900; font-size: 34px; letter-spacing: -0.03em; line-height: 1; color: var(--t-royal); padding-top: 6px; }
.t-brand__word::before { content: ""; position: absolute; top: 0; left: 3px; width: 18px; height: 5px; background: var(--t-amber); transform: skewX(-18deg); }
.t-brand__div { width: 1px; height: 38px; background: #C4CEE6; }
.t-brand__sub { display: flex; flex-direction: column; color: var(--t-navy); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.t-brand__sub b { font-size: 15px; letter-spacing: .14em; }
.t-brand--light .t-brand__word { color: #fff; }
.t-brand--light .t-brand__sub { color: #fff; }
.t-brand--light .t-brand__div { background: #3A5394; }

/* ---------- Header ---------- */
.t-header { border-bottom: 1px solid var(--t-line); background: #fff; position: sticky; top: 0; z-index: 40; }
.t-header__inner { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.t-nav { display: flex; gap: 28px; font-weight: 700; font-size: 15px; }
.t-page .t-nav a { color: var(--t-ink); }
.t-header__actions { display: flex; gap: 10px; align-items: center; }
.t-header__actions:first-child { margin-left: auto; }
.t-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--t-line); border-radius: 8px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.t-hero { padding-top: 36px; }
.t-hero__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.t-hero__panel { background: var(--t-navy); color: #fff; border-radius: 18px; padding: 52px 120px 52px 52px; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); display: flex; flex-direction: column; gap: 22px; min-height: 420px; }
.t-hero__panel .t-eyebrow { color: #B9C8F5; margin: 0; }
.t-hero__title { margin: 0; font-family: var(--t-head); font-weight: 700; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.02em; max-width: 640px; color: #fff; }
.t-hero__title span { color: var(--t-amber); }
.t-hero__text { margin: 0; font-size: 18px; line-height: 1.55; color: #D6E0FF; max-width: 520px; }
.t-hero__search { display: flex; max-width: 540px; background: #fff; border-radius: 12px; padding: 6px; }
.t-hero__search input { flex: 1; min-width: 0; border: 0; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--t-ink); background: transparent; }
.t-hero__tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.t-hero__tags span { color: #B9C8F5; }
.t-page .t-hero__tags a { color: #fff; border: 1px solid #4A63B5; border-radius: 999px; padding: 6px 14px; }
.t-page .t-hero__tags a:hover { background: rgba(255,255,255,.08); text-decoration: none; }

.t-adviser { background: var(--t-tint); border: 1px solid var(--t-tint-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.t-adviser__photo { height: 200px; flex-shrink: 0; }
.t-adviser__photo img { object-position: center 18%; }
.t-adviser__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.t-adviser__body h2 { margin: 0; font-family: var(--t-head); font-size: 22px; line-height: 1.2; color: var(--t-navy); }
.t-adviser__body p { margin: 0; font-size: 15px; color: #3B4B7A; }
.t-adviser__contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.t-adviser__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--t-navy) !important; }
.t-adviser .t-btn { margin-top: auto; }

/* ---------- Awarding bodies ---------- */
.t-bodies { padding: 40px 0 8px; }
.t-bodies__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.t-bodies__label { margin: 0; font-size: 14px; color: var(--t-body); max-width: 230px; }
.t-bodies__row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.t-bodies__logo { min-width: 150px; height: 56px; padding: 0 18px; border: 1px solid var(--t-line); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--t-navy); font-family: var(--t-head); font-weight: 700; font-size: 20px; }
.t-bodies__logo img { max-height: 36px; width: auto; }

/* ---------- Qualification filter + cards ---------- */
.t-tabs { display: flex; gap: 6px; background: var(--t-tint); padding: 6px; border-radius: 12px; flex-wrap: wrap; }
.t-tab { height: 42px; padding: 0 16px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; background: transparent; color: var(--t-navy); }
.t-tab[aria-pressed="true"] { background: var(--t-navy); color: #fff; }

.t-qual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.t-card { border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: border-color .15s; }
.t-card[hidden] { display: none; }
.t-card:hover { border-color: var(--t-royal); }
.t-card__media { height: 190px; position: relative; }
.t-card__media img { object-position: center 22%; }
.t-card__media--brand { background: var(--t-tint); color: var(--t-navy); font-family: var(--t-head); font-weight: 700; font-size: 26px; height: 110px; }
.t-card__cat { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--t-navy); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.t-card__level { position: absolute; bottom: 12px; right: 12px; background: var(--t-amber); color: var(--t-deep); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.t-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.t-card__awarding { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t-royal); }
.t-card__title { margin: 0; font-family: var(--t-head); font-size: 19px; line-height: 1.3; }
.t-page .t-card__title a { color: var(--t-ink); }
.t-card__desc { margin: 0; font-size: 15px; color: var(--t-body); }
.t-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--t-tint); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-card .t-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.t-note { margin: 22px 0 0; font-size: 14px; color: var(--t-body); text-align: center; }
.t-center { text-align: center; margin-top: 26px; }

/* ---------- At a glance band ---------- */
.t-stats { background: var(--t-navy); color: #fff; margin-top: 40px; }
.t-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 48px; }
.t-stat { display: flex; flex-direction: column; gap: 6px; }
.t-stat__num { font-family: var(--t-head); font-weight: 700; font-size: 44px; line-height: 1; }
.t-stat:first-child .t-stat__num { color: var(--t-amber); }
.t-stat__label { font-weight: 700; font-size: 17px; }
.t-stat__note { font-size: 14px; color: var(--t-soft); }

/* ---------- Testimonials ---------- */
.t-reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.t-review { margin: 0; background: var(--t-tint); border-radius: var(--t-radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.t-review blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--t-ink); }
.t-review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.t-review figcaption small { display: block; font-size: 14px; color: var(--t-body); }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--t-royal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }

/* ---------- Three steps ---------- */
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.t-step { position: relative; border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.t-step__num { width: 52px; height: 52px; border-radius: 50%; background: var(--t-navy); color: #fff; font-family: var(--t-head); font-weight: 700; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.t-step:last-child .t-step__num { background: var(--t-amber); color: var(--t-deep); }
.t-step h3 { margin: 0; font-family: var(--t-head); font-size: 20px; color: var(--t-ink); }
.t-step p { margin: 0; font-size: 15px; color: var(--t-body); }
.t-step:not(:last-child)::after { content: ""; position: absolute; top: 53px; right: -23px; width: 24px; height: 2px; background: var(--t-tint-2); }

/* ---------- Features ---------- */
.t-features { background: var(--t-tint); border-radius: 22px; padding: 48px 40px; }
.t-features .t-lead { margin-bottom: 32px; }
.t-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.t-feature { display: flex; gap: 14px; align-items: flex-start; }
.t-feature__icon { width: 44px; height: 44px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-feature h3 { margin: 0 0 4px; font-size: 17px; }
.t-feature p { margin: 0; font-size: 15px; color: var(--t-body); }

/* ---------- About us ---------- */
.t-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.t-about__photo { position: relative; aspect-ratio: 4 / 4.4; border-radius: 18px; }
.t-about__photo img { object-position: center 15%; }
.t-about__badge { position: absolute; left: 18px; bottom: 18px; right: 18px; background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--t-body); }
.t-about__badge b { display: block; color: var(--t-navy); font-size: 15px; }
.t-about__text p { margin: 0 0 16px; font-size: 16px; color: var(--t-body); }
.t-about__list { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.t-about__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; color: var(--t-ink); }
.t-about__list svg { flex-shrink: 0; margin-top: 2px; }
.t-about__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.t-orgs { margin-top: 48px; background: var(--t-navy); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.t-orgs .t-eyebrow { color: #B9C8F5; }
.t-orgs h2 { margin: 0 0 12px; font-family: var(--t-head); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.t-orgs p { margin: 0; color: #D6E0FF; font-size: 16px; }
.t-orgs ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.t-orgs li { display: flex; gap: 10px; align-items: center; }

/* ---------- FAQ ---------- */
.t-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.t-faq__list { display: flex; flex-direction: column; gap: 12px; }
.t-faq details { border: 1px solid var(--t-line); border-radius: 12px; background: #fff; }
.t-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 800; font-size: 16px; color: var(--t-ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::after { content: "+"; font-size: 22px; color: var(--t-royal); line-height: 1; }
.t-faq details[open] summary::after { content: "–"; }
.t-faq details p { margin: 0; padding: 0 20px 18px; color: var(--t-body); font-size: 15px; }

/* ---------- Blog ---------- */
.t-blog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.t-post--featured { grid-row: span 3; display: flex; flex-direction: column; gap: 14px; }
.t-post--featured .t-ph { flex: 1; min-height: 260px; border-radius: var(--t-radius); }
.t-post--featured h3 { margin: 0; font-family: var(--t-head); font-size: 24px; line-height: 1.25; }
.t-post--featured p { margin: 0; color: var(--t-body); }
.t-post { display: flex; gap: 16px; align-items: center; }
.t-post .t-ph--thumb { width: 120px; height: 90px; border-radius: 10px; flex-shrink: 0; }
.t-post h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.35; }
.t-page .t-post h3 a, .t-page .t-post--featured h3 a { color: var(--t-ink); }
.t-date { font-size: 13px; color: var(--t-body); }

/* ---------- Footer ---------- */
.t-footer { background: var(--t-deep); color: #fff; margin-top: 56px; }
.t-footer__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding: 48px 0 36px; border-bottom: 1px solid #23397A; }
.t-footer__top p { margin: 14px 0 0; color: var(--t-soft); font-size: 15px; max-width: 440px; }
.t-footer__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.t-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 36px 0; }
.t-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--t-soft); }
.t-footer__col h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.t-page .t-footer__col a { color: var(--t-soft); }
.t-page .t-footer__col a:hover { color: #fff; }
.t-footer__bottom { border-top: 1px solid #23397A; padding: 20px 0 28px; font-size: 13px; color: var(--t-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-page .t-footer__bottom a { color: var(--t-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .t-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .t-stats__grid, .t-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-reviews__grid, .t-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-about, .t-orgs, .t-faq { grid-template-columns: minmax(0, 1fr); }
  .t-about__photo { max-width: 520px; }
  .t-steps { grid-template-columns: 1fr; }
  .t-step::after { display: none; }
}
@media (max-width: 860px) {
  .t-menu-toggle { display: inline-flex; }
  .t-header__actions { margin-left: auto; }
  .t-nav { display: none; order: 10; width: 100%; flex-direction: column; gap: 4px; }
  .t-nav.is-open { display: flex; }
  .t-page .t-nav a { padding: 10px 0; border-top: 1px solid var(--t-line); }
  .t-hero__panel { clip-path: none; padding: 36px 28px; min-height: 0; }
  .t-blog { grid-template-columns: 1fr; }
  .t-post--featured { grid-row: auto; }
  .t-header__actions .t-btn--outline { display: none; }
}
@media (max-width: 600px) {
  .t-stats__grid, .t-reviews__grid, .t-features__grid, .t-footer__cols, .t-about__list { grid-template-columns: 1fr; }
  .t-features, .t-orgs { padding: 32px 22px; }
  .t-hero__title { font-size: 32px; }
  .t-hero__search .t-btn { padding: 0 16px; }
  .t-brand__word { font-size: 28px; }
  .t-brand__sub { font-size: 9px; }
  .t-brand__sub b { font-size: 13px; }
  .t-qual-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .t-page * { transition: none !important; }
}
