:root {
    --primary-color: #0056b3; /* Medical blue */
    --secondary-color: #f8f9fa; /* Light grey */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --accent-color: #007bff;
    --border-color: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    color: var(--text-color);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Typography Headings */
h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Articles Grid */
#articole h2 {
    text-align: center;
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-card a {
    color: var(--text-color);
    display: block;
}

.article-card a:hover {
    color: var(--primary-color);
}

/* Article Template Styles */
.article-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 40px;
    margin-bottom: 40px;
}

article p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

article h2 {
    margin-top: 40px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

article h3 {
    margin-top: 30px;
    font-size: 1.4rem;
    color: #555;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* Call to Action Box */
.cta-box {
    background-color: #ebf5ff; /* Soft medical blue background */
    border: 2px solid #b8daff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 86, 179, 0.1);
}

.cta-box h2 {
    color: var(--primary-color);
    margin-top: 0;
    border: none;
    font-size: 1.8rem;
}

.cta-box p {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #004494;
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-bottom: 1px solid #455a64;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-info h3 {
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #b0bec5;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    color: #b0bec5;
    font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-container {
        padding: 60px 80px;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-box {
        padding: 25px 15px;
    }
}
