/* Modern clean styles for the genetic counseling website */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
    padding: 0;
}

.main-nav a {
    flex: 1;
    min-width: 140px;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    border-right: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.main-nav a:last-child {
    border-right: none;
}

.main-nav a:hover {
    background-color: #e8f4f8;
    color: #2c3e50;
}

.main-nav a.active {
    background-color: #3498db;
    color: white;
    border-bottom: 3px solid #2980b9;
}

/* Main content */
main {
    flex: 1;
    padding: 50px 40px;
}

main > h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

/* Cards Grid (home page) */
.hero {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.hero h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    border: none;
    padding: 0;
    margin: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card h3 a:hover {
    color: #3498db;
}

.card p {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.link:hover {
    color: #2980b9;
    transform: translateX(3px);
}

/* Content articles */
.content {
    color: #444;
    line-height: 1.8;
}

.content section {
    margin-bottom: 40px;
}

.content section:last-child {
    margin-bottom: 0;
}

.content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.content p {
    margin-bottom: 20px;
    text-align: justify;
}

.content ul,
.content ol {
    margin: 20px 0 20px 40px;
    line-height: 1.8;
}

.content li {
    margin-bottom: 12px;
    color: #444;
}

.content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.content strong {
    color: #2c3e50;
    font-weight: 600;
}

.content em {
    font-style: italic;
    color: #555;
}

blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #3498db;
    background-color: #f0f7fb;
    font-style: italic;
    color: #555;
}

blockquote p {
    margin-bottom: 10px;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    margin: 30px 0;
}

.timeline-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.timeline-date {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-item strong {
    color: #2c3e50;
}

/* Contact section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-section section h3 {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin-bottom: 15px;
}

.contact-section p {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 40px;
    border-top: 1px solid #1a252f;
    margin-top: auto;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        box-shadow: none;
    }

    header {
        padding: 40px 20px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main-nav {
        flex-direction: column;
    }

    .main-nav a {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    main {
        padding: 30px 20px;
    }

    main > h2 {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content ul,
    .content ol {
        margin-left: 25px;
    }

    footer {
        padding: 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    main {
        padding: 20px 15px;
    }

    main > h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .content h3 {
        font-size: 1.15rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
