﻿:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #d4a853;
    --accent-hover: #c49a48;
    --accent-light: rgba(212, 168, 83, 0.08);

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: var(--font-main);
    --font-sans: var(--font-main);

    --container: 1200px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--primary);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
}

.header-top {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    font-family: var(--font-main);
    font-size: 1.75rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    letter-spacing: -0.02em;
}

.site-title a:hover {
    color: var(--accent);
}

.site-logo {
    max-height: 60px;
    max-width: 300px;
    width: auto;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 45px;
        max-width: 200px;
    }
}

.site-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.header-meta {
    text-align: right;
    color: var(--text-light);
    font-size: 0.8125rem;
}

.header-date {
    color: var(--accent);
    font-weight: 500;
}

/* ===== SEARCH BAR ===== */
.header-search {
    flex: 0 0 300px;
    margin: 0 2rem;
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    color: #fff;
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    pointer-events: none;
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .header-search {
        flex: 0 0 200px;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    /* Hide on mobile by default, or move to mobile menu */
}

/* ===== NAV ===== */
.main-nav {
    background: var(--primary-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    white-space: nowrap;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-list li a:hover {
    color: #fff;
}

.nav-list li a:hover::after {
    transform: scaleX(1);
}

/* Gold accent for special nav items */
.nav-list li a.nav-accent {
    color: var(--accent);
    font-weight: 600;
}

.nav-list li a.nav-accent:hover {
    color: #fff;
}

.nav-list li a.nav-accent::after {
    background: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.75rem 0;
    cursor: pointer;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.menu-toggle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

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

.menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 768px) {
    .header-meta {
        display: none;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        padding: 0.5rem 0 1rem;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-list li a::after {
        display: none;
    }

    .nav-list li a:hover {
        color: var(--accent);
    }
}

/* ===== MAIN ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    padding: 0.75rem 0;
    min-height: 60vh;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    max-width: 720px;
    margin: 0 auto 0.75rem;
    padding: 0 1.5rem;
}

.breadcrumbs-category,
.breadcrumbs-author {
    max-width: var(--container);
    margin: 0 auto 0.75rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-light);
    font-size: 0.7rem;
}

/* Mobile: hide breadcrumbs visually but keep in DOM for SEO */
@media (max-width: 600px) {

    .breadcrumbs,
    .breadcrumbs-category,
    .breadcrumbs-author,
    .breadcrumbs-cat {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* ===== CARDS ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--accent);
}

.article-title {
    font-family: var(--font-main);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.article-title a:hover {
    color: var(--primary-light);
}

.article-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== HERO ===== */
.hero-article {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.hero-article>a:first-child {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-article .article-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-article .article-excerpt {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero-article {
        grid-template-columns: 1fr;
    }

    .hero-article>a:first-child {
        aspect-ratio: 16/9;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-article .article-title {
        font-size: 1.5rem;
    }
}

/* ===== SINGLE ARTICLE ===== */
.single-article {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

@media (max-width: 600px) {
    .single-article {
        padding: 1.25rem;
        border-radius: 0;
        margin: 0 -1.5rem;
        width: calc(100% + 3rem);
    }
}

.single-article .article-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-article .article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

@media (max-width: 600px) {
    .single-article .article-title {
        font-size: 1.3rem;
    }
}

.single-article .article-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.single-article .article-meta a {
    color: var(--accent);
    font-weight: 600;
}

.single-article .article-meta a:hover {
    color: var(--accent-hover);
}

.featured-image-container {
    margin: 0 -2rem 1rem;
}

@media (max-width: 600px) {
    .featured-image-container {
        margin: 0 -1.25rem 1rem;
    }
}

.featured-image {
    width: 100%;
    display: block;
}

.article-body {
    font-family: var(--font-main);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: var(--primary);
    line-height: 1.25;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
    .article-body {
        font-size: 1rem;
        line-height: 1.65;
    }

    .article-body p {
        margin-bottom: 0.875rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.4rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.35rem;
    }
}

.article-body blockquote {
    position: relative;
    border: none;
    padding: 1.1rem 1rem 0.5rem 1.25rem;
    margin: 1.5rem 0 1.25rem;
    font-style: normal;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, rgba(212, 168, 83, 0.03) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.1);
}

.article-body blockquote::before {
    content: 'Central Thesis';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #c49a48 100%);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

.article-body blockquote::after {
    content: '"';
    position: absolute;
    bottom: -8px;
    right: 8px;
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
}

.article-body blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .article-body blockquote {
        padding: 1.25rem 1rem 1.25rem 1.25rem;
        margin: 1.5rem 0;
        font-size: 1rem;
    }

    .article-body blockquote::before {
        font-size: 0.6rem;
        padding: 3px 10px;
        top: -10px;
        left: 12px;
    }

    .article-body blockquote::after {
        font-size: 3rem;
        right: 12px;
    }
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-muted);
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-btn.share-twitter:hover {
    background: #000;
    color: #fff;
}

.share-btn.share-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.share-btn.share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.share-btn.share-email:hover {
    background: var(--primary);
    color: #fff;
}

.share-btn svg {
    display: block;
}

/* ===== RELATED ===== */
.related-articles {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    position: relative;
}

.related-articles::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-main);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.no-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4rem;
}

.site-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .site-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination a {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ===== CATEGORY/AUTHOR HEADERS ===== */
.category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 4rem 0;
    margin: -2.5rem -1.5rem 2.5rem;
    text-align: center;
    position: relative;
}

.author-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 4rem 0;
    margin: -2.5rem -1.5rem 2.5rem;
    text-align: left;
    position: relative;
}

.category-header::after,
.author-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.category-header h1,
.author-info h1 {
    font-family: var(--font-main);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.category-count {
    font-size: 0.9375rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.author-header {
    text-align: left;
}

.author-header::after {
    left: 0;
    transform: none;
}

.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.author-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.author-avatar,
.author-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.author-avatar {
    object-fit: cover;
}

.author-avatar-placeholder {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.author-job-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.author-socials {
    display: flex;
    gap: 0.75rem;
}

.author-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.author-socials a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.author-info h1 {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-top: 0.75rem;
}

.author-expertise {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.75rem;
}

.author-stats {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar,
    .author-avatar-placeholder {
        width: 120px;
        height: 120px;
    }

    .category-header h1,
    .author-info h1 {
        font-size: 1.75rem;
    }

    .author-header {
        text-align: center;
    }

    .author-header::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== ARTICLE PAGE SPECIFIC STYLES ===== */
.article-actions-container {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0.5rem 0 0.5rem 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
    width: 100%;
    overflow: visible;
}

.action-separator {
    color: #e2e8f0;
    font-size: 1.8rem;
    font-weight: 200;
    margin: 0 0.75rem;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.share-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1000;
}

.share-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.25rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s;
}

.share-toggle:hover {
    color: var(--primary);
}

.article-audio-inline {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.inline-audio-player {
    height: 36px;
    width: 100%;
    max-width: 500px;
    filter: grayscale(0.1);
}

@media (max-width: 480px) {
    .action-separator {
        margin: 0 0.4rem;
    }

    .inline-audio-player {
        height: 32px;
    }
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 0.5rem 0;
}

.share-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.share-menu.active {
    display: block;
}

.share-dropdown:hover .share-menu {
    display: block;
}

.share-menu-title {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-menu a,
.share-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: #334155;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.share-menu a:hover,
.share-menu button:hover {
    background: #f1f5f9;
}

.share-menu svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-menu .icon-facebook {
    color: #1877f2;
}

.share-menu .icon-x {
    color: #000;
}

.share-menu .icon-linkedin {
    color: #0a66c2;
}

.share-menu .icon-copy {
    color: #64748b;
}

.article-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0.55rem 0;
}

.tagline-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: var(--primary, #f97316);
}

.tagline-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ===== CATEGORY PAGE STYLES ===== */
.cat-hero {
    background: linear-gradient(135deg, var(--brand-color, #1a1a2e) 0%, var(--brand-color2, #16213e) 100%);
    margin: 0 -1.5rem 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.cat-hero::after {
    content: '';
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background: var(--logo-url, none) center/contain no-repeat;
    opacity: 0.06;
    filter: brightness(10);
}

.cat-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cat-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cat-featured-list {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex: 1;
}

.cat-featured {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex: 1;
    min-height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, background 0.2s;
    align-items: center;
}

.cat-featured:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.cat-featured-img {
    width: 130px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    min-width: 0;
    flex: 1;
}

.cat-featured-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 0.3rem;
}

.cat-featured-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-featured-title a {
    color: #fff;
    text-decoration: none;
}

.cat-featured-time {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.cat-featured-title a:hover {
    text-decoration: underline;
}

.cat-logo {
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    padding: 8px;
}

.cat-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-logo-ph {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    flex-shrink: 0;
}

.cat-info {
    color: #fff;
}

.cat-symbol {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.9rem;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-info h1 {
    font-family: var(--font-main, 'Inter', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cat-company {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.cat-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.cat-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
}

.cat-content {
    padding: 0.75rem 0;
}

@media (max-width: 1100px) {
    .cat-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .cat-left {
        flex-direction: column;
    }

    .cat-info h1 {
        font-size: 2rem;
    }

    .cat-stats {
        justify-content: center;
    }

    .cat-logo,
    .cat-logo-ph {
        width: 90px;
        height: 90px;
    }

    .cat-featured-list {
        justify-content: center;
        width: 100%;
    }

    .cat-featured {
        max-width: 320px;
        min-height: 110px;
    }
}

@media (max-width: 700px) {
    .cat-featured-list {
        flex-direction: column;
        align-items: center;
    }

    .cat-featured {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== 404 ERROR PAGE STYLES ===== */
.error-page {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0 var(--border);
}

.error-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-search {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.error-search-form {
    display: flex;
    gap: 0.5rem;
}

.error-search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.error-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.15);
}

.error-search-btn {
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-search-btn:hover {
    background: var(--accent-hover);
}

.error-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.error-divider::before,
.error-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.error-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.error-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.suggestion-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    text-align: left;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.suggestion-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.suggestion-card-body {
    padding: 1rem;
}

.suggestion-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.error-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.error-home-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.4rem;
    }

    .error-search-form {
        flex-direction: column;
    }

    .error-suggestions {
        grid-template-columns: 1fr;
    }
}

/* ===== AUTHOR PAGE STYLES ===== */
.breadcrumbs-author {
    max-width: 1100px;
    margin: 15px auto;
}

.author-header {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0;
    margin: 0 0 2rem;
}

.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.author-avatar {
    width: var(--avatar-size, 160px);
    height: auto;
    border-radius: 12px;
    border: 4px solid var(--accent);
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: var(--avatar-size, 160px);
    height: var(--avatar-size, 160px);
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.author-info h1 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    opacity: 0.9;
    line-height: 1.7;
    margin-top: 1rem;
}

.author-stats {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        width: var(--avatar-size-mobile, 120px);
    }

    .author-avatar-placeholder {
        width: var(--avatar-size-mobile, 120px);
        height: var(--avatar-size-mobile, 120px);
    }
}

/* ===== BREADCRUMBS CATEGORY ===== */
.breadcrumbs-cat {
    max-width: var(--container, 1200px);
    margin: 0 auto 0.75rem;
    padding: 0;
}

.breadcrumbs-cat ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin: 0;
    padding: 0;
}

.breadcrumbs-cat a {
    color: var(--text-muted, #6c757d);
    text-decoration: none;
}

.breadcrumbs-cat a:hover {
    color: var(--accent, #c9a227);
}

.breadcrumbs-cat .sep {
    margin: 0 0.5rem;
    color: var(--text-light, #adb5bd);
    font-size: 0.7rem;
}

.breadcrumbs-cat .current {
    color: var(--text-secondary, #495057);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #d4a853;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content {
    flex: 1;
    min-width: 280px;
}

.cookie-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-icon {
    font-size: 1.25rem;
}

.cookie-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #94a3b8;
}

.cookie-text a {
    color: #d4a853;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: #eab85a;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: #d4a853;
    color: #0f172a;
}

.cookie-btn-accept:hover {
    background: #eab85a;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: #64748b;
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-title {
        justify-content: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* ===================================
   CENTRAL THESES PAGE - ULTRA COMPACT
   =================================== */

.theses-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

/* Simple header */
.theses-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.theses-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.theses-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0.25rem 0 0 0;
}

/* Simple navigation */
.theses-nav {
    margin: 1rem 0;
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.theses-nav h2 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0 0 0.375rem 0;
}

.theses-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.theses-nav a {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    background: var(--bg-primary);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: background 0.2s ease;
}

.theses-nav a:hover {
    background: var(--accent);
    color: white;
}

/* Clean thesis entries */
.thesis-month-group {
    margin-bottom: 1.5rem;
}

.thesis-month-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--accent);
}

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

.thesis-entry {
    margin-bottom: 0.875rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    transition: transform 0.2s ease;
}

.thesis-entry:hover {
    transform: translateX(4px);
}

.thesis-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.thesis-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

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

.thesis-link::after {
    content: ' →';
}

/* Empty state */
.theses-empty {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-secondary);
}

/* Simple pagination */
.theses-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.theses-pagination a {
    display: inline-block;
    padding: 0.4375rem 0.875rem;
    background: var(--bg-secondary);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background 0.2s ease;
}

.theses-pagination a:hover {
    background: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .theses-page {
        padding: 1rem;
    }

    .theses-header h1 {
        font-size: 1.5rem;
    }

    .thesis-entry {
        padding: 0.75rem;
    }

    .thesis-text {
        font-size: 0.9375rem;
    }
}