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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    text-decoration: none;
}

.main-nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #4CAF50;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-image {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Content Sections */
.educational-content {
    padding: 60px 0;
    background: white;
}

.educational-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

#content-article {
    font-size: 1.1rem;
}

#content-article h1,
#content-article h2,
#content-article h3 {
    margin: 30px 0 15px;
    color: #333;
}

#content-article p {
    margin-bottom: 20px;
}

/* Related Resources */
.related-resources h3 {
    margin-bottom: 20px;
    color: #444;
}

.resource-grid {
    display: grid;
    gap: 20px;
}

.resource-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.resource-card h4 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.resource-link {
    display: inline-block;
    margin-top: 10px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

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

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-cta {
    background: #4CAF50;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.primary-cta:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.secondary-cta {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 13px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.secondary-cta:hover {
    background: #667eea;
    color: white;
}

.cta-disclaimer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

.compliance-disclaimer {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Loading States */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.8);
}

.loading-article {
    padding: 20px;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px;
}

.error-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.error-links a {
    background: white;
    color: #4CAF50;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.error-links a:hover {
    background: #4CAF50;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .educational-content .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main-nav a {
        margin-left: 0;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* Compliance Risk Colors */
.low-risk {
    border-top: 4px solid #4CAF50;
}

.medium-risk {
    border-top: 4px solid #ff9800;
}

.high-risk {
    border-top: 4px solid #f44336;
}
