/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1180px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: #ffffff;
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: #16a34a;
}

nav a {
    margin-left: 28px;
    text-decoration: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    color: #16a34a;
}

/* HERO */
.hero {
    padding: 100px 0 60px;
    background: #ffffff;
}

.hero-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 18px;
}

.hero-text p {
    font-size: 17px;
    color: #64748b;
    max-width: 520px;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background: #16a34a;
    padding: 12px 26px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn:hover {
    background: #15803d;
}

/* HERO IMAGE */
.hero-image img {
    width: 100%;
    max-width: 420px;
    margin-top: 40px;
}

/* SECTION */
.section {
    padding: 70px 0;
}

.section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* FEATURED */
.featured {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}

.featured:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.featured h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.featured a {
    text-decoration: none;
    color: #0f172a;
}

.featured p {
    color: #64748b;
}

/* NEWS */
.news-grid {
    display: grid;
    gap: 18px;
}

.news-card {
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeef2;
}

.news-card h4 {
    font-size: 16px;
    font-weight: 500;
}

.news-card a {
    text-decoration: none;
    color: #0f172a;
}

.news-card a:hover {
    color: #16a34a;
}

.date {
    font-size: 12px;
    color: #94a3b8;
}

/* BLOG CARDS */
.cards {
    display: grid;
    gap: 25px;
}

.card {
    background: #ffffff;
    border: 1px solid #eaeef2;
    padding: 22px;
    border-radius: 12px;
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card a {
    text-decoration: none;
    color: #0f172a;
}

.card a:hover {
    color: #16a34a;
}

.card p {
    font-size: 14px;
    color: #64748b;
}

/* ADS */
.ads {
    margin: 40px 0;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #eaeef2;
    margin-top: 60px;
    color: #64748b;
    font-size: 14px;
}

/* DESKTOP */
@media (min-width: 768px) {

    .hero-flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .hero-text {
        width: 50%;
    }

    .hero-image {
        width: 45%;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ARTICLE PAGE */
.article-header {
    padding: 60px 0 20px;
}

.article-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-meta {
    color: #64748b;
    font-size: 14px;
}

/* ARTICLE LAYOUT */
.article-section {
    padding: 40px 0;
}

.article-layout {
    display: grid;
    gap: 40px;
}

/* CONTENT */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
}

.article-content h2 {
    margin-top: 30px;
    font-size: 24px;
}

.article-content p {
    margin: 15px 0;
}

.article-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* SIDEBAR */
.sidebar {
    display: none;
}

.sidebar-box {
    border: 1px solid #eaeef2;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sidebar-box a {
    text-decoration: none;
    color: #0f172a;
    font-size: 14px;
}

.sidebar-box a:hover {
    color: #16a34a;
}

/* DESKTOP */
@media(min-width: 992px){

    .article-layout {
        grid-template-columns: 2fr 1fr;
    }

    .sidebar {
        display: block;
    }

    .article-title {
        font-size: 42px;
    }
}