/* ===========================
   1. BASE / GLOBAL
   =========================== */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) no-repeat;
    background-size: 100% 600px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   2. NAVIGATION
   =========================== */
nav {
    background: transparent;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-links li:hover .dropdown,
.nav-links li.dropdown-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 0;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.dropdown a:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    transform: none;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile side drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    max-width: 70vw;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-inner {
    padding: 1.25rem 1rem;
    padding-top: 4.5rem;
}

.accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: white;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.accordion-toggle.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-content a {
    display: block;
    padding: 0.65rem 1rem 0.65rem 1.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-content a:last-child {
    border-bottom: none;
    margin-bottom: 0.25rem;
}

.accordion-content a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-link {
    display: block;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   3. FOOTER
   =========================== */
footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-light);
    text-decoration: none;
}

.footer-brand p {
    margin: 0.5rem 0 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-light);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-column ul a:hover {
    color: var(--bg-light);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===========================
   4. SHARED COMPONENTS
   =========================== */
.page-header {
    background: transparent;
    color: white;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    opacity: 0.95;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.post-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.35rem;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.125rem;
    margin: 0;
}

.category-title-link,
.section-heading-link {
    text-decoration: none;
    color: inherit;
}

.section-heading-link:hover {
    color: var(--secondary-color);
}

.category-title-link:hover .category-title {
    color: var(--primary-color);
}

.horizontal-scroller {
    position: relative;
    margin-bottom: 1rem;
}

.posts-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.posts-scroller:active {
    cursor: grabbing;
}

.posts-scroller::-webkit-scrollbar {
    height: 8px;
}

.posts-scroller::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.posts-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.posts-scroller::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.category-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 340px;
    max-width: 340px;
    min-height: 200px;
    flex-shrink: 0;
    padding: 2rem;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.category-card-content {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.category-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

.category-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.category-post-count {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 600;
}

.category-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* ===========================
   5. HOME PAGE
   =========================== */
.home-body {
    background-size: 100% 1080px !important;
}

.hero {
    background: transparent;
    color: white;
    padding: 7.2rem 0 9rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.featured-block-section {
    padding: 3rem 0;
    background: var(--bg-white);
    text-align: center;
}

.resources-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.featured-block {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 25px 70px rgba(118, 75, 162, 0.4);
    }
}

.featured-block:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.featured-block-content {
    position: relative;
    padding: 3rem;
    color: white;
    text-align: center;
    z-index: 2;
}

.featured-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(240, 147, 251, 0.9) 100%);
    z-index: 1;
    transition: opacity 0.4s;
}

.featured-block:hover::before {
    opacity: 0.85;
}

.update-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.featured-block h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.featured-block-subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.6;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-block:hover .featured-cta {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.featured-cta::after {
    content: '\2192';
    transition: transform 0.3s;
}

.featured-block:hover .featured-cta::after {
    transform: translateX(5px);
}

.quote-section {
    background: var(--bg-white);
    padding: 2rem 0 4rem;
    text-align: center;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-white);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.quote-text {
    font-size: 1.75rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.quote-author {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 600;
}

.mission-section {
    padding: 4rem 0;
    text-align: center;
}

.resources-section {
    background: var(--bg-light);
    padding-top: 2rem;
}

.mission-text-section {
    background: var(--bg-white);
    padding: 4rem 0 2rem;
}

.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.mission-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.content-library {
    background: var(--bg-light);
    padding: 4rem 0;
}

.content-library > .container > h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-library-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===========================
   6. BLOG LIST PAGE (/blog/)
   =========================== */
.blog-list-body {
    background-size: 100% 300px !important;
}

.resources-glance {
    background: var(--bg-white);
    padding: 1.5rem 0 3rem;
    border-bottom: 1px solid #E5E7EB;
}

.glance-header {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.glance-header::after {
    content: '\25BC';
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.glance-header.open::after {
    transform: rotate(180deg);
}

.glance-toggle {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.glance-toggle.open {
    max-height: 1000px;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

.glance-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.glance-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.glance-link:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s;
}

.category-description {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.6;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog list page scroller overrides */
.blog-list-body .posts-scroller {
    padding: 1rem 0.75rem;
}

.blog-list-body .posts-scroller::-webkit-scrollbar {
    height: 12px;
}

.blog-list-body .posts-scroller::-webkit-scrollbar-track {
    background: var(--bg-light);
}

/* Blog list page post-card sizing (fixed width for horizontal scroll) */
.blog-list-body .post-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

/* "See All" card at end of category sliders */
.see-all-card {
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    border: 2px dashed rgba(100, 100, 100, 0.2);
}

.see-all-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.see-all-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
}

.see-all-card-content .see-all-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.see-all-card-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.see-all-card-content .post-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Blog list page empty state overrides */
.blog-list-body .empty-state {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-list-body .empty-state p {
    margin: 0;
}

.all-resources-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-light);
}

.all-resources-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Blog list page resources-section override */
.blog-list-body .resources-section {
    padding: 4rem 0 2rem;
}

/* ===========================
   READING PROGRESS BAR
   =========================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 0.35rem;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 99;
    transition: width 0.1s linear;
    opacity: 0;
    pointer-events: none;
}

.reading-progress-bar.visible {
    opacity: 1;
}

/* Jump to top button */
.jump-to-top {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(30, 30, 60, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 90;
    font-family: inherit;
}

.jump-to-top.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.jump-to-top:hover {
    background: rgba(50, 50, 90, 0.95);
}

.jump-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.jump-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================
   7. BLOG POST DETAIL PAGE
   =========================== */

/* Related posts scroller on post detail pages */
.related-posts-section {
    padding-top: 2rem;
}

.related-posts-section .posts-scroller {
    padding: 1rem 0.75rem;
}

.related-posts-section .post-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

.post-detail-body {
    background-size: 100% 300px !important;
}

.post-header {
    background: transparent;
    color: white;
    overflow: auto;
}

.post-header .container {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.post-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta-header {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.95;
    align-items: center;
    flex-wrap: wrap;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
}

.post-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.post-main-content {
    flex: 1;
    max-width: 800px;
    min-width: 0;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.post-content a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-light);
    font-style: italic;
}

.post-content code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: var(--text-dark);
    color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem 0;
}

/* Images that follow an h3 (e.g. person/resource entries): float beside text on desktop */
.post-content h3 {
    clear: both;
}

.post-content h2,
.post-content hr {
    clear: both;
}

.post-content h3 + p:has(> img) {
    float: left;
    width: 180px;
    margin: 0.25rem 1.5rem 0.5rem 0;
}

.post-content h3 + p:has(> img) img {
    max-width: 100%;
    margin: 0;
    border-radius: 6px;
}

.post-content iframe {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    margin: 1rem 0 0.25rem;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content table th,
.post-content table td {
    border: 1px solid #E5E7EB;
    padding: 0.75rem;
    text-align: left;
}

.post-content table th {
    background: var(--bg-light);
    font-weight: 600;
}

.back-link-mobile {
    display: none;
}

.toc-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 5rem;
}

.toc-container {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 6px;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}

.toc-container::-webkit-scrollbar {
    width: 6px;
}

.toc-container::-webkit-scrollbar-track {
    background: transparent;
}

.toc-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.toc-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    border-bottom: none;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
    border-bottom: none;
}

.toc-list a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

.toc-h2 {
    font-weight: 500;
    padding-left: 0;
}

/* ===========================
   8. CATEGORY DETAIL PAGE
   =========================== */
.category-detail-body {
    background-size: 100% 300px !important;
}

.posts-section {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.posts-grid .post-card h2 {
    font-size: 1.35rem;
    line-height: 1.3;
}

/* ===========================
   9. DISCLAIMER PAGE
   =========================== */
.disclaimer-body {
    background-size: 100% 300px !important;
}

.disclaimer-header {
    background: transparent;
    color: white;
    padding: 3rem 0 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.disclaimer-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.disclaimer-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.disclaimer-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.disclaimer-content h2:first-of-type {
    margin-top: 0;
}

.disclaimer-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.disclaimer-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.disclaimer-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.disclaimer-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-body {
    background-size: 100% 300px !important;
}

.about-header {
    background: transparent;
    color: white;
    padding: 3rem 0 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 4rem 2rem 3rem;
}

.about-profile {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.about-linkedin {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.about-linkedin:hover {
    color: var(--secondary-color);
}

.about-text h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0 0 1.25rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ===========================
   10. RESPONSIVE (GLOBAL)
   =========================== */

/* --- 1024px breakpoint --- */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-content-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .back-link-mobile {
        display: inline-block;
        order: -2;
    }

    .post-main-content .back-link {
        display: none;
    }

    .toc-sidebar {
        width: 100%;
        order: -1;
        position: static;
    }

    .toc-container {
        margin-bottom: 2rem;
        max-height: none;
    }

    .post-main-content {
        max-width: 100%;
    }
}

/* --- 768px breakpoint --- */
@media (max-width: 768px) {
    /* Base / Nav */
    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }

    .nav-learn-ai {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Home page */
    .hero {
        padding: 5rem 0 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .featured-block h2 {
        font-size: 1.75rem;
    }

    .featured-block-subtitle {
        font-size: 1.125rem;
    }

    .featured-block-content {
        padding: 2rem 1.5rem;
    }

    .featured-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .mission-section h2,
    .content-library > .container > h2 {
        font-size: 2rem;
    }

    .content-library {
        padding: 2.5rem 0;
    }

    .content-library-intro {
        margin-bottom: 2rem;
    }

    .posts-scroller {
        gap: 1rem;
    }

    .category-card {
        min-width: 280px;
        max-width: 280px;
        min-height: 170px;
        padding: 1.5rem;
    }

    .category-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .category-card-footer {
        margin-top: 1rem;
    }

    /* Blog list page */
    .glance-header {
        font-size: 1.25rem;
    }

    .glance-toggle.open {
        margin-top: 1rem;
    }

    .glance-links {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .glance-link {
        padding: 0.875rem 1.25rem;
    }

    .resources-glance {
        padding: 1.5rem 0 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 1rem;
        margin: 0.75rem 0 1rem 0;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .blog-list-body .post-card {
        min-width: 245px;
        max-width: 245px;
    }

    .blog-list-body .post-card-content {
        padding: 0.85rem;
    }

    .blog-list-body .post-card h2 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .blog-list-body .post-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .blog-list-body .post-meta {
        font-size: 0.75rem;
        padding-top: 0.6rem;
    }

    .related-posts-section .post-card {
        min-width: 245px;
        max-width: 245px;
    }

    .related-posts-section .post-card-content {
        padding: 0.85rem;
    }

    .related-posts-section .post-card h2 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .related-posts-section .post-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .related-posts-section .post-meta {
        font-size: 0.75rem;
        padding-top: 0.6rem;
    }

    /* Post detail page */
    .post-title {
        font-size: 2rem;
    }

    .post-meta-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h3 + p:has(> img) {
        float: none;
        width: auto;
        margin: 1rem 0;
        text-align: center;
    }

    .post-content h3 + p:has(> img) img {
        max-width: 55%;
        margin: 0 auto;
    }

    .post-content-wrapper {
        padding: 0.5rem 1rem 2rem;
    }

    .toc-title {
        font-size: 1rem;
    }

    .toc-list a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    /* Category detail page */
    .posts-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .posts-grid .post-card-content {
        padding: 0.85rem;
    }

    .posts-grid .post-card h2 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .posts-grid .post-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .posts-grid .post-meta {
        font-size: 0.75rem;
        padding-top: 0.6rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* About page */
    .about-body {
        background-size: 100% 220px !important;
    }

    .about-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 1rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .about-profile {
        margin-top: 1.5rem;
    }

    .about-photo {
        width: 150px;
        height: 150px;
    }

    /* Disclaimer page */
    .disclaimer-title {
        font-size: 2rem;
    }

    .disclaimer-content {
        padding: 1.5rem 1rem;
    }

    .disclaimer-content h2 {
        font-size: 1.5rem;
    }
}

/* --- 576px breakpoint --- */
@media (max-width: 576px) {
    .hero {
        padding: 3rem 0 4rem;
    }

    .content-library {
        padding: 1.5rem 0;
    }

    .content-library > .container > h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .content-library-intro {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .category-card {
        min-width: 240px;
        max-width: 240px;
        min-height: 140px;
        padding: 1.25rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .category-card p {
        font-size: 0.875rem;
    }

    .category-card-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .category-post-count {
        font-size: 0.8rem;
    }

    .category-arrow {
        font-size: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
