/*
Theme Name: Hamza Learning
Theme URI: https://hamzalearning.com
Author: Hamza
Description: Educational HSE website theme for Hamza Learning — videos, articles, courses, CV services. English + Urdu.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamza-learning
*/

:root {
	--accent: #F5B800;
	--navy: #0F1B2D;
	--navy-2: #1B2A42;
	--navy-3: #2C3D5A;
	--ink: #0F1B2D;
	--ink-2: #283548;
	--muted: #475467;
	--muted-2: #3B4A63;
	--line: #E4E7EC;
	--soft: #F4F6F9;
	--soft-2: #E9EDF3;
	--cream: #FFF4CC;
	--cream-2: #FFF8E1;
	--brown: #6B4600;
	--tag: #8A5A00;
	--on-dark: #C9D1DC;
	--radius: 14px;
	--sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--serif: 'Source Serif 4', Georgia, serif;
	--urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: 12px 16px; z-index: 1000; top: 8px; left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.ur { font-family: var(--urdu); direction: rtl; line-height: 2.1; text-align: left; }
.mission .ur, .courses-hero .ur, .page-plain .ur { text-align: center; }
.urdu-summary { text-align: right; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2, .h2 { font-size: clamp(28px, 3.2vw, 36px); }
.section-head .ur { font-size: 18px; color: var(--muted); margin-top: 6px; }
.link-underline { font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.meta { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Buttons & tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 10px; border: 0; cursor: pointer; min-height: 46px; line-height: 1.2; text-align: center; }
.btn-lg { font-size: 16px; padding: 16px 24px; }
.btn-accent { background: var(--accent); color: var(--navy); font-weight: 800; }
.btn-accent:hover { color: var(--navy); filter: brightness(0.95); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-2); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-light { border: 1.5px solid #5A6B85; color: #fff; background: transparent; }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.badge-accent { background: var(--accent); color: var(--navy); }
.badge-cream { background: var(--cream); color: var(--brown); }
.badge-soft { background: var(--soft-2); color: var(--navy); }
.badge-dark { background: var(--navy); color: #fff; }
.badge-free { background: #DCF5E7; color: #14532D; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tag); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 50; }
.site-header .container, .site-header .container-wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.custom-logo { max-height: 44px; width: auto; }
.main-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { display: block; padding: 10px 14px; font-weight: 500; font-size: 15px; color: var(--muted-2); border-radius: 8px; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-page-ancestor > a, .main-nav .current_page_parent > a { font-weight: 800; color: var(--ink); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: inherit; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding-bottom: 8px; }
	.main-nav a { padding: 12px; }
}

/* Dark hero */
.hero-dark { background: var(--navy); color: #fff; }
.hero-dark .container { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.hero-copy .ur { font-size: clamp(20px, 2.2vw, 26px); color: #E4E7EC; }
.hero-copy .lead { font-size: 18px; color: var(--on-dark); max-width: 560px; }
.hero-media { flex: 1 1 420px; min-width: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.feature-video { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 18px; overflow: hidden; display: block; color: #fff; }
.feature-video:hover { color: #fff; }
.feature-video .body { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.feature-video .title { font-size: 20px; font-weight: 700; line-height: 1.3; }

/* Thumbs */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--soft-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.thumb .play { position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.thumb .pill { position: absolute; z-index: 2; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.thumb .pill-br { bottom: 10px; right: 10px; background: var(--navy); color: #fff; }
.thumb .pill-tl { top: 10px; left: 10px; background: #fff; color: var(--navy); }
.thumb-placeholder { color: var(--muted); font-size: 13px; font-weight: 600; }

/* Ad areas */
.ad-area { margin: 24px 0; text-align: center; }
.ad-area:empty { display: none; }

/* Card grids */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.topic-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic-card .name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.topic-card .ur { font-size: 15px; color: var(--muted); }
.video-card { display: flex; flex-direction: column; gap: 10px; }
.video-card .title { font-size: 17px; font-weight: 700; line-height: 1.35; }

/* Article rows */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 40px; }
.with-sidebar > .main-col { flex: 999 1 560px; min-width: 0; }
.with-sidebar > .side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.article-row { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.article-row .img { width: 200px; height: 124px; flex-shrink: 0; border-radius: 10px; background: var(--soft-2); overflow: hidden; }
.article-row .img img { width: 100%; height: 100%; object-fit: cover; }
.article-row .txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.article-row .title { font-size: 21px; font-weight: 700; line-height: 1.3; }
.article-row .desc { font-size: 15px; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { font-size: 15px; padding: 12px 14px; border: 1px solid #D0D5DD; border-radius: 8px; min-height: 46px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }
.notice-ok { background: #DCF5E7; color: #14532D; }
.notice-err { background: #FDE2E1; color: #8A1C1C; }
.newsletter { background: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.newsletter .title { font-size: 20px; font-weight: 800; }
.newsletter input { border-color: #C2A44A; }

/* Products */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.product-card .cover { height: 140px; border-radius: 10px; background: var(--soft-2); overflow: hidden; }
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card .title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.product-card .desc { font-size: 15px; color: var(--muted); flex-grow: 1; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 20px; font-weight: 800; }

/* Follow band */
.follow-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.follow-band .big { font-size: 30px; font-weight: 800; }
.social-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.social-pill { display: flex; flex-direction: column; gap: 2px; background: var(--navy-2); border: 1px solid var(--navy-3); color: #fff; padding: 14px 20px; border-radius: 12px; min-width: 160px; }
.social-pill:hover { color: #fff; border-color: var(--accent); }
.social-pill small { font-size: 13px; color: var(--on-dark); font-weight: 600; }
.social-pill strong { font-weight: 700; }
.social-pills.light .social-pill { background: #fff; border-color: #F1E3B0; color: var(--ink); }
.social-pills.light .social-pill small { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 48px 24px; }
.site-footer .about-col { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.site-footer .about-col p { color: var(--muted); max-width: 320px; font-size: 15px; }
.site-footer h3 { font-size: 15px; margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer ul a { color: var(--muted); }
.site-footer .copy { padding: 0 24px 32px; font-size: 13px; color: var(--muted); }

/* ---------- Single article ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; }
.breadcrumb a { color: var(--muted); }
.single-layout { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 80px; }
.single-layout > article { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.single-layout > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.single-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; }
.single-ur-title { font-size: 22px; color: var(--muted-2); }
.byline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft-2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink); overflow: hidden; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--navy); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.key-points { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.key-points h2 { font-size: 18px; margin-bottom: 12px; letter-spacing: 0; }
.key-points ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted-2); }
.entry-content { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; color: var(--ink); }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; color: var(--ink); }
.entry-content a { color: #1D4ED8; text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 0; border-left: 4px solid var(--accent); background: var(--cream-2); padding: 16px 20px; border-radius: 8px; }
.urdu-summary { border-right: 4px solid var(--accent); background: #FFFBEB; padding: 20px 24px; border-radius: 8px; font-size: 19px; color: var(--ink-2); }
.download-cta { background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.download-cta .t { font-size: 21px; font-weight: 800; }
.download-cta p { color: var(--on-dark); font-size: 15px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.share-row a, .share-row button { border: 1px solid #D0D5DD; background: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.toc .eyebrow { color: var(--muted); }
.toc a { font-size: 15px; color: var(--muted-2); }
.related-item { display: flex; gap: 12px; align-items: flex-start; }
.related-item .rthumb { width: 110px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 8px; background: var(--soft-2); overflow: hidden; }
.related-item .rthumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item .t { font-size: 15px; font-weight: 700; line-height: 1.35; display: block; }
.promo-box { background: var(--cream); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.promo-box .t { font-size: 18px; font-weight: 800; }

/* ---------- Journal (articles list) ---------- */
body.hl-journal { background: #FBFAF7; }
.hl-journal .site-header { background: #fff; }
.serif { font-family: var(--serif); letter-spacing: -0.01em; }
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 56px 0 24px; border-bottom: 2px solid var(--navy); }
.masthead h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 64px); line-height: 1; font-weight: 700; }
.masthead .ur { font-size: 20px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #E7E3D8; }
.tabs a { padding: 16px 14px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { font-weight: 800; color: var(--ink); border-bottom-color: var(--ink); }
.featured-split { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px 0; }
.featured-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.featured-main .img { aspect-ratio: 16/9; border-radius: 6px; background: #ECE8DD; overflow: hidden; }
.featured-main .img img { width: 100%; height: 100%; object-fit: cover; }
.featured-main .t { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; font-weight: 700; }
.featured-side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; }
.featured-side a { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid #E7E3D8; }
.featured-side .t { font-family: var(--serif); font-size: 23px; line-height: 1.25; font-weight: 700; }
.strip { background: var(--accent); border-radius: 10px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.strip .t { font-size: 20px; font-weight: 800; }
.journal-row { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 0; border-top: 1px solid #E7E3D8; }
.journal-row .txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.journal-row .t { font-family: var(--serif); font-size: 26px; line-height: 1.25; font-weight: 700; }
.journal-row .img { flex: 0 0 220px; height: 140px; border-radius: 6px; background: #ECE8DD; overflow: hidden; }
.journal-row .img img { width: 100%; height: 100%; object-fit: cover; }
.most-read a { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid #E7E3D8; }
.most-read .n { font-family: var(--serif); font-size: 34px; font-weight: 700; color: #C9B98A; line-height: 1; min-width: 28px; }
.most-read .t { font-size: 16px; font-weight: 700; line-height: 1.4; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D6D0C0; border-radius: 8px; font-weight: 700; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Videos (dark) ---------- */
body.hl-dark { background: #0B1422; color: #fff; }
.hl-dark a { color: #fff; }
.hl-dark a:hover { color: #E4E7EC; }
.hl-dark a.btn-accent, .hl-dark a.btn-accent:hover { color: var(--navy); }
.hl-dark .site-header { background: #0B1422; border-color: #1F2E47; }
.hl-dark .main-nav a { color: #B8C2D1; }
.hl-dark .main-nav a:hover { background: #17233A; color: #fff; }
.hl-dark .main-nav .current-menu-item > a, .hl-dark .main-nav .current_page_item > a { color: #fff; }
.hl-dark .nav-toggle { border-color: #1F2E47; }
.hl-dark .site-footer { background: #0B1422; border-color: #1F2E47; color: #fff; }
.hl-dark .site-footer ul a, .hl-dark .site-footer .about-col p, .hl-dark .site-footer .copy { color: #8C9AB0; }
.videos-layout { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 32px; padding-bottom: 80px; }
.playlists { flex: 1 1 240px; max-width: 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 700px) { .playlists { max-width: none; } }
.playlists .eyebrow { color: #8C9AB0; padding: 0 12px 8px; }
.playlists a { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; min-height: 44px; color: #B8C2D1; font-weight: 600; font-size: 15px; }
.playlists a.active { background: #1F2E47; color: #fff; font-weight: 800; }
.playlists a span:last-child { font-size: 13px; color: #8C9AB0; }
.sub-box { margin-top: 20px; border: 1px solid #1F2E47; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sub-box p { font-size: 14px; color: #B8C2D1; }
.videos-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.now-playing { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.now-playing .thumb { flex: 1 1 420px; background: #17233A; border-radius: 16px; }
.now-playing .copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.now-playing h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.hl-dark .thumb { background: #17233A; border: 1px solid #1F2E47; }
.hl-dark .thumb .pill-br { background: #000; }
.hl-dark .meta, .hl-dark .muted { color: #8C9AB0; }
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.short-card { display: flex; flex-direction: column; gap: 8px; }
.short-card .vthumb { aspect-ratio: 9/16; border-radius: 14px; background: #17233A; border: 1px solid #1F2E47; overflow: hidden; position: relative; }
.short-card .vthumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.short-card .t { font-size: 14px; font-weight: 700; line-height: 1.35; }
.btn-outline-dark { border: 1.5px solid #3A4C6B; color: #fff; background: transparent; }

/* ---------- Courses ---------- */
.courses-hero { background: var(--cream-2); border-bottom: 1px solid #F1E3B0; }
.courses-hero .inner { max-width: 900px; margin: 0 auto; padding: 72px 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.courses-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
.courses-hero .ur { font-size: 22px; color: var(--muted-2); }
.search-row { display: flex; width: 100%; max-width: 620px; gap: 8px; flex-wrap: wrap; }
.search-row input { flex: 1 1 280px; font-size: 16px; padding: 14px 18px; border: 1px solid #D9C27A; border-radius: 12px; min-height: 52px; background: #fff; }
.search-row .btn { min-height: 52px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 999px; min-height: 44px; border: 1px solid #D9C27A; background: #fff; color: var(--ink); display: inline-flex; align-items: center; cursor: pointer; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.path { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.path > div { padding: 28px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.path > div:nth-child(2) { background: #FAFBFC; }
.path > div:nth-child(3) { background: var(--soft); border-right: 0; }
.path .t { font-size: 22px; font-weight: 800; }
.featured-course { display: flex; flex-wrap: wrap; border-radius: 20px; overflow: hidden; background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.featured-course .left { flex: 1 1 460px; min-width: 0; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.featured-course .left .t { font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1.15; }
.featured-course .left p { color: var(--on-dark); }
.featured-course .stats { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--on-dark); }
.featured-course .stats strong { color: #fff; font-size: 18px; }
.featured-course .right { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--ink); padding: 36px; }
.module { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.module .n { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--cream); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.module .t { flex: 1; font-weight: 600; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.course-card { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.course-card .cover { flex: 0 0 180px; min-height: 170px; background: var(--soft-2); position: relative; }
.course-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-card .body { flex: 1 1 260px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.course-card .t { font-size: 19px; font-weight: 800; line-height: 1.3; }

/* ---------- Services ---------- */
.package { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #fff; }
.package.popular { border: 2px solid var(--navy); }
.package .name { font-size: 22px; font-weight: 800; }
.package .amount { font-size: 32px; font-weight: 800; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.check-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.check-list svg { flex-shrink: 0; margin-top: 1px; }
.service-box { background: var(--soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.service-box .t { font-size: 18px; font-weight: 700; }
.service-box p { font-size: 15px; color: var(--muted); flex-grow: 1; }
.step-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-box .n { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-box .t { font-size: 18px; font-weight: 700; }
.step-box p { font-size: 15px; color: var(--muted); }
.order-wrap { display: flex; flex-wrap: wrap; gap: 40px; background: var(--cream); border-radius: 20px; padding: 40px; }
.order-wrap .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.order-wrap form, .form-card { flex: 1 1 420px; min-width: 0; background: #fff; border-radius: 14px; padding: 28px; }
@media (max-width: 600px) { .order-wrap { padding: 20px; } .order-wrap form, .form-card { padding: 20px; } .follow-band { padding: 28px; } .featured-course .left, .featured-course .right { padding: 28px; } }
.faq { max-width: 900px; margin: 0 auto; padding: 0 24px 80px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- About ---------- */
.about-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.about-photo { flex: 1 1 340px; min-width: 0; position: relative; max-width: 480px; }
.about-photo .frame { aspect-ratio: 4/5; border-radius: 24px; background: var(--soft-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .loc { position: absolute; bottom: -20px; right: -8px; background: var(--accent); border-radius: 14px; padding: 14px 20px; display: flex; flex-direction: column; }
.about-photo .loc small { font-size: 13px; font-weight: 700; }
.about-photo .loc strong { font-size: 20px; font-weight: 800; }
.about-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; }
.about-copy .ur { font-size: 22px; color: var(--muted-2); }
.about-copy .entry-content { font-size: 18px; }
.mission { background: var(--navy); color: #fff; }
.mission .inner { max-width: 1000px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.mission .big { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; font-weight: 800; }
.mission .ur { font-size: 20px; color: var(--on-dark); }
.timeline { border-left: 3px solid var(--line); margin-left: 10px; }
.timeline .item { display: flex; gap: 22px; padding-bottom: 32px; margin-left: -11px; }
.timeline .dot { width: 19px; height: 19px; flex-shrink: 0; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy); margin-top: 4px; }
.timeline .year { font-size: 14px; font-weight: 800; color: var(--brown); }
.timeline .t { font-size: 20px; font-weight: 800; }
.timeline p { color: var(--muted); }
.cert { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.community { background: var(--cream-2); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }

/* ---------- Contact ---------- */
body.hl-contact { background: var(--soft); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.contact-card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.contact-card.dark:hover { color: #fff; }
.contact-card.dark p { color: var(--on-dark); }
.contact-card .t { font-size: 22px; font-weight: 800; }
.contact-card p { font-size: 15px; color: var(--muted); }
.contact-card .v { font-weight: 700; word-break: break-word; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { cursor: pointer; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips span { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; min-height: 44px; border: 1px solid #D0D5DD; background: #fff; }
.radio-chips input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.follow-list a { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line); }
.follow-list a:last-child { border-bottom: 0; }
.follow-list a span:last-child { color: var(--muted); }

/* WP core */
.alignwide { max-width: 1240px; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
.wp-block-embed iframe { width: 100%; }
.page-plain { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.page-plain h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 24px; }

/* ---------- Dropdown menu ---------- */
.main-nav li { position: relative; display: flex; align-items: center; }
.main-nav .sub-menu, .main-nav .children { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,27,45,.12); display: none; flex-direction: column; gap: 0; z-index: 60; }
.main-nav .sub-menu a, .main-nav .children a { padding: 10px 12px; font-size: 15px; color: var(--ink); font-weight: 500; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.sub-open > .sub-menu { display: flex; }
.sub-toggle { background: transparent; border: 0; color: inherit; width: 28px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: -10px; border-radius: 6px; }
.hl-dark .main-nav .sub-menu { background: #121E33; border-color: #1F2E47; }
.hl-dark .main-nav .sub-menu a { color: #E4E7EC; }
@media (max-width: 900px) {
	.main-nav li { flex-wrap: wrap; }
	.main-nav li > a { flex: 1; }
	.sub-toggle { width: 46px; height: 46px; margin: 0; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: none; }
	.main-nav li.sub-open > .sub-menu { display: flex; }
	.main-nav .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 0 0 0 12px; margin-bottom: 6px; }
}

/* ---------- Quiz ---------- */
.quiz-hero { background: var(--cream-2); border-bottom: 1px solid #F1E3B0; }
.quiz-hero .container { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.quiz-hero h1 { font-size: clamp(32px, 4.5vw, 50px); line-height: 1.1; }
.quiz-stats { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; color: var(--muted); }
.quiz-stats strong { color: var(--ink); font-size: 18px; }
.quiz { display: flex; flex-direction: column; gap: 20px; }
.quiz-q { border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0; }
.quiz-q legend { font-size: 18px; font-weight: 700; display: flex; gap: 12px; align-items: flex-start; float: left; width: 100%; margin-bottom: 14px; }
.quiz-q legend + * { clear: both; }
.quiz-q .qn { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #D0D5DD; border-radius: 10px; cursor: pointer; min-height: 48px; background: #fff; }
.quiz-opt:hover { border-color: var(--navy); }
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt .letter { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--soft-2); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.quiz-opt:has(input:checked) { border-color: var(--navy); background: var(--soft); }
.quiz-opt:has(input:checked) .letter { background: var(--navy); color: #fff; }
.quiz-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz .quiz-opt.is-right { border-color: #1F7A4D; background: #E7F7EE; }
.quiz .quiz-opt.is-right .letter { background: #1F7A4D; color: #fff; }
.quiz .quiz-opt.is-wrong { border-color: #B42318; background: #FDECEA; }
.quiz .quiz-opt.is-wrong .letter { background: #B42318; color: #fff; }
.quiz-opt:has(input:disabled) { cursor: default; }
.quiz-q.q-right { border-color: #9AD8B4; }
.quiz-q.q-wrong { border-color: #F3B4AE; }
.quiz-explain { margin-top: 12px; padding: 12px 14px; background: var(--cream-2); border-radius: 8px; font-size: 15px; color: var(--ink-2); }
.quiz-result { border-radius: 16px; padding: 28px; background: #FDECEA; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.quiz-result.passed { background: #E7F7EE; }
.quiz-result .score { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.quiz-result .verdict { font-size: 20px; font-weight: 800; }
.quiz-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; transition: border-color .15s, transform .15s; }
.quiz-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.quiz-card .t { font-size: 19px; font-weight: 800; line-height: 1.3; }
.quiz-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.quiz-card .go { font-weight: 800; }

/* ---------- Resources ---------- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.type-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.type-card:hover, .type-card.active { border-color: var(--navy); }
.type-card.active { background: var(--soft); }
.type-card .t { font-weight: 800; }

/* ---------- Calculators ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; padding-top: 40px; padding-bottom: 24px; }
.calc-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #fff; scroll-margin-top: 20px; }
.calc-card h2 { font-size: 21px; letter-spacing: -0.01em; }
.calc-card .btn { align-self: flex-start; }
.formula { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 14px; background: var(--soft); border-radius: 8px; padding: 10px 12px; color: var(--ink-2); }
.calc-out { border-radius: 12px; background: #E7F7EE; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.calc-out.warn { background: #FDECEA; }
.calc-out .v { font-size: 30px; font-weight: 800; }
.calc-out .n { font-size: 14px; color: var(--muted-2); }

/* ---------- Home: test / tools band ---------- */
.band-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.band-card { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.band-card.dark { background: var(--navy); color: #fff; }
.band-card.dark p { color: var(--on-dark); }
.band-card.light { background: var(--cream); }
.band-card .t { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.band-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 8px; }
.band-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 700; color: inherit; }
.band-card.light .band-list a { border-bottom-color: #EAD9A0; }
.band-card .btn { align-self: flex-start; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--muted); }
