@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-dark: #0d3b2e; /* Deep green/teal */
    --primary-light: #e8f5e9;
    --primary-text: #2e7d32;
    --dark: #111827;
    --gray-text: #6b7280;
    --bg-gray: #f3f4f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--gray-text);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--dark);
}

.nav-links a.active {
    font-weight: 700;
    color: var(--dark);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-solid {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-solid:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border-color: #d1d5db;
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--dark);
}

/* Main Container (The gray rounded box) */
.main-wrapper {
    background-color: var(--bg-gray);
    border-radius: 40px 40px 0 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5rem;
    min-height: 100vh;
}

/* Header Section */
.page-header {
    max-width: 600px;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.page-header p {
    font-size: 1.1rem;
    color: #8c8c8c;
    line-height: 1.6;
}

.divider {
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 4rem;
}

/* Grid layout */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card Design */
.card {
    background: var(--white);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    background-color: var(--primary-light);
    color: var(--primary-text);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-excerpt {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.see-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--dark);
    text-decoration: underline;
    font-size: 0.95rem;
    text-underline-offset: 4px;
}

.card-image {
    height: 250px;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bottom corners are rounded by the parent overflow hidden */
}

/* Adsense Placeholders */
.ads-placeholder {
    background: #e2e8f0;
    border: 2px dashed #94a3b8;
    color: #64748b;
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    font-weight: 500;
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .main-wrapper {
        padding: 2rem 1.5rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .hamburger {
        display: flex !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 2rem 2rem;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        z-index: 100;
        gap: 1.5rem;
    }
    .nav-links.active-mobile {
        display: flex;
    }
    .navbar {
        position: relative;
    }
    .card-image {
        height: 200px;
    }
    .card-content {
        padding: 1.5rem;
    }
}
