/* =============================================
   HUB LANDING PAGES — Zodiac Animals & Knowledge
   Scoped under .hub-zodiac-landing / .hub-knowledge-landing
   ============================================= */

/* ── CSS Custom Properties ── */
.hub-zodiac-landing,
.hub-knowledge-landing {
    --hub-primary: var(--g-color);
    --hub-primary-dark: var(--g-color);
    --hub-primary-light: var(--g-color);
    --hub-gold: #D4A520;
    --hub-gold-light: #F0D060;
    --hub-dark: #1A1A2E;
    --hub-dark-alt: #16213E;
    --hub-body-bg: #FDFCFA;
    --hub-card-bg: #FFFFFF;
    --hub-text: #2D2D2D;
    --hub-text-muted: #6B7280;
    --hub-border: #E5E1DB;
    --hub-section-alt: #F5F1EB;
    --hub-section-warm: #FAF7F2;
    --hub-radius: 12px;
    --hub-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --hub-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --hub-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --hub-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --hub-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hub-container: 1170px;
    --hub-section-gap: 72px;
}

/* ── Base / Reset ── */
.hub-zodiac-landing,
.hub-knowledge-landing {
    color: var(--hub-text);
    line-height: 1.7;
    overflow-x: hidden;
}
.hub-zodiac-landing *,
.hub-zodiac-landing *::before,
.hub-zodiac-landing *::after,
.hub-knowledge-landing *,
.hub-knowledge-landing *::before,
.hub-knowledge-landing *::after {
    box-sizing: border-box;
}
.hub-zodiac-landing img,
.hub-knowledge-landing img {
    max-width: 100%;
    height: auto;
    display: block;
}
.hub-zodiac-landing a,
.hub-knowledge-landing a {
    text-decoration: none;
    color: inherit;
    transition: color var(--hub-transition);
}
.hub-zodiac-landing h2,
.hub-zodiac-landing h3,
.hub-knowledge-landing h2,
.hub-knowledge-landing h3 {
    margin: 0 0 0.5em;
    line-height: 1.3;
}


/* =============================================
   1. HUB CONTAINER & BASE
   ============================================= */
.hub-container {
    max-width: var(--hub-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Section Spacing ── */
.hub-zodiac-landing > section,
.hub-knowledge-landing > section {
    padding: var(--hub-section-gap) 0;
}

/* ── Section Header (shared) ── */
.hub-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.hub-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--hub-text);
    margin-bottom: 16px;
}
.hub-section-header p {
    font-size: 17px;
    color: var(--hub-text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =============================================
   2. HUB HERO
   ============================================= */
.hub-hero {
    background: linear-gradient(135deg, var(--hub-dark) 0%, var(--hub-dark-alt) 60%, #0F3460 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
}
.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 75%, color-mix(in srgb, var(--hub-primary) 8%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(212, 165, 32, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hub-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hub-hero__container {
    max-width: var(--hub-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.hub-hero__emoji {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hub-primary) 15%, transparent) 0%, color-mix(in srgb, var(--hub-gold) 12%, transparent) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hub-hero__content {
    flex: 1;
    min-width: 0;
}

.hub-hero__breadcrumb {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hub-gold);
    margin-bottom: 14px;
}
.hub-hero__breadcrumb a {
    color: var(--hub-gold);
    opacity: 0.75;
    transition: opacity var(--hub-transition);
}
.hub-hero__breadcrumb a:hover {
    opacity: 1;
}
.hub-hero__breadcrumb span {
    margin: 0 8px;
    opacity: 0.4;
}

.hub-hero__title {
    font-size: 40px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin: 0 0 16px;
}

.hub-hero__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
}


/* =============================================
   3. HUB INTRO
   ============================================= */
.hub-intro {
    background: var(--hub-body-bg);
}
.hub-intro__content {
    max-width: 820px;
    margin: 0 auto;
}
.hub-intro__content h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--hub-text);
}
.hub-intro__content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--hub-text);
    margin-bottom: 16px;
}
.hub-intro__content p:last-child {
    margin-bottom: 0;
}
.hub-intro__content a {
    color: var(--hub-primary);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--hub-transition), color var(--hub-transition);
}
.hub-intro__content a:hover {
    border-bottom-color: var(--hub-primary);
    color: var(--hub-primary-dark);
}


/* =============================================
   4. QUICK INFO TABLE
   ============================================= */
.hub-quickinfo {
    background: var(--hub-section-warm);
}
.hub-quickinfo__table-wrapper {
    max-width: 720px;
    margin: 0 auto;
}
.hub-quickinfo__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    overflow: hidden;
    box-shadow: var(--hub-shadow-sm);
}
.hub-quickinfo__table caption {
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    color: var(--hub-text);
    caption-side: top;
}
.hub-quickinfo__table tr {
    transition: background var(--hub-transition);
}
.hub-quickinfo__table tr:nth-child(even) {
    background: var(--hub-section-warm);
}
.hub-quickinfo__table tr:hover {
    background: color-mix(in srgb, var(--hub-primary) 3%, transparent);
}
.hub-quickinfo__table th,
.hub-quickinfo__table td {
    padding: 14px 24px;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid var(--hub-border);
    vertical-align: middle;
}
.hub-quickinfo__table tr:last-child th,
.hub-quickinfo__table tr:last-child td {
    border-bottom: none;
}
.hub-quickinfo__table th {
    text-align: left;
    width: 160px;
    font-weight: 600;
    color: var(--hub-text);
    background: rgba(0, 0, 0, 0.015);
    white-space: nowrap;
}
.hub-quickinfo__table td {
    color: var(--hub-text);
    font-weight: 400;
}
.hub-quickinfo__table td strong {
    color: var(--hub-primary);
    font-weight: 600;
}


/* =============================================
   5. PILLAR CARDS GRID
   ============================================= */
.hub-pillars {
    background: var(--hub-body-bg);
}
.hub-pillars__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ── Pillar Card ── */
.hub-pillar-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow-sm);
    transition: all var(--hub-transition);
    text-decoration: none;
    color: var(--hub-text);
}
.hub-pillar-card:hover {
    box-shadow: var(--hub-shadow-md);
    border-color: var(--hub-primary);
    color: var(--hub-text);
}
.hub-pillar-card:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}

.hub-pillar-card__thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hub-section-alt);
}
.hub-pillar-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hub-transition);
}
.hub-pillar-card:hover .hub-pillar-card__thumb img {
}

/* Placeholder when no thumbnail */
.hub-pillar-card__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hub-section-alt), var(--hub-border));
    font-size: 32px;
    color: var(--hub-text-muted);
}

.hub-pillar-card__body {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}
.hub-pillar-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--hub-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--hub-transition);
}
.hub-pillar-card:hover .hub-pillar-card__title {
    color: var(--hub-primary);
}
.hub-pillar-card__excerpt {
    font-size: 14px;
    color: var(--hub-text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =============================================
   6. YEAR CARDS GRID
   ============================================= */
.hub-years {
    background: var(--hub-section-warm);
}
.hub-years__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Year Card ── */
.hub-year-card {
    display: block;
    padding: 20px;
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-left: 3px solid var(--hub-gold);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow-sm);
    transition: all var(--hub-transition);
    text-decoration: none;
    color: var(--hub-text);
}
.hub-year-card:hover {
    box-shadow: var(--hub-shadow-md);
    border-left-color: var(--hub-primary);
    color: var(--hub-text);
}
.hub-year-card:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}

.hub-year-card__canchi {
    font-size: 18px;
    font-weight: 700;
    color: var(--hub-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.hub-year-card__year {
    display: inline-block;
    font-size: 14px;
    color: var(--hub-text-muted);
    background: var(--hub-section-alt);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.hub-year-card__napam {
    font-size: 14px;
    color: var(--hub-gold);
    margin: 0 0 12px;
    font-weight: 500;
    line-height: 1.4;
}

.hub-year-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hub-primary);
    transition: gap var(--hub-transition), color var(--hub-transition);
}
.hub-year-card__link::after {
    content: '→';
    transition: transform var(--hub-transition);
    font-size: 14px;
}
.hub-year-card:hover .hub-year-card__link {
    color: var(--hub-primary-dark);
}
.hub-year-card:hover .hub-year-card__link::after {
    transform: translateX(4px);
}


/* =============================================
   7. POST GROUPS (Accordion)
   ============================================= */
.hub-groups {
    background: var(--hub-body-bg);
}
.hub-groups__list {
    max-width: 860px;
    margin: 0 auto;
}

.hub-group {
    margin-bottom: 16px;
}
.hub-group:last-child {
    margin-bottom: 0;
}

/* ── Group Header (toggle button) ── */
.hub-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    cursor: pointer;
    transition: all var(--hub-transition);
    font-family: inherit;
    gap: 16px;
    text-align: left;
}
.hub-group__header:hover {
    box-shadow: var(--hub-shadow);
    border-color: var(--hub-primary);
}
.hub-group__header:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}

.hub-group__header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--hub-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.hub-group__toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hub-section-alt);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform var(--hub-transition), background var(--hub-transition), color var(--hub-transition);
    color: var(--hub-text-muted);
}

/* Open state */
.hub-group.is-open .hub-group__header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}
.hub-group.is-open .hub-group__toggle {
    transform: rotate(45deg);
    background: var(--hub-primary);
    color: #FFFFFF;
}

/* ── Group Content (collapsible) ── */
.hub-group__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-top: none;
    border-radius: 0 0 var(--hub-radius) var(--hub-radius);
    /* Hidden by default — border only shows when open */
    border-color: transparent;
}
.hub-group.is-open .hub-group__content {
    max-height: 2000px;
    border-color: var(--hub-border);
    border-top-color: transparent;
}

/* ── Post list inside group ── */
.hub-group__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hub-group__post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--hub-border);
    transition: background var(--hub-transition);
    text-decoration: none;
    color: var(--hub-text);
}
.hub-group__post:last-child {
    border-bottom: none;
}
.hub-group__post:hover {
    background: var(--hub-section-warm);
}

.hub-group__post-title {
    font-size: 15px;
    line-height: 1.5;
    color: var(--hub-text);
    transition: color var(--hub-transition);
    flex: 1;
    min-width: 0;
}
.hub-group__post:hover .hub-group__post-title {
    color: var(--hub-primary);
}

.hub-group__post-count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--hub-text-muted);
    background: var(--hub-section-alt);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    line-height: 1.5;
}


/* =============================================
   8. LATEST POSTS GRID
   ============================================= */
.hub-latest {
    background: var(--hub-section-warm);
}
.hub-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Latest Card ── */
.hub-latest-card {
    display: block;
    background: var(--hub-card-bg);
    border-radius: var(--hub-radius);
    overflow: hidden;
    border: 1px solid var(--hub-border);
    box-shadow: var(--hub-shadow-sm);
    transition: all var(--hub-transition);
    text-decoration: none;
    color: var(--hub-text);
}
.hub-latest-card:hover {
    box-shadow: var(--hub-shadow-md);
    color: var(--hub-text);
}
.hub-latest-card:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}

.hub-latest-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hub-section-alt);
}
.hub-latest-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hub-transition);
}
.hub-latest-card:hover .hub-latest-card__thumb img {
}

.hub-latest-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--hub-primary);
    color: #FFFFFF;
    border-radius: 4px;
    line-height: 1.4;
}

.hub-latest-card__body {
    padding: 20px;
}

.hub-latest-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
    color: var(--hub-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--hub-transition);
}
.hub-latest-card:hover .hub-latest-card__title {
    color: var(--hub-primary);
}

.hub-latest-card__excerpt {
    font-size: 14px;
    color: var(--hub-text-muted);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Thumbnail placeholder */
.hub-latest-card__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hub-section-alt), var(--hub-border));
    font-size: 32px;
    color: var(--hub-text-muted);
}


/* =============================================
   9. FAQ (Accordion)
   ============================================= */
.hub-faq {
    background: var(--hub-body-bg);
}
.hub-faq__list {
    max-width: 800px;
    margin: 0 auto;
}
.hub-faq__item {
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    margin-bottom: 12px;
    background: var(--hub-card-bg);
    overflow: hidden;
    transition: box-shadow var(--hub-transition);
}
.hub-faq__item:last-child {
    margin-bottom: 0;
}
.hub-faq__item:hover {
    box-shadow: var(--hub-shadow);
}

.hub-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hub-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    gap: 16px;
    transition: color var(--hub-transition);
    font-family: inherit;
}
.hub-faq__question:hover {
    color: var(--hub-primary);
}
.hub-faq__question:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: -3px;
    border-radius: var(--hub-radius);
}

.hub-faq__question-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hub-section-alt);
    font-size: 18px;
    line-height: 1;
    transition: transform var(--hub-transition), background var(--hub-transition), color var(--hub-transition);
    color: var(--hub-text-muted);
}
.hub-faq__item.is-open .hub-faq__question-icon {
    transform: rotate(45deg);
    background: var(--hub-primary);
    color: #FFFFFF;
}

.hub-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.hub-faq__answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--hub-text-muted);
    line-height: 1.7;
}
.hub-faq__answer-inner p {
    margin: 0 0 12px;
}
.hub-faq__answer-inner p:last-child {
    margin-bottom: 0;
}
.hub-faq__item.is-open .hub-faq__answer {
    max-height: 500px;
}


/* =============================================
   10. KNOWLEDGE-SPECIFIC — STARTER CARDS
   ============================================= */
.hub-starter {
    background: var(--hub-section-warm);
}
.hub-starter__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Starter Card ── */
.hub-starter-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--hub-card-bg);
    border-radius: var(--hub-radius);
    border: 1px solid var(--hub-border);
    box-shadow: var(--hub-shadow-sm);
    transition: all var(--hub-transition);
}
.hub-starter-card:hover {
    box-shadow: var(--hub-shadow-md);
    border-color: var(--hub-primary);
}
.hub-starter-card:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}

.hub-starter-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 10px;
    margin-bottom: 18px;
    color: var(--hub-text);
    line-height: 1;
    transition: transform var(--hub-transition);
}
.hub-starter-card:hover .hub-starter-card__icon {
}

.hub-starter-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--hub-text);
    line-height: 1.3;
}

.hub-starter-card__desc {
    font-size: 14px;
    color: var(--hub-text-muted);
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.hub-starter-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hub-primary);
    transition: gap var(--hub-transition), color var(--hub-transition);
}
.hub-starter-card__link::after {
    content: '→';
    transition: transform var(--hub-transition);
}
.hub-starter-card:hover .hub-starter-card__link {
    color: var(--hub-primary-dark);
}
.hub-starter-card:hover .hub-starter-card__link::after {
    transform: translateX(4px);
}


/* =============================================
   10b. KNOWLEDGE-SPECIFIC — KNOWLEDGE GROUPS
   ============================================= */
.hub-kgroups {
    background: var(--hub-body-bg);
}

.hub-kgroup {
    margin-bottom: 48px;
}
.hub-kgroup:last-child {
    margin-bottom: 0;
}

.hub-kgroup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--hub-border);
}
.hub-kgroup__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hub-primary) 10%, transparent), color-mix(in srgb, var(--hub-primary) 5%, transparent));
    border-radius: 8px;
    line-height: 1;
}
.hub-kgroup__header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0;
}

.hub-kgroup__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hub-kgroup__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--hub-text);
    transition: all var(--hub-transition);
    text-decoration: none;
    line-height: 1.4;
}
.hub-kgroup__link:hover {
    background: var(--hub-section-warm);
    border-color: var(--hub-primary);
    color: var(--hub-primary);
    transform: translateX(4px);
}
.hub-kgroup__link:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}
.hub-kgroup__link::before {
    content: '›';
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hub-primary);
    opacity: 0.5;
    transition: opacity var(--hub-transition);
    line-height: 1;
}
.hub-kgroup__link:hover::before {
    opacity: 1;
}


/* =============================================
   UTILITY — "See More" / CTA Links
   ============================================= */
.hub-section-cta {
    text-align: center;
    margin-top: 36px;
}
.hub-section-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hub-primary);
    border: 2px solid var(--hub-primary);
    border-radius: 8px;
    transition: all var(--hub-transition);
    text-decoration: none;
    line-height: 1.4;
}
.hub-section-cta__link:hover {
    background: var(--hub-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--hub-primary) 25%, transparent);
}
.hub-section-cta__link:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 4px;
}
.hub-section-cta__link::after {
    content: '→';
    transition: transform var(--hub-transition);
}
.hub-section-cta__link:hover::after {
    transform: translateX(4px);
}


/* =============================================
   UTILITY — Disclaimer
   ============================================= */
.hub-disclaimer {
    background: #F3F0EB;
    padding: 40px 0 !important;
}
.hub-disclaimer__inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 820px;
    margin: 0 auto;
}
.hub-disclaimer__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.1);
    color: var(--hub-text-muted);
    font-size: 18px;
    line-height: 1;
}
.hub-disclaimer__text {
    font-size: 14px;
    color: var(--hub-text-muted);
    line-height: 1.7;
    margin: 0;
}


/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .hub-zodiac-landing,
    .hub-knowledge-landing {
        --hub-section-gap: 60px;
    }

    /* Hero */
    .hub-hero {
        padding: 48px 0 56px;
    }
    .hub-hero__title {
        font-size: 34px;
    }
    .hub-hero__emoji {
        width: 80px;
        height: 80px;
        font-size: 56px;
    }

    /* Section header */
    .hub-section-header h2 {
        font-size: 28px;
    }

    /* Pillar cards — keep 2 columns */
    .hub-pillars__grid {
        gap: 16px;
    }

    /* Year cards — 2 columns */
    .hub-years__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Latest — 2 columns */
    .hub-latest__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Starter — 2 columns */
    .hub-starter__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Knowledge groups — 2 columns */
    .hub-kgroup__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =============================================
   RESPONSIVE — TABLET SMALL (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
    .hub-zodiac-landing,
    .hub-knowledge-landing {
        --hub-section-gap: 52px;
    }

    /* Section header */
    .hub-section-header h2 {
        font-size: 24px;
    }
    .hub-section-header p {
        font-size: 15px;
    }
    .hub-section-header {
        margin-bottom: 36px;
    }

    /* Hero — stack vertically */
    .hub-hero {
        padding: 40px 0 48px;
    }
    .hub-hero__container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hub-hero__title {
        font-size: 30px;
    }
    .hub-hero__desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
    }
    .hub-hero__emoji {
        width: 72px;
        height: 72px;
        font-size: 48px;
    }

    /* Intro */
    .hub-intro__content h2 {
        font-size: 24px;
    }
    .hub-intro__content p {
        font-size: 16px;
    }

    /* Quick info table — stack */
    .hub-quickinfo__table,
    .hub-quickinfo__table thead,
    .hub-quickinfo__table tbody,
    .hub-quickinfo__table tr,
    .hub-quickinfo__table th,
    .hub-quickinfo__table td {
        display: block;
        width: 100%;
    }
    .hub-quickinfo__table tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--hub-border);
    }
    .hub-quickinfo__table tr:last-child {
        border-bottom: none;
    }
    .hub-quickinfo__table th {
        width: 100%;
        padding: 0 0 4px;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--hub-text-muted);
        background: none;
        border-bottom: none;
    }
    .hub-quickinfo__table td {
        padding: 0;
        font-size: 15px;
        border-bottom: none;
    }

    /* Pillar cards — 1 column */
    .hub-pillars__grid {
        grid-template-columns: 1fr;
    }

    /* Year cards — 1 column */
    .hub-years__grid {
        grid-template-columns: 1fr;
    }

    /* Latest — 1 column */
    .hub-latest__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Groups */
    .hub-group__header {
        padding: 14px 16px;
    }
    .hub-group__header h3 {
        font-size: 15px;
    }
    .hub-group__post {
        padding: 10px 16px;
    }
    .hub-group__post-title {
        font-size: 14px;
    }

    /* FAQ */
    .hub-faq__question {
        padding: 16px 18px;
        font-size: 15px;
    }
    .hub-faq__answer-inner {
        padding: 0 18px 16px;
        font-size: 14px;
    }

    /* Starter — 1 column */
    .hub-starter__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hub-starter-card {
        padding: 22px;
    }

    /* Knowledge groups */
    .hub-kgroup__grid {
        grid-template-columns: 1fr;
    }
    .hub-kgroup__header h3 {
        font-size: 20px;
    }
    .hub-kgroup {
        margin-bottom: 36px;
    }
}


/* =============================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    .hub-zodiac-landing,
    .hub-knowledge-landing {
        --hub-section-gap: 44px;
    }

    /* Hero */
    .hub-hero {
        padding: 32px 0 40px;
    }
    .hub-hero__title {
        font-size: 26px;
    }
    .hub-hero__emoji {
        width: 64px;
        height: 64px;
        font-size: 42px;
    }
    .hub-hero__breadcrumb {
        font-size: 11px;
    }

    /* Section header */
    .hub-section-header h2 {
        font-size: 22px;
    }
    .hub-section-header {
        margin-bottom: 28px;
    }

    /* Intro */
    .hub-intro__content h2 {
        font-size: 22px;
    }
    .hub-intro__content p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Pillar card — stack */
    .hub-pillar-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 14px;
    }
    .hub-pillar-card__thumb {
        width: 100%;
        height: 140px;
        border-radius: 8px;
    }

    /* Year card */
    .hub-year-card {
        padding: 16px;
    }
    .hub-year-card__canchi {
        font-size: 16px;
    }

    /* Latest card */
    .hub-latest-card__body {
        padding: 16px;
    }
    .hub-latest-card__title {
        font-size: 15px;
    }

    /* CTA */
    .hub-section-cta__link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Disclaimer */
    .hub-disclaimer__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}


/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 360px)
   ============================================= */
@media (max-width: 360px) {
    .hub-hero__title {
        font-size: 24px;
    }
    .hub-hero__desc {
        font-size: 14px;
    }
    .hub-hero__emoji {
        width: 56px;
        height: 56px;
        font-size: 36px;
    }

    .hub-section-header h2 {
        font-size: 20px;
    }

    .hub-quickinfo__table tr {
        padding: 10px 12px;
    }

    .hub-pillar-card__title {
        font-size: 15px;
    }

    .hub-year-card__canchi {
        font-size: 15px;
    }

    .hub-group__header h3 {
        font-size: 14px;
    }

    .hub-latest-card__title {
        font-size: 14px;
    }

    .hub-faq__question {
        padding: 14px 16px;
        font-size: 14px;
        gap: 12px;
    }
    .hub-faq__answer-inner {
        padding: 0 16px 14px;
        font-size: 13px;
    }

    .hub-kgroup__link {
        padding: 12px 14px;
        font-size: 14px;
    }
}


/* =============================================
   DARK MODE — body[data-theme='dark']
   Matches Foxiz theme toggle system
   ============================================= */

/* ── Override Custom Properties ── */
body[data-theme='dark'] .hub-zodiac-landing,
body[data-theme='dark'] .hub-knowledge-landing {
    --hub-body-bg: #13151a;
    --hub-card-bg: #1c1f26;
    --hub-text: #e4e4e7;
    --hub-text-muted: #9ca3af;
    --hub-border: #2d3039;
    --hub-section-alt: #181a20;
    --hub-section-warm: #16181e;
    --hub-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --hub-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    --hub-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --hub-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
    --hub-primary-light: var(--g-color);
    --hub-gold: #E8B830;
}

/* ── Hero ── */
body[data-theme='dark'] .hub-hero {
    background: linear-gradient(135deg, #0c0d14 0%, #111425 60%, #0a1628 100%);
}
body[data-theme='dark'] .hub-hero__emoji {
    background: linear-gradient(135deg, color-mix(in srgb, var(--hub-primary) 20%, transparent) 0%, color-mix(in srgb, var(--hub-gold) 15%, transparent) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

/* ── Intro ── */
body[data-theme='dark'] .hub-intro__content a {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-intro__content a:hover {
    color: var(--hub-primary);
    border-bottom-color: var(--hub-primary);
}

/* ── Quick Info Table ── */
body[data-theme='dark'] .hub-quickinfo__table {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
}
body[data-theme='dark'] .hub-quickinfo__table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
body[data-theme='dark'] .hub-quickinfo__table tr:hover {
    background: color-mix(in srgb, var(--hub-primary) 5%, transparent);
}
body[data-theme='dark'] .hub-quickinfo__table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-quickinfo__table td strong {
    color: var(--hub-primary-light);
}

/* ── Pillar Cards ── */
body[data-theme='dark'] .hub-pillar-card {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
}
body[data-theme='dark'] .hub-pillar-card:hover {
    border-color: var(--hub-primary);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--hub-primary) 12%, transparent);
}
body[data-theme='dark'] .hub-pillar-card__title {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-pillar-card:hover .hub-pillar-card__title {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-pillar-card__thumb--empty {
    background: linear-gradient(135deg, #1c1f26, #2d3039);
}

/* ── Year Cards ── */
body[data-theme='dark'] .hub-year-card {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
    border-left-color: var(--hub-gold);
}
body[data-theme='dark'] .hub-year-card:hover {
    border-left-color: var(--hub-primary-light);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--hub-primary) 12%, transparent);
}
body[data-theme='dark'] .hub-year-card__canchi {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-year-card__year {
    background: rgba(255, 255, 255, 0.06);
    color: var(--hub-text-muted);
}
body[data-theme='dark'] .hub-year-card__link {
    color: var(--hub-primary-light);
}

/* ── Post Groups ── */
body[data-theme='dark'] .hub-group__header {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
}
body[data-theme='dark'] .hub-group__header:hover {
    border-color: var(--hub-primary);
}
body[data-theme='dark'] .hub-group__header h3 {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-group__toggle {
    background: #23262e;
    color: var(--hub-text-muted);
}
body[data-theme='dark'] .hub-group.is-open .hub-group__toggle {
    background: var(--hub-primary);
    color: #FFFFFF;
}
body[data-theme='dark'] .hub-group__content {
    background: var(--hub-card-bg);
}
body[data-theme='dark'] .hub-group.is-open .hub-group__content {
    border-color: var(--hub-border);
    border-top-color: transparent;
}
body[data-theme='dark'] .hub-group__post {
    border-bottom-color: var(--hub-border);
}
body[data-theme='dark'] .hub-group__post:hover {
    background: rgba(255, 255, 255, 0.03);
}
body[data-theme='dark'] .hub-group__post-title {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-group__post:hover .hub-group__post-title {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-group__post-count {
    background: #23262e;
    color: var(--hub-text-muted);
}

/* ── Latest Cards ── */
body[data-theme='dark'] .hub-latest-card {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
}
body[data-theme='dark'] .hub-latest-card__thumb {
    background: #1c1f26;
}
body[data-theme='dark'] .hub-latest-card__title {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-latest-card:hover .hub-latest-card__title {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-latest-card__thumb--empty {
    background: linear-gradient(135deg, #1c1f26, #2d3039);
}

/* ── FAQ ── */
body[data-theme='dark'] .hub-faq__item {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
}
body[data-theme='dark'] .hub-faq__question {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-faq__question:hover {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-faq__question-icon {
    background: #23262e;
    color: var(--hub-text-muted);
}
body[data-theme='dark'] .hub-faq__item.is-open .hub-faq__question-icon {
    background: var(--hub-primary);
    color: #FFFFFF;
}

/* ── Starter Cards ── */
body[data-theme='dark'] .hub-starter-card {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
}
body[data-theme='dark'] .hub-starter-card:hover {
    border-color: var(--hub-primary);
}
body[data-theme='dark'] .hub-starter-card__icon {
    background: linear-gradient(135deg, #3a2e10, #4a3a15);
    color: var(--hub-gold);
}
body[data-theme='dark'] .hub-starter-card__title {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-starter-card__link {
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-starter-card:hover .hub-starter-card__link {
    color: var(--hub-primary);
}

/* ── Knowledge Groups ── */
body[data-theme='dark'] .hub-kgroup__header {
    border-bottom-color: var(--hub-border);
}
body[data-theme='dark'] .hub-kgroup__header h3 {
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-kgroup__icon {
    background: linear-gradient(135deg, color-mix(in srgb, var(--hub-primary) 15%, transparent), color-mix(in srgb, var(--hub-primary) 8%, transparent));
}
body[data-theme='dark'] .hub-kgroup__link {
    background: var(--hub-card-bg);
    border-color: var(--hub-border);
    color: var(--hub-text);
}
body[data-theme='dark'] .hub-kgroup__link:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--hub-primary);
    color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-kgroup__link::before {
    color: var(--hub-primary-light);
}

/* ── CTA / Utility ── */
body[data-theme='dark'] .hub-section-cta__link {
    color: var(--hub-primary-light);
    border-color: var(--hub-primary-light);
}
body[data-theme='dark'] .hub-section-cta__link:hover {
    background: var(--hub-primary);
    border-color: var(--hub-primary);
    color: #FFFFFF;
}

/* ── Disclaimer ── */
body[data-theme='dark'] .hub-disclaimer {
    background: #111318;
}
body[data-theme='dark'] .hub-disclaimer__icon {
    background: rgba(156, 163, 175, 0.12);
}


/* =============================================
   FOCUS & ACCESSIBILITY
   ============================================= */
.hub-zodiac-landing a:focus-visible,
.hub-zodiac-landing button:focus-visible,
.hub-knowledge-landing a:focus-visible,
.hub-knowledge-landing button:focus-visible {
    outline: 3px solid var(--hub-primary);
    outline-offset: 2px;
}

/* ── Skip link (optional, if added in template) ── */
.hub-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--hub-primary);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.hub-skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}


/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .hub-zodiac-landing *,
    .hub-zodiac-landing *::before,
    .hub-zodiac-landing *::after,
    .hub-knowledge-landing *,
    .hub-knowledge-landing *::before,
    .hub-knowledge-landing *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .hub-zodiac-landing,
    .hub-knowledge-landing {
        color: #000;
    }
    .hub-hero {
        background: #333 !important;
        padding: 24px 0 !important;
    }
    .hub-hero__title {
        font-size: 24px !important;
    }
    .hub-group__content {
        max-height: none !important;
        overflow: visible !important;
        border-color: #ccc !important;
    }
    .hub-faq__answer {
        max-height: none !important;
        overflow: visible !important;
    }
    .hub-section-cta,
    .hub-hero__emoji {
        display: none !important;
    }
}
