:root {
    --primary: #1a565c;
    --primary-light: #2b7a82;
    --secondary: #f4f7f6;
    --text-dark: #333333;
    --text-light: #777777;
    --border: #e0e0e0;
    --white: #ffffff;
    --accent: #e67e22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9fbfa;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.intro {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
}

section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Calculator Form */
.calc-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.input-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #d35400;
}

.result {
    margin-top: 2rem;
    background-color: var(--secondary);
    padding: 1.5rem;
    border-left: 5px solid var(--accent);
    border-radius: 4px;
}

.result .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0.5rem 0;
}

.calc-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-card {
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 6px;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.source-badge {
    background-color: var(--primary-light);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.date {
    font-size: 0.8rem;
    color: var(--text-light);
    float: right;
}

.news-card h4 {
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
}

.news-card h4 a {
    color: var(--primary);
    text-decoration: none;
}

.news-card h4 a:hover {
    text-decoration: underline;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }
}