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

html {

    scroll-behavior: smooth;
}

:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
}

body.dark {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
}

body.dark .search-box {

    border: 1px solid #334155;
}

body.dark .search-box input {

    background: #0f172a;

    color: white;

    border-color: #334155;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    transition: .3s;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

main.container {
    padding-top: 40px;
}

.header {
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid #e5e7eb;
}

body.dark .header {
    background: rgba(15, 23, 42, .9);
    border-color: #334155;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-box {
    width: 46px;
    height: 46px;

    border-radius: 14px;

    background:
        linear-gradient(135deg,
            #2563EB,
            #3B82F6);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;

    box-shadow:
        0 10px 20px rgba(37, 99, 235, .25);
}

.logo-box.has-logo,
.footer-logo-box.has-logo {
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.logo-box img,
.footer-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--card);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: .25s ease;
}

.icon-btn:hover {

    background: var(--primary);

    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .25);
}

.hero-grid {
    margin-top: 40px;

    display: grid;
    gap: 24px;

    grid-template-columns:
        2fr 1fr;

    grid-template-rows:
        1fr 1fr;
}

.hero-main {
    grid-row: span 2;
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
    cursor: pointer;
    transition: .25s ease;
}

.hero-main img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hero-content {
    padding: 28px;
}

.category {

    display: inline-flex;

    align-items: center;

    padding: 6px 14px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: .78rem;

    font-weight: 700;

    letter-spacing: .4px;

    text-transform: uppercase;

    margin-bottom: 18px;

}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 18px 0 18px;

    line-height: 1.22;

    color: var(--text);
    text-decoration: none;
    transition: .25s;
}

.hero-content p {

    color: var(--muted);

    margin-top: 16px;

    line-height: 1.8;

    text-decoration: none;

}

.hero-side {

    background: var(--card);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);

    cursor: pointer;

    transition: .25s ease;

    display: flex;

    flex-direction: column;

    height: 100%;

    gap: 0;

}

.hero-side-content {
    padding: 20px;
}

.hero-main:hover,
.hero-side:hover {
    transform: translateY(-4px);
}

main .hero-grid>a.hero-main,
main .hero-grid>a.hero-main:visited,
main .hero-grid>a.hero-side,
main .hero-grid>a.hero-side:visited {

    color: inherit !important;

    text-decoration: none !important;

}

main .hero-grid>a.hero-main *,
main .hero-grid>a.hero-side * {

    color: inherit;

    text-decoration: none;

}

main .hero-grid>a.hero-main h1 {

    color: var(--text);

}

main .hero-grid>a.hero-side h3 {

    color: var(--text);

}

main .hero-grid>a.hero-main:hover h1,
main .hero-grid>a.hero-side:hover h3 {

    color: var(--primary);

}

.hero-main img,
.hero-side img {

    display: block;

}

.hero-content .category,
.hero-small-content span {

    color: var(--primary);
    font-weight: 700;
    text-decoration: none;

}

.hero-content .post-date {

    color: var(--muted);
    text-decoration: none;

}


.hero-small-content h3 {

    margin: 0;

    font-size: 1.25rem;

    line-height: 1.35;

}

.hero-main:hover h1,
.hero-side:hover h3 {

    color: var(--primary);

}

.hero-side img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}



.hero-small-content span {

    display: inline-flex;

    align-self: flex-start;

    padding: 6px 14px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .4px;

    text-transform: uppercase;

}



.hero-small-content {

    padding: 24px;

    display: flex;

    flex-direction: column;

    gap: 2px;

    flex: 1;

}


@media(max-width:900px) {

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-main {
        grid-row: auto;
    }

    .hero-content {
        padding: 24px;

    }

    .hero-content p {
        max-width: 700px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-side img {
        height: 220px;
    }

}

@media(max-width:768px) {

    .nav {
        height: 64px;
    }

    .logo-box {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

}

@media(max-width:768px) {

    .newsletter {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .newsletter h2 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .newsletter p {
        font-size: .95rem;
    }

}

@media(max-width:768px) {

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
        max-width: 320px;
    }

    .newsletter-form button {
        width: 160px;
    }

}

@media(max-width:768px) {

    .footer-menu {

        gap: 10px;

        row-gap: 8px;
    }

    .footer-menu a {
        font-size: .9rem;
    }

}

@media(max-width:768px) {

    .footer-top {

        flex-direction: column;
        gap: 24px;
    }

    .footer-menu {

        justify-content: flex-start;
    }

}

@media(max-width:768px) {

    .hero-main img {
        height: 260px;
    }

}

.section {
    margin-top: 60px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.article-card {

    background: var(--card);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);

    cursor: pointer;

    text-decoration: none;

    color: inherit;

    height: 100%;

    transition: .4s ease;

    display: flex;

    flex-direction: column;

}



.article-card * {
    text-decoration: none;
}



.article-card:hover {
    transform: translateY(-8px) scale(1.03);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .10);
}

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

.article-content {
    padding: 20px;
}

.article-body {
    max-width: 800px;
    margin: auto;
}

.article-content span {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 999px;

    background:
        rgba(37, 99, 235, .08);

    color: #2563eb;

    font-size: .75rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.article-content h3 {
    margin: 12px 0;
    line-height: 1.4;
}

.article-content p {
    color: var(--muted);
}

@media(max-width:900px) {

    .article-grid {
        grid-template-columns: 1fr;
    }

}

.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

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

.category-nav a {
    text-decoration: none;
    color: var(--primary);

    background: var(--card);

    padding: 10px 18px;

    border-radius: 999px;

    font-weight: 600;

    white-space: nowrap;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .04);

    transition: .25s ease;
}

.category-nav a:hover {
    background: var(--primary);
    color: white;
}

.category-nav a.active {
    background: var(--primary);
    color: white;
}

.trending-grid {
    display: grid;
    gap: 20px;
}

.trending-item {

    background: var(--card);

    padding: 24px;

    border-radius: 20px;

    display: flex;

    gap: 20px;

    align-items: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);

    transition: .25s ease;
}

.trending-item:hover {
    transform: translateY(-4px);
}

.trending-item {

    text-decoration: none;

    color: inherit;

}

.trending-item:visited {

    color: inherit;

}

.trending-item:hover h3 {

    color: var(--primary);

}

.trending-item span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.trending-item h3 {

    line-height: 1.4;

    color: var(--text);

    text-decoration: none;

    transition: .25s ease;

}

.footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    border-top: 1px solid #e5e7eb;
    clear: both;
}

.footer-brand h2 {
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--muted);
}

.footer-links {

    margin-top: 20px;

    display: flex;

    gap: 20px;

    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}


.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}



.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo,
.footer-logo {
    text-decoration: none;
    color: inherit;
}

.logo {
    min-height: 46px;
}

.footer-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg,
            #2563EB,
            #3B82F6);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-social a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10001;
    display: none;
    max-width: 720px;
    margin: auto;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

.cookie-consent p {
    margin: 0 0 12px;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-brand p {
    max-width: 400px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-menu a {
    text-decoration: none;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: var(--muted);
    font-size: .9rem;
}

.newsletter {

    margin-top: 80px;

    background:
        linear-gradient(135deg,
            #2563EB,
            #3B82F6);

    color: white;

    border-radius: 28px;

    padding: 50px;

    text-align: center;
}

/* ==========================================
   NEWSLETTER - DARK MODE
========================================== */

body.dark .newsletter {

    background:
        linear-gradient(135deg,
            #1E293B,
            #0F172A);

    border: 1px solid #334155;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .35);

}

body.dark .newsletter h2 {

    color: #F8FAFC;

}

body.dark .newsletter p {

    color: #CBD5E1;

}

.newsletter h2 {
    margin-bottom: 10px;
    color: white;
}

.newsletter p {
    color: rgba(255, 255, 255, .85);
}

.newsletter-form {

    margin-top: 24px;

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

.newsletter-form input {

    width: 320px;

    padding: 14px 18px;

    border: none;

    border-radius: 12px;
}

body.dark .newsletter-form input {

    background: #0F172A;

    color: #F8FAFC;

    border: 1px solid #334155;

}

.newsletter-form button {

    padding: 14px 24px;

    border: none;

    border-radius: 12px;

    background: white;

    color: #2563EB;

    font-weight: 700;

    cursor: pointer;
}

body.dark .newsletter-form button {

    background: #2563EB;

    color: #FFFFFF;

}

body.dark .newsletter-form button:hover {

    background: #3B82F6;

}

.post-date {
    margin-top: 6px;
    margin-bottom: 10px;

    font-size: .85rem;

    color: var(--muted);
}

.search-modal {

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, .5);

    display: none;

    align-items: flex-start;

    justify-content: center;

    padding-top: 100px;

    z-index: 999;
}

.search-modal.active {
    display: flex;
}

.search-box {

    width: min(600px,
            90%);

    background: var(--card);

    border-radius: 24px;

    padding: 24px;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .15);
}

.search-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.search-header button {

    border: none;

    background: none;

    font-size: 1.3rem;

    cursor: pointer;
}

.search-header-box {
    margin-bottom: 40px;
}

.search-box input {

    width: 100%;

    padding: 14px 16px;

    border: 1px solid #dbe4f0;

    border-radius: 12px;

    margin-bottom: 20px;
}

.search-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.search-tags span {

    padding: 8px 14px;

    border-radius: 999px;

    background: var(--bg);

    font-size: .9rem;
}

.menu-btn {

    display: none;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 12px;

    background: var(--card);

    cursor: pointer;
}

.mobile-menu {

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, .5);

    display: none;

    z-index: 1000;
}

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

.mobile-menu-content {

    width: 280px;

    height: 100%;

    background: var(--card);

    padding: 30px;

    display: flex;

    flex-direction: column;

    gap: 20px;

    animation: slideMenu .25s ease;
}

.mobile-menu-content a {

    text-decoration: none;

    color: inherit;

    font-weight: 600;
}

@keyframes slideMenu {

    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@media(max-width:768px) {

    .menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;
    }

}

.mobile-menu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;

    padding-bottom: 20px;

    border-bottom: 1px solid #e5e7eb;
}

.close-menu {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 12px;

    background: var(--bg);

    cursor: pointer;

    font-size: 18px;
}

.adsense-block {

    margin-top: 40px;

    height: 120px;

    border-radius: 20px;

    border: 2px dashed #cbd5e1;

    background: transparent;

    display: flex;

    align-items: center;

    justify-content: center;
}

.ad-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;
}

.ad-label {

    font-weight: 700;

    color: var(--muted);
}

.ad-size {

    font-size: .85rem;

    color: var(--muted);
}




/* ARTICLE PAGE */

.article-container {
    max-width: 1050px;
    margin-inline: auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 30px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.article-header h1 {

    font-size: 3rem;

    line-height: 1.2;

    margin-top: 20px;
}

.article-meta {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 20px;

    color: var(--muted);
}

.article-cover {

    width: 100%;

    border-radius: 24px;

    margin-top: 40px;
    max-height: 550px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.article-excerpt {

    max-width: 100%;

    margin: 36px 0 44px;

    padding: 0;

    font-size: 1.3rem;

    line-height: 1.75;

    font-weight: 500;

    color: #475569;

}

.article-content {

    margin-top: 40px;

    line-height: 1.9;

    font-size: 1.1rem;
}



/* Article Lists */

.article-content ul,
.article-content ol {

    margin: 28px 0;

    padding-left: 50px;

}

.article-content li {

    margin-bottom: 14px;

    padding-left: 8px;

    line-height: 1.9;

}

.article-content h2 {

    margin-top: 40px;

    margin-bottom: 20px;
}

.article-card .article-content p {

    margin-bottom: 24px;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.article-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 40px;

}

.article-tags a {

    display: inline-flex;

    align-items: center;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: .82rem;

    font-weight: 700;

    letter-spacing: .2px;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}

.article-tags a:hover {

    background: var(--primary);

    color: #fff;

    transform: translateY(-2px);

}

body.dark .article-tags a {

    background: rgba(59, 130, 246, .15);

    color: #60A5FA;

}

body.dark .article-tags a:hover {

    background: var(--primary);

    color: #fff;

}

@media (max-width:768px) {

    .article-excerpt {

        font-size: 1.1rem;

        line-height: 1.7;

        margin: 28px auto 36px;

        padding: 0 20px;

    }

}

.toc {

    margin: 40px 0;

    padding: 24px;

    border-radius: 20px;

    background: var(--card);
}

.toc h3 {

    margin-bottom: 15px;
}

.toc ul {

    padding-left: 20px;
}

.toc li {

    margin-bottom: 10px;
}

.article-ad {

    height: 120px;

    border: 2px dashed #cbd5e1;

    border-radius: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 40px 0;

    color: var(--muted);

    font-weight: 700;
}

@media(max-width:768px) {

    .article-header h1 {

        font-size: 2rem;
    }

    .article-container {

        padding: 40px 20px;
    }

}

.share-section {

    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid #E5E7EB;

    text-align: left;
}

.share-section h3 {

    font-size: 1rem;

    font-weight: 700;

    margin-bottom: 0;
}

.share-buttons {

    display: flex;
    justify-content: flex-start;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 18px;
}

.share-buttons a {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid #E5E7EB;
    border-radius: 10px;

    background: #FFFFFF;

    text-decoration: none;

    color: #64748B;

    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.share-buttons a svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.share-facebook svg {
    fill: currentColor;
    stroke: none;
}

.share-buttons a:hover {

    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #2563EB;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.share-facebook {

    background: #FFFFFF !important;
}

.share-x {

    background: #FFFFFF !important;
}

.share-whatsapp {

    background: #FFFFFF !important;
}

.share-telegram {

    background: #FFFFFF !important;
}

.related-posts {

    margin-top: 80px;
}

.related-section-header {
    margin-bottom: 28px;
}

.related-section-header h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.related-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 24px;

    margin-top: 30px;
}

.related-card {

    background: var(--card);

    border-radius: 20px;

    overflow: hidden;
    cursor: pointer;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

.related-card img {

    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
}

.related-card-content {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 20px;
}

.related-category {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.related-card h3 {

    margin-bottom: 12px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.related-card p {
    display: -webkit-box;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: auto;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.related-meta span:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #cbd5e1;
}

@media(max-width:1024px) {

    .related-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {

    .related-grid {

        grid-template-columns: 1fr;
    }

}

.author-box {

    margin-top: 80px;

    padding: 30px;

    border-radius: 24px;

    background: var(--card);

    display: flex;

    gap: 20px;

    align-items: center;
}

.author-box .author-avatar {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;
}


.author-info p {

    margin-top: 8px;
}

.author-stats {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 14px;
}

.author-stats span {

    padding: 8px 14px;

    border-radius: 999px;

    background: var(--bg);

    font-size: .85rem;

    font-weight: 600;

    color: var(--primary);
}

.related-card {

    text-decoration: none;

    color: inherit;

    transition: .25s ease;
}

.related-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .08);
}

.toc a {

    color: inherit;

    text-decoration: none;

    transition: .2s ease;
}

.toc a:hover {

    color: var(--primary);
}

#progress-bar {

    position: fixed;

    top: 0;

    left: 0;

    width: 0;

    height: 4px;

    background: var(--primary);

    z-index: 10000;

    transition: .1s linear;
}


body {
    padding-bottom: 0;
}

@media(max-width:768px) {

    body {
        padding-bottom: 80px;
    }

}

.article-container .newsletter {

    margin-top: 100px;
}

.article-container .footer {

    margin-top: 80px;
}



/* CATEGORY PAGE */

.category-header {

    background: var(--card);

    padding: 40px;

    border-radius: 28px;

    margin-bottom: 50px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

.category-header h1 {

    font-size: 3rem;

    margin-bottom: 10px;
}

.category-header p {

    color: var(--muted);
}

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}



.article-card .article-content {
    flex: 1;
}

.pagination {

    margin-top: 60px;

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}

.pagination a {

    min-width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: var(--card);

    text-decoration: none;

    color: inherit;

    transition: .25s;
}

.pagination a:hover {

    background: #2563eb;

    color: white;
}

.pagination a.active {

    background: var(--primary);

    color: white;
}

@media(max-width:768px) {

    .category-grid {

        grid-template-columns: 1fr;
    }

    .category-header {

        padding: 28px 24px;
    }

    .category-header h1 {

        font-size: 2rem;
    }

}

.category-description {

    max-width: 650px;

    color: var(--muted);

    margin-top: 12px;

    line-height: 1.8;
}

.pagination {
    margin-top: 80px;
}

.empty-state {

    display: none;

    text-align: center;

    padding: 80px 20px;
}

.empty-state h3 {

    margin-bottom: 10px;
}

/* SEARCH PAGE */

.search-page-box {

    margin-bottom: 24px;

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

@media(max-width:768px) {

    .search-page-box {

        flex-wrap: nowrap;
    }

    .search-page-box input {

        min-width: 0;
    }

    .search-page-box button {

        white-space: nowrap;
    }

}

.search-page-box input {

    flex: 1;

    min-width: 250px;

    padding: 14px 18px;

    border: 1px solid #dbe4f0;

    border-radius: 14px;

    background: var(--card);

    color: var(--text);
}

.search-page-box button {

    padding: 14px 24px;

    border: none;

    border-radius: 14px;

    background: var(--primary);

    color: white;

    font-weight: 600;

    cursor: pointer;
}

.popular-searches {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 40px;
}

.popular-searches span {

    color: var(--muted);
}

.popular-searches a {

    text-decoration: none;

    color: var(--primary);

    font-weight: 600;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    transition: .25s ease;
}

.popular-searches a:hover {

    background: var(--primary);

    color: white;
}

/* =========================
   404 PAGE
========================= */

.error-404 {
    padding: 0 0 40px;
}

.error-box {

    background: var(--card);

    border-radius: 32px;

    padding: 60px 40px;

    text-align: center;
}

.error-number {

    font-size: 120px;

    font-weight: 800;

    line-height: 1;

    color: var(--primary);

    margin-bottom: 20px;
}

.error-box h1 {

    font-size: 48px;

    margin-bottom: 20px;
}

.error-box p {

    max-width: 600px;

    margin: 0 auto 32px;

    color: var(--muted);
}

.error-actions {

    display: flex;

    justify-content: center;

    gap: 16px;

    flex-wrap: wrap;
}

.btn-primary {

    background: var(--primary);

    color: #fff;

    text-decoration: none;

    padding: 14px 24px;

    border-radius: 14px;

    font-weight: 600;
}

.btn-secondary {

    background: var(--card);

    border: 1px solid #e5e7eb;

    color: var(--text);

    text-decoration: none;

    padding: 14px 24px;

    border-radius: 14px;

    font-weight: 600;
}

.popular-categories {

    padding: 20px 0 60px;
}

.popular-categories h2 {

    margin-bottom: 24px;
}

.category-pills {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.category-pills a {

    text-decoration: none;

    padding: 12px 20px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-weight: 600;
}

@media(max-width:768px) {

    .error-number {

        font-size: 80px;
    }

    .error-box {

        padding: 50px 24px;
    }

    .error-box h1 {

        font-size: 34px;
    }

    .error-actions {

        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {

        width: 100%;
    }

}


/* =========================
   ABOUT PAGE
========================= */


.page-header {
    background: var(--card);
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.page-badge {

    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 8px 14px;

    margin-bottom: 20px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: .9rem;

    font-weight: 700;
}

body.dark .page-badge {

    background: rgba(59, 130, 246, .15);

    color: #60a5fa;
}

.page-header h1 {
    font-size: 56px;
    margin-bottom: 16px;
}

.page-header p {
    color: #64748b;
    max-width: 520px;
    line-height: 1.8;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    margin-bottom: 20px;
}

.about-section p {
    color: #64748b;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--card);
    border-radius: 24px;
    padding: 28px;
    transition: .25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.about-card h3 {
    margin-bottom: 10px;
}

.about-card p {
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.stat-box {
    background: var(--card);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
}

.stat-box h3 {
    font-size: 52px;
    margin-bottom: 10px;
}

.stat-box span {
    color: var(--muted);
    font-weight: 600;
}

@media (max-width:768px) {


    .page-header {
        padding: 32px;
    }

    .page-header h1 {
        font-size: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

}

/* =========================
   CONTACT PAGE
========================= */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {

    background: var(--card);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--muted);
}

.contact-form-section {
    margin-bottom: 60px;
}

.contact-form-section h2 {
    margin-bottom: 24px;
}

.contact-form {
    max-width: none;
    width: 100%;
    margin: auto;
    background: var(--card);
    border-radius: 28px;
    padding: 32px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;

    border: 1px solid #dbe4f0;

    border-radius: 14px;

    background: var(--bg);

    color: var(--text);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: fit-content;

    padding: 14px 24px;

    border: none;

    border-radius: 14px;

    background: var(--primary);

    color: white;

    font-weight: 600;

    cursor: pointer;

    transition: .25s ease;
}

.contact-form button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .25);
}

.contact-faq {
    margin-bottom: 60px;
}

.contact-faq h2 {
    margin-bottom: 24px;
}

.faq-item {
    background: var(--card);

    border-radius: 20px;

    padding: 24px;

    margin-bottom: 16px;
}

.faq-item h3 {
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--muted);
}

.contact-page .page-header {

    min-height: auto;

    padding: 50px 60px;
}

@media(max-width:768px) {

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-form button {
        width: 100%;
    }

}

@media(max-width:768px) {

    .page-badge {

        font-size: .8rem;

        padding: 6px 12px;
    }

}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(37, 99, 235, .08);

    font-size: 28px;
}

.contact-form input,
.contact-form textarea {
    transition: .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .10);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-item summary {

    list-style: none;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.faq-item summary::after {

    content: "+";

    font-size: 24px;

    font-weight: 700;
}

.faq-item[open] summary::after {

    content: "−";
}

.faq-item[open] {
    border: 1px solid rgba(37, 99, 235, .15);
}

.contact-card {
    transition: .25s ease;
}

.contact-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .08);
}

body.dark .contact-form input,
body.dark .contact-form textarea {

    background: #0f172a;

    border-color: #334155;
}

body.dark .faq-item {
    border: 1px solid #334155;
}



/* =========================
   PRIVACY POLICY PAGE
========================= */

.legal-content {
    background: var(--card);
    border-radius: 32px;
    padding: 60px;
    line-height: 1.9;

    width: 100%;
    max-width: none;

    margin: 0;
}

.policy-updated {

    display: inline-flex;

    padding: 10px 16px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-weight: 600;

    margin-bottom: 30px;
}

.legal-content h2 {

    margin-top: 40px;

    margin-bottom: 16px;

    font-size: 1.7rem;
}

.legal-content p {

    color: var(--muted);

    margin-bottom: 16px;
}

.legal-content ul {

    padding-left: 24px;

    margin-bottom: 20px;
}

.legal-content li {

    margin-bottom: 10px;
}

.legal-contact {

    margin-top: 50px;
    padding: 24px 30px;

    border-radius: 20px;

    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .10);
}

.legal-contact h3 {
    margin-bottom: 12px;
}

.legal-contact p {
    margin-bottom: 20px;
    max-width: 600px;
}

.legal-contact .btn-primary {
    display: inline-flex;
}

@media(max-width:768px) {

    .legal-content {

        padding: 28px;
    }

}

/* AUTHOR PAGE */

.author-profile {

    background: var(--card);

    border-radius: 28px;

    padding: 40px;

    display: flex;

    gap: 30px;

    align-items: center;

    margin-bottom: 40px;
}

.author-profile .author-avatar {

    width: 100px;

    height: 100px;

    border-radius: 50%;

    background: var(--primary);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    font-weight: 700;

    flex-shrink: 0;
}

.author-social {

    display: flex;

    gap: 16px;

    margin-top: 20px;
}

.author-social a {

    color: var(--primary);

    font-weight: 600;
}

@media(max-width:768px) {

    .author-profile {

        flex-direction: column;

        text-align: center;
    }

    .author-social {

        justify-content: center;
        flex-wrap: wrap;
    }

}

.author-role {

    color: var(--primary);

    font-weight: 600;

    margin-bottom: 12px;
}

.author-meta {

    margin-top: 14px;

    color: var(--muted);

    font-size: .9rem;
}

.author-stats-mini {

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.author-stats-mini span {

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: .85rem;

    font-weight: 600;
}

.latest-posts {
    margin-top: 60px;
}


/* Sprint 6.2 - Inline Auto Internal Linking Engine */

.article-inline-link {

    color: var(--text);

    font-weight: 600;

    text-decoration: none;

    border-bottom: 1px solid rgba(37, 99, 235, .22);

    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease;

}

.article-inline-link:visited {

    color: var(--text);

}

.article-inline-link:hover {

    color: var(--primary);

    border-bottom-color: var(--primary);

    text-decoration: none;

}

.article-inline-link:focus-visible {

    outline: 2px solid rgba(37, 99, 235, .25);

    outline-offset: 3px;

    border-radius: 4px;

}

/* Mobile Featured Image */

@media (max-width:768px) {

    .article-cover {

        aspect-ratio: auto;

        height: auto;

        max-height: none;

        object-fit: contain;

        object-position: center;

    }

}


/* ==========================================
   ADS MANAGEMENT
========================================== */

.ad-slot {

    width: 100%;

    margin: 40px 0;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}

.ad-slot img {

    max-width: 100%;

    height: auto;

    display: block;

}

.ad-slot iframe {

    max-width: 100%;

}

.ad-slot ins {

    max-width: 100%;

}

/* ==========================================
   MOBILE ANCHOR
========================================== */

.mobile-anchor-wrapper {

    display: none;

}

@media (max-width:768px) {

    .mobile-anchor-wrapper {

        position: fixed;

        left: 0;

        right: 0;

        bottom: 0;

        z-index: 9999;

        display: flex;

        justify-content: center;

        align-items: center;

        padding:
            10px 12px calc(10px + env(safe-area-inset-bottom));

        background:
            rgba(255, 255, 255, .96);

        backdrop-filter:
            blur(12px);

        border-top:
            1px solid #e5e7eb;

        border-radius:
            16px 16px 0 0;

        box-shadow:
            0 -10px 30px rgba(0, 0, 0, .12);

        animation:
            mobileAnchorShow .25s ease;

    }

    .mobile-anchor-content {

        width: 100%;

        max-width: 340px;

    }

    .mobile-anchor-content>* {

        width: 100%;

    }

    .mobile-anchor-close {

        position: absolute;

        top: 8px;

        right: 10px;

        width: 28px;

        height: 28px;

        border: none;

        border-radius: 50%;

        background: rgba(255, 255, 255, .9);

        color: #64748b;

        cursor: pointer;

        font-size: 18px;

        font-weight: 700;

        display: flex;

        align-items: center;

        justify-content: center;

        transition: .2s;

        z-index: 10000;

    }

}

body.dark .mobile-anchor-wrapper {

    background:
        rgba(15, 23, 42, .96);

    backdrop-filter:
        blur(12px);

    border-top:
        1px solid #334155;

}

body.dark .mobile-anchor-close {

    background:
        rgba(51, 65, 85, .9);

    color: #fff;

}

@keyframes mobileAnchorShow {

    from {

        transform: translateY(100%);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}