:root {
    --brand: #2563EB;
    --brand-dark: #1E40AF;
    --free: #16A34A;
    --cta: #F59E0B;
    --ink: #0F172A;
    --muted: #64748B;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
img, svg, video, iframe { max-width: 100%; }


/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-cta { background: #004AC6; color: #fff; }
.btn-cta:hover { filter: brightness(.92); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: #004AC6; color: #004AC6; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.logo span { color: var(--brand); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 600; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.search { margin-left: auto; flex: 0 1 280px; }
.search input {
    width: 100%; padding: 9px 14px; border: 1px solid var(--border);
    border-radius: 999px; background: var(--bg); font-size: .9rem;
}
.search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
    background: linear-gradient(160deg, #EFF4FF 0%, #F8FAFC 60%);
    padding: 64px 0 56px; text-align: center;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 820px; margin: 0 auto .75rem; }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 0 auto 1.75rem; max-width: 560px; }
.hero-search { display: flex; gap: 8px; max-width: 580px; margin: 0 auto 1rem; }
.hero-search input {
    flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border);
    background: #fff; font-size: 1rem;
}
.hero-search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.quick-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- pills / tags / badges ---------- */
.pill {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: #EEF2FF; color: var(--brand-dark); font-size: .78rem; font-weight: 600;
}
.pill-lg { padding: 8px 18px; background: #fff; border: 1px solid var(--border); color: var(--ink); }
.pill-lg:hover { border-color: var(--brand); text-decoration: none; }
.tag {
    display: inline-block; padding: 3px 10px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: .72rem;
}
.badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-free { background: #DCFCE7; color: #166534; }
.badge-paid { background: #DBEAFE; color: #1E40AF; }
.badge-deal { background: #FEF3C7; color: #92400E; }
.badge-student { background: #FEF3C7; color: #92400E; }

/* ---------- category cards ---------- */
.category-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.cat-card {
    display: block; padding: 28px; border-radius: var(--radius); color: var(--ink);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cat-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.cat-card h2 { font-size: 1.5rem; }
.cat-card p { color: var(--muted); margin: 0 0 14px; }
.cat-software { border-top: 4px solid var(--brand); }
.cat-courses { border-top: 4px solid var(--cta); }
.cat-pills span { display: inline-block; margin-right: 8px; padding: 3px 12px; border-radius: 999px; background: var(--bg); font-size: .75rem; font-weight: 600; color: var(--muted); }
.cat-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--brand); }

/* ---------- blocks / grids ---------- */
.block { margin: 40px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.block-head h2 { font-size: 1.4rem; margin: 0; }
.block-head a { font-weight: 600; font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.card-row > .card { min-width: 260px; }

/* ---------- cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.card-logo.placeholder { display: flex; align-items: center; justify-content: center; background: #EEF2FF; color: var(--brand); font-weight: 800; }
.card-title { font-size: 1.05rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-desc { color: var(--muted); font-size: .9rem; margin: 0 0 12px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.card-cta { align-self: flex-start; }

/* course card */
.course-card { padding: 0; overflow: hidden; }
.course-thumb { position: relative; aspect-ratio: 16/9; background: #E2E8F0; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb .platform-tag { position: absolute; top: 10px; left: 10px; background: rgba(15,23,42,.8); color: #fff; padding: 3px 10px; border-radius: 8px; font-size: .72rem; font-weight: 600; }
.course-thumb .badge { position: absolute; top: 10px; right: 10px; }
.course-card .card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.course-instructor { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.course-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .85rem; }
.rating { font-weight: 700; color: #B45309; }
.reviews { color: var(--muted); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price-now { font-weight: 800; font-size: 1.1rem; }
.price-was { color: var(--muted); text-decoration: line-through; margin-left: 6px; font-size: .85rem; }
.price-free { font-weight: 800; color: var(--free); }
.affiliate-note { color: var(--muted); font-size: .7rem; margin: 8px 0 0; }

/* post card */
.post-card { padding: 0; overflow: hidden; }
.post-cover { display: block; aspect-ratio: 16/9; background: #E2E8F0; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 16px; }
.post-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* ---------- ad slots ---------- */
.ad-slot {
    display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #f8fafc 10px, #f8fafc 20px);
    border: 1px dashed var(--border); border-radius: 12px; color: var(--muted);
}
.ad-label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.ad-leaderboard { height: 90px; margin: 8px 0; }
.ad-in_feed { grid-column: 1 / -1; min-height: 110px; }
.ad-sidebar { min-height: 250px; }

/* ---------- newsletter ---------- */
.newsletter { background: linear-gradient(135deg, var(--ink), var(--brand)); color: #fff; padding: 52px 0; margin-top: 48px; }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: #fff; font-size: 1.8rem; margin: 0 0 10px; }
.newsletter-copy > p { color: #dbe4f5; margin: 0 0 16px; font-size: 1.02rem; }
.newsletter-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.newsletter-benefits li { color: #eef2ff; padding-left: 26px; position: relative; }
.newsletter-benefits li::before { content: "\2713"; position: absolute; left: 0; color: var(--free); font-weight: 800; }
.newsletter-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 22px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type=email] { flex: 1; padding: 13px 16px; border-radius: 999px; border: 0; font-size: 1rem; min-width: 0; }
.newsletter-fineprint { color: #c7d2e8; font-size: .82rem; margin: 12px 2px 0; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 24px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-col h4 { font-size: .9rem; }
.footer-col a { display: block; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.disclosure { max-width: 620px; margin: 0; }

.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-state code { background: #EEF2FF; padding: 2px 6px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav-toggle { display: flex; order: 3; margin-left: auto; }
    .search { order: 5; flex-basis: 100%; margin-left: 0; }
    .header-cta { display: none; }
    .main-nav {
        order: 4; flex-basis: 100%; flex-direction: column; gap: 4px;
        display: none; padding: 8px 0;
    }
    .main-nav.open { display: flex; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
    .category-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    /* Two columns on phones so thumbnails are not full-width and oversized. */
    .card-grid, .card-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-search { flex-direction: column; }
    .course-card .card-body { padding: 12px; }
    .card-title { font-size: .92rem; }
    .course-instructor { font-size: .78rem; margin-bottom: 6px; }
    .course-meta { font-size: .76rem; gap: 6px; margin-bottom: 8px; }
    .course-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .course-foot .btn { width: 100%; padding: 8px 10px; font-size: .85rem; }
    .price-now { font-size: 1rem; }
    .course-thumb .thumb-letter { font-size: 2.1rem; }
    .title-logo { width: 18px; height: 18px; }
    .detail-logo { width: 54px; height: 54px; }
}
@media (max-width: 380px) {
    /* Very small phones: single column to keep text readable. */
    .card-grid, .card-grid.grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Module 3 — listing & detail
   ============================================================ */
.breadcrumb { color: var(--muted); font-size: .85rem; margin: 20px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.muted { color: var(--muted); }

.listing { padding-bottom: 40px; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.listing-head h1 { margin: 0; }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.segmented a { padding: 7px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a.active { background: var(--brand); color: #fff; }

.listing-body { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 24px; }
.filter-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.filter-item { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.filter-item:hover { background: var(--bg); text-decoration: none; }
.filter-item.active { background: #EEF2FF; color: var(--brand-dark); font-weight: 600; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pills .pill { cursor: pointer; }
.pill.active { background: var(--brand); color: #fff; }

.result-count { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 28px; }
.page-link { padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.page-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-link.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-gap { color: var(--muted); padding: 0 4px; }

/* detail */
.detail { padding-bottom: 40px; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.detail-header { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.detail-logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.detail-header h1 { margin: 0 0 8px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-desc { margin-bottom: 32px; }
.detail-desc h2 { font-size: 1.2rem; }

.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.action-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.price-block { margin-bottom: 16px; }
.btn-block { display: flex; width: 100%; }
.btn.disabled { opacity: .6; cursor: default; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.facts li span { color: var(--muted); }

@media (max-width: 900px) {
    .listing-body { grid-template-columns: 1fr; }
    .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
}

/* ============================================================
   Module 4 — courses
   ============================================================ */
.disclosure-banner {
    background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
    padding: 10px 16px; border-radius: 12px; font-size: .85rem; margin: 16px 0;
}
.detail-thumb { width: 100%; border-radius: var(--radius); margin-bottom: 20px; aspect-ratio: 16/9; object-fit: cover; }
.detail-header .rating { font-weight: 700; color: #B45309; font-size: .9rem; }
.instructor-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 28px;
}
.instructor-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: #EEF2FF; color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}
.instructor-card span { display: block; font-size: .8rem; }
.instructor-card strong { font-size: 1rem; }

/* ============================================================
   Module 5 — search
   ============================================================ */
.search-hero { display: flex; gap: 8px; max-width: 640px; margin: 24px 0; }
.search-hero input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 1rem; }
.search-hero input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.search-title { margin: 8px 0 18px; font-size: 1.5rem; }
.search-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { background: var(--ink); color: #fff; }
.tabs a span { background: rgba(0,0,0,.08); border-radius: 999px; padding: 1px 8px; font-size: .75rem; }
.tabs a.active span { background: rgba(255,255,255,.2); }

/* ============================================================
   Module 6 — blog
   ============================================================ */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.featured-post {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; margin-bottom: 32px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); color: var(--ink);
}
.featured-post:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.featured-cover { background: #E2E8F0; min-height: 280px; }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: 1.6rem; margin: 12px 0; }
.featured-body p { color: var(--muted); margin: 0 0 16px; }

/* article */
.article-wrap { padding-bottom: 48px; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.article-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 12px 0 14px; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 22px; }
.affiliate-inline { font-size: .8rem; color: var(--muted); background: #FFFBEB; border: 1px solid #FDE68A; padding: 8px 14px; border-radius: 10px; }
.article-body { font-size: 1.06rem; line-height: 1.75; color: #1f2937; }
.article-body h2 { font-size: 1.5rem; margin: 32px 0 12px; scroll-margin-top: 84px; }
.article-body h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body img { max-width: 100%; border-radius: 12px; }
.article-body a { color: var(--brand); }

.article-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink); font-size: .9rem; }
.toc a:hover { color: var(--brand); }

@media (max-width: 900px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-cover { min-height: 200px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-side { position: static; }
}

/* flash messages (public) */
.flash { padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-size: .92rem; }
.flash-success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.flash-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* static content pages */
.static-page { max-width: 760px; padding: 48px 20px 64px; }
.static-page h1 { font-size: 2rem; margin-bottom: 24px; }
.page-body { line-height: 1.7; color: #1e293b; }
.page-body h2 { font-size: 1.4rem; margin: 28px 0 10px; }
.page-body h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.page-body p { margin: 0 0 14px; }
.page-body ul { margin: 0 0 14px; padding-left: 22px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--brand); }
.page-updated { margin-top: 28px; font-size: .85rem; }

/* inline ad slots placed via [ad:slug] shortcodes */
.ad-inline { margin: 24px 0; text-align: center; }

/* header & footer ad bands */
.ad-header { max-width: 970px; min-height: 90px; margin: 10px auto 0; text-align: center; }
.ad-footer { max-width: 970px; min-height: 90px; margin: 0 auto 10px; text-align: center; }

/* ---- Ad sizing: reserve space so loading ads do not shift the page (CLS) ---- */
:root {
    /* Leaderboard dimensions — change these to the size you will use. */
    --ad-lb-w: 970;   /* width in px (unitless) */
    --ad-lb-h: 250;   /* height in px (unitless) */
}
/* Any ad media scales to its container and never overflows. */
.ad-slot img, .ad-slot iframe, .ad-slot ins, .ad-slot > * { max-width: 100%; }
.ad-slot img { height: auto; display: block; }
/* AdSense responsive units collapse to 0 width inside the centered ad box
   and stay blank; give them a definite full width so they fill. */
.ad-slot ins.adsbygoogle { display: block; width: 100%; }

/* Leaderboard reserves its space up-front via aspect-ratio (responsive, no shift). */
.ad-leaderboard {
    width: 100%;
    max-width: calc(var(--ad-lb-w) * 1px);
    margin: 16px auto;
    aspect-ratio: var(--ad-lb-w) / var(--ad-lb-h);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ad-leaderboard img, .ad-leaderboard iframe, .ad-leaderboard ins {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.price-block .price-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* software cards reuse the course-card layout with a contained logo thumbnail */
.course-thumb .thumb-letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; font-weight: 800; color: var(--brand); background: #EEF2FF; }
.software-card .tag { background: #F1F5F9; color: var(--muted); padding: 3px 9px; border-radius: 6px; font-size: .75rem; }

.title-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; vertical-align: -4px; margin-right: 7px; }

/* admin tag checkboxes */
.tag-checkboxes { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tag-check { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 500; }

/* item tags on detail pages + tag archive */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-pill { display: inline-block; background: #EEF2FF; color: var(--brand); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.tag-pill:hover { background: var(--brand); color: #fff; text-decoration: none; }
.tag-archive-head { margin: 8px 0 24px; }

/* footer popular tags */
.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-tags a { display: inline-block; background: #F1F5F9; color: var(--brand); padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.footer-tags a:hover { background: var(--brand); color: #fff; }
@media (max-width: 720px) {
    .newsletter-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; }
}
