/* =========================================================
   AHI TECHHUB
   SINGLE ARTICLE PAGE
   single.css
========================================================= */

:root {

    --primary: #0A84FF;
    --primary-dark: #2563EB;
    --accent: #00C2FF;

    --background: #F5F7FA;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;

    --text: #111827;
    --text-soft: #334155;
    --muted: #64748B;

    --border: #E2E8F0;

    --dark-bg: #0B1120;
    --dark-surface: #111827;
    --dark-soft: #172033;

    --shadow-sm:
        0 4px 18px
        rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 12px 35px
        rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 25px 70px
        rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 1180px;

    --transition: 0.28s ease;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        "Poppins",
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);

    line-height:
        1.7;

    overflow-x:
        hidden;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin:
        0 auto;
}


/* =========================================================
   READING PROGRESS
========================================================= */

#progress-bar {

    position: fixed;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--accent)
        );

    z-index: 99999;
}


/* =========================================================
   HEADER
========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 5000;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid
        rgba(
            226,
            232,
            240,
            0.85
        );

    box-shadow:
        0 4px 20px
        rgba(
            15,
            23,
            42,
            0.04
        );
}

.header-container {

    min-height:
        78px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    flex-shrink:
        0;
}

.logo img {

    width:
        46px;

    height:
        46px;

    object-fit:
        contain;
}

.brand-name {

    display:
        flex;

    gap:
        5px;

    font-size:
        21px;

    font-weight:
        800;

    line-height:
        1;
}

.brand-name span {

    color:
        var(--primary);
}

.tagline {

    margin-top:
        5px;

    font-size:
        8px;

    letter-spacing:
        1.1px;

    color:
        var(--muted);

    text-transform:
        uppercase;

    line-height:
        1;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex: 1;
}

.navbar ul {

    display:
        flex;

    align-items:
        center;

    gap:
        3px;

    list-style:
        none;
}

.navbar li {
    list-style:
        none;
}

.navbar a {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        9px 11px;

    border-radius:
        9px;

    color:
        var(--text-soft);

    font-size:
        13px;

    font-weight:
        600;

    white-space:
        nowrap;

    transition:
        var(--transition);
}

.navbar a:hover {

    color:
        var(--primary);

    background:
        #EEF5FF;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;
}

.header-btn,
.menu-toggle {

    width:
        42px;

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    transition:
        var(--transition);
}

.header-btn:hover,
.menu-toggle:hover {

    color:
        var(--primary);

    border-color:
        rgba(
            10,
            132,
            255,
            0.30
        );

    background:
        #EEF5FF;
}

.menu-toggle {
    display:
        none;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {

    position:
        fixed;

    top:
        0;

    right:
        -100%;

    width:
        min(
            340px,
            88%
        );

    height:
        100vh;

    padding:
        85px 25px 30px;

    background:
        var(--surface);

    box-shadow:
        -20px 0 50px
        rgba(
            15,
            23,
            42,
            0.16
        );

    z-index:
        6000;

    transition:
        right
        0.35s ease;
}

.mobile-menu.open {
    right:
        0;
}

.mobile-close {

    position:
        absolute;

    top:
        20px;

    right:
        20px;

    width:
        42px;

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size:
        17px;
}

.mobile-menu ul {

    display:
        flex;

    flex-direction:
        column;

    gap:
        6px;

    list-style:
        none;
}

.mobile-menu a {

    display:
        block;

    padding:
        13px 15px;

    border-radius:
        10px;

    color:
        var(--text-soft);

    font-size:
        14px;

    font-weight:
        600;
}

.mobile-menu a:hover {

    color:
        var(--primary);

    background:
        #EEF5FF;
}


/* =========================================================
   SEARCH OVERLAY
========================================================= */

.search-overlay {

    position:
        fixed;

    inset:
        0;

    width:
        100%;

    height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    background:
        rgba(
            15,
            23,
            42,
            0.68
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    z-index:
        10000;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.search-overlay.open {

    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}

.search-close {

    position:
        absolute;

    top:
        28px;

    right:
        28px;

    width:
        46px;

    height:
        46px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        50%;

    background:
        #FFFFFF;

    color:
        #111827;

    font-size:
        18px;

    box-shadow:
        0 10px 30px
        rgba(
            15,
            23,
            42,
            0.20
        );

    transition:
        var(--transition);
}

.search-close:hover {

    color:
        var(--primary);

    transform:
        rotate(90deg);
}

.search-box {

    width:
        min(
            720px,
            100%
        );

    padding:
        35px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    border-radius:
        24px;

    background:
        rgba(
            255,
            255,
            255,
            0.98
        );

    box-shadow:
        var(--shadow-lg);

    transform:
        translateY(15px)
        scale(0.98);

    transition:
        transform
        0.25s ease;
}

.search-overlay.open
.search-box {

    transform:
        translateY(0)
        scale(1);
}

.search-box h2 {

    margin-bottom:
        20px;

    color:
        #111827;

    font-size:
        27px;

    font-weight:
        800;
}

.search-box form {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}

.search-box input {

    flex:
        1;

    min-width:
        0;

    height:
        54px;

    padding:
        0 16px;

    border:
        1px solid
        #E2E8F0;

    border-radius:
        12px;

    outline:
        none;

    background:
        #F8FAFC;

    color:
        #111827;

    font-size:
        14px;
}

.search-box input:focus {

    border-color:
        var(--primary);

    background:
        #FFFFFF;

    box-shadow:
        0 0 0 4px
        rgba(
            10,
            132,
            255,
            0.10
        );
}

.search-box form button {

    width:
        54px;

    height:
        54px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    border:
        none;

    border-radius:
        12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:
        #FFFFFF;

    font-size:
        16px;

    transition:
        var(--transition);
}

.search-box form button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(
            10,
            132,
            255,
            0.22
        );
}


/* =========================================================
   ARTICLE HERO
========================================================= */

.article-hero {

    position:
        relative;

    padding:
        75px 0 65px;

    background:

        radial-gradient(
            circle at 12% 20%,
            rgba(
                10,
                132,
                255,
                0.10
            ),
            transparent 30%
        ),

        radial-gradient(
            circle at 88% 10%,
            rgba(
                0,
                194,
                255,
                0.08
            ),
            transparent 28%
        ),

        linear-gradient(
            180deg,
            #F8FBFF,
            #F5F7FA
        );

    border-bottom:
        1px solid
        var(--border);
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        9px;

    margin-bottom:
        25px;

    color:
        var(--muted);

    font-size:
        11px;
}

.breadcrumb a:hover {

    color:
        var(--primary);
}


/* =========================================================
   CATEGORY
========================================================= */

.category-badge {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px 12px;

    border:
        1px solid
        rgba(
            10,
            132,
            255,
            0.15
        );

    border-radius:
        30px;

    background:
        rgba(
            255,
            255,
            255,
            0.80
        );

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.5px;

    text-transform:
        uppercase;
}


/* =========================================================
   ARTICLE TITLE
========================================================= */

.article-hero h1 {

    max-width:
        1000px;

    margin:
        18px 0 0;

    font-size:
        clamp(
            36px,
            5vw,
            58px
        );

    line-height:
        1.17;

    letter-spacing:
        -1.6px;

    font-weight:
        800;
}


/* =========================================================
   ARTICLE EXCERPT
========================================================= */

.article-excerpt {

    max-width:
        860px;

    margin-top:
        18px;

    color:
        var(--text-soft);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        16px;

    line-height:
        1.9;
}


/* =========================================================
   ARTICLE META
========================================================= */

.article-meta {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

    margin-top:
        30px;
}

.author {

    display:
        flex;

    align-items:
        center;

    gap:
        11px;
}

.author-avatar {

    width:
        44px;

    height:
        44px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color:
        #FFFFFF;

    font-size:
        12px;

    font-weight:
        800;
}

.author strong {

    display:
        block;

    color:
        var(--text);

    font-size:
        13px;
}

.author small {

    display:
        block;

    margin-top:
        2px;

    color:
        var(--muted);

    font-size:
        10px;
}

.meta-right {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    color:
        var(--muted);

    font-size:
        11px;
}

.meta-right span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.featured-image-section {

    padding:
        0 0 55px;

    background:
        var(--background);
}

.featured-image {

    position:
        relative;

    width:
        100%;

    overflow:
        hidden;

    border-radius:
        0 0 var(--radius-xl) var(--radius-xl);

    box-shadow:
        var(--shadow-md);

    background:
        #EAF2FF;
}

.featured-image img {

    width:
        100%;

    max-height:
        680px;

    object-fit:
        cover;
}


/* =========================================================
   ARTICLE MAIN
========================================================= */

.article-main {

    padding:
        65px 0 85px;

    background:
        var(--surface);
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.article-content {

    width:
        min(
            100%,
            820px
        );

    margin:
        0 auto;

    color:
        var(--text-soft);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        17px;

    line-height:
        2;
}


/* Paragraph */

.article-content p {

    margin-bottom:
        22px;
}


/* Lead */

.article-content p:first-child {

    font-size:
        19px;

    color:
        var(--text);

    font-weight:
        500;
}


/* Headings */

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {

    margin:
        40px 0 15px;

    color:
        var(--text);

    font-family:
        "Poppins",
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    line-height:
        1.35;
}

.article-content h2 {

    font-size:
        30px;
}

.article-content h3 {

    font-size:
        23px;
}

.article-content h4 {

    font-size:
        19px;
}


/* Links */

.article-content a {

    color:
        var(--primary);

    text-decoration:
        underline;

    text-underline-offset:
        3px;
}

.article-content a:hover {
    color:
        var(--primary-dark);
}


/* Lists */

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

    margin:
        20px 0 25px;

    padding-left:
        26px;
}

.article-content li {

    margin-bottom:
        9px;
}


/* Blockquote */

.article-content blockquote {

    margin:
        30px 0;

    padding:
        20px 25px;

    border-left:
        4px solid
        var(--primary);

    border-radius:
        0 14px 14px 0;

    background:
        #F5F9FF;

    color:
        var(--text);

    font-style:
        italic;
}


/* Code */

.article-content pre {

    margin:
        25px 0;

    padding:
        20px;

    overflow-x:
        auto;

    border-radius:
        14px;

    background:
        #0F172A;

    color:
        #E2E8F0;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size:
        13px;

    line-height:
        1.7;
}

.article-content code {

    padding:
        2px 6px;

    border-radius:
        5px;

    background:
        #EEF2F7;

    font-family:
        monospace;

    font-size:
        0.9em;
}


/* Images inside article */

.article-content img {

    width:
        100%;

    height:
        auto;

    margin:
        30px 0;

    border-radius:
        14px;

    box-shadow:
        var(--shadow-sm);
}


/* =========================================================
   TAGS
========================================================= */

.article-tags {

    width:
        min(
            100%,
            820px
        );

    margin:
        50px auto 0;

    padding-top:
        25px;

    border-top:
        1px solid
        var(--border);
}

.article-tags h3 {

    margin-bottom:
        12px;

    color:
        var(--text);

    font-size:
        14px;

    font-weight:
        700;
}

.tags {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;
}

.tags span {

    padding:
        7px 12px;

    border:
        1px solid
        var(--border);

    border-radius:
        30px;

    background:
        var(--surface-soft);

    color:
        var(--muted);

    font-size:
        10px;

    font-weight:
        600;
}


/* =========================================================
   SHARE
========================================================= */

.share-section {

    width:
        min(
            100%,
            820px
        );

    margin:
        30px auto 0;

    padding:
        22px 0;

    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;
}

.share-section h3 {

    color:
        var(--text);

    font-size:
        14px;
}

.share-buttons {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;
}

.share-buttons a {

    width:
        39px;

    height:
        39px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size:
        13px;

    transition:
        var(--transition);
}

.share-buttons a:hover {

    color:
        #FFFFFF;

    background:
        var(--primary);

    border-color:
        var(--primary);

    transform:
        translateY(-2px);
}


/* =========================================================
   RELATED ARTICLES
========================================================= */

.related-section {

    margin-top:
        75px;
}

.section-heading {

    margin-bottom:
        25px;

    text-align:
        center;
}

.section-heading > span {

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1.3px;
}

.section-heading h2 {

    margin-top:
        5px;

    color:
        var(--text);

    font-size:
        30px;

    font-weight:
        800;
}

.section-heading p {

    margin-top:
        7px;

    color:
        var(--muted);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        13px;
}


/* =========================================================
   RELATED GRID
========================================================= */

.related-grid {

    display:
        grid;

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

    gap:
        22px;
}

.related-card {

    display:
        flex;

    flex-direction:
        column;

    overflow:
        hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow-sm);

    transition:
        var(--transition);
}

.related-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(
            10,
            132,
            255,
            0.22
        );
}


/* Related Image */

.related-image {

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        16 / 9;

    overflow:
        hidden;

    background:
        #EAF2FF;
}

.related-image a {

    display:
        block;

    width:
        100%;

    height:
        100%;
}

.related-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform
        0.4s ease;
}

.related-card:hover
.related-image img {

    transform:
        scale(1.05);
}

.related-placeholder {

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            135deg,
            #EAF2FF,
            #E9FAFF
        );

    color:
        rgba(
            10,
            132,
            255,
            0.45
        );

    font-size:
        35px;
}


/* Related Content */

.related-content {

    display:
        flex;

    flex-direction:
        column;

    flex:
        1;

    padding:
        20px;
}

.related-category {

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.6px;
}

.related-content h3 {

    margin-top:
        9px;

    font-size:
        18px;

    line-height:
        1.45;
}

.related-content h3 a:hover {

    color:
        var(--primary);
}

.related-content p {

    margin-top:
        8px;

    color:
        var(--muted);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        12px;

    line-height:
        1.75;
}

.related-read {

    margin-top:
        auto;

    padding-top:
        14px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        700;

    transition:
        var(--transition);
}

.related-read:hover {

    gap:
        11px;
}


/* =========================================================
   PREVIOUS / NEXT ARTICLE
========================================================= */

.article-navigation {

    display:
        grid;

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

    gap:
        18px;

    margin-top:
        35px;
}

.article-nav {

    display:
        flex;

    flex-direction:
        column;

    min-height:
        120px;

    padding:
        19px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        var(--surface-soft);

    transition:
        var(--transition);
}

.article-nav:hover {

    border-color:
        rgba(
            10,
            132,
            255,
            0.25
        );

    box-shadow:
        var(--shadow-sm);

    transform:
        translateY(-3px);
}

.article-nav span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.6px;
}

.article-nav strong {

    margin-top:
        auto;

    padding-top:
        12px;

    color:
        var(--text);

    font-size:
        15px;

    line-height:
        1.45;
}

.article-nav.next {

    text-align:
        right;

    align-items:
        flex-end;
}

.article-nav.empty {

    visibility:
        hidden;
}


/* =========================================================
   BACK HOME
========================================================= */

.back-home {

    display:
        flex;

    justify-content:
        center;

    margin-top:
        35px;
}

.home-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    padding:
        12px 20px;

    border-radius:
        11px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:
        #FFFFFF;

    font-size:
        12px;

    font-weight:
        700;

    box-shadow:
        0 10px 24px
        rgba(
            10,
            132,
            255,
            0.18
        );

    transition:
        var(--transition);
}

.home-btn:hover {

    color:
        #FFFFFF;

    transform:
        translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    padding:
        65px 0 0;

    background:
        #0F172A;

    color:
        #CBD5E1;
}

.footer-grid {

    display:
        grid;

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

    gap:
        35px;
}

.footer h3 {

    margin-bottom:
        15px;

    color:
        #FFFFFF;

    font-size:
        15px;
}

.footer-about p {

    max-width:
        360px;

    color:
        #94A3B8;

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        12px;

    line-height:
        1.85;
}

.footer-column a {

    display:
        block;

    width:
        fit-content;

    margin-bottom:
        10px;

    color:
        #94A3B8;

    font-size:
        12px;

    transition:
        var(--transition);
}

.footer-column a:hover {

    color:
        #FFFFFF;

    transform:
        translateX(3px);
}

.admin-link {

    display:
        inline-flex !important;

    align-items:
        center;

    gap:
        7px;

    margin-top:
        6px;

    padding:
        8px 11px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius:
        9px;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        45px;

    padding:
        20px 0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
}

.footer-bottom p {

    color:
        #64748B;

    font-size:
        10px;
}

.footer-bottom > div {

    display:
        flex;

    gap:
        17px;
}

.footer-bottom a {

    color:
        #64748B;

    font-size:
        10px;
}

.footer-bottom a:hover {

    color:
        #FFFFFF;
}


/* =========================================================
   SCROLL TO TOP
========================================================= */

#scroll-top {

    position:
        fixed;

    right:
        25px;

    bottom:
        25px;

    width:
        45px;

    height:
        45px;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:
        #FFFFFF;

    box-shadow:
        0 10px 25px
        rgba(
            10,
            132,
            255,
            0.20
        );

    z-index:
        4000;

    transition:
        var(--transition);
}

#scroll-top:hover {

    transform:
        translateY(-3px);
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {

    --background: #0B1120;
    --surface: #111827;
    --surface-soft: #172033;

    --text: #F8FAFC;
    --text-soft: #CBD5E1;
    --muted: #94A3B8;

    --border: #243244;
}


/* Header */

body.dark-mode .header {

    background:
        rgba(
            15,
            23,
            42,
            0.95
        );

    border-color:
        rgba(
            255,
            255,
            255,
            0.06
        );
}

body.dark-mode .brand-name {
    color:
        #FFFFFF;
}

body.dark-mode .navbar a {
    color:
        #CBD5E1;
}

body.dark-mode .navbar a:hover {

    color:
        #60A5FA;

    background:
        rgba(
            10,
            132,
            255,
            0.10
        );
}


/* Buttons */

body.dark-mode .header-btn,
body.dark-mode .menu-toggle {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


/* Mobile */

body.dark-mode .mobile-menu {

    background:
        #0F172A;
}

body.dark-mode .mobile-close {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #FFFFFF;
}


/* Search */

body.dark-mode .search-box {

    background:
        #111827;

    border-color:
        #243244;
}

body.dark-mode .search-box h2 {
    color:
        #F8FAFC;
}

body.dark-mode .search-box input {

    background:
        #0F172A;

    border-color:
        #243244;

    color:
        #F8FAFC;
}

body.dark-mode .search-box input:focus {

    background:
        #111827;
}


/* Article Hero */

body.dark-mode .article-hero {

    background:

        radial-gradient(
            circle at 12% 20%,
            rgba(
                10,
                132,
                255,
                0.08
            ),
            transparent 30%
        ),

        #0B1120;

    border-color:
        #243244;
}

body.dark-mode .category-badge {

    background:
        #111827;

    border-color:
        #243244;
}


/* Main */

body.dark-mode .article-main {

    background:
        #0B1120;
}


/* Content */

body.dark-mode .article-content blockquote {

    background:
        #111827;

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

body.dark-mode .article-content code {

    background:
        #172033;

    color:
        #E2E8F0;
}


/* Related */

body.dark-mode .related-card {

    background:
        #111827;

    border-color:
        #243244;
}

body.dark-mode .related-image,
body.dark-mode .related-placeholder {

    background:
        linear-gradient(
            135deg,
            #172033,
            #111827
        );
}


/* Nav */

body.dark-mode .article-nav {

    background:
        #111827;

    border-color:
        #243244;
}


/* Tags */

body.dark-mode .tags span {

    background:
        #172033;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


/* Share */

body.dark-mode .share-buttons a {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


/* Search close */

body.dark-mode .search-close {

    background:
        #111827;

    color:
        #F8FAFC;

    border:
        1px solid
        #243244;
}


/* =========================================================
   RESPONSIVE - 1100px
========================================================= */

@media (max-width: 1100px) {

    .navbar a {

        padding:
            8px 8px;

        font-size:
            12px;
    }

    .related-grid {

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

    .footer-grid {

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


/* =========================================================
   RESPONSIVE - 900px
========================================================= */

@media (max-width: 900px) {

    .navbar {
        display:
            none;
    }

    .menu-toggle {
        display:
            flex;
    }

    .article-content,
    .article-tags,
    .share-section {

        width:
            min(
                100%,
                760px
            );
    }
}


/* =========================================================
   RESPONSIVE - 700px
========================================================= */

@media (max-width: 700px) {

    .container {

        width:
            calc(
                100% - 28px
            );
    }

    .header-container {

        min-height:
            70px;
    }

    .logo img {

        width:
            42px;

        height:
            42px;
    }

    .brand-name {
        font-size:
            18px;
    }

    .tagline {
        font-size:
            7px;
    }


    /* Article */

    .article-hero {

        padding:
            55px 0 50px;
    }

    .article-hero h1 {

        font-size:
            35px;

        letter-spacing:
            -1px;
    }

    .article-excerpt {

        font-size:
            14px;
    }

    .article-meta {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .featured-image-section {

        padding-bottom:
            35px;
    }

    .featured-image {

        border-radius:
            0 0 18px 18px;
    }


    /* Content */

    .article-main {

        padding:
            50px 0 65px;
    }

    .article-content {

        font-size:
            16px;

        line-height:
            1.9;
    }

    .article-content h2 {

        font-size:
            26px;
    }

    .article-content h3 {

        font-size:
            21px;
    }


    /* Share */

    .share-section {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    /* Related */

    .related-grid {

        grid-template-columns:
            1fr;
    }

    .section-heading h2 {

        font-size:
            26px;
    }


    /* Previous Next */

    .article-navigation {

        grid-template-columns:
            1fr;
    }

    .article-nav.next {

        text-align:
            left;

        align-items:
            flex-start;
    }

    .article-nav.empty {

        display:
            none;
    }


    /* Footer */

    .footer-grid {

        grid-template-columns:
            1fr;

        gap:
            28px;
    }

    .footer-bottom {

        flex-direction:
            column;

        align-items:
            flex-start;
    }
}


/* =========================================================
   RESPONSIVE - 500px
========================================================= */

@media (max-width: 500px) {

    .search-box {

        padding:
            24px 18px;
    }

    .search-box h2 {

        font-size:
            22px;
    }

    .search-box form {

        flex-direction:
            column;

        align-items:
            stretch;
    }

    .search-box input,
    .search-box form button {

        width:
            100%;
    }

    .search-box form button {

        height:
            48px;
    }


    .search-close {

        top:
            16px;

        right:
            16px;

        width:
            42px;

        height:
            42px;
    }


    .article-hero h1 {

        font-size:
            31px;
    }

    .article-excerpt {

        font-size:
            13px;
    }


    .author-avatar {

        width:
            40px;

        height:
            40px;
    }


    .meta-right {

        flex-wrap:
            wrap;
    }


    .article-content {

        font-size:
            15px;
    }


    .article-content p:first-child {

        font-size:
            17px;
    }


    .related-content {

        padding:
            18px;
    }


    #scroll-top {

        right:
            16px;

        bottom:
            16px;

        width:
            42px;

        height:
            42px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {

    outline:
        3px solid
        rgba(
            10,
            132,
            255,
            0.25
        );

    outline-offset:
        2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {

        animation:
            none !important;

        transition:
            none !important;
    }
}

/* =========================================================
   ARTICLE MULTIPLE IMAGES
========================================================= */

.article-images-section {
    padding: 20px 0 50px;
}

.article-images-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

.article-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.article-image-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--background);
    box-shadow: var(--shadow-md);
}

.article-image-card img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.article-image-card:hover img {
    transform: scale(1.03);
}

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

    .article-image-card img {
        height: 260px;
    }
}
