/* =============================================================
   ADM Education – Archive Page Styles  v2.0
   /astra-child/css/archive.css
   ============================================================= */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
.adm-archive-wrap,
.adm-cat-page {
    --accent:       #4F46E5;
    --accent-light: color-mix(in srgb, var(--accent) 12%, white);
    --text:         #111827;
    --text-2:       #4B5563;
    --text-3:       #9CA3AF;
    --border:       #E5E7EB;
    --surface:      #F9FAFB;
    --white:        #ffffff;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:    0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.14);

    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* ── Utility ──────────────────────────────────────────────── */
.adm-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.adm-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.adm-btn--accent,
.adm-btn--accent:link,
.adm-btn--accent:visited,
a.adm-btn--accent,
button.adm-btn--accent {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    text-decoration: none;
}
.adm-btn--accent:hover,
.adm-btn--accent:focus,
a.adm-btn--accent:hover,
a.adm-btn--accent:focus,
button.adm-btn--accent:hover,
button.adm-btn--accent:focus {
    color: #ffffff !important;
    background: color-mix(in srgb, var(--accent) 88%, black) !important;
}
.adm-btn--white,
a.adm-btn--white {
    background: #ffffff !important;
    color: var(--accent) !important;
}
.adm-btn--block { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   HERO – shared base
   ════════════════════════════════════════════════════════ */
.adm-hero {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 90%, #1e1b4b) 0%,
        color-mix(in srgb, var(--accent) 70%, #0f172a) 100%);
    margin-top: -90px;
    padding: 110px 24px 80px;
    overflow: hidden;
    position: relative;
}
/* Default "+" pattern (subcat hero if needed) */
.adm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Parent hero overrides (250px padding + orbit) ──────── */
.adm-hero--parent {
    padding: 160px 24px 80px;
}
.adm-hero--parent::before { display: none; } /* replaced by falling pattern */

/* Falling pattern overlay */
.adm-hero__pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.adm-hero__pattern::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,.07) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 35%, rgba(255,255,255,.05) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 55% 10%, rgba(255,255,255,.06) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,.05) 50%, transparent 50%),
        radial-gradient(2px 2px at 85% 20%, rgba(255,255,255,.04) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 60%, rgba(255,255,255,.05) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 20% 80%, rgba(255,255,255,.06) 50%, transparent 50%),
        radial-gradient(1px 1px at 65% 75%, rgba(255,255,255,.04) 50%, transparent 50%),
        repeating-linear-gradient(
            -55deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,.025) 18px,
            rgba(255,255,255,.025) 19px
        );
    background-size: 200px 200px, 160px 160px, 180px 180px, 140px 140px,
                     220px 220px, 170px 170px, 190px 190px, 150px 150px,
                     100% 100%;
    animation: adm-fall 18s linear infinite;
}
@keyframes adm-fall {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(40px, 80px); }
}

.adm-hero__inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.adm-hero--parent .adm-hero__inner {
    grid-template-columns: 1fr 480px;
    gap: 60px;
}

/* Breadcrumb */
.adm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 18px;
}
.adm-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.adm-breadcrumb a:hover { color: white; }
.adm-breadcrumb__sep { opacity: .5; }

/* Badge */
.adm-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: white;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: 18px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Title */
.adm-hero__title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -.02em;
}
.adm-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desc */
.adm-hero__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    max-width: 520px;
    margin: 0 0 28px;
}

/* Meta */
.adm-hero__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.adm-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.75);
    font-size: .875rem;
}

/* ═══════════════════════════════════════════════════════════
   ORBIT – concentric rings with tool dots
   ════════════════════════════════════════════════════════ */
.adm-hero__orbit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px;
}

.adm-orbit {
    position: relative;
    width: 460px;
    height: 460px;
    flex-shrink: 0;
}

/* Rings (purely visual — dots ride on tracks, not these) */
.adm-orbit__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.adm-orbit__ring--1 {
    inset: 0;
    border: 1.5px dashed rgba(255,255,255,.20);
}
.adm-orbit__ring--2 {
    inset: 15%;
    border: 1.5px dashed rgba(255,255,255,.22);
}
.adm-orbit__ring--3 {
    inset: 32%;
    border: 1.5px dashed rgba(255,255,255,.26);
}

/* Glows */
.adm-orbit__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .25;
    pointer-events: none;
}
.adm-orbit__glow--a {
    width: 200px; height: 200px;
    top: 10%; left: 5%;
    background: var(--accent);
}
.adm-orbit__glow--b {
    width: 160px; height: 160px;
    bottom: 15%; right: 8%;
    background: #fbbf24;
    opacity: .15;
}

/* Center label */
.adm-orbit__center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
}
.adm-orbit__center strong,
.adm-orbit__count {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.adm-orbit__label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
}

/* ── Tracks: invisible rotating containers (one per ring) ─── */
.adm-orbit__track {
    position: absolute;
    border-radius: 50%;
    transform-origin: 50% 50%;
}
.adm-orbit__track--1 {  /* outer ring orbit – slow clockwise */
    inset: 0;
    animation: adm-orbit-spin 38s linear infinite;
}
.adm-orbit__track--2 {  /* middle ring orbit – medium counter-clockwise */
    inset: 15%;
    animation: adm-orbit-spin 26s linear infinite reverse;
}
.adm-orbit__track--3 {  /* inner ring orbit – fast clockwise */
    inset: 32%;
    animation: adm-orbit-spin 18s linear infinite;
}

@keyframes adm-orbit-spin {
    from { transform: rotate(0deg);   }
    to   { transform: rotate(360deg); }
}

/* Dots — anchored at track center, then pushed to the ring edge by --track-r.
   The track's animation makes the whole arrangement spin, dragging the dot
   in a circle. We counter-rotate the dot's inner image so the icon stays
   visually upright as it orbits. */
.adm-orbit__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.12);
    z-index: 4;
    cursor: pointer;
    transform:
        rotate(var(--angle, 0deg))
        translateX(var(--track-r, 0px));
}

/* Per-track radius (half the track width) */
.adm-orbit__track--1 .adm-orbit__dot { --track-r: 230px; }
.adm-orbit__track--2 .adm-orbit__dot { --track-r: 161px; }
.adm-orbit__track--3 .adm-orbit__dot { --track-r:  83px; }

/* Counter-rotate the inner image so the icon stays roughly upright while orbiting.
   We pre-rotate the child by -angle, then animate it from -angle to -angle - 360deg
   so it returns to its starting orientation each full revolution. */
.adm-orbit__dot > * {
    display: block;
    pointer-events: none;
    transform-origin: 50% 50%;
}

/* Per-track counter-spin (must mirror the track's spin to keep icons upright).
   Each angle gets its own keyframes set inline via the dot's --angle variable
   would need @property; instead we apply a generic counter and accept that the
   icon's starting tilt equals --angle (logos are roughly symmetric so this
   looks natural in motion). */
.adm-orbit__track--1 .adm-orbit__dot > * { animation: adm-orbit-counter 38s linear infinite reverse; }
.adm-orbit__track--2 .adm-orbit__dot > * { animation: adm-orbit-counter 26s linear infinite; }
.adm-orbit__track--3 .adm-orbit__dot > * { animation: adm-orbit-counter 18s linear infinite reverse; }

@keyframes adm-orbit-counter {
    from { transform: rotate(0deg);    }
    to   { transform: rotate(360deg);  }
}

/* Hover state — slight scale via box-shadow boost */
.adm-orbit__dot:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.25);
    z-index: 10;
}

/* Brand colours */
.adm-orbit__dot--chatgpt   { background: #10a37f; }
.adm-orbit__dot--ads       { background: #4285f4; }
.adm-orbit__dot--meta      { background: #0866ff; }
.adm-orbit__dot--semrush   { background: #ff6429; }
.adm-orbit__dot--canva     { background: #7d2ae8; }
.adm-orbit__dot--mailchimp { background: #ffe01b; }
.adm-orbit__dot--mailchimp img { filter: brightness(0); }
.adm-orbit__dot--flag      { background: #22c55e; }

/* ── Why Box ──────────────────────────────────────────────── */
.adm-why { padding: 32px 24px; }
.adm-why__box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}
.adm-why__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    background: var(--accent-light);
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adm-why__box strong { font-family: 'Sora', sans-serif; font-size: 1rem; }
.adm-why__box p { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; }

/* ── Layout ───────────────────────────────────────────────── */
.adm-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 64px;
    align-items: start;
}

/* ── Section heading ──────────────────────────────────────── */
.adm-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.adm-section-sub {
    color: var(--text-2);
    font-size: .9rem;
    margin: 0 0 28px;
}

/* ── Post Cards ───────────────────────────────────────────── */
.adm-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border);
    margin-left: 20px;
    margin-bottom: 40px;
}

.adm-post-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 20px 24px;
    margin: 0 0 16px -2px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    text-decoration: none;
    color: inherit;
}
.adm-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--accent);
}

/* Step badge */
.adm-post-card__step {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px white, 0 0 0 5px var(--border);
    z-index: 2;
}

/* Thumbnail */
.adm-post-card__thumb {
    width: 88px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--accent-light);
    flex-shrink: 0;
}
.adm-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.adm-post-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: .6;
}

/* Card body */
.adm-post-card__title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.35;
}
.adm-post-card__title a {
    color: var(--text);
    text-decoration: none;
}
.adm-post-card__title a:hover { color: var(--accent); }

.adm-post-card__excerpt {
    color: var(--text-2);
    font-size: .85rem;
    margin: 0 0 10px;
    line-height: 1.5;
}

.adm-post-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--text-3);
}
.adm-post-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA link */
.adm-post-card__cta {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .15s;
}
.adm-post-card__cta:hover { background: var(--accent-light); }

/* ── Pagination ───────────────────────────────────────────── */
.adm-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.adm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.adm-pagination .page-numbers:hover,
.adm-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.adm-cta-banner {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 90%, #1e1b4b),
        color-mix(in srgb, var(--accent) 60%, #1e1b4b));
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.adm-cta-banner__icon {
    font-size: 2rem;
    background: rgba(255,255,255,.15);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-cta-banner__text { flex: 1; }
.adm-cta-banner__text strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    color: white;
    margin-bottom: 4px;
}
.adm-cta-banner__text strong em { font-style: normal; color: #fde68a; }
.adm-cta-banner__text p { color: rgba(255,255,255,.75); font-size: .875rem; margin: 0; }

/* ── Sidebar ──────────────────────────────────────────────── */
.adm-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.adm-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.adm-sidebar-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.adm-sidebar-card p {
    color: var(--text-2);
    font-size: .875rem;
    margin: 0 0 16px;
}

/* Download card */
.adm-sidebar-card--download { border-top: 4px solid var(--accent); text-align: center; }
.adm-sidebar-card__img-placeholder {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* Popular list */
.adm-popular-list { list-style: none; margin: 0; padding: 0; }
.adm-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.adm-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.adm-popular-item__thumb {
    width: 52px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface);
}
.adm-popular-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-popular-item__thumb-ph { width: 100%; height: 100%; background: var(--accent-light); }
.adm-popular-item__info a {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 2px;
    line-height: 1.35;
}
.adm-popular-item__info a:hover { color: var(--accent); }
.adm-popular-item__info span { font-size: .75rem; color: var(--text-3); }

/* Newsletter */
.adm-sidebar-card--newsletter { background: var(--accent-light); border-color: transparent; }
.adm-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.adm-newsletter-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .875rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    box-sizing: border-box;
}
.adm-newsletter-form input:focus { border-color: var(--accent); }
.adm-newsletter-form .adm-btn { width: 100%; justify-content: center; }
.adm-newsletter-form small { color: var(--text-3); font-size: .75rem; text-align: center; }

/* ── Animations on load ───────────────────────────────────── */
.adm-post-card {
    opacity: 0;
    transform: translateX(-16px);
    animation: adm-slide-in .4s forwards;
}
@keyframes adm-slide-in {
    to { opacity: 1; transform: translateX(0); }
}
.adm-post-card:nth-child(1)  { animation-delay: .05s; }
.adm-post-card:nth-child(2)  { animation-delay: .10s; }
.adm-post-card:nth-child(3)  { animation-delay: .15s; }
.adm-post-card:nth-child(4)  { animation-delay: .20s; }
.adm-post-card:nth-child(5)  { animation-delay: .25s; }
.adm-post-card:nth-child(6)  { animation-delay: .30s; }
.adm-post-card:nth-child(7)  { animation-delay: .35s; }
.adm-post-card:nth-child(8)  { animation-delay: .40s; }

/* ── No posts ─────────────────────────────────────────────── */
.adm-no-posts { color: var(--text-2); font-size: .9rem; padding: 16px 0; }

/* ═══════════════════════════════════════════════════════════
   FULL WIDTH FIX
   Forces the archive wrap to break out of Astra's content box
   ════════════════════════════════════════════════════════ */
.adm-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: 100vw;
    box-sizing: border-box;
}

/* Astra content area containers that may constrain width */
.ast-page-builder-template .site-content,
.ast-page-builder-template .entry-content,
.site-content .ast-container,
.entry-content .adm-archive-wrap,
.entry-content .adm-cat-page {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   SUB-CATEGORY CARD GRID (parent /learn/ page)
   ════════════════════════════════════════════════════════ */
.adm-subcats-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border);
    margin-left: 20px;
    margin-bottom: 40px;
}

.adm-subcat-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 22px 28px;
    margin: 0 0 16px -2px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    border-left: 4px solid var(--subcat-color, var(--accent));
}
.adm-subcat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--subcat-color, var(--accent));
}

/* Step number badge */
.adm-subcat-card__step {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--subcat-color, var(--accent));
    color: white;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px white, 0 0 0 5px var(--border);
    z-index: 2;
}

/* Icon circle */
.adm-subcat-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--subcat-color, var(--accent)) 12%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--subcat-color, var(--accent));
}
.adm-subcat-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--subcat-color, var(--accent));
}

/* Body */
.adm-subcat-card__body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.3;
}
.adm-subcat-card__body p {
    color: var(--text-2);
    font-size: .875rem;
    margin: 0 0 10px;
    line-height: 1.5;
}
.adm-subcat-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--text-3);
}
.adm-subcat-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA arrow */
.adm-subcat-card__cta {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--subcat-color, var(--accent));
    padding: 8px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--subcat-color, var(--accent)) 10%, white);
    transition: background .15s;
    flex-shrink: 0;
}
.adm-subcat-card:hover .adm-subcat-card__cta {
    background: color-mix(in srgb, var(--subcat-color, var(--accent)) 18%, white);
}

/* Subcat card animations */
.adm-subcat-card {
    opacity: 0;
    transform: translateX(-16px);
    animation: adm-slide-in .4s forwards;
}
.adm-subcat-card:nth-child(1)  { animation-delay: .04s; }
.adm-subcat-card:nth-child(2)  { animation-delay: .08s; }
.adm-subcat-card:nth-child(3)  { animation-delay: .12s; }
.adm-subcat-card:nth-child(4)  { animation-delay: .16s; }
.adm-subcat-card:nth-child(5)  { animation-delay: .20s; }
.adm-subcat-card:nth-child(6)  { animation-delay: .24s; }
.adm-subcat-card:nth-child(7)  { animation-delay: .28s; }
.adm-subcat-card:nth-child(8)  { animation-delay: .32s; }
.adm-subcat-card:nth-child(9)  { animation-delay: .36s; }
.adm-subcat-card:nth-child(10) { animation-delay: .40s; }
.adm-subcat-card:nth-child(11) { animation-delay: .44s; }
.adm-subcat-card:nth-child(12) { animation-delay: .48s; }


/* ═══════════════════════════════════════════════════════════
   SUBCATEGORY PAGE – SEOHub-style redesign
   ════════════════════════════════════════════════════════ */
.adm-cat-page {
    background: var(--surface);
    min-height: 100vh;
}

/* Container */
.adm-cat-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px 72px;
}

/* Breadcrumb */
.adm-cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-3);
    padding: 20px 0 18px;
}
.adm-cat-breadcrumb a {
    color: var(--text-2);
    text-decoration: none;
    transition: color .15s;
}
.adm-cat-breadcrumb a:hover { color: var(--accent); }
.adm-cat-breadcrumb span[aria-hidden] { opacity: .45; }

/* Grid: main + sidebar */
.adm-cat-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ── Hero Card ────────────────────────────────────────────── */
.adm-cat-hero-card {
    position: relative;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--accent) 85%, #1e1b4b) 0%,
        color-mix(in srgb, var(--accent) 55%, #0f172a) 100%
    );
    border-radius: 18px;
    padding: 44px 48px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: center;
    margin-bottom: 36px;
}
.adm-cat-hero-card__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.06) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Content side */
.adm-cat-hero-card__content {
    position: relative;
    z-index: 1;
}
.adm-cat-hero-card__badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    padding: 3px 11px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.adm-cat-hero-card__title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -.025em;
}
.adm-cat-hero-card__subtitle {
    font-size: 1.02rem;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 0 24px;
}

/* CTA row */
.adm-cat-hero-card__cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.adm-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.adm-cat-btn:hover { transform: translateY(-1px); }
.adm-cat-btn--primary {
    background: white;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.adm-cat-btn--primary:hover { box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.adm-cat-btn--ghost {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1px solid rgba(255,255,255,.2);
}
.adm-cat-btn--ghost:hover { background: rgba(255,255,255,.2); }

/* Trending tags */
.adm-cat-hero-card__trending {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.adm-cat-hero-card__trending-label {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.adm-cat-hero-card__tag {
    font-size: .72rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.08);
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.1);
}

/* Visual / illustration side */
.adm-cat-hero-card__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.adm-cat-hero-card__visual svg {
    width: 100%;
    max-width: 240px;
    height: auto;
    opacity: .85;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.2));
}

/* ── Guide Cards Grid ─────────────────────────────────────── */
.adm-cat-guides {
    margin-bottom: 36px;
}
.adm-cat-guides__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.adm-cat-guides__title {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.adm-cat-guides__sub {
    color: var(--text-2);
    font-size: .88rem;
    margin: 0 0 22px;
}
.adm-cat-guides__viewall {
    font-family: 'Sora', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.adm-cat-guides__viewall:hover { text-decoration: underline; }

.adm-cat-guides__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual guide card */
.adm-guide-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px);
    animation: adm-card-up .45s forwards;
}
@keyframes adm-card-up {
    to { opacity: 1; transform: translateY(0); }
}
.adm-guide-card:nth-child(1)  { animation-delay: .05s; }
.adm-guide-card:nth-child(2)  { animation-delay: .10s; }
.adm-guide-card:nth-child(3)  { animation-delay: .15s; }
.adm-guide-card:nth-child(4)  { animation-delay: .20s; }
.adm-guide-card:nth-child(5)  { animation-delay: .25s; }
.adm-guide-card:nth-child(6)  { animation-delay: .30s; }
.adm-guide-card:nth-child(7)  { animation-delay: .35s; }
.adm-guide-card:nth-child(8)  { animation-delay: .40s; }

.adm-guide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--c-from, var(--accent)) 40%, var(--border));
}

/* Visual top band */
.adm-guide-card__visual {
    height: 130px;
    background: linear-gradient(135deg, var(--c-from, #6366f1), var(--c-to, #818cf8));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.adm-guide-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(255,255,255,.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%);
    pointer-events: none;
}
.adm-guide-card__visual svg {
    width: 64px;
    height: 64px;
    opacity: .35;
    position: relative;
    z-index: 1;
}

/* Badge */
.adm-guide-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--badge-c, #4F46E5);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    padding: 3px 9px;
    border-radius: 6px;
    z-index: 2;
}

/* Body */
.adm-guide-card__body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.adm-guide-card__heading {
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 8px;
}
a.adm-guide-card .adm-guide-card__heading:hover,
.adm-guide-card__link:hover .adm-guide-card__heading { color: var(--accent); }

.adm-guide-card__desc {
    font-size: .82rem;
    color: var(--text-2);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.adm-guide-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.adm-guide-card__time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--text-3);
}
.adm-guide-card__time svg {
    width: 14px; height: 14px;
    opacity: .6;
}
.adm-guide-card__bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.adm-guide-card__bookmark:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.adm-guide-card__bookmark.is-bookmarked {
    color: var(--accent);
}
.adm-guide-card__bookmark svg {
    width: 16px; height: 16px;
}

/* ── "New to X?" CTA Banner ──────────────────────────────── */
.adm-cat-newto {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--accent-light);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 36px;
}
.adm-cat-newto__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.adm-cat-newto__text {
    flex: 1;
}
.adm-cat-newto__text strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.adm-cat-newto__text p {
    color: var(--text-2);
    font-size: .84rem;
    margin: 0;
}
.adm-cat-newto__cta {
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s;
}
.adm-cat-newto__cta:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   SUBCATEGORY SIDEBAR CARDS
   ════════════════════════════════════════════════════════ */
.adm-cat-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.adm-cat-sb {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

/* Header with icon */
.adm-cat-sb__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.adm-cat-sb__header h3 {
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.adm-cat-sb__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-cat-sb__icon svg {
    width: 16px; height: 16px;
}
.adm-cat-sb__icon--accent {
    background: var(--accent-light);
    color: var(--accent);
}
.adm-cat-sb__icon--accent svg {
    stroke: var(--accent);
    fill: none;
}

/* Featured resources list */
.adm-cat-sb__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.adm-cat-sb__list li {
    border-bottom: 1px solid var(--border);
}
.adm-cat-sb__list li:last-child { border-bottom: none; }
.adm-cat-sb__list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text);
    font-size: .84rem;
    font-weight: 500;
    transition: color .15s;
}
.adm-cat-sb__list li a:hover { color: var(--accent); }

.adm-cat-sb__list-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-cat-sb__list-icon svg {
    width: 14px; height: 14px;
}
.adm-cat-sb__list-label { flex: 1; }
.adm-cat-sb__list-arrow {
    color: var(--text-3);
    flex-shrink: 0;
}
.adm-cat-sb__list-arrow svg {
    width: 14px; height: 14px;
}

/* Download card */
.adm-cat-sb--download {
    background: color-mix(in srgb, var(--accent) 6%, white);
    border-color: color-mix(in srgb, var(--accent) 16%, white);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}
.adm-cat-sb__download-text h3 {
    font-family: 'Sora', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.adm-cat-sb__download-text p {
    font-size: .78rem;
    color: var(--text-2);
    margin: 0 0 12px;
    line-height: 1.5;
}
.adm-cat-sb__download-text .adm-cat-btn {
    padding: 7px 14px;
    font-size: .75rem;
}
.adm-cat-sb__download-art {
    width: 80px;
    flex-shrink: 0;
}
.adm-cat-sb__download-art svg {
    width: 100%;
    height: auto;
}

/* Tools list */
.adm-cat-sb__tools-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.adm-cat-sb__tools-list li {
    border-bottom: 1px solid var(--border);
}
.adm-cat-sb__tools-list li:last-child { border-bottom: none; }
.adm-cat-sb__tools-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    text-decoration: none;
    color: var(--text);
    font-size: .84rem;
    font-weight: 500;
    transition: color .15s;
}
.adm-cat-sb__tools-list li a:hover { color: var(--accent); }

.adm-cat-sb__tool-ic {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-cat-sb__tool-ic svg {
    width: 14px; height: 14px;
    stroke: var(--accent);
    fill: none;
}
.adm-cat-sb__tool-label { flex: 1; }
.adm-cat-sb__tool-ext {
    color: var(--text-3);
    flex-shrink: 0;
}
.adm-cat-sb__tool-ext svg {
    width: 13px; height: 13px;
}

/* View all link */
.adm-cat-sb__viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Sora', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
}
.adm-cat-sb__viewall:hover { text-decoration: underline; }
.adm-cat-sb__viewall svg {
    width: 14px; height: 14px;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – parent page
   ════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Switch hero inner from grid to flexbox column:
       text block first, orbit circle below it */
    .adm-hero--parent .adm-hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .adm-hero__content {
        width: 100%;
        text-align: left;
    }
    .adm-hero--parent { padding: 160px 24px 120px; }

    /* Orbit: visible, centered, scaled to 65% so dots stay inside viewport */
    .adm-hero__orbit {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 320px;
        overflow: hidden;
    }
    .adm-orbit {
        width: 460px;
        height: 460px;
        transform: scale(0.65);
        transform-origin: center center;
        flex-shrink: 0;
    }

    .adm-layout { grid-template-columns: 1fr; }
    .adm-sidebar { position: static; }
    .adm-post-card { grid-template-columns: 72px 1fr; }
    .adm-post-card__cta { display: none; }
    .adm-post-card__thumb { width: 72px; height: 58px; }
    .adm-subcat-card { grid-template-columns: 54px 1fr; }
    .adm-subcat-card__cta { display: none; }
}

@media (max-width: 560px) {
    .adm-hero { padding: 40px 20px 56px; }
    .adm-hero--parent { padding: 100px 20px 80px; }
    .adm-hero__title { font-size: 1.75rem; }
    .adm-cta-banner { flex-direction: column; text-align: center; }
    .adm-post-card { grid-template-columns: 1fr; }
    .adm-post-card__thumb { width: 100%; height: 160px; border-radius: 10px 10px 0 0; }
    .adm-post-card { padding: 0 0 16px; }
    .adm-post-card__body { padding: 0 16px; }
    .adm-post-card__step { left: 50%; transform: translateX(-50%) translateY(0); top: -18px; }
    .adm-subcat-card { grid-template-columns: 1fr; padding: 20px 16px 20px 20px; }
    .adm-subcat-card__icon { width: 48px; height: 48px; border-radius: 12px; }
    .adm-subcat-card__icon svg { width: 22px; height: 22px; }
    .adm-subcat-card__step { top: 20px; transform: none; }

    /* Orbit: scale down further on small phones */
    .adm-hero__orbit {
        height: 260px;
    }
    .adm-orbit {
        transform: scale(0.52);
    }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – subcategory page
   ════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
    .adm-cat-guides__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .adm-cat-grid {
        grid-template-columns: 1fr;
    }
    .adm-cat-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .adm-cat-sb--download {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .adm-cat-hero-card {
        grid-template-columns: 1fr;
        padding: 32px 28px;
    }
    .adm-cat-hero-card__visual { display: none; }
    .adm-cat-guides__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adm-cat-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .adm-cat-container { padding: 0 16px 48px; }
    .adm-cat-hero-card { padding: 24px 20px; border-radius: 14px; }
    .adm-cat-hero-card__title { font-size: 1.6rem; }
    .adm-cat-hero-card__subtitle { font-size: .92rem; }
    .adm-cat-btn { padding: 9px 16px; font-size: .78rem; }
    .adm-cat-guides__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .adm-guide-card__visual { height: 100px; }
    .adm-cat-newto {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .adm-cat-newto__cta { width: 100%; text-align: center; display: block; }
    .adm-cat-sb { padding: 18px; }
    .adm-cat-sb--download {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .adm-cat-sb__download-art { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   v2.1 ADDITIONS
   ════════════════════════════════════════════════════════ */

/* ── Parent hero: meta-row stays single line where possible ─ */
.adm-hero__meta {
    flex-wrap: wrap;
    row-gap: 8px;
}

/* ── Subcategory hero card: stats row under trending ───────── */
.adm-cat-hero-card__stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}
.adm-cat-hero-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.adm-cat-hero-card__stat svg {
    opacity: .85;
}
.adm-cat-hero-card__stat-sep {
    opacity: .4;
}

/* ── Popular Blogs sidebar card (parent /learn/ page) ──────── */
.adm-sidebar-card--popular {
    padding-bottom: 8px;
}
.adm-sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.adm-sidebar-card__header h3 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.adm-sidebar-card__header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Override the legacy .adm-popular-list / .adm-popular-item to support a rank */
.adm-sidebar-card--popular .adm-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.adm-sidebar-card--popular .adm-popular-item {
    display: grid;
    grid-template-columns: 22px 52px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.adm-sidebar-card--popular .adm-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}
.adm-popular-item__rank {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    line-height: 1;
    opacity: .55;
}
.adm-sidebar-card--popular .adm-popular-item__thumb {
    width: 52px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--accent-light);
}
.adm-sidebar-card--popular .adm-popular-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Empty-state for subcategory guides grid ───────────────── */
.adm-cat-guides__empty {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 56px 32px;
    text-align: center;
    color: var(--text-2);
}
.adm-cat-guides__empty svg {
    color: var(--text-3);
    margin-bottom: 16px;
}
.adm-cat-guides__empty h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}
.adm-cat-guides__empty p {
    margin: 0 auto 20px;
    max-width: 420px;
    font-size: .9rem;
    line-height: 1.55;
}
.adm-cat-guides__empty .adm-cat-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border: none;
}

/* ── Bookmark button: ensure it's interactive (was a span) ─── */
button.adm-guide-card__bookmark {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-3);
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
button.adm-guide-card__bookmark:hover {
    background: var(--accent-light);
    color: var(--accent);
}
button.adm-guide-card__bookmark.is-bookmarked,
button.adm-guide-card__bookmark.is-bookmarked svg {
    color: var(--accent);
    fill: currentColor;
}


/* ═══════════════════════════════════════════════════════════
   FIX 1 – Header background on subcategory pages
   The body gets class adm-archive-page (functions.php line 84).
   Target Astra's header elements to show a solid dark background.
   ════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   CHANGE 2 – Header background: solid blue on ALL archive pages
   (subcategory pages: /learn/seo/, /learn/email-marketing/ etc.)
   Covers every Astra header class combination.
   ════════════════════════════════════════════════════════ */
.adm-archive-page #masthead,
.adm-archive-page .main-header-bar,
.adm-archive-page .site-header,
.adm-archive-page header.site-header,
.adm-archive-page .ast-primary-header-bar,
.adm-archive-page .ast-masthead-custom-menu-items,
.adm-archive-page .ast-above-header,
.adm-archive-page .ast-below-header,
.adm-archive-page .ast-header-wrap,
.adm-archive-page #ast-fixed-header,
.adm-archive-page .main-header-bar-wrap {
    background-color: #3730a3 !important;
    background: #3730a3 !important;
}
/* Nav links white */
.adm-archive-page #masthead .main-header-menu .menu-item > a,
.adm-archive-page #masthead .main-header-menu .menu-item > a:visited,
.adm-archive-page .main-header-bar .main-header-menu a,
.adm-archive-page .ast-primary-header-bar .main-header-menu a,
.adm-archive-page header.site-header .site-title a,
.adm-archive-page header.site-header .site-description,
.adm-archive-page .main-header-bar nav a,
.adm-archive-page #masthead nav a {
    color: #ffffff !important;
}
.adm-archive-page #masthead .main-header-menu .menu-item > a:hover,
.adm-archive-page .main-header-bar .main-header-menu a:hover {
    color: rgba(255,255,255,.78) !important;
}

/* ═══════════════════════════════════════════════════════════
   CHANGE 3 – Trending tags: plain labels (no links), better design
   ════════════════════════════════════════════════════════ */
.adm-cat-hero-card__trending {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.adm-cat-hero-card__trending-label {
    font-size: .68rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,.6) !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    flex-shrink: 0;
}
.adm-cat-hero-card__tag {
    display: inline-flex;
    align-items: center;
    font-size: .75rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    padding: 4px 12px !important;
    border-radius: 100px !important;
    cursor: default;
    text-decoration: none !important;
    letter-spacing: .01em;
}

/* ═══════════════════════════════════════════════════════════
   FIX 3 – Guide grid: 3 columns instead of 4
   ════════════════════════════════════════════════════════ */
.adm-cat-guides__grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 860px) {
    .adm-cat-guides__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 560px) {
    .adm-cat-guides__grid {
        grid-template-columns: 1fr !important;
    }
}
