:root {
    --primary-color: #ff7f6d;
    --text-color: #1e2a4a;
    --bg-color: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

#hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 6rem 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

#hero h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#hero .container {
    position: relative;
    z-index: 1;
}

header {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background-color: #e66d5c;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.topic-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    padding: 0;
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.topic-card h3 {
    margin: 1rem;
    color: var(--text-color);
}

.topic-card p {
    margin: 1rem;
    color: #4a5568;
}

.topic-card .btn {
    margin: 1rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-card h3, .article-card h4 {
    margin-top: 0;
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.success-message {
    color: #38a169;
    text-align: center;
    padding: 1rem;
    display: none;
}

footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    nav div {
        margin-top: 1rem;
    }
    
    .nav-link {
        display: block;
        margin: 0.5rem 0;
    }
    
    .btn {
        margin: 0.5rem 0 !important;
    }
}
