/*
 * Homepage sections (stats, reviews, books, YouTube, free book) — moved out of an inline <style> so browsers can cache it.
 */
/* ── Shared ──────────────────────────────────────────────── */
.ipp-eyebrow{display:block;font-size:.78rem;font-weight:600;letter-spacing:.06em;color:var(--lc-primary);margin-bottom:.5rem;text-transform:uppercase}
.ipp-eyebrow-light{color:#60a5fa}
.ipp-section-header{text-align:center;max-width:640px;margin:0 auto 3rem}
.ipp-section-title{font-size:clamp(1.5rem,2.5vw,2rem);font-weight:700;color:var(--lc-heading);margin:0 0 .75rem}
.ipp-section-sub{color:var(--lc-text-muted);font-size:1rem;margin:0}

/* ── Nav: all top-level links same colour, brand colour on hover ── */
.site-header .primary-nav .menu>li.current-menu-item>a,
.site-header .primary-nav .menu>li.current_page_item>a,
.site-header .primary-nav .menu>li.current_page_parent>a{color:inherit}

/* ── Resources FREE badge ────────────────────────────────── */
.primary-nav .menu>li>a[href*="free-resources"],
.primary-nav .menu>li>a[href*="/resources"]{position:relative}
.site-header .primary-nav .menu>li>a[href*="free-resources"],
.site-header .primary-nav .menu>li>a[href*="/resources"]{padding-right:2rem}
.primary-nav .menu>li>a[href*="free-resources"]::after,
.primary-nav .menu>li>a[href*="/resources"]::after{content:'FREE';position:absolute;top:-10px;right:-4px;background:#f59e0b;color:#fff;font-size:.52rem;font-weight:800;padding:.12rem .38rem;border-radius:3px;letter-spacing:.05em;}

/* ── Stats bar ───────────────────────────────────────────── */
.ipp-stats-bar{background:var(--lc-primary);padding:1.25rem 0}
.ipp-stats-list{list-style:none;margin:0;padding:0;display:flex;justify-content:center;flex-wrap:wrap;gap:1.5rem 3rem}
.ipp-stats-list li{display:flex;flex-direction:column;align-items:center;color:#fff}
.ipp-stat-num{font-size:1.6rem;font-weight:800;line-height:1}
.ipp-stat-plus{font-size:1rem;font-weight:700;opacity:.85}
.ipp-stat-label{font-size:.72rem;font-weight:500;opacity:.85;margin-top:.2rem;letter-spacing:.04em;text-transform:uppercase}

/* ── Udemy features strip ────────────────────────────────── */
.ipp-udemy-strip{background:#f0f6ff;border-top:1px solid #dce8f8;border-bottom:1px solid #dce8f8;padding:.9rem 0}
.ipp-udemy-features{list-style:none;margin:0;padding:0;display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem 2rem}
.ipp-udemy-features li{display:flex;align-items:center;gap:.4rem;font-size:.82rem;color:#2d3748;font-weight:500}
.ipp-udemy-features li svg{width:16px;height:16px;color:var(--lc-primary);flex-shrink:0}

/* ── Reviews ─────────────────────────────────────────────── */
.ipp-reviews-section{padding:4rem 0 2rem;background:var(--lc-bg-alt);overflow:hidden}
.ipp-ticker-wrap{overflow:hidden;margin:0 -20px;padding:1rem 0}
.ipp-ticker-track{display:flex;gap:1.25rem;width:max-content;animation:ipp-scroll 65s linear infinite}
.ipp-ticker-track:hover{animation-play-state:paused}
@keyframes ipp-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ipp-ticker-track{animation:none;flex-wrap:wrap;width:100%}}
.ipp-review-card{background:#fff;border-radius:12px;padding:1.5rem;width:300px;flex-shrink:0;box-shadow:0 2px 12px rgba(20,30,60,.07);display:flex;flex-direction:column;gap:.75rem}
.ipp-stars-gold{color:#f59e0b;font-size:1rem;letter-spacing:.1em}
.ipp-stars-silver{color:#9ca3af;font-size:1rem;letter-spacing:.1em}
.ipp-review-text{font-size:.88rem;color:var(--lc-text);line-height:1.6;flex:1;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ipp-review-author{display:flex;align-items:center;gap:.75rem}
.ipp-review-avatar{width:38px;height:38px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;flex-shrink:0}
.ipp-review-author strong{display:block;font-size:.85rem;color:var(--lc-heading)}
.ipp-review-author span{display:block;font-size:.75rem;color:var(--lc-text-muted)}
.ipp-reviews-udemy-note{text-align:center;display:flex;align-items:center;justify-content:center;gap:.75rem;color:var(--lc-text-muted);font-size:.85rem;margin-top:1.5rem}
.ipp-reviews-udemy-note img{display:inline-block;vertical-align:middle;opacity:.7}

/* ── Books ───────────────────────────────────────────────── */
.ipp-books-section{padding:5rem 0;background:#fff}
.ipp-books-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:2.5rem}
@media(max-width:1024px){.ipp-books-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.ipp-books-grid{grid-template-columns:1fr}}
.ipp-book-card{border:1px solid var(--lc-border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;position:relative;transition:box-shadow .25s,transform .25s;background:#fff}
.ipp-book-card:hover{box-shadow:0 8px 28px rgba(20,30,60,.1);transform:translateY(-4px)}
.ipp-book-badge{position:absolute;top:.75rem;left:.75rem;background:#f5a623;color:#fff;font-size:.7rem;font-weight:700;padding:.25rem .6rem;border-radius:20px;z-index:1}
.ipp-book-cover{aspect-ratio:3/4;background:var(--lc-bg-alt);overflow:hidden;flex-shrink:0}
.ipp-book-cover img{width:100%;height:100%;object-fit:fill;transition:transform .4s}
.ipp-book-card:hover .ipp-book-cover img{transform:scale(1.03)}
.ipp-book-cover-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--lc-primary);padding:1.5rem;text-align:center}
.ipp-book-cover-placeholder i{font-size:2.5rem;opacity:.4}
.ipp-book-cover-placeholder span{font-size:.85rem;font-weight:600;color:var(--lc-text-muted)}
.ipp-book-info{padding:1rem;display:flex;flex-direction:column;gap:.4rem;flex:1;min-height:0}
.ipp-book-title{font-size:.92rem;font-weight:700;color:var(--lc-heading);margin:0;line-height:1.3}
.ipp-book-sub{font-size:.78rem;color:var(--lc-text-muted);margin:0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ipp-book-meta{display:flex;flex-direction:column;gap:.25rem;margin-top:auto;padding-top:.5rem}
.ipp-book-meta span{font-size:.74rem;color:var(--lc-text-muted);display:flex;align-items:center;gap:.25rem}
.ipp-book-btn{margin-top:.6rem;font-size:.82rem;width:100%;justify-content:center}

/* ── YouTube ─────────────────────────────────────────────── */
.ipp-youtube-section{padding:0}
.ipp-yt-dark-bg{background:linear-gradient(160deg,#070f1f 0%,#0d1f3c 55%,#070f1f 100%);padding:5rem 0;position:relative;overflow:hidden}
.ipp-yt-particles{position:absolute;inset:0;pointer-events:none}
.ipp-yt-particle{position:absolute;bottom:-20px;left:var(--x);width:3px;height:3px;background:rgba(96,165,250,.5);border-radius:50%;animation:ipp-float var(--dur,12s) var(--delay,0s) ease-in infinite}
@keyframes ipp-float{0%{transform:translateY(0) scale(1);opacity:0}10%{opacity:1}90%{opacity:.3}100%{transform:translateY(-100vh) scale(0);opacity:0}}
.ipp-yt-inner{position:relative;z-index:1}
.ipp-yt-top{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;margin-bottom:2.5rem;flex-wrap:wrap}
.ipp-yt-intro{max-width:560px}
.ipp-yt-heading{font-size:clamp(1.5rem,2.5vw,2rem);font-weight:800;color:#fff;margin:0 0 .6rem;line-height:1.25}
.ipp-yt-count-badge{display:inline-block;background:#ff0000;color:#fff;font-size:.7rem;font-weight:700;padding:.2rem .6rem;border-radius:20px;margin-left:.5rem;vertical-align:middle;letter-spacing:.03em}
.ipp-yt-sub{color:rgba(255,255,255,.65);font-size:.95rem;margin:0;line-height:1.6}
.ipp-yt-sub strong{color:#fff}
.ipp-yt-channel-meta{display:flex;flex-direction:column;align-items:flex-end;gap:1rem;flex-shrink:0}
@media(max-width:768px){.ipp-yt-channel-meta{align-items:flex-start}}
.ipp-yt-stat-row{display:flex;gap:1rem}
.ipp-yt-stat-box{text-align:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:.6rem 1rem;min-width:70px}
.ipp-yt-stat-box span{display:block;font-size:1rem;font-weight:800;color:#fff;line-height:1}
.ipp-yt-stat-box small{font-size:.62rem;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.04em}
.ipp-yt-subscribe-btn{display:inline-flex;align-items:center;gap:.5rem;background:#ff0000;color:#fff;font-weight:700;font-size:.9rem;padding:.7rem 1.5rem;border-radius:6px;white-space:nowrap;text-decoration:none;transition:background .2s,transform .2s}
.ipp-yt-subscribe-btn:hover{background:#cc0000;color:#fff;transform:translateY(-2px)}
.ipp-yt-featured-layout{display:grid;grid-template-columns:1fr 340px;gap:1.5rem;align-items:start}
@media(max-width:900px){.ipp-yt-featured-layout{grid-template-columns:1fr}}
.ipp-yt-animate-in{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.ipp-yt-animate-in.ipp-visible{opacity:1;transform:translateY(0)}
.ipp-yt-featured{display:block;text-decoration:none;border-radius:14px;overflow:hidden;background:#111;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.ipp-yt-featured-thumb{position:relative;aspect-ratio:16/9;overflow:hidden}
.ipp-yt-featured-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ipp-yt-featured:hover .ipp-yt-featured-thumb img{transform:scale(1.04)}
.ipp-yt-featured-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.3);transition:background .25s}
.ipp-yt-featured:hover .ipp-yt-featured-overlay{background:rgba(0,0,0,.5)}
.ipp-yt-pulse-ring{position:absolute;width:80px;height:80px;border:2px solid rgba(255,255,255,.4);border-radius:50%;animation:ipp-pulse-ring 1.8s ease-out infinite}
@keyframes ipp-pulse-ring{0%{transform:scale(.8);opacity:1}100%{transform:scale(1.6);opacity:0}}
.ipp-yt-play-btn{position:relative;z-index:1;width:60px;height:60px;background:#ff0000;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:transform .25s,box-shadow .25s;box-shadow:0 4px 20px rgba(255,0,0,.5)}
.ipp-yt-featured:hover .ipp-yt-play-btn{transform:scale(1.1);box-shadow:0 6px 28px rgba(255,0,0,.7)}
.ipp-yt-play-btn i{color:#fff;font-size:1.2rem;margin-left:4px}
.ipp-yt-latest-badge{position:absolute;top:1rem;left:1rem;background:#ff0000;color:#fff;font-size:.68rem;font-weight:700;padding:.25rem .7rem;border-radius:4px;text-transform:uppercase;letter-spacing:.06em;animation:ipp-badge-pulse 2s ease-in-out infinite}
@keyframes ipp-badge-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,0,0,.5)}50%{box-shadow:0 0 0 6px rgba(255,0,0,0)}}
.ipp-yt-featured-info{padding:1.1rem 1.25rem 1.25rem;background:#1a2540}
.ipp-yt-featured-title{font-size:1rem;font-weight:700;color:#fff;margin:0 0 .4rem;line-height:1.4}
.ipp-yt-featured-date{font-size:.78rem;color:rgba(255,255,255,.5);display:flex;align-items:center;gap:.35rem}
.ipp-yt-secondary{display:flex;flex-direction:column;gap:1rem}
.ipp-yt-secondary-label{font-size:.72rem;font-weight:700;color:rgba(255,255,255,.35);text-transform:uppercase;letter-spacing:.07em;margin:0 0 .1rem}
.ipp-yt-secondary-card{display:flex;gap:.85rem;align-items:flex-start;text-decoration:none;background:rgba(255,255,255,.05);border-radius:10px;padding:.75rem;border:1px solid rgba(255,255,255,.08);transition:background .2s,transform .2s}
.ipp-yt-secondary-card:hover{background:rgba(255,255,255,.1);transform:translateX(4px)}
.ipp-yt-secondary-thumb{position:relative;width:110px;flex-shrink:0;border-radius:7px;overflow:hidden;aspect-ratio:16/9;background:#111}
.ipp-yt-secondary-thumb img{width:100%;height:100%;object-fit:cover}
.ipp-yt-play-sm{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45)}
.ipp-yt-play-sm i{color:#fff;font-size:.85rem}
.ipp-yt-secondary-info{flex:1;min-width:0}
.ipp-yt-secondary-title{font-size:.85rem;font-weight:600;color:#fff;margin:0 0 .3rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ipp-yt-secondary-date{font-size:.75rem;color:rgba(255,255,255,.4)}
.ipp-yt-all-link{display:inline-block;color:#60a5fa;font-size:.85rem;font-weight:600;text-decoration:none;margin-top:.5rem;transition:color .2s}
.ipp-yt-all-link:hover{color:#93c5fd}
.ipp-yt-fallback{text-align:center;padding:2rem 0}

/* ── Free book ───────────────────────────────────────────── */
.ipp-freebook-section{padding:5rem 0;background:linear-gradient(135deg,var(--lc-primary) 0%,#1a4a8a 100%)}
.ipp-freebook-inner{display:grid;grid-template-columns:auto 1fr 1fr;gap:2.5rem;align-items:center}
@media(max-width:1024px){.ipp-freebook-inner{grid-template-columns:1fr;text-align:center}.ipp-freebook-highlights{justify-content:center}}
.ipp-freebook-icon{font-size:3rem;color:#f59e0b;line-height:1}
@media(max-width:1024px){.ipp-freebook-icon{display:none}}
.ipp-freebook-title{font-size:clamp(1.4rem,2.5vw,1.9rem);font-weight:800;color:#fff;margin:0 0 .6rem}
.ipp-freebook-sub{color:rgba(255,255,255,.85);font-size:.95rem;margin:0 0 1rem;line-height:1.6}
.ipp-freebook-highlights{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}
.ipp-freebook-highlights span{font-size:.82rem;color:rgba(255,255,255,.9);display:flex;align-items:center;gap:.35rem}
.ipp-freebook-highlights i{color:#f59e0b}
.ipp-freebook-form{background:rgba(255,255,255,.12);border-radius:14px;padding:1.75rem;backdrop-filter:blur(8px)}
.ipp-freebook-label{font-size:.85rem;color:rgba(255,255,255,.9);margin:0 0 .75rem;font-weight:600}
.ipp-freebook-input-row{display:flex;gap:.5rem;flex-wrap:wrap}
.ipp-freebook-input{flex:1;min-width:200px;padding:.7rem 1rem;border:none;border-radius:6px;font-size:.95rem;outline:none}
.ipp-freebook-btn{flex-shrink:0;background:#f59e0b;border-color:#f59e0b;color:#fff;font-weight:700}
.ipp-freebook-btn:hover{background:#d97706;border-color:#d97706;color:#fff}
.ipp-freebook-privacy{font-size:.75rem;color:rgba(255,255,255,.7);margin:.6rem 0 0;display:flex;align-items:center;gap:.35rem}

/* ── Course cards ────────────────────────────────────────── */
.udemy-course-card .course-card-media{overflow:hidden;background:#1a1f2e;display:block}
.udemy-course-card .course-card-media img{width:100%;height:100%}
.udemy-courses-section .course-card-placeholder,.udemy-course-card .course-card-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f1a2e 0%,#1a2d4a 100%);color:rgba(255,255,255,.25);gap:.5rem;font-size:2rem}
.udemy-course-card .course-card-body{padding:1rem 1.1rem 1.25rem}
.udemy-course-card .course-card-title{font-size:.95rem;line-height:1.35;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.udemy-course-card .course-card-title a{color:inherit}
.udemy-course-card .course-card-title a:hover{color:var(--lc-primary)}
.courses-archive-section .ipp-udemy-strip{margin-bottom:2rem;border-radius:var(--lc-radius-md)}

/* ── Single course page ──────────────────────────────────── */
.single-course-lead{font-size:1.05rem;color:var(--lc-text-muted);margin:.75rem 0 0}
.course-enroll-price{font-size:1.8rem;font-weight:800;color:var(--lc-heading);margin:0 0 1rem}

/* ── Sign-up forms (free book + footer) ──────────────────── */
.ipp-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.ipp-subscribe-form{display:flex;gap:.5rem;flex-wrap:wrap;position:relative}
.ipp-subscribe-form input[type=email]{flex:1;min-width:0;padding:.7rem 1rem;border:1px solid transparent;border-radius:6px;font-size:.95rem;font-family:inherit}
.ipp-freebook-form .ipp-subscribe-form input[type=email]{min-width:200px;border:none}
.ipp-freebook-form .ipp-subscribe-form .btn{flex-shrink:0;background:#f59e0b;border-color:#f59e0b;color:#fff;font-weight:700}
.ipp-freebook-form .ipp-subscribe-form .btn:hover{background:#d97706;border-color:#d97706}
.ipp-subscribe-msg{margin:.5rem 0 0;font-size:.88rem;width:100%}
.ipp-subscribe-msg.is-error{color:#fecaca}
.ipp-subscribe-msg.is-success{background:rgba(255,255,255,.14);border-radius:10px;padding:1rem 1.1rem;color:#fff}
.ipp-subscribe-msg.is-success p{margin:0 0 .6rem}
.ipp-subscribe-msg.is-success p:last-child{margin:0}
.ipp-subscribe-msg.is-success .btn{background:#f59e0b;border-color:#f59e0b;color:#fff}
.site-footer .ipp-subscribe-msg.is-success{background:rgba(255,255,255,.06)}
.footer-subscribe.ipp-subscribe-form{gap:0;flex-wrap:wrap}
.footer-subscribe.ipp-subscribe-form input[type=email]{flex:1 1 140px}
.footer-subscribe.ipp-subscribe-form input[type=email]{border-radius:var(--lc-radius-sm) 0 0 var(--lc-radius-sm)}
.footer-subscribe .ipp-subscribe-msg.is-error{color:#fca5a5}

/* ── Layout: grid children may shrink (prevents sideways scrolling on phones) ── */
.layout-with-sidebar>*,.single-course-grid>*,.posts-grid>*,.courses-grid>*{min-width:0}
.post-card-meta{flex-wrap:wrap}
.home .site-footer{margin-top:0}
#free-book,#newsletter,#courses{scroll-margin-top:90px}
