/*
Theme Name: Hello Digital
Theme URI: https://hellodigital.club/
Author: Hello Digital
Author URI: https://hellodigital.club/
Description: Multi-course platform theme for Hello Digital. v2.0 introduces a "Course" custom post type built on Gutenberg block patterns + 3 custom blocks (Curriculum, Countdown, Apply Form). Each course is a separate page with its own landing; the homepage lists all courses. RTL, Egyptian Arabic.
Version: 2.2.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hellodigital
Tags: rtl, education, custom-colors, block-patterns, block-styles, translation-ready, custom-post-type
*/

/* Hello Digital — Direction 2: Soft Charcoal */

:root {
  --bg: #0F0E0C;
  --bg2: #17150F;
  --cream: #F5F1EA;
  --cream2: #EBE5DA;
  --cream3: #DDD5C5;
  --fg: #1A1814;
  --fgInv: #F5F1EA;
  --muted: #6B6359;
  --muted2: rgba(245, 241, 234, 0.62);
  --line: rgba(245, 241, 234, 0.12);
  --lineLight: rgba(26, 24, 20, 0.10);
  --accent: #E30613;
  --accent2: #FF7A85;
  --accentSoft: rgba(227, 6, 19, 0.08);
  --container: 1200px;
  --container-narrow: 1100px;
  --container-form: 720px;
  --shadow-accent: 0 12px 28px rgba(227, 6, 19, 0.28);
  --shadow-cream: 0 18px 50px rgba(26, 24, 20, 0.12);
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fgInv); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { direction: rtl; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); }
.container-form { max-width: var(--container-form); }
.section { padding: 96px 0; background: var(--bg); color: var(--fgInv); position: relative; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); color: var(--fg); }
.section-head { margin-bottom: 56px; max-width: 820px; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 14px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.kicker.accent { color: var(--accent); font-weight: 700; }
.section-title { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.section-title-sm { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.section-lead { font-size: 18px; line-height: 1.7; margin-top: 18px; max-width: 700px; }
.section-cream .section-lead { color: var(--muted); }
.section:not(.section-cream) .section-lead { color: var(--muted2); }
.muted { color: var(--muted); }
.section:not(.section-cream) .muted { color: var(--muted2); }
.muted2 { color: var(--muted2); font-weight: 500; font-size: 0.7em; }
.accent { color: var(--accent); }
em { font-style: italic; color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s, color 0.18s, border-color 0.18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(227, 6, 19, 0.22); }
.btn-accent:hover { box-shadow: var(--shadow-accent); transform: translateY(-1px); }
.section-cream .btn-ghost { color: var(--fg); border: 1px solid var(--lineLight); background: transparent; font-weight: 600; }
.section-cream .btn-ghost:hover { border-color: var(--fg); }
.btn-ghost { color: var(--fgInv); border: 1px solid var(--line); background: transparent; font-weight: 600; }
.btn-ghost:hover { border-color: rgba(245, 241, 234, 0.35); background: rgba(245, 241, 234, 0.04); }
.btn-text { font-weight: 600; padding: 12px 20px; background: transparent; }
.section:not(.section-cream) .btn-text { color: var(--fgInv); }
.btn-text:disabled { opacity: 0.4; cursor: default; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; margin-top: 24px; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.06em; margin-bottom: 28px; }
.pill-game { background: var(--accentSoft); border: 1px solid rgba(227, 6, 19, 0.35); color: var(--accent); }
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: hd-pulse 1.6s infinite; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot-green { background: #33D17A; }
.dot-white { background: #fff; animation: hd-pulse 1.4s infinite; }

.hd-ph { width: 100%; height: 100%; background-image: repeating-linear-gradient(135deg, rgba(26, 24, 20, 0.06) 0 8px, transparent 8px 16px); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(26, 24, 20, 0.45); text-align: center; }
.section:not(.section-cream) .hd-ph { background-image: repeating-linear-gradient(135deg, rgba(245, 241, 234, 0.06) 0 8px, transparent 8px 16px); color: rgba(245, 241, 234, 0.4); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 234, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--lineLight); color: var(--fg); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { flex: 1; display: flex; gap: 24px; justify-content: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-progress { height: 2px; background: var(--lineLight); }
.nav-progress-bar { width: 0%; height: 100%; background: var(--accent); transition: width 0.1s; }

.hero { background: var(--cream); color: var(--fg); padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero-grain { position: absolute; top: -20%; right: -10%; width: 720px; height: 720px; background: radial-gradient(circle, rgba(227, 6, 19, 0.10), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.hero-title { font-size: 76px; line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 28px; }
.hero-title em { font-style: italic; color: var(--accent); font-weight: 700; }
.hero-sub { font-size: 19px; line-height: 1.75; color: var(--muted); margin-bottom: 36px; max-width: 580px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats { margin-top: 48px; display: flex; gap: 44px; padding-top: 32px; border-top: 1px solid var(--lineLight); }
.stat-num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.hero-visual { position: relative; height: 560px; }
.hero-frame { position: absolute; inset: 0; background: var(--cream2); border: 1px solid var(--lineLight); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-cream); }
.hero-frame .hd-ph { font-size: 11px; }
.ph-text { padding: 16px; }
.ph-title { font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.ph-meta { font-size: 11px; opacity: 0.65; }
.float-card { position: absolute; border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-cream); }
.float-card-meta { bottom: 32px; left: -28px; background: var(--bg); color: var(--fgInv); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.meta-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.float-card-label { font-size: 11.5px; color: var(--muted2); font-weight: 500; }
.float-card-value { font-size: 17px; font-weight: 700; margin-top: 2px; }
.float-card-pill { top: 32px; right: -22px; background: var(--accent); color: #fff; padding: 12px 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; box-shadow: 0 12px 24px rgba(227, 6, 19, 0.32); }
.float-card-online { bottom: 150px; right: -38px; background: var(--cream); border: 1px solid var(--lineLight); color: var(--fg); padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg2); }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: hd-marquee 50s linear infinite; width: max-content; }
.marquee-item { font-size: 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 28px; color: var(--fgInv); }
.marquee-item.alt { color: var(--accent); }
.marquee-item .bullet { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--lineLight); border: 1px solid var(--lineLight); border-radius: 18px; overflow: hidden; margin-top: 8px; }
.why-card { background: var(--cream); padding: 36px 32px; min-height: 220px; transition: background 0.18s; }
.why-card:hover { background: var(--cream2); }
.why-num { font-size: 13px; color: var(--accent); font-family: var(--font-mono); font-weight: 600; margin-bottom: 22px; letter-spacing: 0.04em; }
.why-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; color: var(--fg); }
.why-card p { font-size: 15px; line-height: 1.7; color: var(--muted); }

.curriculum-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; }
.curriculum-tabs { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-right: 16px; }
.tab { text-align: right; padding: 14px 16px; border-radius: 10px; background: transparent; color: var(--fgInv); transition: all 0.15s; width: 100%; }
.tab:hover { background: rgba(245, 241, 234, 0.05); }
.tab.active { background: var(--accent); color: #fff; }
.tab-week { font-size: 11px; opacity: 0.65; font-family: var(--font-mono); margin-bottom: 4px; }
.tab-title { font-size: 15px; font-weight: 600; }
.curriculum-panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 48px; min-height: 540px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; gap: 16px; }
.panel-week { font-size: 13px; color: var(--accent); font-family: var(--font-mono); margin-bottom: 10px; letter-spacing: 0.04em; }
.panel-title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; max-width: 600px; line-height: 1.12; }
.panel-cta { color: var(--accent); font-size: 14px; font-weight: 600; border: 1px solid var(--accent); padding: 10px 16px; border-radius: 999px; white-space: nowrap; background: transparent; transition: background 0.15s, color 0.15s; }
.panel-cta:hover { background: var(--accent); color: #fff; }
.panel-long { font-size: 18px; line-height: 1.75; color: var(--muted2); margin-bottom: 32px; max-width: 720px; }
.panel-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 36px; }
.panel-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.panel-item-arrow { color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.panel-meta { display: flex; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-meta > div { flex: 1; }
.panel-meta-label { font-size: 12px; color: var(--muted2); margin-bottom: 4px; }
.panel-meta-value { font-size: 20px; font-weight: 700; }

.tools-kicker { text-align: center; margin-bottom: 28px; }
.tools-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--lineLight); border: 1px solid var(--lineLight); border-radius: 14px; overflow: hidden; }
.tool { background: var(--cream); padding: 28px 16px 22px; text-align: center; color: var(--fg); transition: background 0.18s, color 0.18s, transform 0.18s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 132px; }
.tool-logo { height: 38px; width: auto; max-width: 70%; object-fit: contain; filter: grayscale(0%); transition: filter 0.18s, opacity 0.18s; opacity: 0.92; }
.tool-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.tool:hover { background: var(--cream2); }
.tool:hover .tool-logo { opacity: 1; }

.instructor-card { background: var(--cream); color: var(--fg); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; box-shadow: var(--shadow-cream); border: 1px solid var(--lineLight); }
.instructor-photo { aspect-ratio: 3/4; background: var(--cream2); border-radius: 18px; overflow: hidden; position: relative; }
.instructor-name { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 6px; }
.instructor-tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 24px; letter-spacing: 0.04em; }
.instructor-body p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.instructor-body strong { color: var(--fg); font-weight: 700; }
.industries { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.industries span { padding: 6px 12px; border: 1px solid var(--lineLight); border-radius: 999px; font-size: 13px; color: var(--fg); background: var(--cream2); font-family: var(--font-mono); font-weight: 500; }

/* Testimonials — uniform-height cards, 3-up grid / scroll-snap slider */
.testimonials-wrap { position: relative; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.testimonials-slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; align-items: stretch; }
.testimonials-slider::-webkit-scrollbar { height: 6px; }
.testimonials-slider::-webkit-scrollbar-track { background: transparent; }
.testimonials-slider::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.testimonials-slider .testimonial { flex: 0 0 max(280px, calc((100% - 40px) / 3)); scroll-snap-align: start; min-width: 0; }
.slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.slider-arrow { width: 44px; height: 44px; border-radius: 999px; background: var(--bg); color: var(--cream); border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.18s ease, transform 0.12s ease, opacity 0.15s; }
.slider-arrow:hover { background: var(--accent); transform: translateY(-1px); }
.slider-arrow:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.slider-arrow svg { display: block; }

/* Base card — fixed height on desktop so mixing types stays tidy */
.testimonial { background: var(--cream); border: 1px solid var(--lineLight); border-radius: 18px; transition: transform 0.18s ease, box-shadow 0.18s ease; display: flex; flex-direction: column; height: 480px; overflow: hidden; padding: 0; }
.testimonial:hover { transform: translateY(-2px); box-shadow: var(--shadow-cream); }

/* Text + Social: padded card */
.testimonial-text, .testimonial-social { padding: 32px; }
.t-quote { font-size: 44px; color: var(--accent); line-height: 0.6; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 700; flex-shrink: 0; }
.testimonial p { font-size: 16px; line-height: 1.7; color: var(--fg); margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; text-overflow: ellipsis; }
.testimonial-social p { -webkit-line-clamp: 9; }
.t-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--lineLight); justify-content: space-between; flex-shrink: 0; }
.t-meta > div:first-child { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.t-name { font-size: 15px; font-weight: 600; color: var(--fg); }
.t-role { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Video testimonial — video fills available height, meta at bottom */
.testimonial-video { padding: 0; }
.testimonial-video .t-video { position: relative; flex: 1; background: var(--bg2); overflow: hidden; min-height: 0; }
.testimonial-video .t-video video, .testimonial-video .t-video iframe, .testimonial-video .t-video-embed iframe { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; }
.testimonial-video .t-video-embed { width: 100%; height: 100%; }
.testimonial-video .t-video-link { position: relative; display: block; width: 100%; height: 100%; color: var(--cream); }
.testimonial-video .t-video-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-video .t-video-link .hd-ph { width: 100%; height: 100%; }
.testimonial-video .t-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 999px; background: rgba(227, 6, 19, 0.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); pointer-events: none; transition: transform 0.18s, background 0.18s; }
.testimonial-video .t-video-link:hover .t-video-play { transform: translate(-50%, -50%) scale(1.06); background: var(--accent); }
.testimonial-video .t-meta-video { padding: 16px 20px; background: var(--cream); border-top: 1px solid var(--lineLight); flex-shrink: 0; }
.testimonial-video .t-meta-video .t-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.testimonial-video .t-meta-video .t-role { color: var(--muted); font-size: 12.5px; }

/* Social card */
.testimonial-social .t-social-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--lineLight); flex-shrink: 0; }
.testimonial-social .t-platform-icon { width: 22px; height: 22px; object-fit: contain; }
.testimonial-social .t-platform-label { font-size: 13px; font-weight: 600; font-family: var(--font-mono); color: var(--muted); letter-spacing: 0.02em; }
.testimonial-social .t-view-post { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.testimonial-social .t-view-post:hover { text-decoration: underline; }

.countdown { background: var(--bg2); border: 1px solid var(--accent); border-radius: 16px; padding: 22px 28px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.countdown-headline { font-size: 17px; font-weight: 600; margin-top: 4px; color: var(--fgInv); }
.countdown-grid { display: flex; gap: 10px; }
.cd-cell { background: var(--bg); padding: 12px 16px; border-radius: 10px; min-width: 68px; text-align: center; }
.cd-num { color: var(--accent); font-size: 26px; font-weight: 700; font-family: var(--font-mono); font-variant-numeric: tabular-nums; line-height: 1; }
.cd-label { color: var(--muted2); font-size: 11px; margin-top: 6px; font-family: var(--font-mono); }
.pricing-card { background: var(--cream); color: var(--fg); border-radius: 24px; padding: 56px; position: relative; overflow: hidden; box-shadow: var(--shadow-cream); }
.pricing-badge { position: absolute; top: 32px; left: 32px; background: var(--accent); color: #fff; padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.06em; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pricing-tag { color: var(--muted); font-size: 14px; margin-bottom: 12px; margin-top: 20px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.price { font-size: 84px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.price-cur { font-size: 24px; font-weight: 600; color: var(--muted); }
.price-note { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.guarantee { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.includes-title { font-size: 14px; font-weight: 700; margin-bottom: 18px; color: var(--fg); }
.includes > div { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--fg); line-height: 1.5; }
.check { width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; margin-top: 2px; }

.faq { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--lineLight); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 19px; font-weight: 600; color: var(--fg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { color: var(--accent); font-size: 28px; font-weight: 300; line-height: 1; transition: transform 0.2s; display: inline-block; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 16px; line-height: 1.8; padding-bottom: 24px; padding-left: 20px; }

.progress { display: flex; gap: 8px; margin-bottom: 40px; margin-top: 40px; }
.progress-step { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background 0.3s; }
.progress-step.active { background: var(--accent); }
.form-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 40px; min-height: 420px; }
.step-meta { font-size: 13px; color: var(--muted2); margin-bottom: 6px; font-family: var(--font-mono); }
.step-title { font-size: 28px; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.01em; }
.step { display: none; }
.step.active { display: block; }
.fields { display: flex; flex-direction: column; gap: 22px; }
.field label { display: block; font-size: 14px; margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--fgInv); font-size: 15px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 241, 234, 0.3); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.20); }
.field textarea { resize: vertical; min-height: 100px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: transparent; color: var(--fgInv); transition: all 0.12s; }
.chip:hover { border-color: rgba(245, 241, 234, 0.32); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-confirm { padding: 40px 0; }
.confirm { text-align: center; }
.confirm-check { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; margin-bottom: 24px; }
.confirm-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.confirm p { color: var(--muted2); font-size: 15px; }
.step-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.footer { background: var(--bg); padding: 72px 0 36px; border-top: 1px solid var(--line); color: var(--fgInv); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-grid .nav-brand img { height: 36px; }
.footer-grid .nav-brand span { font-size: 20px; }
.footer-blurb { color: var(--muted2); font-size: 14px; line-height: 1.7; max-width: 360px; margin-top: 16px; }
.footer-h { font-size: 13px; font-weight: 700; margin-bottom: 14px; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--fgInv); }
.footer-grid a { display: block; color: var(--muted2); font-size: 14px; padding: 6px 0; transition: color 0.12s; }
.footer-grid a:hover { color: var(--fgInv); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted2); font-size: 13px; }

.floating-cta { position: fixed; bottom: 28px; left: 28px; z-index: 30; background: var(--accent); color: #fff; padding: 16px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: 0 14px 32px rgba(227, 6, 19, 0.42); display: flex; align-items: center; gap: 10px; transform: translateY(160%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.15s; }
.floating-cta.visible { transform: translateY(0); }
.floating-cta:hover { box-shadow: 0 18px 40px rgba(227, 6, 19, 0.55); transform: translateY(-2px); }

.modal { position: fixed; inset: 0; background: rgba(15, 14, 12, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 40px; animation: hd-fade 0.18s ease; }
.modal[hidden] { display: none; }
.modal-card { background: var(--cream); color: var(--fg); border-radius: 20px; padding: 48px; max-width: 720px; width: 100%; max-height: 85vh; overflow: auto; animation: hd-pop 0.2s cubic-bezier(0.2, 0.8, 0.3, 1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 16px; }
.modal-head h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--fg); }
.modal-close { font-size: 24px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--lineLight); flex-shrink: 0; transition: background 0.12s; color: var(--fg); }
.modal-close:hover { background: var(--cream2); }
#modalLong { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.modal-list-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--fg); }
.modal-list-row { padding: 12px 0; border-bottom: 1px solid var(--lineLight); font-size: 15px; display: flex; align-items: center; gap: 12px; color: var(--fg); }
.modal-list-num { width: 24px; height: 24px; border-radius: 999px; background: var(--accentSoft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; font-family: var(--font-mono); }

@keyframes hd-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes hd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hd-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* WordPress admin bar offset for sticky nav */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ───────── Inner pages (page.php, single.php, 404.php, index.php fallback) ───────── */
.inner-page {
  background: var(--cream);
  color: var(--fg);
  min-height: calc(100vh - 200px);
  padding: 88px 0;
}
.inner-content {
  max-width: 860px;
  margin: 0 auto;
}
.post-card {
  background: var(--cream);
  border: 1px solid var(--lineLight);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: var(--shadow-cream);
  margin-bottom: 32px;
}
.post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--lineLight); }
.post-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 12px;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.post-meta-sep { opacity: 0.5; }
.post-thumb {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: auto; display: block; }
.post-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--fg);
}
.post-body p { margin-bottom: 18px; }
.post-body h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  line-height: 1.2;
}
.post-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 12px;
  line-height: 1.25;
}
.post-body h4 {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { font-weight: 700; color: var(--fg); }
.post-body em { color: var(--fg); font-style: italic; }
.post-body ul, .post-body ol {
  margin: 0 24px 18px 0;
  padding: 0 24px 0 0;
}
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-right: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 20px 4px 0;
  color: var(--muted);
  font-style: italic;
}
.post-body code {
  background: var(--cream2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.post-body pre {
  background: var(--bg);
  color: var(--fgInv);
  padding: 18px 22px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
}
.post-body pre code { background: transparent; padding: 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.post-body hr { border: 0; border-top: 1px solid var(--lineLight); margin: 32px 0; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.post-body th, .post-body td {
  padding: 10px 14px;
  border: 1px solid var(--lineLight);
  text-align: right;
}
.post-body th { background: var(--cream2); font-weight: 600; }

.post-tax {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--lineLight);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.post-tax a { color: var(--accent); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.post-nav a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border: 1px solid var(--lineLight);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.post-nav a:hover { background: var(--cream2); border-color: var(--accent); }

.post-sep {
  border: 0;
  border-top: 1px solid var(--lineLight);
  margin: 32px 0;
}

/* WP-native pagination */
.inner-page .pagination,
.inner-page .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.inner-page .page-numbers {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lineLight);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.inner-page .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.inner-page .page-numbers:hover:not(.current) { background: var(--cream2); }

/* 404 / empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--cream);
  border: 1px solid var(--lineLight);
  border-radius: 20px;
  box-shadow: var(--shadow-cream);
}
.empty-state .kicker { justify-content: center; display: inline-block; }
.empty-state h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 16px;
  color: var(--fg);
}
.empty-state p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.empty-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .inner-page { padding: 56px 0; }
  .post-card { padding: 32px 24px; }
  .post-title { font-size: 32px; }
  .post-body { font-size: 16px; line-height: 1.8; }
  .post-body h2 { font-size: 26px; }
  .post-body h3 { font-size: 20px; }
  .empty-state h1 { font-size: 36px; }
  .empty-state { padding: 40px 16px; }
}

@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 44px; }
  .hero-title { font-size: 56px; }
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 460px; max-width: 520px; }
  .float-card-meta { left: 0; }
  .float-card-online { right: 0; }
  .float-card-pill { right: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .curriculum-grid { grid-template-columns: 1fr; }
  .curriculum-tabs { flex-direction: row; border-right: none; padding-right: 0; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
  .tab { white-space: nowrap; min-width: 240px; }
  .curriculum-panel { padding: 36px; }
  .panel-title { font-size: 30px; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .instructor-card { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .instructor-photo { max-width: 320px; }
  .instructor-name { font-size: 40px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-slider .testimonial { flex: 0 0 max(280px, calc((100% - 20px) / 2)); }
  .testimonial { height: 460px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-card { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .hero { padding: 48px 0 64px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .section-title { font-size: 30px; }
  .section-title-sm { font-size: 26px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .stat-num { font-size: 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 28px; min-height: 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-slider .testimonial { flex: 0 0 calc(100% - 20px); }
  .testimonial { height: auto; min-height: 380px; }
  .testimonial-text, .testimonial-social { padding: 24px; }
  .panel-items { grid-template-columns: 1fr; }
  .curriculum-panel { padding: 28px; min-height: 0; }
  .panel-title { font-size: 24px; }
  .panel-head { flex-direction: column; gap: 8px; }
  .panel-cta { align-self: flex-start; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-name { font-size: 32px; }
  .price { font-size: 60px; }
  .pricing-card { padding: 32px 22px; }
  .pricing-badge { position: static; display: inline-block; margin-bottom: 16px; }
  .countdown { flex-direction: column; align-items: stretch; padding: 20px; }
  .countdown-grid { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .floating-cta { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .form-card { padding: 28px 22px; }
  .modal { padding: 16px; }
  .modal-card { padding: 28px; }
  .modal-head h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pill-dot, .dot-white { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.0.0 — Homepage (courses listing) + Course archive + Block styles
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────── Homepage hero ───────── */
.hero-home { padding: 120px 0 96px; text-align: center; }
.hero-home-inner { max-width: 880px; margin: 0 auto; }
.hero-home .pill { margin-left: auto; margin-right: auto; }
.hero-home-title { font-size: 80px; max-width: 880px; margin-left: auto; margin-right: auto; }
.hero-home-sub { font-size: 20px; margin-left: auto; margin-right: auto; max-width: 640px; }
.hero-home .hero-cta { justify-content: center; }

/* ───────── Courses grid ───────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--cream);
  border: 1px solid var(--lineLight);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--fg);
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-cream);
  border-color: rgba(227, 6, 19, 0.3);
}
.course-cover {
  aspect-ratio: 16 / 10;
  background: var(--cream2);
  overflow: hidden;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-cover .hd-ph { width: 100%; height: 100%; }
.course-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.course-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
}
.course-card-excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1;
}
.course-card-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.courses-empty {
  background: var(--cream);
  border: 1px dashed var(--lineLight);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.courses-empty a { color: var(--accent); text-decoration: underline; }

/* ───────── Gutenberg native-block overrides ───────── */
/* Strip default WP group/heading/paragraph spacing so our class-based layout wins */
.entry-content > .wp-block-group,
.section .wp-block-group { margin: 0; }

.wp-block-heading.hero-title { margin: 0 0 28px; }
.wp-block-heading.section-title { margin: 0; }

.wp-block-paragraph.hero-sub,
.wp-block-paragraph.section-lead,
.wp-block-paragraph.kicker { margin: 0; }
.wp-block-paragraph.section-lead { margin-top: 18px; }

/* Button block styles registered in inc/block-styles.php */
.wp-block-button.is-style-hd-accent .wp-block-button__link,
.wp-block-button.is-style-hd-accent .wp-element-button {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 18px 30px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  box-shadow: 0 8px 18px rgba(227, 6, 19, 0.22);
  transition: transform 0.12s, box-shadow 0.18s !important;
}
.wp-block-button.is-style-hd-accent .wp-block-button__link:hover {
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.wp-block-button.is-style-hd-ghost .wp-block-button__link,
.wp-block-button.is-style-hd-ghost .wp-element-button {
  background: transparent !important;
  color: var(--fg) !important;
  border: 1px solid var(--lineLight) !important;
  border-radius: 999px !important;
  padding: 18px 30px !important;
  font-weight: 600 !important;
}
.section:not(.section-cream) .wp-block-button.is-style-hd-ghost .wp-block-button__link {
  color: var(--fgInv) !important;
  border-color: var(--line) !important;
}

/* Group block styles */
.wp-block-group.is-style-hd-cream-card {
  background: var(--cream);
  color: var(--fg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--lineLight);
}
.wp-block-group.is-style-hd-dark-section {
  background: var(--bg);
  color: var(--fgInv);
  padding: 64px 28px;
}

/* Make sure the hero's .hero-grid container (a Gutenberg group) renders our grid */
.hero .hero-grid.wp-block-group,
.hero-grid.wp-block-group {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero .hero-grid.wp-block-group { grid-template-columns: 1fr; gap: 56px; }
}

/* Hero buttons inside Gutenberg buttons block */
.wp-block-buttons.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero image rendered by Gutenberg image block */
.hero-frame.wp-block-image {
  position: relative;
  margin: 0;
  background: var(--cream2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-cream);
  aspect-ratio: 4 / 5;
}
.hero-frame.wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The hero floating cards live in a sibling .hero-visual that contains the figure */
.hero-visual { position: relative; }
.hero-visual.wp-block-group { display: block; }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .hero-home-title { font-size: 56px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-home { padding: 72px 0; }
  .hero-home-title { font-size: 38px; }
  .hero-home-sub { font-size: 17px; }
  .courses-grid { grid-template-columns: 1fr; }
}
