/*
Theme Name: MFCO Hello
Theme URI: https://www.myfreecoursesonline.com/
Description: A lightweight Gutenberg-first child theme for My Free Courses Online.
Author: My Free Courses Online
Template: hello-elementor
Version: 1.0.0
Text Domain: mfco-hello
*/

:root {
  --mfco-ink: #12253f;
  --mfco-muted: #607087;
  --mfco-blue: #1858d8;
  --mfco-blue-dark: #0d3f9f;
  --mfco-teal: #0c8c82;
  --mfco-lime: #b6e43f;
  --mfco-surface: #f4f7fb;
  --mfco-border: #dfe7f1;
  --mfco-white: #fff;
  --mfco-shadow: 0 18px 50px rgba(18, 37, 63, .10);
  --mfco-radius: 18px;
  --mfco-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mfco-ink);
  background: var(--mfco-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mfco-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--mfco-blue-dark); }
img { max-width: 100%; height: auto; }
.mfco-wrap { width: min(calc(100% - 40px), var(--mfco-width)); margin-inline: auto; }
.mfco-skip { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 16px; background: #fff; }
.mfco-skip:focus { top: 16px; }

.mfco-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(223,231,241,.85); backdrop-filter: blur(14px); }
.mfco-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.mfco-brand { display: inline-flex; align-items: center; text-decoration: none; }
.mfco-brand img { display: block; width: 235px; max-height: 58px; object-fit: contain; object-position: left center; }
.mfco-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.mfco-nav a { color: var(--mfco-ink); text-decoration: none; }
.mfco-nav a:hover { color: var(--mfco-blue); }
.mfco-nav__button { padding: 11px 18px; color: #fff !important; background: var(--mfco-blue); border-radius: 999px; }
.mfco-nav__button:hover { background: var(--mfco-blue-dark); }
.mfco-menu-toggle { display: none; border: 0; background: transparent; color: var(--mfco-ink); font-size: 26px; cursor: pointer; }

.mfco-hero { position: relative; overflow: hidden; padding: 94px 0 88px; color: #fff; background: linear-gradient(120deg, #0b2f66 0%, #1858d8 58%, #0d8c82 120%); }
.mfco-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; border: 90px solid rgba(255,255,255,.08); }
.mfco-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 64px; align-items: center; }
.mfco-kicker { margin: 0 0 16px; color: var(--mfco-lime); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mfco-hero h1 { max-width: 760px; margin: 0 0 22px; color: #fff; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.045em; }
.mfco-hero__copy { max-width: 680px; margin: 0 0 34px; color: rgba(255,255,255,.84); font-size: 20px; }
.mfco-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.mfco-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.mfco-button:hover { transform: translateY(-2px); }
.mfco-button--lime { color: #10223b; background: var(--mfco-lime); }
.mfco-button--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.mfco-search-card { padding: 30px; color: var(--mfco-ink); background: #fff; border-radius: 24px; box-shadow: 0 28px 80px rgba(5,27,68,.28); }
.mfco-search-card h2 { margin: 0 0 8px; font-size: 24px; }
.mfco-search-card p { margin: 0 0 20px; color: var(--mfco-muted); font-size: 15px; }
.mfco-search-form { display: flex; gap: 8px; }
.mfco-search-form label { flex: 1; }
.mfco-search-form input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--mfco-border); border-radius: 10px; font: inherit; }
.mfco-search-form button { min-width: 92px; border: 0; border-radius: 10px; color: #fff; background: var(--mfco-blue); font-weight: 800; cursor: pointer; }
.mfco-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--mfco-border); border-bottom: 1px solid var(--mfco-border); }
.mfco-trust__item { padding: 22px 20px; text-align: center; background: #fff; }
.mfco-trust__item strong { display: block; font-size: 17px; }
.mfco-trust__item span { color: var(--mfco-muted); font-size: 14px; }

.mfco-section { padding: 78px 0; }
.mfco-section--soft { background: var(--mfco-surface); }
.mfco-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.mfco-section__head h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.mfco-section__head p { max-width: 560px; margin: 0; color: var(--mfco-muted); }
.mfco-subjects { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mfco-subject { min-height: 175px; padding: 24px; color: var(--mfco-ink); background: #fff; border: 1px solid var(--mfco-border); border-radius: var(--mfco-radius); text-decoration: none; box-shadow: 0 8px 24px rgba(18,37,63,.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mfco-subject:hover { transform: translateY(-4px); border-color: #a9bfe8; box-shadow: var(--mfco-shadow); }
.mfco-subject__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 28px; border-radius: 13px; color: var(--mfco-blue); background: #eaf0ff; font-size: 23px; }
.mfco-subject strong { display: block; margin-bottom: 5px; font-size: 18px; }
.mfco-subject span { color: var(--mfco-muted); font-size: 14px; }
.mfco-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.mfco-card { overflow: hidden; background: #fff; border: 1px solid var(--mfco-border); border-radius: var(--mfco-radius); box-shadow: 0 8px 24px rgba(18,37,63,.04); }
.mfco-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg,#dfe9ff,#d7f5ef); }
.mfco-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mfco-card:hover .mfco-card__image img { transform: scale(1.035); }
.mfco-card__body { padding: 23px; }
.mfco-card__meta { margin-bottom: 10px; color: var(--mfco-teal); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.mfco-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.mfco-card h3 a { color: var(--mfco-ink); text-decoration: none; }
.mfco-card p { margin: 0; color: var(--mfco-muted); font-size: 15px; }
.mfco-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; counter-reset: steps; }
.mfco-step { counter-increment: steps; }
.mfco-step::before { content: "0" counter(steps); display: block; margin-bottom: 16px; color: var(--mfco-blue); font-size: 15px; font-weight: 900; }
.mfco-step h3 { margin: 0 0 8px; font-size: 22px; }
.mfco-step p { margin: 0; color: var(--mfco-muted); }
.mfco-cta { padding: 46px; color: #fff; background: var(--mfco-ink); border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.mfco-cta h2 { margin: 0 0 8px; color: #fff; font-size: 32px; }
.mfco-cta p { margin: 0; color: rgba(255,255,255,.72); }

.mfco-titlebar { padding: 64px 0 58px; background: linear-gradient(180deg,#f3f7ff,#fff); border-bottom: 1px solid var(--mfco-border); }
.mfco-breadcrumb { margin-bottom: 14px; color: var(--mfco-muted); font-size: 14px; }
.mfco-breadcrumb a { color: var(--mfco-muted); text-decoration: none; }
.mfco-titlebar h1 { max-width: 900px; margin: 0; font-size: clamp(38px,5vw,62px); line-height: 1.08; letter-spacing: -.04em; }
.mfco-titlebar__meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; color: var(--mfco-muted); font-size: 15px; }
.mfco-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(240px,1fr); gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.mfco-content { min-width: 0; }
.mfco-content > *:first-child { margin-top: 0; }
.mfco-content h2, .mfco-content h3, .mfco-content h4 { margin: 1.65em 0 .55em; color: var(--mfco-ink); line-height: 1.25; letter-spacing: -.02em; }
.mfco-content h2 { font-size: 31px; }
.mfco-content h3 { font-size: 24px; }
.mfco-content p, .mfco-content ul, .mfco-content ol { margin: 0 0 1.25em; }
.mfco-content blockquote { margin: 30px 0; padding: 20px 26px; border-left: 4px solid var(--mfco-blue); background: var(--mfco-surface); border-radius: 0 12px 12px 0; }
.mfco-content iframe, .mfco-content video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; margin: 26px 0; border: 0; border-radius: 14px; background: #0d1726; }
.mfco-content img { border-radius: 12px; }
.mfco-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.mfco-content td, .mfco-content th { padding: 10px 12px; border: 1px solid var(--mfco-border); }
.mfco-content .wp-block-button__link { border-radius: 999px; background: var(--mfco-blue); }
.mfco-sidebar { position: sticky; top: 110px; }
.mfco-sidebar__box { padding: 25px; background: var(--mfco-surface); border: 1px solid var(--mfco-border); border-radius: var(--mfco-radius); }
.mfco-sidebar__box + .mfco-sidebar__box { margin-top: 18px; }
.mfco-sidebar h2 { margin: 0 0 14px; font-size: 19px; }
.mfco-sidebar ul { margin: 0; padding: 0; list-style: none; }
.mfco-sidebar li + li { margin-top: 9px; }
.mfco-sidebar a { color: var(--mfco-ink); font-size: 15px; text-decoration: none; }
.mfco-sidebar a:hover { color: var(--mfco-blue); }
.mfco-featured { margin: -20px 0 42px; overflow: hidden; border-radius: var(--mfco-radius); box-shadow: var(--mfco-shadow); }
.mfco-featured img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.mfco-authorbox { display: flex; gap: 16px; margin-top: 50px; padding: 24px; background: var(--mfco-surface); border-radius: var(--mfco-radius); }
.mfco-authorbox img { width: 58px; height: 58px; border-radius: 50%; }
.mfco-authorbox strong { display: block; }
.mfco-authorbox p { margin: 4px 0 0; color: var(--mfco-muted); font-size: 14px; }
.mfco-related { padding: 64px 0 82px; background: var(--mfco-surface); }
.mfco-related h2 { margin: 0 0 26px; font-size: 31px; }
.mfco-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--mfco-border); }
.mfco-pager a { display: block; padding: 18px; color: var(--mfco-ink); border: 1px solid var(--mfco-border); border-radius: 12px; text-decoration: none; }
.mfco-pager a:hover { border-color: var(--mfco-blue); }
.mfco-pager__next { text-align: right; }
.mfco-empty { padding: 90px 0; text-align: center; }

.mfco-footer { padding: 58px 0 28px; color: rgba(255,255,255,.75); background: #0b1d33; }
.mfco-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.mfco-footer h2, .mfco-footer h3 { margin-top: 0; color: #fff; }
.mfco-footer h2 { font-size: 22px; }
.mfco-footer h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.mfco-footer p { max-width: 470px; font-size: 14px; }
.mfco-footer ul { margin: 0; padding: 0; list-style: none; }
.mfco-footer li + li { margin-top: 8px; }
.mfco-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.mfco-footer a:hover { color: #fff; }
.mfco-footer__bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 960px) {
  .mfco-hero__grid, .mfco-layout { grid-template-columns: 1fr; }
  .mfco-subjects { grid-template-columns: repeat(2,1fr); }
  .mfco-cards { grid-template-columns: repeat(2,1fr); }
  .mfco-sidebar { position: static; }
}
@media (max-width: 720px) {
  .mfco-wrap { width: min(calc(100% - 28px), var(--mfco-width)); }
  .mfco-header__inner { min-height: 68px; }
  .mfco-brand img { width: 200px; }
  .mfco-menu-toggle { display: block; }
  .mfco-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 22px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--mfco-border); box-shadow: var(--mfco-shadow); }
  .mfco-nav.is-open { display: flex; }
  .mfco-nav__button { text-align: center; }
  .mfco-hero { padding: 68px 0; }
  .mfco-hero__grid { gap: 38px; }
  .mfco-hero h1 { font-size: 43px; }
  .mfco-hero__copy { font-size: 18px; }
  .mfco-trust { grid-template-columns: 1fr; }
  .mfco-section { padding: 58px 0; }
  .mfco-section__head { display: block; }
  .mfco-section__head p { margin-top: 12px; }
  .mfco-subjects, .mfco-cards, .mfco-steps, .mfco-footer__grid { grid-template-columns: 1fr; }
  .mfco-search-form { display: block; }
  .mfco-search-form button { width: 100%; min-height: 48px; margin-top: 9px; }
  .mfco-cta { display: block; padding: 30px; }
  .mfco-cta .mfco-button { margin-top: 20px; }
  .mfco-titlebar { padding: 48px 0 42px; }
  .mfco-layout { gap: 44px; padding-top: 40px; }
  .mfco-pager { grid-template-columns: 1fr; }
  .mfco-pager__next { text-align: left; }
}

