* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #f97316;
    --secondary-color: #fb923c;
    --text-color: #0f172a;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --spacing-unit: 1rem;
    --brand-gradient: radial-gradient(circle at 20% 20%, #ffe7d3, transparent 45%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.3), transparent 40%), linear-gradient(135deg, #ffb347 0%, #ff7b00 50%, #f97316 100%);
    --brand-gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    --card-shadow-soft: 0 15px 35px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 25px 45px rgba(15, 23, 42, 0.12);
    --glass-background: rgba(255, 255, 255, 0.15);
    --font-headings: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

main {
    flex: 1;
    padding: calc(var(--spacing-unit) * 2) 0;
}

.main-content {
    padding: calc(var(--spacing-unit) * 2) 0;
}

body.admin-shell {
    background:
        radial-gradient(circle at 12% 15%, rgba(147, 197, 253, 0.45), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(254, 215, 170, 0.6), transparent 40%),
        linear-gradient(180deg, #f5f7fb 0%, #ecf2ff 40%, #fef5ec 100%);
    min-height: 100vh;
}

body.admin-shell main {
    padding-top: calc(var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 3.5);
}

body.admin-shell .container {
    position: relative;
    z-index: 1;
}

body.admin-shell .admin-surface,
body.admin-shell .admin-form,
body.admin-shell .admin-categories-page {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    padding-inline: clamp(1rem, 3vw, 3rem);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(6px);
}

body.admin-shell .admin-form {
    max-width: 960px;
    margin: 0 auto;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

body.admin-shell .admin-categories-page {
    margin: 0 auto;
    padding-block: calc(var(--spacing-unit) * 2.5);
}

body.admin-shell .admin-form .section-title,
.admin-form h1 {
    font-family: var(--font-headings);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

body.admin-shell .admin-form .section-subtitle {
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

body.admin-shell .admin-form .form-group {
    margin-bottom: 1.5rem;
}

body.admin-shell .admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

body.admin-shell .admin-form .form-control,
body.admin-shell .admin-form select,
body.admin-shell .admin-form textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(249, 250, 251, 0.8);
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.admin-shell .admin-form .form-control:focus,
body.admin-shell .admin-form select:focus,
body.admin-shell .admin-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    background: white;
}

body.admin-shell .admin-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

body.admin-shell .admin-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

body.admin-shell .admin-form .btn {
    min-width: 160px;
    justify-content: center;
}

@media (max-width: 640px) {
    body.admin-shell .admin-form .form-actions {
        flex-direction: column;
    }
}

.admin-form .form-text {
    color: #64748b;
    font-size: 0.875rem;
}

.editor-toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    padding: 0.5rem;
    border-radius: 12px 12px 0 0;
}

.editor-toolbar button {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editor-toolbar button:hover {
    background: #f1f5f9;
    border-color: #cbd5f5;
    color: #0f172a;
}

.rich-editor {
    min-height: 180px;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.rich-editor.rich-editor-large {
    min-height: 400px;
}

.rich-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.rich-editor pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.875rem;
}

.rich-editor code {
    background: #e2e8f0;
    color: #0f172a;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-section {
    background: var(--brand-gradient);
    color: #0f172a;
    padding: 4.5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-section::before {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 55%), radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.4), transparent 45%);
    opacity: 0.6;
}

.hero-section::after {
    background: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.15'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 200 Q100 250 200 200 T400 200 V400 H0 Z' fill='url(%23g)'/%3E%3C/svg%3E") repeat-x;
    background-size: 400px 400px;
    opacity: 0.4;
    animation: heroWave 12s linear infinite;
}

@keyframes heroWave {
    from { transform: translateX(0); }
    to { transform: translateX(-400px); }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--glass-background);
    backdrop-filter: blur(16px);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.hero-badge-number {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    animation: badgePulse 2.8s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 12px 24px rgba(249, 115, 22, 0.5); }
}

.hero-badge-highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    color: #1f2937;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(15, 23, 42, 0.65);
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.4);
    outline-offset: 3px;
}

.btn-ripple:active::after {
    opacity: 1;
    transform: scale(1.3);
}

.btn-primary {
    background: linear-gradient(120deg, #ff8c42, #ff5f6d 60%, #ff9966);
    color: white;
    box-shadow: 0 20px 35px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 45px rgba(249, 115, 22, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.01);
    color: white;
}

.home-background-bands {
    position: relative;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #fef3c7 0%, #fef9c3 50%, #fffbeb 100%);
}

.home-hub {
    position: relative;
    z-index: 1;
}

.topic-tabs-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.topic-tabs-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.topic-tabs-header .section-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.topic-tabs {
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.topic-tabs::-webkit-scrollbar {
    display: none;
}

.topic-tabs-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 120px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.15), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
    transition: transform 0.35s ease, width 0.35s ease;
    pointer-events: none;
}

.topic-tab {
    border: none;
    background: transparent;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.topic-tab .tab-icon {
    font-size: 1.1rem;
}

.topic-tab.is-active {
    color: #0f172a;
    font-weight: 700;
}

.topic-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.6);
    color: #334155;
}

.topic-tab-panels {
    margin-top: 1.5rem;
}

.topic-tab-panel {
    display: none;
}

.topic-tab-panel.is-active {
    display: block;
}

.topic-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    color: #1f2937;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topic-chip:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #fbbf24;
    background-color: #fffbeb;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    color: #111827;
    text-decoration: none;
}

.topic-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.35);
}

.topic-chip-label {
    font-weight: 600;
    flex: 1;
    color: #1f2937;
    text-decoration: none !important;
}

.topic-chip:hover .topic-chip-label {
    color: #111827;
    text-decoration: none !important;
}

.topic-chip-count {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-decoration: none !important;
}

.topic-filter-indicator {
    margin-top: 1rem;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

.topic-chip:hover .topic-chip-count {
    text-decoration: none !important;
}

.topic-chip,
.topic-chip:link,
.topic-chip:visited,
.topic-chip:active {
    color: #1f2937;
    text-decoration: none;
}

.topic-chip:hover,
.topic-chip:focus {
    color: #111827;
    text-decoration: none;
}

.topic-chip * {
    text-decoration: none !important;
}

.topic-chip-pill {
    margin-left: 0.2rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 0.75rem;
    color: #6b7280;
}

.featured-collections-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.collection-featured-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.collection-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: var(--card-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    isolation: isolate;
}

.collection-card--primary {
    position: relative;
}

.collection-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    border: 2px solid transparent;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(249, 115, 22, 0.35)) border-box;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 176, 102, 0.8);
}

.collection-card:hover::before {
    opacity: 1;
}

.collection-card-thumbnail {
    display: block;
    height: 180px;
    overflow: hidden;
}

.collection-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-card-thumbnail img {
    transform: scale(1.06);
}

.collection-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.collection-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.collection-tag::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(3, 105, 161, 0.35);
    opacity: 0;
    animation: tagPulse 2.5s ease infinite;
}

@keyframes tagPulse {
    0% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1.25); }
}

.collection-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-glow-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(249, 115, 22, 0.4) 65%, transparent 100%);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
    animation: spinGlow 3.5s linear infinite;
    flex-shrink: 0;
}

@keyframes spinGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.collection-card-title a {
    color: #111827;
    text-decoration: none;
}

.collection-card-title a:hover {
    color: #2563eb;
}

.collection-card-description {
    font-size: 0.92rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.collection-card-meta .difficulty-mix {
    font-size: 0.8rem;
    color: #6b7280;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.collection-list-item {
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.collection-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.collection-list-title a {
    color: #111827;
    text-decoration: none;
}

.collection-list-title a:hover {
    color: #2563eb;
}

.collection-list-description {
    font-size: 0.92rem;
    color: #4b5563;
}

.collection-list-meta .difficulty-mix {
    font-size: 0.8rem;
    color: #6b7280;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: calc(var(--spacing-unit) * 2);
    align-items: start;
}

.posts-list {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: calc(var(--spacing-unit) * 2);
    max-height: calc(100vh - calc(var(--spacing-unit) * 4));
    overflow-y: auto;
}

.hero-section.hero-interview {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero-section.hero-interview .hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.hero-interview .hero-text {
    max-width: 640px;
    text-align: center;
}

.hero-section.hero-interview .hero-text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: var(--spacing-unit);
}

.hero-topic-chips {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-topic-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #fefce8;
    border: 1px solid rgba(250, 204, 21, 0.7);
    color: #78350f;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.hero-topic-chip:hover {
    background: #fde68a;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.35);
    transform: translateY(-1px);
    color: #78350f;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .topic-chips-grid {
        gap: 0.85rem;
        width: 100%;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .topic-chip {
        padding: 0.7rem 1.15rem;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
        transition: all 0.3s ease;
    }
    
    .topic-chip:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25);
    }
    
    .topic-chip-icon {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
    }
    
    .topic-chip-count {
        font-size: 0.72rem;
        padding: 0.18rem 0.5rem;
        font-weight: 700;
    }
    
    .featured-collections-section {
        margin-bottom: calc(var(--spacing-unit) * 2.5);
    }
    
    .collection-featured-row {
        gap: calc(var(--spacing-unit) * 1.5);
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    
    .topic-section {
        margin-bottom: calc(var(--spacing-unit) * 2.5);
    }
    
    .featured-section {
        margin-bottom: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: calc(var(--spacing-unit) * 2.5) 0;
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    
    .hero-interview .hero-text {
        max-width: 100%;
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .hero-interview .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
        width: 100%;
    }
    
    .hero-interview .hero-badges {
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .hero-interview .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.5rem;
        white-space: nowrap;
    }
    
    .hero-interview .hero-badge-number {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }
    
    .hero-interview .hero-subtitle {
        font-size: 0.95rem;
        margin: 0.5rem auto 1.25rem;
        padding: 0 0.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-interview .hero-actions {
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        padding: 0;
        align-items: stretch;
    }
    
    .hero-interview .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    .hero-interview .hero-topic-chips {
        margin-top: 1rem;
        gap: 0.4rem;
        padding: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-interview .hero-topic-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        flex: 0 1 auto;
    }
    
    .featured-collections-section {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    
    .collection-featured-row {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 1);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: calc(var(--spacing-unit) * 1.5);
        justify-items: center;
    }
    
    .topic-section {
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    
    .featured-section {
        margin-bottom: calc(var(--spacing-unit) * 2.5);
    }
    
    .section-header {
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }
    
    .collection-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .section-header {
        margin-left: calc(-1 * 0.75rem);
        margin-right: calc(-1 * 0.75rem);
        width: calc(100% + 1.5rem);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .topic-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f8fafc;
        padding: 0.5rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .topic-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .topic-tabs::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 2px;
    }
    
    .topic-tabs::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
    
    .topic-tabs::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    .topic-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .topic-chips-grid {
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
        padding: 0 0.5rem;
    }
    
    .topic-chip {
        flex: 0 1 auto;
        min-width: fit-content;
        max-width: calc(50% - 0.375rem);
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    }
    
    .topic-chip-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .topic-chip-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.45rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-sizing: border-box;
    }
    
    .main-content {
        width: 100%;
        padding: calc(var(--spacing-unit) * 1.5) 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: calc(var(--spacing-unit) * 2) 0;
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }
    
    .hero-interview .hero-text {
        padding: 0 0.5rem;
    }
    
    .hero-interview .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-interview .hero-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }
    
    .hero-interview .hero-badge-number {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    .hero-interview .hero-subtitle {
        font-size: 0.85rem;
        margin: 0.4rem auto 1rem;
        padding: 0 0.15rem;
    }
    
    .hero-interview .hero-actions {
        gap: 0.5rem;
        padding: 0;
    }
    
    .hero-interview .hero-actions .btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-interview .hero-topic-chip {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }
    
    .topic-chips-grid {
        gap: 0.6rem;
        justify-content: center;
        padding: 0 0.25rem;
    }
    
    .topic-chip {
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
        max-width: calc(50% - 0.3rem);
        box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
    }
    
    .topic-chip-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .topic-chip-label {
        font-size: 0.8rem;
    }
    
    .topic-chip-count {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .featured-collections-section {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .collection-featured-row {
        gap: calc(var(--spacing-unit) * 1);
        margin-left: 0;
        margin-right: 0;
        margin-bottom: calc(var(--spacing-unit) * 1);
    }
    
    .collection-card {
        border-radius: 12px;
        margin-bottom: calc(var(--spacing-unit) * 1);
    }
    
    .featured-collections-section {
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }
    
    .topic-section {
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }
    
    .featured-section {
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    
    .section-header {
        margin-left: calc(-1 * 0.5rem);
        margin-right: calc(-1 * 0.5rem);
        width: calc(100% + 1rem);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .topic-tabs {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .topic-chip {
        font-size: 0.85rem;
        padding: 0.55rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.post-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: calc(var(--spacing-unit) * 1.5);
}

.post-content h3 {
    margin-bottom: var(--spacing-unit);
    font-size: 1.25rem;
}

.post-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-unit);
    line-height: 1.6;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    gap: var(--spacing-unit);
    align-items: center;
}

.posts-list-items {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.post-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    padding: calc(var(--spacing-unit) * 1.5);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.post-item:hover {
    background-color: var(--bg-light);
}

.post-thumbnail-small {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-light);
}

.post-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-content {
    flex: 1;
    min-width: 0;
}

.post-item-content h2 {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1.5rem;
}

.post-item-content h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-item-content h2 a:hover {
    color: var(--primary-color);
}

.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1.2;
}

.post-meta-detail {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-featured-image {
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    margin: calc(var(--spacing-unit) * 2) 0;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: var(--spacing-unit);
}

.post-content h2,
.post-content h3 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

.post-tags {
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--border-color);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2) 0;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pagination-link:hover {
    background: var(--secondary-color);
}

.pagination-info {
    color: var(--text-light);
}

.admin-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 1.5);
}

.form-actions {
    display: flex;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

.post-actions {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.post-item-actions {
    margin-top: calc(var(--spacing-unit) * 0.75);
}

.file-upload {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.75);
    margin-top: calc(var(--spacing-unit) * 0.5);
}

.file-upload input[type="text"] {
    flex: 1;
}

.file-upload button {
    white-space: nowrap;
}

.auth-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth-wrapper h1 {
    margin-bottom: var(--spacing-unit);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.auth-form .form-group {
    margin-bottom: var(--spacing-unit);
}

.auth-form .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auth-form .remember-me input {
    width: auto;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-error p {
    margin: 0;
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail-small {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-meta-detail {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 calc(var(--spacing-unit) * 0.75);
    }
}

.topic-hub-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: calc(var(--spacing-unit) * 4) 0;
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-align: center;
}

.topic-hub-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1);
    line-height: 1.2;
}

.topic-hub-intro {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.topic-hub-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.topic-hub-main {
    width: 100%;
}

.topic-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.featured-section {
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 1);
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.section-count {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.posts-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
    margin-top: calc(var(--spacing-unit) * 2);
}

.post-card-modern {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.post-card-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-modern:hover .post-card-thumbnail img {
    transform: scale(1.08);
}

.post-card-body {
    padding: calc(var(--spacing-unit) * 1.5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    margin: 0 0 calc(var(--spacing-unit) * 0.75) 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: calc(var(--spacing-unit) * 1);
    border-top: 1px solid var(--border-color);
}

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.experience-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
    margin-top: calc(var(--spacing-unit) * 3);
}

.experience-section {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 2);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.experience-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-bottom: calc(var(--spacing-unit) * 1);
    border-bottom: 2px solid var(--border-color);
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-fresher {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-mid {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.badge-senior {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.badge-architect {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.experience-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    flex: 1;
}

.experience-posts {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 0.75);
}

.experience-post-link {
    display: flex;
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.experience-post-link:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.experience-post-link .post-title {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.experience-post-link:hover .post-title {
    color: var(--primary-color);
}

.experience-post-link .post-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.empty-state {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: calc(var(--spacing-unit) * 1.5);
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.empty-state code {
    background: var(--bg-color);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

@media (max-width: 992px) {
    .topic-hub-title {
        font-size: 2.25rem;
    }
    
    .topic-hub-intro {
        font-size: 1.125rem;
    }
    
    .posts-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .experience-levels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topic-hub-hero {
        padding: calc(var(--spacing-unit) * 3) 0;
    }
    
    .topic-hub-title {
        font-size: 1.875rem;
    }
    
    .topic-hub-intro {
        font-size: 1rem;
        padding: 0 var(--spacing-unit);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--spacing-unit) * 0.5);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .posts-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .post-card-thumbnail {
        height: 180px;
    }
}



.section-header-with-filters {
    margin-bottom: 2rem;
}

.section-header-with-filters .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.question-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .section-header-with-filters {
        margin-left: calc(-1 * 0.75rem);
        margin-right: calc(-1 * 0.75rem);
        width: calc(100% + 1.5rem);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .question-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        gap: 0.4rem;
        padding-bottom: 0.5rem;
        width: 100%;
    }
    
    .question-filters::-webkit-scrollbar {
        height: 3px;
    }
    
    .question-filters::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 2px;
    }
    
    .question-filters::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
    
    .question-filters::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .code-challenge-toggle {
        display: none;
    }
}

.filter-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.filter-btn.active {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

.code-challenge-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
}

.code-challenge-toggle input[type="checkbox"] {
    cursor: pointer;
}

.accordion-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-item.active {
    border-color: #f97316;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #fef3c7;
}

.accordion-item.active .accordion-header {
    background-color: #fffbeb;
    border-bottom: 1px solid #fde68a;
}

.question-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.question-number {
    font-weight: 700;
    color: #6b7280;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.question-title-text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.question-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.difficulty-entry {
    background: #dcfce7;
    color: #166534;
}

.difficulty-junior {
    background: #dbeafe;
    color: #1e40af;
}

.difficulty-mid {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-senior {
    background: #fed7aa;
    color: #9a3412;
}

.difficulty-expert {
    background: #fecaca;
    color: #991b1b;
}

.code-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 600;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.answer-section {
    padding: 1.5rem;
    background: #fafafa;
}

.answer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.answer-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

.answer-body p {
    margin: 0 0 1rem 0;
}

.answer-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.answer-body code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.answer-body pre code {
    background: none;
    padding: 0;
}

.answer-body ul,
.answer-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.answer-body li {
    margin: 0.5rem 0;
}

.short-answer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.answer-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-share,
.btn-permalink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
}

.btn-share:hover,
.btn-permalink:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-share svg {
    width: 16px;
    height: 16px;
}

.featured-collections-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.collection-featured-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.collection-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: var(--card-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    isolation: isolate;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 176, 102, 0.8);
}

.collection-card-thumbnail {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    position: relative;
}

.collection-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.collection-card:hover .collection-card-thumbnail img {
    transform: scale(1.05);
}

.collection-card-thumbnail:hover {
    opacity: 0.95;
}

.collection-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.collection-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    width: fit-content;
    position: relative;
}

.collection-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.collection-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.collection-card-title a:hover {
    color: #2563eb;
}

.collection-card-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.collection-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.difficulty-mix {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4b5563;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection-list-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.collection-list-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.collection-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.collection-list-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.collection-list-title a:hover {
    color: #2563eb;
}

.collection-list-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.collection-list-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .collection-card {
        min-width: 280px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .collection-featured-row {
        gap: 1rem;
        justify-items: center;
    }
}

.posts-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Disable scroll-reveal and fade-in animations in posts section */
.posts-section.scroll-reveal,
.posts-section.scroll-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.posts-section .post-fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.posts-section .post-list-item {
    opacity: 1 !important;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.post-fade-in {
    animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-list-item:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.post-list-item::after {
    content: "→";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translate(20px, -50%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: #f97316;
    font-weight: 700;
}

.post-list-item:hover::after {
    transform: translate(0, -50%);
    opacity: 1;
}

.post-skeleton::after {
    display: none;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 105px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
    position: relative;
    text-decoration: none;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.post-list-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail:hover {
    opacity: 0.9;
}

.post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: -0.15rem 0 0 0;
    line-height: 1.3;
    padding: 0;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    line-height: 1.3;
}

.post-title a:hover {
    color: #2563eb;
}

.post-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-skeleton {
    border-style: dashed;
    border-color: rgba(226, 232, 240, 0.8);
}

.skeleton-box,
.skeleton-line {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.skeleton-box::after,
.skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: shimmer 1.4s infinite;
}

.skeleton-line {
    height: 12px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.skeleton-line--lg {
    width: 80%;
}

.skeleton-line--sm {
    width: 40%;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    color: #4b5563;
    font-weight: 500;
}

.post-category svg {
    width: 14px;
    height: 14px;
}

.post-category-link {
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.post-category-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.post-category-link:hover svg {
    color: white;
}

.post-date,
.post-views {
    color: #9ca3af;
}

.posts-load-more {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.load-more-btn {
    gap: 0.75rem;
    min-width: 220px;
    justify-content: center;
    background: #0f172a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.load-more-btn .btn-loader {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    animation: spin 1s linear infinite;
    opacity: 0;
}

.load-more-btn.is-loading .btn-loader {
    opacity: 1;
}

.load-more-btn .btn-label {
    transition: color 0.2s ease;
}

.load-more-btn.is-loading .btn-label {
    color: rgba(255, 255, 255, 0.8);
}

.load-more-status {
    margin-top: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .post-list-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 150px;
    }
}

.floating-cta {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: linear-gradient(120deg, #f97316, #fb923c);
    color: #0f172a;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.35);
    z-index: 999;
    animation: ctaBounce 4s ease infinite;
}

.floating-cta .cta-label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.floating-cta .cta-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.7);
}

.floating-cta .cta-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f172a;
    color: white;
    display: grid;
    place-items: center;
}

@keyframes ctaBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
    .floating-cta {
        display: none !important;
    }
}
