/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2ecc71; /* Money Green */
    --primary-dark: #27ae60;
    --secondary-color: #2c3e50; /* Dark Blue */
    --accent-color: #f1c40f; /* Gold for highlights */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

ul { list-style: none; }

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

.logo span { color: var(--primary-color); }

.nav-links { display: flex; gap: 25px; font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1553729459-efe14ef6055d?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 85vh; /* Responsive height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 900px;
}

.hero-subtext {
    display: flex;
    gap: 20px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: #ecf0f1;
    flex-wrap: wrap;
    justify-content: center;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.check-item span { color: var(--primary-color); font-weight: bold; }

.cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }

.btn-secondary {
    background: var(--white);
    color: var(--secondary-color);
}
.btn-secondary:hover { background: #eee; transform: translateY(-3px); }

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}
.btn-outline:hover { background: var(--white); color: var(--secondary-color); }

/* --- Global Section Styles --- */
.container { padding: 5rem 5%; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 10px; }
.section-header p { color: #666; font-size: 1.1rem; }

/* --- Categories Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.cat-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cat-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--secondary-color); }
.cat-card p { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; line-height: 1.4; flex-grow: 1; }
.cat-link { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.cat-link:hover { margin-left: 5px; }

/* --- Trending Articles --- */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.article-card:hover { transform: translateY(-5px); }

.article-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.article-content { padding: 1.5rem; }
.tag {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.article-content h3 { margin: 10px 0; font-size: 1.2rem; color: var(--secondary-color); }
.read-more { font-size: 0.9rem; color: #888; display: flex; align-items: center; gap: 5px; cursor: pointer;}

/* --- Calculators Section --- */
.tools-section { background: var(--secondary-color); color: var(--white); }
.tools-section .section-header h2 { color: var(--white); }
.tools-section .section-header p { color: #bdc3c7; }

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.calc-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.calc-card h3 { margin-bottom: 1.5rem; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }

.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.9rem; margin-bottom: 5px; color: #bdc3c7; }
.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-weight: 600;
}

.calc-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}
.calc-btn:hover { background: var(--primary-dark); }

.result-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: none; /* Hidden by default */
}

/* --- Footer --- */
footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 3rem 5%;
    text-align: center;
}
footer a { color: #95a5a6; margin: 0 10px; }
footer a:hover { color: var(--white); }

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu toggle logic needed for full prod */
    .hero h1 { font-size: 2.2rem; }
    .hero-subtext { flex-direction: column; gap: 5px; }
}