/* =========================================================
   AFFLEADHUB BLOG
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #050505;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}


.blog-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(190, 255, 0, 0.055),
            transparent 32%
        ),
        #050505;
}


/* =========================================================
   TOPBAR
========================================================= */

.blog-topbar {
    width: 100%;
    padding: 28px 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.blog-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 16px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.025);

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    letter-spacing: 0.02em;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.blog-nav-button:hover {
    background: rgba(190, 255, 0, 0.06);

    border-color:
        rgba(190, 255, 0, 0.35);

    color: #baff00;

    transform: translateY(-2px);
}


/* =========================================================
   HERO
========================================================= */

.blog-hero {
    max-width: 1000px;

    margin: 0 auto;

    padding:
        0px 30px
        80px;

    text-align: center;
}


.blog-logo {
    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 28px;
}

.blog-logo img {
    width: 350px;

    height: auto;

    display: block;

    object-fit: contain;
}


.blog-hero h1 {
    font-size: clamp(
        48px,
        7vw,
        92px
    );

    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 700;
}


.blog-hero h1 span {
    color: #baff00;
}


.blog-hero p {
    max-width: 620px;

    margin: 28px auto 0;

    color: #8b8b8b;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   BLOG CONTENT
========================================================= */

.blog-content {
    width: min(
        1250px,
        90%
    );

    margin: 0 auto;

    padding-bottom: 120px;
}


.blog-section-heading {
    margin-bottom: 35px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    padding-top: 28px;
}


.blog-section-heading span {
    color: #707070;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.20em;
}


.blog-section-heading h2 {
    margin-top: 10px;

    font-size: 30px;

    letter-spacing: -0.03em;
}


/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}


.blog-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(190, 255, 0, 0.30);

    background:
        rgba(190, 255, 0, 0.025);
}


/* =========================================================
   IMAGE
========================================================= */

.blog-card-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111;
}


.blog-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.blog-card:hover
.blog-card-image img {
    transform: scale(1.04);
}


/* =========================================================
   CARD BODY
========================================================= */

.blog-card-body {
    padding: 24px;
}


.blog-card-category {
    color: #baff00;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.blog-card-title {
    margin-top: 12px;

    color: #ffffff;

    font-size: 22px;

    line-height: 1.25;

    letter-spacing: -0.025em;
}


.blog-card-excerpt {
    margin-top: 14px;

    color: #858585;

    font-size: 14px;

    line-height: 1.65;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.blog-card-footer {
    margin-top: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.blog-card-date {
    color: #555;

    font-size: 11px;
}


.blog-read-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #baff00;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-decoration: none;

    text-transform: uppercase;
}


.blog-read-button span {
    transition:
        transform 0.25s ease;
}


.blog-card:hover
.blog-read-button span {
    transform: translateX(4px);
}


/* =========================================================
   EMPTY / LOADING
========================================================= */

.blog-loading,
.blog-empty {
    width: 100%;

    padding: 80px 20px;

    text-align: center;

    color: #666;
}


.blog-empty span {
    color: #baff00;

    font-size: 10px;

    letter-spacing: 0.18em;

    font-weight: 700;
}


.blog-empty h3 {
    margin-top: 15px;

    color: #ffffff;

    font-size: 25px;
}


.blog-empty p {
    margin-top: 10px;

    color: #666;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .blog-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 600px) {

    .blog-topbar {
        padding:
            20px;
    }


    .blog-hero {
        padding:
            70px 20px
            60px;
    }


    .blog-hero h1 {
        font-size: 52px;
    }


    .blog-content {
        width: calc(100% - 32px);
    }


    .blog-grid {
        grid-template-columns: 1fr;
    }


    .blog-card-title {
        font-size: 20px;
    }

}