:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #e76f51;
    --light: #f8f9fa;
    --dark: #264653;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(38, 70, 83, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.logo { display: flex; align-items: center; gap: 15px; }
.logo i { font-size: 2.8rem; color: var(--primary); }
.logo h1 { font-size: 2rem; font-weight: 700; color: var(--dark); }
.logo span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { font-size: 0.9rem; color: var(--gray); }

.nav {
    background: white;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--box-shadow);
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav a:hover { background: var(--primary); color: white; }

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-3px); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.card-header h2 { font-size: 1.5rem; font-weight: 700; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image i { font-size: 3rem; color: white; }

.article-content { padding: 20px; }

.article-title { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary); }
.article-title a { color: var(--primary); text-decoration: none; }
.article-title a:hover { text-decoration: underline; }

.article-meta { font-size: 0.8rem; color: var(--gray); margin-bottom: 12px; }
.article-excerpt { color: var(--dark); margin-bottom: 15px; line-height: 1.5; }

.read-more {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover { text-decoration: underline; }

/* Ad Containers - Easy to replace with real ads */
.ad-container {
    background: #f8f9fa;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 11px;
    color: #999;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.ad-slot-sidebar {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; }
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(74,111,165,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-block { width: 100%; justify-content: center; }

.quick-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.stat-card { background: white; padding: 20px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; min-width: 150px; }
.stat-card h3 { font-size: 1.8rem; color: var(--primary); }

.result-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--light-gray); }
.result-value { font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.result-highlight { background: rgba(42,157,143,0.1); padding: 20px; border-radius: 12px; margin-top: 20px; }

footer { text-align: center; padding: 25px 0; color: var(--gray); border-top: 1px solid rgba(38,70,83,0.1); margin-top: 30px; }

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    body { padding: 10px; }
    header { flex-direction: column; text-align: center; }
    .article-grid { grid-template-columns: 1fr; }
    .quick-stats { justify-content: center; }
    .nav { flex-direction: column; }
    .nav a { text-align: center; }
}
