/*
Theme Name: NewDriverHub
Theme URI: https://newdriverhub.co.uk
Author: NewDriverHub
Author URI: https://newdriverhub.co.uk
Description: A friendly, playful WordPress theme for newdriverhub.co.uk — the UK's resource site for learner drivers. Features a bold yellow & navy palette, modern typography, and full page templates for Theory Test, Practical Test, Video Lessons, and Find an Instructor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newdriverhub
Tags: education, one-column, two-columns, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, theme-options, footer-widgets, blog
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    --ndh-yellow:      #FFD93D;
    --ndh-navy:        #0D1B2A;
    --ndh-navy-light:  #1a2e45;
    --ndh-navy-mid:    #152336;
    --ndh-coral:       #FF6B6B;
    --ndh-mint:        #6BCB77;
    --ndh-sky:         #4ECDC4;
    --ndh-white:       #FFFDF5;
    --ndh-grey-light:  #f0f0ea;
    --ndh-grey-mid:    #e8e8e0;
    --ndh-text-muted:  #6b7a8d;
    --ndh-text-dark:   #4a5568;

    --ndh-font-display: 'Syne', sans-serif;
    --ndh-font-body:    'Nunito', sans-serif;

    --ndh-radius-sm:   8px;
    --ndh-radius-md:   12px;
    --ndh-radius-lg:   20px;
    --ndh-radius-xl:   24px;

    --ndh-shadow-sm:   0 4px 16px rgba(0,0,0,0.06);
    --ndh-shadow-md:   0 10px 30px rgba(0,0,0,0.1);
    --ndh-shadow-lg:   0 20px 50px rgba(0,0,0,0.12);

    --ndh-max-width:   1200px;
    --ndh-header-h:    68px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--ndh-font-body);
    background: var(--ndh-white);
    color: var(--ndh-navy);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ndh-font-display);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ndh-navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--ndh-text-dark); line-height: 1.75; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 800; }
em { font-style: italic; }

/* Entry content (blog / page content) */
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 2rem 0 1rem; }
.entry-content ul,
.entry-content ol { list-style: revert; padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content ul li,
.entry-content ol li { margin-bottom: 0.4rem; color: var(--ndh-text-dark); }
.entry-content blockquote {
    border-left: 4px solid var(--ndh-yellow);
    padding: 1rem 1.5rem;
    background: rgba(255,217,61,0.06);
    border-radius: 0 var(--ndh-radius-md) var(--ndh-radius-md) 0;
    font-style: italic;
    margin: 1.5rem 0;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.ndh-container {
    max-width: var(--ndh-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.ndh-section { padding: 5rem 1.5rem; }
.ndh-section--dark { background: var(--ndh-navy); }
.ndh-section--yellow { background: var(--ndh-yellow); }
.ndh-section--light { background: var(--ndh-grey-light); }

.ndh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ndh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ndh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ndh-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.ndh-text-center { text-align: center; }
.ndh-text-white { color: var(--ndh-white); }

/* ==========================================================================
   SECTION LABELS & HEADINGS
   ========================================================================== */
.ndh-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ndh-coral);
    margin-bottom: 0.75rem;
}
.ndh-label--yellow { color: var(--ndh-yellow); }

.ndh-section-title { margin-bottom: 0.75rem; }
.ndh-section-title span { color: var(--ndh-coral); }
.ndh-section-title--white { color: var(--ndh-white); }
.ndh-section-title--white span { color: var(--ndh-yellow); }

.ndh-section-sub {
    font-size: 1.05rem;
    color: var(--ndh-text-muted);
    max-width: 560px;
    margin-bottom: 3rem;
    line-height: 1.75;
}
.ndh-section-sub--white { color: rgba(255,253,245,0.65); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ndh-btn {
    display: inline-block;
    font-family: var(--ndh-font-body);
    font-weight: 900;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--ndh-radius-md);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
    line-height: 1;
}
.ndh-btn:hover { transform: translateY(-3px); }

.ndh-btn--primary {
    background: var(--ndh-yellow);
    color: var(--ndh-navy);
}
.ndh-btn--primary:hover { box-shadow: 0 8px 28px rgba(255,217,61,0.5); }

.ndh-btn--dark {
    background: var(--ndh-navy);
    color: var(--ndh-yellow);
}
.ndh-btn--dark:hover { box-shadow: 0 8px 28px rgba(13,27,42,0.3); }

.ndh-btn--ghost {
    background: transparent;
    color: var(--ndh-white);
    border: 2px solid rgba(255,253,245,0.35);
}
.ndh-btn--ghost:hover { border-color: var(--ndh-white); background: rgba(255,253,245,0.06); transform: translateY(-3px); }

.ndh-btn--sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* ==========================================================================
   PILL / TAG
   ========================================================================== */
.ndh-pill {
    display: inline-block;
    background: rgba(255,217,61,0.12);
    border: 2px solid rgba(255,217,61,0.3);
    color: var(--ndh-yellow);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ndh-pill-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--ndh-header-h);
    background: var(--ndh-navy);
    border-bottom: 3px solid var(--ndh-yellow);
    z-index: 9000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    justify-content: space-between;
}

/* Logo */
.site-branding a {
    font-family: var(--ndh-font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ndh-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-branding a:hover { color: var(--ndh-white); }
.site-branding .logo-accent { color: var(--ndh-yellow); }
.site-branding .logo-tld {
    background: var(--ndh-yellow);
    color: var(--ndh-navy);
    font-size: 0.58rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: center;
}

/* Primary nav */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.main-navigation ul li a {
    display: block;
    color: rgba(255,253,245,0.72);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--ndh-radius-sm);
    transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    color: var(--ndh-yellow);
    background: rgba(255,217,61,0.1);
}

/* CTA nav item */
.main-navigation ul li.menu-item-cta > a {
    background: var(--ndh-yellow);
    color: var(--ndh-navy);
    font-weight: 900;
    border-radius: var(--ndh-radius-md);
}
.main-navigation ul li.menu-item-cta > a:hover {
    background: var(--ndh-yellow);
    color: var(--ndh-navy);
    box-shadow: 0 4px 20px rgba(255,217,61,0.4);
    transform: translateY(-2px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,253,245,0.3);
    color: var(--ndh-white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--ndh-radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
    background: var(--ndh-navy);
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    margin-top: var(--ndh-header-h);
}

.page-hero__deco {
    position: absolute;
    right: 3rem; top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
}

.page-hero__inner { position: relative; z-index: 2; max-width: var(--ndh-max-width); margin: 0 auto; }

.page-hero h1 { color: var(--ndh-white); margin-bottom: 1rem; }
.page-hero h1 span { color: var(--ndh-yellow); }
.page-hero .lead { color: rgba(255,253,245,0.72); font-size: 1.1rem; max-width: 600px; line-height: 1.75; margin-bottom: 0; }

/* ==========================================================================
   HOME HERO
   ========================================================================== */
.hero-home {
    background: var(--ndh-navy);
    min-height: calc(100vh - var(--ndh-header-h));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: var(--ndh-header-h);
}

/* Animated road */
.hero-road {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 160px;
    background: #111122;
    z-index: 1;
}
.road-line {
    position: absolute; top: 50%;
    height: 8px; border-radius: 4px;
    background: var(--ndh-yellow);
    animation: roadMove 2.2s linear infinite;
}
.road-line:nth-child(1) { width: 110px; left: -20%; animation-delay: 0s; top: 44%; }
.road-line:nth-child(2) { width: 75px;  left: -20%; animation-delay: 0.75s; top: 56%; }
.road-line:nth-child(3) { width: 95px;  left: -20%; animation-delay: 1.5s; top: 44%; }
@keyframes roadMove { from { left: -20%; } to { left: 120%; } }

/* Floating blobs */
.hero-blob {
    position: absolute; border-radius: 50%; opacity: 0.07;
    animation: blobFloat 7s ease-in-out infinite;
    pointer-events: none;
}
.hero-blob-1 { width: 420px; height: 420px; background: var(--ndh-yellow); top: -120px; right: -120px; animation-delay: 0s; }
.hero-blob-2 { width: 220px; height: 220px; background: var(--ndh-coral); bottom: 180px; left: 8%; animation-delay: 2.5s; }
.hero-blob-3 { width: 160px; height: 160px; background: var(--ndh-sky); top: 30%; right: 22%; animation-delay: 5s; }
@keyframes blobFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-28px) rotate(8deg); }
}

.hero-home__inner {
    position: relative; z-index: 2;
    max-width: var(--ndh-max-width); margin: 0 auto;
    padding: 4rem 1.5rem 12rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,217,61,0.13);
    border: 2px solid var(--ndh-yellow);
    color: var(--ndh-yellow);
    font-size: 0.78rem; font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero-home h1 {
    color: var(--ndh-white);
    margin-bottom: 1.4rem;
    animation: fadeUp 0.6s 0.15s ease both;
}
.hero-home h1 em {
    font-style: normal; color: var(--ndh-yellow); display: block;
}

.hero-home .hero-desc {
    color: rgba(255,253,245,0.75);
    font-size: 1.15rem; line-height: 1.75;
    margin-bottom: 2.25rem;
    animation: fadeUp 0.6s 0.3s ease both;
}

.hero-btns {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.45s ease both;
}

.hero-stats {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: rgba(255,253,245,0.08);
    border-radius: var(--ndh-radius-lg);
    overflow: hidden;
    margin-top: 2rem;
    animation: fadeUp 0.6s 0.6s ease both;
}
.hero-stat {
    background: rgba(255,253,245,0.04);
    padding: 1.2rem;
    text-align: center;
}
.hero-stat__num {
    font-family: var(--ndh-font-display);
    font-size: 2rem; font-weight: 800;
    color: var(--ndh-yellow); display: block;
}
.hero-stat__label {
    font-size: 0.75rem; font-weight: 800;
    color: rgba(255,253,245,0.55);
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* Hero SVG car */
.hero-visual { animation: fadeUp 0.6s 0.3s ease both; }
.hero-visual svg { width: 100%; max-width: 400px; margin: 0 auto; display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes carBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}
.car-animated { animation: carBounce 2s ease-in-out infinite; }

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.feature-card {
    background: var(--ndh-white);
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--ndh-card-accent, var(--ndh-yellow));
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--ndh-card-accent, var(--ndh-yellow));
    box-shadow: var(--ndh-shadow-lg);
}
.feature-card__icon { font-size: 2.4rem; margin-bottom: 1rem; display: block; }
.feature-card__title { margin-bottom: 0.6rem; }
.feature-card__desc { font-size: 0.94rem; color: var(--ndh-text-muted); line-height: 1.65; }
.feature-card__link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--ndh-card-accent, var(--ndh-yellow));
    font-weight: 800; font-size: 0.9rem;
    margin-top: 1.2rem;
    transition: gap 0.2s;
}
.feature-card__link:hover { gap: 0.7rem; }

/* ==========================================================================
   STEP CARDS
   ========================================================================== */
.step-card { text-align: center; }
.step-card__num {
    width: 60px; height: 60px;
    background: var(--ndh-yellow);
    color: var(--ndh-navy);
    font-family: var(--ndh-font-display);
    font-size: 1.5rem; font-weight: 800;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    transition: transform 0.2s;
}
.step-card:hover .step-card__num { transform: rotate(-5deg) scale(1.1); }
.step-card__title { color: var(--ndh-white); margin-bottom: 0.5rem; font-size: 1.05rem; }
.step-card__desc { font-size: 0.88rem; color: rgba(255,253,245,0.55); line-height: 1.65; }

/* ==========================================================================
   INFO BLOCK
   ========================================================================== */
.info-block {
    background: var(--ndh-white);
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-lg);
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.info-block:hover {
    transform: translateY(-4px);
    border-color: var(--ndh-sky);
    box-shadow: var(--ndh-shadow-md);
}
.info-block__head {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.2rem;
}
.info-block__icon {
    width: 44px; height: 44px;
    border-radius: var(--ndh-radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.info-block__title { font-size: 1.1rem; }

.ndh-checklist { list-style: none; }
.ndh-checklist li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ndh-grey-light);
    font-size: 0.94rem; color: var(--ndh-text-dark); line-height: 1.55;
}
.ndh-checklist li:last-child { border-bottom: none; }
.ndh-checklist li::before {
    content: '✓';
    color: var(--ndh-mint); font-weight: 900;
    flex-shrink: 0; margin-top: 0.05rem;
}
.ndh-checklist--cross li::before { content: '✗'; color: var(--ndh-coral); }

/* ==========================================================================
   TIP BOX
   ========================================================================== */
.tip-box {
    background: linear-gradient(135deg, var(--ndh-navy), var(--ndh-navy-light));
    border-radius: var(--ndh-radius-lg);
    padding: 2.5rem;
    position: relative; overflow: hidden;
}
.tip-box::after {
    content: '💡';
    position: absolute; right: 1.5rem; top: 50%;
    transform: translateY(-50%);
    font-size: 5rem; opacity: 0.12;
    pointer-events: none;
}
.tip-box h3 { color: var(--ndh-yellow); font-size: 1.3rem; margin-bottom: 0.9rem; }
.tip-box p  { color: rgba(255,253,245,0.75); font-size: 0.96rem; line-height: 1.7; margin-bottom: 0; }

/* ==========================================================================
   TOPIC CHIPS
   ========================================================================== */
.topic-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 1rem; }
.topic-chip {
    background: var(--ndh-navy);
    color: var(--ndh-white);
    border-radius: var(--ndh-radius-md);
    padding: 1.2rem 1rem;
    text-align: center;
    font-size: 0.87rem; font-weight: 700;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: default;
}
.topic-chip:hover {
    background: var(--ndh-yellow); color: var(--ndh-navy);
    border-color: var(--ndh-yellow); transform: translateY(-3px);
}
.topic-chip__icon { font-size: 1.55rem; display: block; margin-bottom: 0.5rem; }

/* ==========================================================================
   MANOEUVRE CARDS
   ========================================================================== */
.manoeuvre-card {
    background: var(--ndh-navy);
    border-radius: var(--ndh-radius-lg);
    padding: 2rem;
    color: var(--ndh-white);
    position: relative; overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}
.manoeuvre-card::before {
    content: attr(data-emoji);
    position: absolute; right: 1rem; top: 1rem;
    font-size: 3rem; opacity: 0.13;
}
.manoeuvre-card:hover { transform: translateY(-6px); border-color: var(--ndh-yellow); }

.badge {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 20px;
    font-size: 0.73rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.07em;
    margin-bottom: 0.9rem;
}
.badge--easy   { background: rgba(107,203,119,0.18); color: var(--ndh-mint); }
.badge--medium { background: rgba(78,205,196,0.18);  color: var(--ndh-sky); }
.badge--hard   { background: rgba(255,107,107,0.18); color: var(--ndh-coral); }

.manoeuvre-card h3 { font-size: 1.08rem; margin-bottom: 0.55rem; color: var(--ndh-white); }
.manoeuvre-card p  { font-size: 0.87rem; color: rgba(255,253,245,0.6); line-height: 1.65; margin-bottom: 0; }

/* ==========================================================================
   TEST DAY TIMELINE
   ========================================================================== */
.ndh-timeline { position: relative; padding-left: 2rem; }
.ndh-timeline::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--ndh-yellow), var(--ndh-coral), var(--ndh-sky), var(--ndh-mint));
    border-radius: 2px;
}

.timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
.timeline-item::before {
    content: '';
    position: absolute; left: -2.4rem; top: 0.3rem;
    width: 12px; height: 12px;
    background: var(--ndh-yellow);
    border: 3px solid var(--ndh-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--ndh-yellow);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__time {
    font-size: 0.76rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ndh-coral); margin-bottom: 0.3rem;
}
.timeline-item__title { font-size: 1rem; margin-bottom: 0.4rem; }
.timeline-item__desc  { font-size: 0.9rem; color: var(--ndh-text-muted); line-height: 1.6; margin-bottom: 0; }

/* ==========================================================================
   VIDEO CARDS
   ========================================================================== */
.video-card {
    background: var(--ndh-white);
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-lg);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.video-card:hover { transform: translateY(-5px); border-color: var(--ndh-sky); box-shadow: var(--ndh-shadow-lg); }

.video-card__thumb {
    background: var(--ndh-navy);
    height: 165px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.video-card__thumb-emoji { font-size: 4rem; opacity: 0.28; }

.video-play {
    position: absolute;
    width: 54px; height: 54px;
    background: var(--ndh-yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.video-card:hover .video-play { transform: scale(1.1); }

.video-card__duration {
    position: absolute; bottom: 0.7rem; right: 0.7rem;
    background: rgba(0,0,0,0.7);
    color: var(--ndh-white);
    font-size: 0.73rem; font-weight: 700;
    padding: 0.18rem 0.55rem; border-radius: 6px;
}
.video-card__level { position: absolute; top: 0.7rem; left: 0.7rem; }

.video-card__info { padding: 1.25rem; }
.video-card__title { font-size: 0.97rem; margin-bottom: 0.4rem; }
.video-card__meta  { font-size: 0.8rem; color: #8a9bb0; font-weight: 700; }

/* Featured video */
.featured-video {
    background: var(--ndh-navy);
    border-radius: var(--ndh-radius-xl);
    overflow: hidden;
    display: grid; grid-template-columns: 2fr 1fr;
    margin-bottom: 3rem;
    min-height: 280px;
}
.featured-video__thumb {
    background: linear-gradient(135deg, var(--ndh-navy-mid), #0a2540);
    display: flex; align-items: center; justify-content: center;
    position: relative; min-height: 280px;
}
.featured-video__thumb-emoji { font-size: 7rem; opacity: 0.18; }
.featured-play {
    position: absolute;
    width: 70px; height: 70px;
    background: var(--ndh-yellow); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 28px rgba(255,217,61,0.4);
    transition: transform 0.2s;
    cursor: pointer;
}
.featured-play:hover { transform: scale(1.1); }
.featured-video__info { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-video__tag {
    font-size: 0.74rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ndh-yellow); margin-bottom: 0.75rem;
}
.featured-video__title { color: var(--ndh-white); font-size: 1.35rem; margin-bottom: 0.75rem; line-height: 1.2; }
.featured-video__desc { font-size: 0.88rem; color: rgba(255,253,245,0.6); line-height: 1.65; margin-bottom: 1.5rem; }

/* Category filter */
.video-filter { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.video-filter__btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--ndh-grey-mid);
    border-radius: 20px;
    background: transparent;
    color: var(--ndh-text-muted);
    font-weight: 800; font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.video-filter__btn:hover,
.video-filter__btn.is-active {
    background: var(--ndh-navy); color: var(--ndh-yellow); border-color: var(--ndh-navy);
}

/* ==========================================================================
   INSTRUCTOR CARDS
   ========================================================================== */
.instructor-card {
    background: var(--ndh-white);
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-lg);
    padding: 1.75rem;
    transition: all 0.3s;
}
.instructor-card:hover { border-color: var(--ndh-yellow); transform: translateY(-5px); box-shadow: var(--ndh-shadow-lg); }

.instructor-card__avatar {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1rem;
    position: relative;
}
.instructor-card__verified {
    position: absolute; bottom: -4px; right: -4px;
    width: 20px; height: 20px;
    background: var(--ndh-mint); border-radius: 50%;
    border: 2px solid var(--ndh-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; color: var(--ndh-white); font-weight: 900;
}
.instructor-card__name { font-size: 1.08rem; margin-bottom: 0.22rem; }
.instructor-card__area { font-size: 0.83rem; color: #8a9bb0; font-weight: 700; margin-bottom: 1rem; }

.instructor-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.instructor-tag {
    background: var(--ndh-grey-light);
    color: var(--ndh-text-muted);
    font-size: 0.76rem; font-weight: 800;
    padding: 0.22rem 0.65rem; border-radius: var(--ndh-radius-sm);
}

.instructor-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--ndh-grey-light);
}
.instructor-price { font-family: var(--ndh-font-display); font-size: 1.4rem; font-weight: 800; }
.instructor-price small { font-size: 0.73rem; color: #8a9bb0; font-weight: 700; font-family: var(--ndh-font-body); }
.star-rating { color: var(--ndh-yellow); font-size: 0.88rem; }
.star-rating span { font-size: 0.78rem; color: #8a9bb0; font-family: var(--ndh-font-body); font-weight: 700; }

/* Instructor search bar */
.instructor-search {
    background: linear-gradient(135deg, var(--ndh-navy), var(--ndh-navy-light));
    padding: 4rem 1.5rem;
    text-align: center;
}
.instructor-search h1 { color: var(--ndh-white); margin-bottom: 0.75rem; }
.instructor-search h1 span { color: var(--ndh-yellow); }
.instructor-search .lead { color: rgba(255,253,245,0.7); margin-bottom: 0.5rem; }

.search-form {
    max-width: 580px; margin: 2rem auto 0;
    display: flex; gap: 0.75rem;
}
.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1;
    padding: 0.9rem 1.4rem;
    border: 3px solid rgba(255,217,61,0.3);
    border-radius: var(--ndh-radius-md);
    background: rgba(255,253,245,0.08);
    color: var(--ndh-white);
    font-family: var(--ndh-font-body);
    font-size: 1rem; font-weight: 700;
    outline: none;
    transition: border-color 0.2s;
}
.search-form input::placeholder { color: rgba(255,253,245,0.4); }
.search-form input:focus { border-color: var(--ndh-yellow); }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    background: var(--ndh-yellow);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: '🚗';
    font-size: 14rem; opacity: 0.09;
    position: absolute; right: -1rem; top: 50%;
    transform: translateY(-50%); pointer-events: none;
}
.cta-banner h2 { color: var(--ndh-navy); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(13,27,42,0.68); font-size: 1.1rem; max-width: 500px; margin: 0 auto 2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--ndh-navy);
    color: var(--ndh-white);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    max-width: var(--ndh-max-width); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,253,245,0.1);
}

.footer-brand .nav-logo-footer {
    font-family: var(--ndh-font-display);
    font-size: 1.4rem; font-weight: 800;
    color: var(--ndh-white);
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-brand .nav-logo-footer .logo-accent { color: var(--ndh-yellow); }
.footer-brand p { color: rgba(255,253,245,0.55); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
    font-size: 0.82rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ndh-yellow);
    margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
    color: rgba(255,253,245,0.6);
    font-size: 0.9rem; font-weight: 600;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--ndh-yellow); }

.footer-bottom {
    max-width: var(--ndh-max-width); margin: 0 auto;
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,253,245,0.38); }

.social-links { display: flex; gap: 0.7rem; }
.social-link {
    width: 38px; height: 38px;
    background: rgba(255,253,245,0.08);
    border-radius: var(--ndh-radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: background 0.2s;
    color: var(--ndh-white);
}
.social-link:hover { background: var(--ndh-yellow); color: var(--ndh-navy); }

/* ==========================================================================
   BLOG / ARCHIVE
   ========================================================================== */
.blog-header { background: var(--ndh-navy); padding: 4rem 1.5rem; margin-top: var(--ndh-header-h); }
.blog-header h1 { color: var(--ndh-white); }

.posts-grid {
    max-width: var(--ndh-max-width); margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

.post-card {
    background: var(--ndh-white);
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--ndh-shadow-lg); border-color: var(--ndh-yellow); }
.post-card__thumb { height: 190px; overflow: hidden; background: var(--ndh-navy-light); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding: 1.5rem; }
.post-card__cat {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ndh-coral); margin-bottom: 0.5rem; display: block;
}
.post-card__title { font-size: 1.08rem; margin-bottom: 0.5rem; }
.post-card__title a { color: var(--ndh-navy); }
.post-card__title a:hover { color: var(--ndh-coral); }
.post-card__meta { font-size: 0.8rem; color: #8a9bb0; font-weight: 700; }

/* Single post */
.single-post { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.post-header { margin-top: var(--ndh-header-h); background: var(--ndh-navy); padding: 5rem 1.5rem 4rem; }
.post-header h1 { color: var(--ndh-white); max-width: 820px; margin: 0 auto; }
.post-header .post-meta {
    text-align: center;
    color: rgba(255,253,245,0.55);
    font-size: 0.88rem; font-weight: 700;
    margin-top: 1rem;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.widget {
    background: var(--ndh-white);
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-family: var(--ndh-font-display);
    font-size: 1rem; font-weight: 800;
    color: var(--ndh-navy);
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ndh-yellow);
}

/* ==========================================================================
   FORMS (contact, search)
   ========================================================================== */
.ndh-form-field { margin-bottom: 1.25rem; }
.ndh-form-field label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ndh-navy); }
.ndh-form-field input,
.ndh-form-field textarea,
.ndh-form-field select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-md);
    font-family: var(--ndh-font-body);
    font-size: 1rem;
    color: var(--ndh-navy);
    background: var(--ndh-white);
    outline: none;
    transition: border-color 0.2s;
}
.ndh-form-field input:focus,
.ndh-form-field textarea:focus { border-color: var(--ndh-yellow); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.ndh-pagination {
    display: flex; justify-content: center; gap: 0.5rem;
    padding: 2rem 1.5rem;
}
.ndh-pagination .page-numbers {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--ndh-grey-mid);
    border-radius: var(--ndh-radius-sm);
    font-weight: 800; font-size: 0.95rem;
    color: var(--ndh-navy);
    transition: all 0.2s;
}
.ndh-pagination .page-numbers:hover,
.ndh-pagination .page-numbers.current {
    background: var(--ndh-navy); color: var(--ndh-yellow); border-color: var(--ndh-navy);
}

/* ==========================================================================
   GUTENBERG BLOCK OVERRIDES
   ========================================================================== */
.wp-block-button__link {
    background: var(--ndh-yellow) !important;
    color: var(--ndh-navy) !important;
    border-radius: var(--ndh-radius-md) !important;
    font-family: var(--ndh-font-body) !important;
    font-weight: 900 !important;
    padding: 0.85rem 2rem !important;
}
.wp-block-quote { border-left: 4px solid var(--ndh-yellow); }
.wp-block-separator { border-color: var(--ndh-grey-mid); }
.has-ndh-yellow-color { color: var(--ndh-yellow) !important; }
.has-ndh-navy-background-color { background-color: var(--ndh-navy) !important; }
.has-ndh-yellow-background-color { background-color: var(--ndh-yellow) !important; }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ndh-grid-4 { grid-template-columns: 1fr 1fr; }
    .featured-video { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --ndh-header-h: 64px; }

    .menu-toggle { display: block; }
    .main-navigation { display: none; position: absolute; top: var(--ndh-header-h); left: 0; right: 0; background: var(--ndh-navy); border-top: 2px solid rgba(255,253,245,0.1); padding: 1rem; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0.25rem; }
    .main-navigation ul li a { padding: 0.75rem 1rem; }

    .hero-home__inner { grid-template-columns: 1fr; padding-bottom: 8rem; gap: 2rem; }
    .hero-visual { display: none; }
    .hero-stats { grid-template-columns: repeat(3,1fr); }

    .ndh-grid-2 { grid-template-columns: 1fr; }
    .ndh-grid-3 { grid-template-columns: 1fr 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .page-hero { padding: 3.5rem 1.5rem 3rem; }
    .page-hero__deco { display: none; }

    .featured-video__info { padding: 1.5rem; }

    .search-form { flex-direction: column; }

    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ndh-grid-3 { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
