
/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0px;
    padding: 40px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: #111827;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid #e5e7eb;
}

.header .container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.header h1 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #0f172a;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.header nav a {
    position: relative;

    font-size: 14px;
    font-weight: 600;
    color: #475569;

    transition: color 0.25s ease;
}

.header nav a:hover {
    color: #111827;
}

.header nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #111827;

    transition: width 0.25s ease;
}

.header nav a:hover::after {
    width: 100%;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    margin: 55px 0 42px;

    padding: 68px 60px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(99, 102, 241, 0.10),
            transparent 35%
        ),
        #ffffff;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.06);

    text-align: center;
}

.hero h2 {
    max-width: 780px;

    margin: 0 auto 16px;

    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;

    font-weight: 800;
    letter-spacing: -2px;

    color: #0f172a;
}

.hero p {
    max-width: 650px;

    margin: 0 auto;

    font-size: 17px;
    line-height: 1.7;

    color: #64748b;
}


/* =========================================================
   ARTICLES GRID
========================================================= */

.articles {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    padding-bottom: 80px;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.article-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-7px);

    border-color: #d1d5db;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   ARTICLE IMAGE
========================================================= */

.article-card > img {
    width: 100%;
    height: 225px;

    object-fit: cover;

    background: #e5e7eb;

    transition: transform 0.5s ease;
}

.article-card:hover > img {
    transform: scale(1.035);
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.article-content {
    padding: 25px;
}

.article-content h3 {
    margin-bottom: 10px;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 750;

    letter-spacing: -0.4px;

    color: #111827;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    transition: color 0.25s ease;
}

.article-card:hover h3 {
    color: #2563eb;
}


/* =========================================================
   DATE
========================================================= */

.article-content .date {
    margin-bottom: 14px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    color: #94a3b8;
}


/* =========================================================
   ARTICLE DESCRIPTION
========================================================= */

.article-content > p:not(.date) {
    margin-bottom: 22px;

    font-size: 14px;

    line-height: 1.7;

    color: #64748b;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    font-size: 14px;

    font-weight: 700;

    color: #2563eb;

    transition:
        gap 0.25s ease,
        color 0.25s ease;
}

.read-more:hover {
    gap: 11px;
    color: #1d4ed8;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.articles > p {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    color: #64748b;

    font-size: 16px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #0f172a;

    color: #94a3b8;

    border-top: 1px solid #1e293b;
}

footer .container {
    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}

footer p {
    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .articles {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 55px 40px;
    }

    .hero h2 {
        font-size: 42px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .header .container {
        min-height: 68px;
    }

    .header h1 {
        font-size: 19px;
    }

    .header nav {
        gap: 18px;
    }

    .header nav a {
        font-size: 13px;
    }

    .hero {
        margin-top: 30px;
        padding: 45px 22px;

        border-radius: 18px;
    }

    .hero h2 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .hero p {
        font-size: 15px;
    }

    .articles {
        grid-template-columns: 1fr;

        gap: 22px;

        padding-bottom: 55px;
    }

    .article-card > img {
        height: 220px;
    }

    .article-content {
        padding: 22px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    footer .container {
        min-height: 75px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .header .container {
        flex-direction: column;

        justify-content: center;

        gap: 5px;

        padding: 12px 0;
    }

    .header nav {
        gap: 22px;
    }

    .hero h2 {
        font-size: 29px;
    }

    .article-card > img {
        height: 200px;
    }
}

.site-footer {
    width: 100%;

    margin-top: 60px;

    padding: 30px 20px;

    background: #0f172a;

    color: #94a3b8;
}

.site-footer .container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    text-align: center;
}

.footer-links {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px 25px;

    margin-bottom: 22px;
}

.footer-links a {
    color: #cbd5e1;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    width: 100%;
    height: 1px;

    margin-bottom: 20px;

    background: #1e293b;
}

.site-footer p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .site-footer {
        padding: 25px 15px;
    }

    .footer-links {
        gap: 12px 18px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .site-footer p {
        font-size: 12px;
    }
}
