/* =========================================================
   AHI TECHHUB - PUBLIC HOME PAGE
   index.css
   ========================================================= */


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

:root {

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

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

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

    --border: #E2E8F0;

    --success: #16A34A;
    --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 {

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

    background:
        var(--background);

    color:
        var(--text);

    line-height:
        1.6;

    overflow-x:
        hidden;

}


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


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


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


ul {
    list-style: none;
}


/* =========================================================
   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:
        9999;

}


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

.header {

    position:
        sticky;

    top:
        0;

    width:
        100%;

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

    backdrop-filter:
        blur(18px);

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

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

    z-index:
        2000;

    transition:
        var(--transition);

}


.header.scrolled {

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

}


.header-container {

    min-height:
        78px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

}


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

.logo {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        11px;

    flex-shrink:
        0;

}


.logo-img {

    width:
        48px;

    height:
        48px;

    object-fit:
        contain;

}


.logo-text {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1;

}


.brand-name {

    display:
        flex;

    align-items:
        baseline;

    gap:
        5px;

    font-weight:
        800;

    font-size:
        22px;

    letter-spacing:
        -0.5px;

}


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


.brand-name .tech {

    color:
        var(--text);

    letter-spacing:
        0.7px;

}


.tagline {

    margin-top:
        5px;

    font-size:
        9px;

    color:
        var(--muted);

    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;

    gap:
        5px;

}


.navbar li {
    position:
        relative;
}


.navbar a {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        10px 13px;

    border-radius:
        9px;

    color:
        #334155;

    font-size:
        14px;

    font-weight:
        600;

    transition:
        var(--transition);

}


.navbar a:hover {

    background:
        #EEF5FF;

    color:
        var(--primary);

}


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

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

    border-radius:
        12px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    transition:
        var(--transition);

}


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

    color:
        var(--primary);

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

    background:
        #EEF5FF;

}


.menu-toggle {
    display:
        none;
}


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

.mobile-menu {

    position:
        fixed;

    top:
        0;

    right:
        -100%;

    width:
        min(330px, 88%);

    height:
        100vh;

    padding:
        80px 28px 30px;

    background:
        var(--surface);

    box-shadow:
        -15px 0 45px rgba(15, 23, 42, 0.12);

    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:
        #fff;

}


.mobile-menu ul {

    display:
        flex;

    flex-direction:
        column;

    gap:
        8px;

}


.mobile-menu li a {

    display:
        block;

    padding:
        13px 15px;

    border-radius:
        10px;

    color:
        var(--text-soft);

    font-weight:
        600;

}


.mobile-menu li a:hover {

    background:
        #EEF5FF;

    color:
        var(--primary);

}


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

.search-overlay {

    position:
        fixed;

    inset:
        0;

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

    backdrop-filter:
        blur(8px);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    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:
        var(--text);

}


.search-box {

    width:
        min(700px, 100%);

    background:
        var(--surface);

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

    padding:
        32px;

    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;

    padding:
        14px 16px;

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

    border-radius:
        12px;

    outline:
        none;

}


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

    border:
        none;

    border-radius:
        12px;

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

    color:
        white;

}


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

.hero {

    position:
        relative;

    padding:
        105px 0 95px;

    overflow:
        hidden;

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

}


.hero::before {

    content:
        "";

    position:
        absolute;

    width:
        350px;

    height:
        350px;

    right:
        -170px;

    bottom:
        -180px;

    border-radius:
        50%;

    background:
        rgba(
            37,
            99,
            235,
            0.06
        );

}


.hero-content {

    max-width:
        850px;

    margin:
        0 auto;

    text-align:
        center;

}


.hero-badge {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        8px 14px;

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

    border-radius:
        30px;

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

    color:
        var(--primary);

    font-size:
        12px;

    font-weight:
        700;

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

}


.hero h1 {

    margin-top:
        24px;

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

    line-height:
        1.12;

    letter-spacing:
        -2px;

    font-weight:
        800;

}


.hero h1 span {

    display:
        block;

    color:
        var(--primary);

}


.hero p {

    max-width:
        780px;

    margin:
        24px auto 0;

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

    font-size:
        17px;

    line-height:
        1.9;

    color:
        var(--text-soft);

}


.hero-buttons {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        12px;

    margin-top:
        32px;

    flex-wrap:
        wrap;

}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        9px;

    min-height:
        48px;

    padding:
        0 20px;

    border-radius:
        12px;

    font-size:
        14px;

    font-weight:
        700;

    transition:
        var(--transition);

}


.primary-btn {

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

    color:
        #fff;

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

}


.primary-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 30px rgba(
            10,
            132,
            255,
            0.26
        );

}


.secondary-btn {

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

    background:
        #fff;

    color:
        var(--text-soft);

}


.secondary-btn:hover {

    color:
        var(--primary);

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

    background:
        #F8FBFF;

}


/* =========================================================
   BREAKING / TRENDING
========================================================= */

.breaking-news {

    background:
        var(--surface);

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

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

}


.breaking-inner {

    min-height:
        54px;

    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    overflow:
        hidden;

}


.breaking-label {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    flex-shrink:
        0;

    font-size:
        12px;

    font-weight:
        800;

    color:
        var(--danger);

    text-transform:
        uppercase;

    letter-spacing:
        0.7px;

}


.breaking-content {

    display:
        flex;

    gap:
        28px;

    overflow:
        hidden;

}


.breaking-content a,
.breaking-content span {

    white-space:
        nowrap;

    color:
        var(--text-soft);

    font-size:
        13px;

    transition:
        var(--transition);

}


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


/* =========================================================
   COMMON SECTION
========================================================= */

.featured,
.latest-posts,
.categories-section,
.about-section {

    padding:
        90px 0;

}


.section-title {

    text-align:
        center;

    margin-bottom:
        42px;

}


.section-title h2 {

    font-size:
        clamp(
            28px,
            4vw,
            40px
        );

    line-height:
        1.2;

    font-weight:
        800;

    letter-spacing:
        -0.8px;

}


.section-title p {

    margin-top:
        10px;

    color:
        var(--muted);

    font-size:
        15px;

}


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

.featured {

    background:
        var(--surface);

}


.featured-grid {

    display:
        grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.9fr);

    gap:
        24px;

}


.featured-main {

    overflow:
        hidden;

    background:
        var(--surface);

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

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

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

    transition:
        var(--transition);

}


.featured-main:hover {

    transform:
        translateY(-4px);

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

}


.featured-image {

    position:
        relative;

    aspect-ratio:
        16 / 9;

    overflow:
        hidden;

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

}


.featured-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform
        0.45s ease;

}


.featured-main:hover
.featured-image img {

    transform:
        scale(1.04);

}


.featured-image-placeholder {

    width:
        100%;

    height:
        100%;

    min-height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        55px;

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

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

}


.featured-content {

    padding:
        27px;

}


.category {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        6px 11px;

    border-radius:
        30px;

    background:
        #EEF5FF;

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.6px;

}


.featured-content h2 {

    margin-top:
        15px;

    font-size:
        clamp(
            24px,
            3vw,
            38px
        );

    line-height:
        1.25;

    letter-spacing:
        -0.8px;

}


.featured-content h2 a:hover {
    color:
        var(--primary);
}


.featured-content p {

    margin-top:
        13px;

    color:
        var(--muted);

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

    font-size:
        15px;

    line-height:
        1.85;

}


.meta {

    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    margin-top:
        17px;

    color:
        var(--muted);

    font-size:
        12px;

}


.meta span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

}


.read-more {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        22px;

    color:
        var(--primary);

    font-size:
        13px;

    font-weight:
        700;

}


.read-more:hover {
    gap:
        12px;
}


/* =========================================================
   FEATURED SIDE
========================================================= */

.featured-side {

    display:
        flex;

    flex-direction:
        column;

    gap:
        14px;

}


.side-article {

    display:
        grid;

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

    gap:
        14px;

    align-items:
        center;

    padding:
        12px;

    background:
        var(--surface);

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

    border-radius:
        15px;

    transition:
        var(--transition);

}


.side-article:hover {

    transform:
        translateY(-2px);

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

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

}


.side-image {

    width:
        112px;

    height:
        88px;

    overflow:
        hidden;

    border-radius:
        11px;

    background:
        #EEF5FF;

}


.side-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

}


.side-image-placeholder {

    width:
        100%;

    height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

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

    font-size:
        25px;

}


.side-content h3 {

    margin-top:
        8px;

    font-size:
        15px;

    line-height:
        1.45;

    font-weight:
        700;

}


.side-content h3 a:hover {
    color:
        var(--primary);
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.latest-posts {

    background:
        var(--background);

}


.posts-grid {

    display:
        grid;

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

    gap:
        22px;

}


.post-card {

    display:
        flex;

    flex-direction:
        column;

    overflow:
        hidden;

    background:
        var(--surface);

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

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

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

    transition:
        var(--transition);

}


.post-card:hover {

    transform:
        translateY(-4px);

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

}


.post-image {

    position:
        relative;

    aspect-ratio:
        16 / 9;

    background:
        #EAF2FF;

    overflow:
        hidden;

}


.post-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform
        0.4s ease;

}


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

    transform:
        scale(1.04);

}


.post-image-placeholder {

    width:
        100%;

    height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

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

    font-size:
        38px;

}


.post-content {

    display:
        flex;

    flex-direction:
        column;

    flex:
        1;

    padding:
        21px;

}


.post-content h3 {

    margin-top:
        13px;

    font-size:
        19px;

    line-height:
        1.45;

}


.post-content h3 a:hover {
    color:
        var(--primary);
}


.post-content p {

    margin-top:
        10px;

    color:
        var(--muted);

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

    font-size:
        14px;

    line-height:
        1.8;

}


.post-meta {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    margin-top:
        17px;

    color:
        var(--muted);

    font-size:
        11px;

}


.card-link {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        auto;

    padding-top:
        18px;

    color:
        var(--primary);

    font-size:
        13px;

    font-weight:
        700;

}


.card-link:hover {
    gap:
        12px;
}


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

.empty-state {

    text-align:
        center;

    padding:
        65px 25px;

    background:
        var(--surface);

    border:
        1px dashed #CBD5E1;

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

}


.empty-icon {

    width:
        72px;

    height:
        72px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #EEF5FF;

    color:
        var(--primary);

    font-size:
        27px;

}


.empty-state h3 {

    font-size:
        20px;

}


.empty-state p {

    max-width:
        570px;

    margin:
        10px auto 0;

    color:
        var(--muted);

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

    line-height:
        1.8;

}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-section {

    background:
        var(--surface);

}


.categories-grid {

    display:
        grid;

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

    gap:
        16px;

}


.category-card {

    min-height:
        175px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    padding:
        22px 15px;

    background:
        linear-gradient(
            180deg,
            #FFFFFF,
            #F8FBFF
        );

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

    border-radius:
        18px;

    transition:
        var(--transition);

}


.category-card:hover {

    transform:
        translateY(-5px);

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

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

}


.category-card i {

    width:
        54px;

    height:
        54px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        14px;

    border-radius:
        16px;

    background:
        #EEF5FF;

    color:
        var(--primary);

    font-size:
        24px;

}


.category-card h3 {

    font-size:
        15px;

    line-height:
        1.35;

}


.category-card p {

    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        12px;

}


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

.about-section {

    background:
        var(--background);

}


.about-content {

    max-width:
        900px;

    margin:
        0 auto;

    text-align:
        center;

    padding:
        55px 35px;

    background:
        var(--surface);

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

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

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

}


.section-label {

    display:
        inline-block;

    margin-bottom:
        15px;

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        1.2px;

}


.about-content h2 {

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

    font-size:
        clamp(
            25px,
            4vw,
            40px
        );

    line-height:
        1.45;

}


.about-content p {

    margin-top:
        18px;

    color:
        var(--muted);

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

    line-height:
        1.95;

    font-size:
        15px;

}


/* =========================================================
   NEWSLETTER
========================================================= */

.newsletter-section {

    padding:
        80px 0;

    background:
        var(--surface);

}


.newsletter-card {

    display:
        grid;

    grid-template-columns:
        1.15fr 0.85fr;

    align-items:
        center;

    gap:
        35px;

    padding:
        42px;

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

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

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

}


.newsletter-content > span {

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        1.2px;

}


.newsletter-content h2 {

    margin-top:
        7px;

    font-size:
        clamp(
            25px,
            4vw,
            36px
        );

    line-height:
        1.25;

}


.newsletter-content p {

    margin-top:
        11px;

    max-width:
        580px;

    color:
        var(--muted);

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

}


.newsletter-form {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

}


.newsletter-form input {

    flex:
        1;

    min-width:
        0;

    height:
        50px;

    padding:
        0 16px;

    border:
        1px solid #CBD5E1;

    border-radius:
        12px;

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

    outline:
        none;

}


.newsletter-form input:focus {

    border-color:
        var(--primary);

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

}


.newsletter-form button {

    height:
        50px;

    padding:
        0 18px;

    border:
        none;

    border-radius:
        12px;

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

    color:
        white;

    font-size:
        13px;

    font-weight:
        700;

    white-space:
        nowrap;

}


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

.footer {

    background:
        #0F172A;

    color:
        #CBD5E1;

    padding:
        70px 0 0;

}


.footer-grid {

    display:
        grid;

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

    gap:
        45px;

}


.footer-about p {

    margin-top:
        16px;

    max-width:
        330px;

    color:
        #94A3B8;

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

    line-height:
        1.8;

    font-size:
        13px;

}


.footer-logo {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

}


.footer-logo img {

    width:
        43px;

    height:
        43px;

    object-fit:
        contain;

}


.footer-logo span {

    font-size:
        19px;

    font-weight:
        800;

    color:
        white;

}


.footer-logo strong {

    color:
        #5AA9FF;

}


.social-links {

    display:
        flex;

    gap:
        8px;

    margin-top:
        20px;

}


.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 {

    background:
        var(--primary);

    color:
        white;

    border-color:
        var(--primary);

}


.footer-links h3 {

    margin-bottom:
        17px;

    color:
        white;

    font-size:
        15px;

}


.footer-links p {

    color:
        #94A3B8;

    font-size:
        13px;

    line-height:
        1.8;

}


.footer-links ul {

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;

}


.footer-links ul a {

    color:
        #94A3B8;

    font-size:
        13px;

    transition:
        var(--transition);

}


.footer-links ul a:hover {

    color:
        white;

    padding-left:
        4px;

}


.admin-login-link {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    margin-top:
        17px;

    padding:
        9px 12px;

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

    border-radius:
        9px;

    color:
        #94A3B8;

    font-size:
        11px;

    transition:
        var(--transition);

}


.admin-login-link:hover {

    color:
        white;

    border-color:
        rgba(
            255,
            255,
            255,
            0.2
        );

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

}


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

.footer-bottom {

    margin-top:
        55px;

    padding:
        22px 0;

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

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

}


.footer-bottom p {

    color:
        #64748B;

    font-size:
        12px;

}


.footer-bottom > div {

    display:
        flex;

    gap:
        18px;

}


.footer-bottom a {

    color:
        #64748B;

    font-size:
        12px;

    transition:
        var(--transition);

}


.footer-bottom 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.94
        );

    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 {

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

    color:
        #60A5FA;

}


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

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;

}


body.dark-mode .hero {

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(
                10,
                132,
                255,
                0.12
            ),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #0F172A,
            #0B1120
        );

}


body.dark-mode .hero-badge {

    background:
        #111827;

    border-color:
        #243244;

}


body.dark-mode .breaking-news {

    background:
        #111827;

    border-color:
        #243244;

}


body.dark-mode .breaking-content a,
body.dark-mode .breaking-content span {
    color:
        #CBD5E1;
}


body.dark-mode .featured-image,
body.dark-mode .side-image,
body.dark-mode .post-image {

    background:
        #172033;

}


body.dark-mode .featured-image-placeholder,
body.dark-mode .post-image-placeholder,
body.dark-mode .side-image-placeholder {

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

}


body.dark-mode .category,
body.dark-mode .category-card i {

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

}


body.dark-mode .category-card {

    background:
        linear-gradient(
            180deg,
            #111827,
            #0F172A
        );

}


body.dark-mode .search-box {

    background:
        #111827;

}


body.dark-mode .search-box input {

    background:
        #0F172A;

    border-color:
        #243244;

    color:
        #F8FAFC;

}


body.dark-mode .newsletter-card {

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

}


body.dark-mode .newsletter-form input {

    background:
        #0F172A;

    border-color:
        #243244;

    color:
        white;

}


body.dark-mode .about-content {

    background:
        #111827;

}


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;

}


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

@media (max-width: 1100px) {

    .navbar ul {
        gap: 0;
    }


    .navbar a {
        padding:
            9px 9px;

        font-size:
            13px;
    }


    .categories-grid {

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

    }


    .footer-grid {

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

    }

}


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

@media (max-width: 900px) {

    .navbar {
        display:
            none;
    }


    .menu-toggle {
        display:
            inline-flex;
    }


    .featured-grid {

        grid-template-columns:
            1fr;

    }


    .posts-grid {

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

    }


    .newsletter-card {

        grid-template-columns:
            1fr;

    }


    .newsletter-form {
        width:
            100%;
    }

}


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

@media (max-width: 650px) {

    .container {

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

    }


    .header-container {
        min-height:
            70px;

        gap:
            10px;

    }


    .logo-img {

        width:
            42px;

        height:
            42px;

    }


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


    .tagline {
        font-size:
            8px;
    }


    .hero {

        padding:
            75px 0 70px;

    }


    .hero h1 {

        font-size:
            38px;

        letter-spacing:
            -1.2px;

    }


    .hero p {

        font-size:
            14px;

    }


    .breaking-inner {

        min-height:
            48px;

        gap:
            12px;

    }


    .breaking-label {

        font-size:
            10px;

    }


    .breaking-content {

        gap:
            18px;

    }


    .breaking-content a,
    .breaking-content span {

        font-size:
            11px;

    }


    .featured,
    .latest-posts,
    .categories-section,
    .about-section {

        padding:
            65px 0;

    }


    .featured-content {

        padding:
            21px;

    }


    .featured-content h2 {

        font-size:
            26px;

    }


    .meta {

        flex-wrap:
            wrap;

    }


    .posts-grid {

        grid-template-columns:
            1fr;

    }


    .categories-grid {

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

    }


    .category-card {

        min-height:
            155px;

    }


    .about-content {

        padding:
            35px 20px;

    }


    .newsletter-card {

        padding:
            28px 22px;

    }


    .newsletter-form {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    .newsletter-form button {

        width:
            100%;

    }


    .footer {

        padding-top:
            55px;

    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap:
            30px;

    }


    .footer-bottom {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .footer-bottom > div {

        flex-wrap:
            wrap;

    }

}


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

@media (max-width: 420px) {

    .header-actions {

        gap:
            5px;

    }


    .header-btn,
    .menu-toggle {

        width:
            38px;

        height:
            38px;

    }


    .hero-buttons {

        flex-direction:
            column;

    }


    .hero-buttons
    .primary-btn,
    .hero-buttons
    .secondary-btn {

        width:
            100%;

    }


    .categories-grid {

        grid-template-columns:
            1fr 1fr;

        gap:
            10px;

    }


    .category-card {

        min-height:
            145px;

        padding:
            17px 10px;

    }


    .category-card h3 {

        font-size:
            13px;

    }


    .category-card p {

        font-size:
            10px;

    }


    .side-article {

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

    }


    .side-image {

        width:
            90px;

        height:
            75px;

    }

}


/* =========================================================
   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-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;

    }

}