/* =========================================================
   AHI TECHHUB
   PUBLIC CATEGORY PAGE
   public_category.css
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

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

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

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

    --border: #E2E8F0;

    --danger: #DC2626;

    --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 20px 60px rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --container: 1200px;

    --transition: 0.28s ease;
}


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

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

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

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

    background:
        var(--background);

    color:
        var(--text);

    line-height:
        1.7;

    overflow-x:
        hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}


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

.container {

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

    margin:
        0 auto;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

#progress-bar {

    position:
        fixed;

    top:
        0;

    left:
        0;

    width:
        0;

    height:
        3px;

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

    z-index:
        9999;
}


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

.header {

    position:
        sticky;

    top:
        0;

    z-index:
        2000;

    width:
        100%;

    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.8
        );

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

}


.header-container {

    min-height:
        78px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        22px;
}


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

.logo {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    flex-shrink:
        0;
}


.logo-img {

    width:
        46px;

    height:
        46px;

    object-fit:
        contain;
}


.logo-text {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1;
}


.brand-name {

    display:
        flex;

    align-items:
        baseline;

    gap:
        5px;

    font-size:
        21px;

    font-weight:
        800;

    letter-spacing:
        -0.5px;
}


.brand-name .ahi {
    color:
        var(--primary);
}


.brand-name .tech {
    color:
        var(--text);
}


.tagline {

    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        8px;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;
}


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

.navbar {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        1;
}


.navbar ul {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        4px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}


.navbar li {

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}


.navbar a {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px 11px;

    border-radius:
        9px;

    color:
        #334155;

    font-size:
        13px;

    font-weight:
        600;

    white-space:
        nowrap;

    transition:
        var(--transition);
}


.navbar a:hover {

    color:
        var(--primary);

    background:
        #EEF5FF;
}


.navbar a.active {

    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);

    background:
        #EEF5FF;

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


.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:
        -15px 0 45px
        rgba(
            15,
            23,
            42,
            0.14
        );

    z-index:
        3000;

    transition:
        0.35s ease;
}


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


.mobile-close {

    position:
        absolute;

    top:
        20px;

    right:
        20px;

    width:
        42px;

    height:
        42px;

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

    border-radius:
        12px;

    background:
        var(--surface);

    color:
        var(--text);

}


.mobile-menu ul {

    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}


.mobile-menu li {

    list-style:
        none;
}


.mobile-menu li a {

    display:
        block;

    padding:
        13px 15px;

    border-radius:
        10px;

    color:
        var(--text-soft);

    font-weight:
        600;

    transition:
        var(--transition);
}


.mobile-menu li a:hover {

    color:
        var(--primary);

    background:
        #EEF5FF;
}


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

.search-overlay {

    position:
        fixed;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

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

    backdrop-filter:
        blur(8px);

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

    opacity:
        0;

    visibility:
        hidden;

    z-index:
        4000;

    transition:
        0.25s ease;
}


.search-overlay.open {

    opacity:
        1;

    visibility:
        visible;
}


.search-close {

    position:
        absolute;

    top:
        28px;

    right:
        28px;

    width:
        46px;

    height:
        46px;

    border:
        none;

    border-radius:
        50%;

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

    color:
        #111827;
}


.search-box {

    width:
        min(
            700px,
            100%
        );

    padding:
        30px;

    border-radius:
        var(--radius-lg);

    background:
        var(--surface);

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


.search-box h2 {

    margin-bottom:
        20px;

    font-size:
        28px;
}


.search-box form {

    display:
        flex;

    gap:
        10px;
}


.search-box input {

    flex:
        1;

    min-width:
        0;

    height:
        50px;

    padding:
        0 15px;

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

    border-radius:
        12px;

    outline:
        none;

    background:
        var(--surface);

    color:
        var(--text);
}


.search-box input:focus {

    border-color:
        var(--primary);

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


.search-box button {

    width:
        52px;

    height:
        50px;

    border:
        none;

    border-radius:
        12px;

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

    color:
        white;
}


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

.category-hero {

    position:
        relative;

    padding:
        78px 0 72px;

    overflow:
        hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(
                10,
                132,
                255,
                0.12
            ),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 10%,
            rgba(
                0,
                194,
                255,
                0.10
            ),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #F8FBFF 0%,
            #F5F7FA 100%
        );

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


.category-hero::before {

    content:
        "";

    position:
        absolute;

    width:
        300px;

    height:
        300px;

    right:
        -120px;

    bottom:
        -160px;

    border-radius:
        50%;

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


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

.breadcrumb {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    flex-wrap:
        wrap;

    margin-bottom:
        28px;

    color:
        var(--muted);

    font-size:
        12px;
}


.breadcrumb a {

    transition:
        var(--transition);
}


.breadcrumb a:hover {

    color:
        var(--primary);
}


/* =========================================================
   CATEGORY HERO CONTENT
========================================================= */

.category-hero-content {

    max-width:
        900px;

    margin:
        0 auto;

    text-align:
        center;
}


.category-label {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        8px 14px;

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

    border-radius:
        30px;

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

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.9px;
}


.category-hero h1 {

    margin-top:
        20px;

    font-size:
        clamp(
            38px,
            6vw,
            62px
        );

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        -1.5px;
}


.category-hero-content > p {

    max-width:
        760px;

    margin:
        19px auto 0;

    color:
        var(--text-soft);

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

    font-size:
        16px;

    line-height:
        1.9;
}


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

.category-stats {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        24px;

    margin-top:
        32px;

    padding:
        13px 19px;

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

    border-radius:
        15px;

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

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


.stat {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;
}


.stat strong {

    color:
        var(--primary);

    font-size:
        16px;

    font-weight:
        800;
}


.stat span {

    margin-top:
        2px;

    color:
        var(--muted);

    font-size:
        10px;

}


.stat-divider {

    width:
        1px;

    height:
        34px;

    background:
        var(--border);
}


/* =========================================================
   MAIN CATEGORY AREA
========================================================= */

.category-main {

    padding:
        85px 0;

    background:
        var(--surface);
}


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

.section-header {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        35px;
}


.section-label {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;
}


.section-header h2 {

    font-size:
        clamp(
            27px,
            4vw,
            38px
        );

    line-height:
        1.25;

    letter-spacing:
        -0.7px;
}


.section-header p {

    margin-top:
        7px;

    color:
        var(--muted);

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

    font-size:
        14px;
}


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

.back-home {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    flex-shrink:
        0;

    padding:
        10px 15px;

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

    border-radius:
        10px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        700;

    transition:
        var(--transition);
}


.back-home:hover {

    color:
        var(--primary);

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

    background:
        #F8FBFF;
}


/* =========================================================
   ARTICLES GRID
========================================================= */

.articles-grid {

    display:
        grid;

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

    gap:
        24px;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.article-card {

    display:
        flex;

    flex-direction:
        column;

    overflow:
        hidden;

    background:
        var(--surface);

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

    border-radius:
        18px;

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

    transition:
        var(--transition);
}


.article-card:hover {

    transform:
        translateY(-5px);

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

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


/* =========================================================
   ARTICLE IMAGE
========================================================= */

.article-image {

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        16 /
        9;

    overflow:
        hidden;

    background:
        #EAF2FF;
}


.article-image > a {

    display:
        block;

    width:
        100%;

    height:
        100%;
}


.article-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform
        0.45s ease;
}


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

    transform:
        scale(1.05);
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.image-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:
        38px;
}


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

.image-category {

    position:
        absolute;

    left:
        14px;

    bottom:
        14px;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        6px 10px;

    border-radius:
        30px;

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

    color:
        white;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        0.5px;

    backdrop-filter:
        blur(5px);
}


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

.article-content {

    display:
        flex;

    flex-direction:
        column;

    flex:
        1;

    padding:
        20px;
}


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

.article-meta {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    color:
        var(--muted);

    font-size:
        10px;
}


.article-meta span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;
}


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

.article-content h3 {

    margin-top:
        12px;

    font-size:
        19px;

    line-height:
        1.45;

    font-weight:
        700;
}


.article-content h3 a {

    transition:
        var(--transition);
}


.article-content h3 a:hover {

    color:
        var(--primary);
}


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

.article-content p {

    margin-top:
        9px;

    color:
        var(--muted);

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

    font-size:
        13px;

    line-height:
        1.8;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        auto;

    padding-top:
        18px;

    color:
        var(--primary);

    font-size:
        12px;

    font-weight:
        700;

    transition:
        var(--transition);
}


.read-more:hover {

    gap:
        12px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {

    padding:
        75px 25px;

    text-align:
        center;

    border:
        1px dashed
        #CBD5E1;

    border-radius:
        var(--radius-lg);

    background:
        var(--surface-soft);
}


.empty-icon {

    width:
        75px;

    height:
        75px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #EEF5FF;

    color:
        var(--primary);

    font-size:
        28px;
}


.empty-state h3 {

    font-size:
        21px;
}


.empty-state p {

    max-width:
        600px;

    margin:
        10px auto 0;

    color:
        var(--muted);

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

    font-size:
        14px;

    line-height:
        1.9;
}


/* =========================================================
   HOME BUTTON
========================================================= */

.home-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    margin-top:
        22px;

    padding:
        12px 19px;

    border-radius:
        11px;

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

    color:
        white;

    font-size:
        12px;

    font-weight:
        700;

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

    transition:
        var(--transition);
}


.home-btn:hover {

    color:
        white;

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 28px
        rgba(
            10,
            132,
            255,
            0.24
        );
}


/* =========================================================
   TOPICS / EXPLORE MORE
========================================================= */

.topics-section {

    padding:
        75px 0;

    background:
        var(--background);
}


.topics-card {

    display:
        grid;

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

    align-items:
        center;

    gap:
        24px;

    padding:
        35px;

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

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

    background:
        linear-gradient(
            135deg,
            #EAF3FF,
            #EEF9FF
        );

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


.topics-icon {

    width:
        58px;

    height:
        58px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        17px;

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

    color:
        var(--primary);

    font-size:
        24px;
}


.topics-content > span {

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;
}


.topics-content h2 {

    margin-top:
        5px;

    font-size:
        24px;

    line-height:
        1.35;
}


.topics-content p {

    margin-top:
        8px;

    max-width:
        700px;

    color:
        var(--muted);

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

    font-size:
        13px;

    line-height:
        1.85;
}


.topics-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    padding:
        12px 18px;

    border-radius:
        11px;

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

    color:
        white;

    font-size:
        12px;

    font-weight:
        700;

    white-space:
        nowrap;
}


.topics-btn:hover {
    color:
        white;
}


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

.footer {

    padding:
        65px 0 0;

    background:
        #0F172A;

    color:
        #CBD5E1;
}


.footer-grid {

    display:
        grid;

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

    gap:
        38px;
}


.footer-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}


.footer-brand img {

    width:
        45px;

    height:
        45px;

    object-fit:
        contain;
}


.footer-brand strong {

    display:
        block;

    color:
        white;

    font-size:
        18px;
}


.footer-brand span {

    display:
        block;

    margin-top:
        3px;

    color:
        #64748B;

    font-size:
        8px;

    letter-spacing:
        1px;

    text-transform:
        uppercase;
}


.footer-about > p {

    max-width:
        350px;

    margin-top:
        17px;

    color:
        #94A3B8;

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

    font-size:
        13px;

    line-height:
        1.85;
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {

    display:
        flex;

    gap:
        8px;

    margin-top:
        19px;
}


.social-links a {

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

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

    border-radius:
        10px;

    color:
        #CBD5E1;

    transition:
        var(--transition);
}


.social-links a:hover {

    color:
        white;

    border-color:
        var(--primary);

    background:
        var(--primary);
}


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

.footer-column h3 {

    margin-bottom:
        16px;

    color:
        white;

    font-size:
        15px;
}


.footer-column a {

    display:
        block;

    width:
        fit-content;

    margin-bottom:
        10px;

    color:
        #94A3B8;

    font-size:
        12px;

    transition:
        var(--transition);
}


.footer-column a:hover {

    color:
        white;

    transform:
        translateX(3px);
}


.footer-column p {

    margin:
        0 0 7px;

    color:
        #94A3B8;

    font-size:
        12px;

    line-height:
        1.7;
}


/* =========================================================
   ADMIN LINK
========================================================= */

.admin-link {

    display:
        inline-flex !important;

    align-items:
        center;

    gap:
        6px;

    margin-top:
        7px;

    padding:
        8px 11px;

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

    border-radius:
        9px;

    color:
        #94A3B8 !important;
}


.admin-link:hover {

    color:
        white !important;

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

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


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

.footer-bottom {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        48px;

    padding:
        21px 0;

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


.footer-bottom p {

    margin:
        0;

    color:
        #64748B;

    font-size:
        11px;
}


.footer-bottom > div {

    display:
        flex;

    align-items:
        center;

    gap:
        18px;
}


.footer-bottom > div a {

    color:
        #64748B;

    font-size:
        11px;

    transition:
        var(--transition);
}


.footer-bottom > div a:hover {

    color:
        white;
}


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

#scroll-top {

    position:
        fixed;

    right:
        22px;

    bottom:
        22px;

    width:
        46px;

    height:
        46px;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        14px;

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

    color:
        white;

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

    z-index:
        1500;

    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;
}


body.dark-mode .header {

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

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


body.dark-mode .brand-name .tech {

    color:
        white;
}


body.dark-mode .navbar a {

    color:
        #CBD5E1;
}


body.dark-mode .navbar a:hover,
body.dark-mode .navbar a.active {

    color:
        #60A5FA;

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


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

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


body.dark-mode .mobile-menu {

    background:
        #0F172A;
}


body.dark-mode .mobile-close {

    background:
        #111827;

    border-color:
        #243244;

    color:
        white;
}


body.dark-mode .mobile-menu li a {

    color:
        #CBD5E1;
}


body.dark-mode .category-hero {

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(
                10,
                132,
                255,
                0.09
            ),
            transparent 32%
        ),
        #0B1120;

    border-color:
        #243244;
}


body.dark-mode .category-label {

    background:
        #111827;

    border-color:
        #243244;
}


body.dark-mode .category-hero-content > p {

    color:
        #CBD5E1;
}


body.dark-mode .category-stats {

    background:
        rgba(
            17,
            24,
            39,
            0.85
        );

    border-color:
        #243244;
}


body.dark-mode .category-main {

    background:
        #0B1120;
}


body.dark-mode .article-card {

    background:
        #111827;

    border-color:
        #243244;
}


body.dark-mode .article-card:hover {

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


body.dark-mode .article-image {

    background:
        #172033;
}


body.dark-mode .image-placeholder {

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


body.dark-mode .back-home {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


body.dark-mode .back-home:hover {

    color:
        #60A5FA;

    background:
        #172033;
}


body.dark-mode .empty-state {

    background:
        #111827;

    border-color:
        #334155;
}


body.dark-mode .empty-icon {

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


body.dark-mode .topics-section {

    background:
        #0B1120;
}


body.dark-mode .topics-card {

    background:
        linear-gradient(
            135deg,
            #10243D,
            #102A36
        );

    border-color:
        #243244;
}


body.dark-mode .topics-icon {

    background:
        #172033;

    color:
        #60A5FA;
}


body.dark-mode .topics-content p {

    color:
        #94A3B8;
}


body.dark-mode .search-box {

    background:
        #111827;
}


body.dark-mode .search-box input {

    background:
        #0F172A;

    border-color:
        #243244;

    color:
        white;
}


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

@media (max-width: 1100px) {

    .navbar a {

        padding:
            9px 8px;

        font-size:
            12px;
    }


    .articles-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;
    }


    .section-header {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .topics-card {

        grid-template-columns:
            auto
            1fr;

    }


    .topics-btn {

        grid-column:
            2;

        width:
            fit-content;
    }

}


/* =========================================================
   RESPONSIVE - 650px
========================================================= */

@media (max-width: 650px) {

    .container {

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


    .header-container {

        min-height:
            70px;

        gap:
            10px;
    }


    .logo-img {

        width:
            42px;

        height:
            42px;
    }


    .brand-name {

        font-size:
            18px;
    }


    .tagline {

        font-size:
            7px;
    }


    .header-actions {

        gap:
            5px;
    }


    .header-btn,
    .menu-toggle {

        width:
            39px;

        height:
            39px;
    }


    .category-hero {

        padding:
            55px 0 50px;
    }


    .category-hero h1 {

        font-size:
            36px;

        letter-spacing:
            -1px;
    }


    .category-hero-content > p {

        font-size:
            14px;

        line-height:
            1.85;
    }


    .category-stats {

        width:
            100%;

        gap:
            18px;
    }


    .category-main {

        padding:
            60px 0;
    }


    .section-header h2 {

        font-size:
            28px;
    }


    .articles-grid {

        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    .article-content {

        padding:
            18px;
    }


    .article-content h3 {

        font-size:
            18px;
    }


    .topics-card {

        grid-template-columns:
            1fr;

        padding:
            25px;

        text-align:
            center;
    }


    .topics-icon {

        margin:
            0 auto;
    }


    .topics-content p {

        margin-left:
            auto;

        margin-right:
            auto;
    }


    .topics-btn {

        grid-column:
            auto;

        margin:
            0 auto;

    }


    .footer {

        padding-top:
            52px;
    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap:
            28px;
    }


    .footer-bottom {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .footer-bottom > div {

        flex-wrap:
            wrap;

    }

}


/* =========================================================
   RESPONSIVE - 420px
========================================================= */

@media (max-width: 420px) {

    .category-hero h1 {

        font-size:
            31px;
    }


    .category-label {

        font-size:
            10px;
    }


    .category-stats {

        gap:
            12px;

        padding:
            11px 13px;
    }


    .stat-divider {

        height:
            30px;
    }


    .stat strong {

        font-size:
            14px;
    }


    .stat span {

        font-size:
            9px;
    }


    .search-box {

        padding:
            22px;
    }


    .search-box form {

        flex-direction:
            column;
    }


    .search-box button {

        width:
            100%;
    }

}


/* =========================================================
   FOCUS
========================================================= */

: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;
    }

}