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

:root {
    --primary-dark: #0f172a; /* Sleek dark slate for modern tech/finance */
    --primary-light: #ecfdf5; /* Soft emerald background */
    --primary-text: #059669; /* Emerald green for text/accents */
    --dark: #1e293b;
    --gray-text: #64748b;
    --bg-gray: #f8fafc;
    --white: #ffffff;
    --accent-glow: rgba(5, 150, 105, 0.15);
}

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

body {
    background-color: var(--white);
    background-image: 
        radial-gradient(at 0% 0%, hsla(158, 85%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210, 80%, 95%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Navbar */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 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;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-text);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

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

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-solid {
    background: linear-gradient(135deg, var(--primary-text), #047857);
    color: var(--white);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--primary-text);
    color: var(--primary-text);
    transform: translateY(-2px);
}

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

/* Hero Section Modern Split Layout */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
    background: linear-gradient(90deg, var(--primary-dark), #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.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: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-color: #cbd5e1;
}

.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) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
    .main-wrapper {
        padding: 2rem 1.5rem;
    }
    .nav-actions {
        display: none;
    }
    .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;
    }
}
