/*
Theme Name: TradeForge Institute
Theme URI: https://example.com/tradeforge-institute
Author: TradeForge Institute Project
Description: Custom responsive storefront theme for the Trade Forge Institute course marketplace.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: tradeforge-institute
*/
:root {
  --tfi-navy: #0b1d30;
  --tfi-navy-2: #102941;
  --tfi-navy-3: #183a59;
  --tfi-gold: #f6bc52;
  --tfi-gold-2: #ffd27b;
  --tfi-ink: #10233a;
  --tfi-muted: #66758b;
  --tfi-paper: #fff;
  --tfi-page: #f5f7fa;
  --tfi-border: #e1e6ed;
  --tfi-blue: #006fe8;
  --tfi-radius: 13px;
  --tfi-shadow: 0 5px 18px rgba(16, 35, 58, .08);
  --tfi-content: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--tfi-ink); background: var(--tfi-paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
body, button, input, select, textarea { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--tfi-blue); text-underline-offset: .18em; }
a:hover { color: #004fa9; }
button { cursor: pointer; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--tfi-gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tfi-container { width: min(calc(100% - 2.4rem), var(--tfi-content)); margin-inline: auto; }
.tfi-skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; padding: .75rem 1rem; background: #fff; color: var(--tfi-navy); }
.tfi-skip-link:focus { left: 1rem; top: 1rem; }
/* Header */
.tfi-site-header { position: relative; z-index: 100; background: var(--tfi-navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.tfi-header-inner { min-height: 72px; display: flex; align-items: center; gap: 1.25rem; }
.tfi-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.tfi-brand:hover { color: #fff; }
.tfi-brand-symbol { display: grid; place-items: center; width: 47px; height: 45px; color: var(--tfi-gold); font-weight: 950; font-size: 1.38rem; letter-spacing: -.16em; transform: skew(-5deg); position: relative; }
.tfi-brand-symbol::before { content: ""; position: absolute; inset: 3px 1px; border: 4px solid var(--tfi-gold); border-bottom: 0; clip-path: polygon(0 0,100% 0,100% 54%,75% 54%,75% 31%,25% 31%,25% 100%,0 100%); opacity: .95; }
.tfi-brand-symbol span { position: relative; z-index: 1; font-size: 1.15rem; letter-spacing: -.15em; padding-right: .12em; }
.tfi-brand-copy { display: block; line-height: 1; }
.tfi-brand-name { display: block; font-size: 1.12rem; font-weight: 900; letter-spacing: -.035em; white-space: nowrap; }
.tfi-brand-subtitle { display: block; margin-top: .25rem; text-align: center; color: #f3f5f8; font-size: .58rem; font-weight: 700; letter-spacing: .38em; }
.tfi-nav-panel { margin-left: auto; display: flex; align-items: center; gap: 1.05rem; min-width: 0; }
.tfi-primary-nav { min-width: 0; }
.tfi-primary-nav ul { display: flex; align-items: center; gap: clamp(.65rem, 1.55vw, 1.45rem); list-style: none; margin: 0; padding: 0; }
.tfi-primary-nav li { margin: 0; padding: 0; }
.tfi-primary-nav a { position: relative; display: inline-flex; align-items: center; min-height: 72px; color: #f5f7fa; text-decoration: none; font-size: .84rem; font-weight: 650; white-space: nowrap; }
.tfi-primary-nav a:hover, .tfi-primary-nav .current-menu-item > a { color: var(--tfi-gold); }
.tfi-primary-nav .current-menu-item > a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--tfi-gold); }
.tfi-header-search { display: flex; align-items: center; width: 210px; height: 40px; padding: 0 .45rem 0 .75rem; background: #253b50; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; }
.tfi-header-search input { min-width: 0; width: 100%; border: 0; outline: none; color: #fff; background: transparent; font-size: .81rem; }
.tfi-header-search input::placeholder { color: #d3dbe4; opacity: 1; }
.tfi-header-search button { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; background: transparent; color: #fff; }
.tfi-header-search svg, .tfi-cart-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tfi-account-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .55rem; }
.tfi-cart-link { display: grid; place-items: center; width: 36px; height: 40px; color: #fff; text-decoration: none; }
.tfi-cart-link:hover { color: var(--tfi-gold); }
.tfi-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 42px; padding: .72rem 1.05rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .88rem; font-weight: 800; line-height: 1.2; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
.tfi-button:hover { transform: translateY(-1px); }
.tfi-button--gold { background: var(--tfi-gold); color: #0b1d30; box-shadow: 0 5px 12px rgba(246,188,82,.13); }
.tfi-button--gold:hover { background: var(--tfi-gold-2); color: #0b1d30; }
.tfi-button--login { border-color: rgba(255,255,255,.28); background: transparent; color: #fff; }
.tfi-button--login:hover { color: #fff; background: rgba(255,255,255,.09); }
.tfi-button--signup { min-width: 82px; }
.tfi-button--secondary { border-color: var(--tfi-navy); background: var(--tfi-navy); color: #fff; }
.tfi-button--secondary:hover { background: var(--tfi-navy-2); color: #fff; }
.tfi-button--outline { border-color: rgba(255,255,255,.75); background: rgba(7,22,37,.15); color: #fff; }
.tfi-button--outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.tfi-menu-toggle { display: none; margin-left: auto; width: 46px; height: 42px; padding: .55rem; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: transparent; color: #fff; }
.tfi-menu-toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 3px; }
/* Hero */
.tfi-hero { overflow: hidden; color: #fff; background: linear-gradient(112deg, #06182b 0%, #0b1d30 55%, #112941 100%); }
.tfi-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .93fr); gap: clamp(1.5rem, 3vw, 3.25rem); align-items: stretch; min-height: 405px; }
.tfi-hero-copy { position: relative; z-index: 2; align-self: center; padding: 2.1rem 0 1.65rem; }
.tfi-eyebrow { display: inline-block; color: var(--tfi-gold); font-size: .72rem; font-weight: 850; letter-spacing: .21em; line-height: 1.5; text-transform: uppercase; }
.tfi-eyebrow--gold { color: #c78a20; }
.tfi-hero h1 { max-width: 670px; margin: .85rem 0 .95rem; color: #fff; font-size: clamp(2.5rem, 4.4vw, 3.85rem); font-weight: 850; line-height: 1.03; letter-spacing: -.055em; }
.tfi-hero h1 span { color: var(--tfi-gold); }
.tfi-hero-copy > p { max-width: 570px; margin: 0; color: #e1e8f1; font-size: clamp(.98rem, 1.1vw, 1.13rem); line-height: 1.48; }
.tfi-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.55rem; }
.tfi-hero-actions .tfi-button { min-height: 45px; padding-inline: 1.25rem; }
.tfi-hero-quick-points { display: flex; flex-wrap: wrap; gap: 1.2rem 1.5rem; margin-top: 1.5rem; }
.tfi-hero-quick-points > div { display: flex; align-items: center; gap: .6rem; min-width: 130px; }
.tfi-hero-point-icon { flex: 0 0 auto; display: grid; place-items: center; color: var(--tfi-gold); }
.tfi-hero-point-icon svg { display: block; width: 30px; height: 30px; fill: currentColor; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.tfi-hero-quick-points strong, .tfi-hero-quick-points small { display: block; }
.tfi-hero-quick-points strong { color: #fff; font-size: .82rem; line-height: 1.2; }
.tfi-hero-quick-points small { margin-top: .18rem; color: #c3cfdf; font-size: .72rem; }
.tfi-hero-photo { position: relative; display: block; align-self: stretch; min-height: 405px; margin-right: calc((var(--tfi-content) - 100vw) / 2); overflow: hidden; background-color: #192a39; background-image: url("assets/images/hero-workshop.jpg"); background-repeat: no-repeat; background-position: center; background-size: cover; text-decoration: none; }
.tfi-hero-photo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(90deg, rgba(11,29,48,.86), rgba(11,29,48,0)); pointer-events: none; }
.tfi-hero-photo:hover { filter: saturate(1.03); }
.tfi-hero-photo:focus-visible { outline-offset: -5px; }
/* Benefit strip */
.tfi-benefits-strip { background: #fff; border-bottom: 1px solid #edf0f4; }
.tfi-benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding-block: 1.45rem; }
.tfi-benefit { display: flex; align-items: center; gap: .85rem; min-width: 0; padding-inline: 1.15rem; border-right: 1px solid #dce2ea; }
.tfi-benefit:first-child { padding-left: 0; }
.tfi-benefit:last-child { padding-right: 0; border-right: 0; }
.tfi-benefit-icon { flex: 0 0 64px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f3f5f7; color: #0c1420; }
.tfi-benefit-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tfi-benefit strong, .tfi-benefit small { display: block; }
.tfi-benefit strong { font-size: .91rem; font-weight: 850; line-height: 1.28; }
.tfi-benefit small { margin-top: .28rem; color: var(--tfi-muted); font-size: .79rem; line-height: 1.35; }
/* Sections */
.tfi-section { padding: 2.4rem 0 2.55rem; }
.tfi-courses-section { background: #f8fafc; }
.tfi-category-section { background: #fff; padding-top: 2.2rem; }
.tfi-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.tfi-section-heading h2, .tfi-why-copy h2, .tfi-centered-heading h2, .tfi-instructor-cta h2 { margin: 0; color: var(--tfi-ink); font-size: clamp(1.65rem, 2.6vw, 2.25rem); font-weight: 850; line-height: 1.13; letter-spacing: -.045em; }
.tfi-section-heading p { margin: .34rem 0 0; color: var(--tfi-muted); font-size: .98rem; }
.tfi-text-link { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .25rem; flex: 0 0 auto; color: var(--tfi-blue); text-decoration: none; font-size: .88rem; font-weight: 800; }
.tfi-text-link:hover { color: #004fa9; }
.tfi-text-link span { font-size: 1.15rem; }
/* Course cards and media carousel */
.tfi-course-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .95rem; align-items: stretch; }
.tfi-course-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; box-shadow: 0 2px 5px rgba(12,30,49,.055); transition: box-shadow .2s ease, transform .2s ease; }
.tfi-course-card:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(12,30,49,.12); }
.tfi-course-media { position: relative; aspect-ratio: 2.7 / 1; touch-action: pan-y; user-select: none; overflow: hidden; background: linear-gradient(135deg,#dedfe2,#b7c0c9); isolation: isolate; }
.tfi-media-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.tfi-media-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .25s ease; text-decoration: none; }
.tfi-media-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; visibility: visible; }
.tfi-media-slide > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tfi-media-placeholder { display: grid; place-items: center; background: linear-gradient(135deg,#183a59,#0b1d30); color: #fff; font-weight: 800; }
.tfi-media-placeholder:hover { color: #fff; }
.tfi-carousel-arrow { position: absolute; top: 50%; z-index: 15; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #12243a; font-size: 1.35rem; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; transition: opacity .15s ease; }
.tfi-course-media:hover .tfi-carousel-arrow, .tfi-course-media:focus-within .tfi-carousel-arrow { opacity: 1; }
.tfi-carousel-prev { left: 8px; }
.tfi-carousel-next { right: 8px; }
.tfi-carousel-dots { position: absolute; z-index: 15; left: 50%; bottom: 7px; display: flex; align-items: center; justify-content: center; gap: 5px; max-width: calc(100% - 80px); transform: translateX(-50%); }
.tfi-carousel-dot { display: block; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.64); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tfi-carousel-dot.is-active { width: 17px; border-radius: 5px; background: var(--tfi-gold); }
.tfi-course-duration { position: absolute; right: 8px; bottom: 8px; z-index: 4; display: inline-flex; align-items: center; gap: .27rem; padding: .2rem .38rem; border-radius: 5px; background: rgba(6,20,34,.87); color: #fff; font-size: .68rem; font-weight: 750; line-height: 1.2; }
.tfi-course-duration svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tfi-course-card-body { padding: .78rem .85rem .82rem; }
.tfi-course-category-label { display: block; min-height: 1.1em; color: #9a6814; font-size: .65rem; font-weight: 850; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }
.tfi-course-card h3 { margin: .22rem 0 .45rem; font-size: .98rem; font-weight: 850; line-height: 1.32; letter-spacing: -.015em; }
.tfi-course-card h3 a { color: var(--tfi-ink); text-decoration: none; }
.tfi-course-card h3 a:hover { color: var(--tfi-blue); }
.tfi-course-description { display: -webkit-box; min-height: 2.6em; margin: 0; overflow: hidden; color: var(--tfi-muted); font-size: .77rem; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tfi-course-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .68rem; padding-top: .55rem; border-top: 1px solid #edf0f4; }
.tfi-course-instructor { overflow: hidden; color: #617086; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.tfi-course-price { flex: 0 0 auto; color: var(--tfi-ink); font-size: .95rem; font-weight: 900; }
.tfi-demo-badge { position: absolute; top: 8px; left: 8px; z-index: 4; padding: .25rem .42rem; border-radius: 5px; background: rgba(246,188,82,.96); color: #14263a; font-size: .62rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.tfi-course-card--demo .tfi-course-duration { display: none; }
.tfi-preview-note { margin: .9rem 0 0; color: #65748a; font-size: .78rem; }
.tfi-preview-note span { color: #b57a18; }
.tfi-video-poster-slide { background: #142b42; }
.tfi-video-slide-badge { position: absolute; top: 50%; left: 50%; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.45); border-radius: 99px; background: rgba(7,24,41,.86); color: #fff; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.tfi-video-preview-trigger { position: absolute; top: 8px; right: 8px; z-index: 13; display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .55rem; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; background: rgba(7,24,41,.89); color: #fff; font-size: .69rem; font-weight: 850; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.tfi-video-preview-trigger:hover, .tfi-video-preview-trigger.is-playing { background: var(--tfi-gold); color: var(--tfi-navy); }
.tfi-video-preview-trigger > span:first-child { font-size: .68rem; }
.tfi-video-layer { position: absolute; z-index: 8; inset: 0; background: #000; }
.tfi-video-layer[hidden] { display: none !important; }
.tfi-video-layer iframe, .tfi-video-layer video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.tfi-video-stop { position: absolute; top: 6px; right: 6px; z-index: 15; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(5,18,30,.85); color: #fff; font-size: 1.3rem; line-height: 1; }
.tfi-video-stop:hover { background: #fff; color: var(--tfi-navy); }
/* Category cards */
.tfi-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .8rem; }
.tfi-category-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--tfi-border); border-radius: 10px; background: #fff; color: var(--tfi-ink); text-decoration: none; box-shadow: 0 2px 5px rgba(12,30,49,.055); transition: transform .2s ease, box-shadow .2s ease; }
.tfi-category-card:hover { color: var(--tfi-ink); transform: translateY(-2px); box-shadow: var(--tfi-shadow); }
.tfi-category-photo { display: block; min-height: 100px; aspect-ratio: 1.9 / 1; background-color: #c6cbd1; background-position: center; background-repeat: no-repeat; background-size: cover; }
.tfi-category-card::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 100px; background: linear-gradient(180deg,rgba(7,20,33,.04),rgba(7,20,33,.36)); pointer-events: none; }
.tfi-category-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 31px; height: 31px; margin: -16px 0 0 .75rem; border: 2px solid #fff; border-radius: 50%; background: var(--tfi-navy); color: var(--tfi-gold); font-size: 1rem; font-weight: 900; }
.tfi-category-name { display: block; padding: .25rem .75rem .05rem; color: var(--tfi-ink); font-size: .86rem; font-weight: 850; }
.tfi-category-link { display: flex; align-items: center; gap: .35rem; margin-top: auto; padding: .3rem .75rem .75rem; color: var(--tfi-blue); font-size: .74rem; font-weight: 800; }
/* Why choose */
.tfi-why-section { background: #f5f7fa; }
.tfi-why-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 2.5rem; align-items: stretch; padding-block: 2.4rem; }
.tfi-why-photo { position: relative; min-height: 300px; overflow: hidden; border-radius: 11px; background: linear-gradient(180deg,rgba(9,26,43,.03),rgba(9,26,43,.65)), url("assets/images/hero-workshop.jpg") center / cover; }
.tfi-why-photo span { position: absolute; left: 1.3rem; bottom: 1.2rem; max-width: 220px; color: white; font-size: 1.4rem; font-weight: 850; line-height: 1.05; }
.tfi-why-copy { align-self: center; padding-block: .5rem; }
.tfi-why-copy h2 { margin-top: .35rem; }
.tfi-reasons-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem 1.6rem; margin-top: 1.4rem; }
.tfi-reasons-grid > div { display: flex; gap: .7rem; align-items: flex-start; }
.tfi-reasons-grid > div > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff0d1; color: #a46b10; font-weight: 900; }
.tfi-reasons-grid strong { display: block; font-size: .89rem; line-height: 1.25; }
.tfi-reasons-grid p { margin: .25rem 0 0; color: var(--tfi-muted); font-size: .78rem; line-height: 1.4; }
/* How it works */
.tfi-how-section { position: relative; overflow: hidden; padding: 2.7rem 0 3rem; background: linear-gradient(115deg,#08192a,#0b1d30 55%,#102941); color: #fff; }
.tfi-how-section::before { content: ""; position: absolute; inset: 0; background: url("assets/images/category-tools.jpg") center/cover; opacity: .08; pointer-events: none; }
.tfi-how-section .tfi-container { position: relative; z-index: 1; }
.tfi-centered-heading { text-align: center; margin-bottom: 1.7rem; }
.tfi-centered-heading h2 { margin-top: .25rem; color: #fff; }
.tfi-steps-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1rem; }
.tfi-step { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.tfi-step-number { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border: 2px solid var(--tfi-gold); border-radius: 50%; color: var(--tfi-gold); font-size: 1.1rem; font-weight: 850; }
.tfi-step-icon { display: grid; flex: 0 0 40px; place-items: center; color: #f3f6fa; }
.tfi-step-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tfi-step strong { display: block; color: #fff; font-size: .94rem; font-weight: 850; }
.tfi-step p { margin: .25rem 0 0; color: #c1cddd; font-size: .78rem; line-height: 1.4; }
.tfi-step-arrow { color: #95a8bd; font-size: 1.6rem; }
/* Instructor callout */
.tfi-instructor-cta { padding: 1.8rem 0; background: #fff; }
.tfi-instructor-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.tfi-instructor-cta h2 { margin-top: .2rem; }
.tfi-instructor-cta p { margin: .4rem 0 0; color: var(--tfi-muted); }
.tfi-instructor-cta .tfi-button { flex: 0 0 auto; }
/* Content pages */
.tfi-page-wrap { min-height: 45vh; padding: 3rem 0 5rem; background: #f7f9fb; }
.tfi-content-card { max-width: 900px; padding: clamp(1.4rem,4vw,3rem); border: 1px solid var(--tfi-border); border-radius: 12px; background: #fff; box-shadow: var(--tfi-shadow); }
.tfi-content-card > :first-child { margin-top: 0; }
.tfi-page-title { margin: 0; font-size: clamp(1.9rem,3.7vw,2.7rem); font-weight: 850; line-height: 1.12; letter-spacing: -.045em; }
.tfi-course-detail-header { padding: 3rem 0 4rem; background: #f7f9fb; }
.tfi-course-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 2.1rem; }
.tfi-course-detail-grid > div { padding: clamp(1.4rem,3vw,2.4rem); border: 1px solid var(--tfi-border); border-radius: 12px; background: #fff; }
.tfi-course-summary-box { position: sticky; top: 1.5rem; padding: 1.35rem; border: 1px solid var(--tfi-border); border-radius: 12px; background: white; box-shadow: var(--tfi-shadow); }
.tfi-course-summary-box h2 { margin-top: 0; font-size: 1.2rem; }
.tfi-course-summary-box p { color: var(--tfi-muted); font-size: .9rem; }
.tfi-card-meta { padding-top: .8rem; border-top: 1px solid var(--tfi-border); color: var(--tfi-muted); font-size: .84rem; }
.tfi-entry-content > :first-child { margin-top: 0; }
.tfi-empty-state { padding: 2rem; border: 1px dashed #c9d3df; border-radius: 12px; background: #fff; color: var(--tfi-muted); }
.tfi-pagination { margin-top: 2rem; }
.tfi-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.tfi-pagination .page-numbers { display: inline-block; padding: .48rem .75rem; border: 1px solid var(--tfi-border); border-radius: 7px; background: #fff; text-decoration: none; }
.tfi-pagination .current { border-color: var(--tfi-navy); background: var(--tfi-navy); color: #fff; }
/* Footer */
.tfi-site-footer { padding: 2.65rem 0 1rem; background: var(--tfi-navy); color: #dae3ed; }
.tfi-footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 2rem; }
.tfi-brand--footer { margin-bottom: .8rem; }
.tfi-footer-copy { max-width: 310px; margin: .4rem 0 1rem; color: #aab8c8; font-size: .82rem; }
.tfi-footer-title { margin: .2rem 0 .85rem; color: #fff; font-size: .9rem; font-weight: 850; }
.tfi-footer-links { list-style: none; margin: 0; padding: 0; }
.tfi-footer-links li { margin: .42rem 0; }
.tfi-site-footer a { color: #cbd6e2; text-decoration: none; font-size: .79rem; }
.tfi-site-footer a:hover { color: var(--tfi-gold); }
.tfi-social-links { display: flex; gap: .55rem; align-items: center; }
.tfi-social-links span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; color: #fff; font-size: .65rem; font-weight: 850; }
.tfi-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: #a9b8c8; font-size: .71rem; }
/* Responsive */
@media (max-width: 1180px) {
  .tfi-header-inner { gap: .8rem; }
  .tfi-brand-name { font-size: 1rem; }
  .tfi-nav-panel { gap: .7rem; }
  .tfi-primary-nav ul { gap: .8rem; }
  .tfi-primary-nav a { font-size: .78rem; }
  .tfi-header-search { width: 178px; }
  .tfi-course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tfi-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tfi-benefit { padding-inline: .7rem; }
  .tfi-benefit-icon { flex-basis: 52px; width: 52px; height: 52px; }
}
@media (max-width: 930px) {
  .tfi-header-inner { min-height: 68px; }
  .tfi-menu-toggle { display: block; }
  .tfi-nav-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; align-items: stretch; flex-direction: column; gap: .85rem; padding: 1rem 1.2rem 1.2rem; background: var(--tfi-navy); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 24px rgba(0,0,0,.16); }
  .tfi-nav-panel.is-open { display: flex; }
  .tfi-primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .tfi-primary-nav a { display: flex; min-height: 44px; font-size: .95rem; }
  .tfi-primary-nav .current-menu-item > a::after { left: auto; top: 9px; bottom: 9px; width: 3px; height: auto; }
  .tfi-header-search { width: 100%; }
  .tfi-account-actions { justify-content: flex-start; }
  .tfi-hero-grid { grid-template-columns: minmax(0,1fr) minmax(260px,.85fr); gap: 1rem; min-height: 360px; }
  .tfi-hero-photo { min-height: 360px; margin-right: calc((var(--tfi-content) - 100vw) / 2); }
  .tfi-hero h1 { font-size: clamp(2.35rem,5vw,3.3rem); }
  .tfi-hero-quick-points { gap: .8rem; }
  .tfi-hero-quick-points > div { min-width: 110px; }
  .tfi-benefits-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 0; }
  .tfi-benefit:nth-child(2) { border-right: 0; }
  .tfi-benefit:nth-child(3) { padding-left: 0; }
  .tfi-why-grid { grid-template-columns: .75fr 1fr; gap: 1.5rem; }
  .tfi-steps-grid { grid-template-columns: 1fr; gap: .8rem; max-width: 600px; margin-inline: auto; }
  .tfi-step-arrow { display: none; }
  .tfi-step { padding: .55rem 0; }
}
@media (max-width: 640px) {
  .tfi-container { width: min(calc(100% - 1.25rem), var(--tfi-content)); }
  .tfi-header-inner { min-height: 66px; }
  .tfi-brand-symbol { width: 39px; height: 40px; font-size: 1.15rem; }
  .tfi-brand-symbol::before { border-width: 3px; }
  .tfi-brand-name { font-size: .93rem; }
  .tfi-brand-subtitle { font-size: .49rem; }
  .tfi-menu-toggle { width: 42px; }
  .tfi-hero-grid { display: flex; flex-direction: column; gap: 0; }
  .tfi-hero-copy { padding: 2.25rem 0 1.25rem; }
  .tfi-eyebrow { font-size: .62rem; letter-spacing: .16em; }
  .tfi-hero h1 { margin: .72rem 0 .8rem; font-size: clamp(2.3rem, 9.5vw, 3rem); line-height: 1.03; }
  .tfi-hero-copy > p { font-size: .98rem; }
  .tfi-hero-actions { gap: .6rem; margin-top: 1.2rem; }
  .tfi-hero-actions .tfi-button { flex: 1 1 auto; min-height: 44px; padding: .75rem .85rem; font-size: .82rem; }
  .tfi-hero-quick-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-top: 1.25rem; }
  .tfi-hero-quick-points > div { display: block; min-width: 0; }
  .tfi-hero-point-icon { margin-bottom: .28rem; }
  .tfi-hero-point-icon svg { width: 25px; height: 25px; }
  .tfi-hero-quick-points strong { font-size: .7rem; }
  .tfi-hero-quick-points small { font-size: .65rem; }
  .tfi-hero-photo { min-height: 245px; width: 100%; margin: 0 0 1rem; border-radius: 8px; background-position: center; }
  .tfi-benefits-grid { grid-template-columns: 1fr 1fr; gap: .8rem .2rem; padding-block: 1rem; }
  .tfi-benefit { gap: .55rem; padding: .35rem .4rem; border-right: 0; }
  .tfi-benefit:nth-child(odd) { padding-left: 0; }
  .tfi-benefit-icon { flex: 0 0 40px; width: 40px; height: 40px; }
  .tfi-benefit-icon svg { width: 23px; height: 23px; }
  .tfi-benefit strong { font-size: .74rem; }
  .tfi-benefit small { font-size: .68rem; line-height: 1.3; }
  .tfi-section { padding: 2rem 0 2.15rem; }
  .tfi-section-heading { align-items: flex-start; gap: .5rem; margin-bottom: .95rem; }
  .tfi-section-heading h2, .tfi-why-copy h2, .tfi-centered-heading h2, .tfi-instructor-cta h2 { font-size: 1.6rem; }
  .tfi-section-heading p { font-size: .82rem; }
  .tfi-section-heading .tfi-text-link { padding-top: .25rem; font-size: .72rem; }
  .tfi-course-grid { grid-template-columns: 1fr; gap: .9rem; }
  .tfi-course-media { aspect-ratio: 2.35 / 1; }
  .tfi-carousel-arrow { width: 32px; height: 32px; opacity: 1; }
  .tfi-carousel-dots { bottom: 8px; }
  .tfi-course-card-body { padding: .85rem .9rem; }
  .tfi-course-card h3 { font-size: 1rem; }
  .tfi-course-description { font-size: .8rem; }
  .tfi-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .tfi-category-photo { min-height: 90px; aspect-ratio: 1.8 / 1; }
  .tfi-category-card::before { height: 90px; }
  .tfi-category-name { font-size: .82rem; }
  .tfi-category-link { font-size: .72rem; }
  .tfi-why-grid { display: flex; flex-direction: column; gap: 1.3rem; padding-block: 1.5rem; }
  .tfi-why-photo { min-height: 225px; }
  .tfi-reasons-grid { gap: .95rem .75rem; }
  .tfi-reasons-grid strong { font-size: .78rem; }
  .tfi-reasons-grid p { font-size: .71rem; }
  .tfi-how-section { padding: 2.2rem 0 2.35rem; }
  .tfi-centered-heading { margin-bottom: 1.1rem; }
  .tfi-step { gap: .7rem; }
  .tfi-step-number { flex-basis: 38px; width: 38px; height: 38px; font-size: 1rem; }
  .tfi-step-icon { flex-basis: 34px; }
  .tfi-step-icon svg { width: 29px; height: 29px; }
  .tfi-step strong { font-size: .88rem; }
  .tfi-step p { font-size: .74rem; }
  .tfi-instructor-cta-inner { align-items: flex-start; flex-direction: column; gap: .95rem; }
  .tfi-instructor-cta p { font-size: .85rem; }
  .tfi-instructor-cta .tfi-button { width: 100%; }
  .tfi-page-wrap { padding: 1.6rem 0 3rem; }
  .tfi-course-detail-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tfi-course-summary-box { position: static; }
  .tfi-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.6rem 1rem; }
  .tfi-footer-brand-col { grid-column: 1 / -1; }
  .tfi-footer-bottom { flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
