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

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

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

/* Header */
header {
    background-color: #f5f5f5;
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: #2c5aa0;
    font-size: 28px;
    font-weight: 700;
}

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

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: #2c5aa0;
    color: white;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero h2 {
    font-size: 32px;
    color: #2c5aa0;
    margin-bottom: 16px;
    line-height: 1.3;
    text-align: center;
}

/* Key Phrases Section */
.key-phrases {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.phrase-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.phrase-block:hover {
    background-color: #e9ecef;
}

/* Articles Section */
.articles {
    padding: 48px 0;
    background-color: #fdfdfd;
}

.articles h3 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.article-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #2c5aa0;
}

.article-card h4 {
    font-size: 19px;
    color: #2c5aa0;
    margin-bottom: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

.article-card p {
    color: #666;
    margin-bottom: 14px;
    line-height: 1.6;
    flex-grow: 1;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.read-more {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 15px;
    margin-top: auto;
    align-self: flex-start;
}

/* Info Section */
.info-section {
    padding: 48px 0;
    background-color: #f9f9f9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

.info-card h4 {
    color: #2c5aa0;
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.info-card p {
    line-height: 1.5;
    word-wrap: break-word;
}

/* Footer */
footer {
    background-color: #444;
    color: white;
    padding: 32px 0 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    color: #2c5aa0;
    margin-bottom: 12px;
    font-size: 18px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #666;
    padding-top: 16px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

.popup-content {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 20vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10001;
}

.popup-content h3 {
    color: #2c5aa0;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.3;
}

.popup-content p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #333;
}

.popup-btn {
    background-color: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 4px;
}

.popup-btn:hover {
    background-color: #1e3f73;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 16px;
    text-align: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    gap: 16px;
}

.cookie-content p {
    margin: 0;
    margin-bottom: 12px;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-btn {
    background-color: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-btn:hover {
    background-color: #1e3f73;
}

.cookie-link {
    color: #2c5aa0;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

.cookie-link:hover {
    color: #1e3f73;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 48px auto;
    padding: 32px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3f73;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Page Content */
.page-content {
    padding: 48px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    color: #2c5aa0;
    margin-bottom: 24px;
    font-size: 32px;
}

.page-content h2 {
    color: #333;
    margin: 32px 0 16px;
    font-size: 24px;
}

.page-content h3 {
    color: #333;
    margin: 24px 0 12px;
    font-size: 20px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Article Content */
.article-content {
    padding: 48px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    color: #2c5aa0;
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    color: #666;
    font-size: 16px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    color: #333;
    margin: 32px 0 16px;
    font-size: 24px;
}

.article-body h3 {
    color: #333;
    margin: 24px 0 12px;
    font-size: 20px;
}

.article-body p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.disclaimer {
    background-color: #f9f9f9;
    border-left: 4px solid #2c5aa0;
    padding: 16px;
    margin: 32px 0;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .key-phrases {
        gap: 10px;
        max-width: 100%;
    }
    
    .phrase-block {
        font-size: 15px;
        padding: 12px 16px;
        max-width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-card {
        padding: 16px;
        min-height: 180px;
    }
    
    .article-card h4 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .article-card p {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .popup-content {
        margin: 12px;
        max-height: 20vh;
        overflow-y: auto;
        padding: 12px 16px;
    }
    
    .popup-content h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .popup-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .page-content {
        padding: 24px 20px;
    }
    
    .form-container {
        margin: 24px 20px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    nav a {
        text-align: center;
        display: block;
        padding: 10px 12px;
    }
    
    .hero h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .key-phrases {
        gap: 8px;
    }
    
    .phrase-block {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .articles h3 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .article-card {
        padding: 14px;
        min-height: 160px;
    }
    
    .article-card h4 {
        font-size: 16px;
    }
    
    .article-card p {
        font-size: 14px;
    }
    
    .read-more {
        font-size: 14px;
    }
    
    .popup-content {
        margin: 8px;
        padding: 10px 12px;
        max-height: 25vh;
    }
    
    .popup-content h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .popup-content p {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .popup-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    .popup-overlay,
    .cookie-banner,
    header nav,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .page-content,
    .article-content {
        padding: 0;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 16px;
    text-align: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    background-color: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-btn:hover {
    background-color: #1e3f73;
}

.cookie-link {
    color: #2c5aa0;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

.cookie-link:hover {
    color: #1e3f73;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .article-card {
        border: 2px solid #000;
    }
    
    .article-card:hover {
        background-color: #f0f0f0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}