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

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7c;
    --accent-color: #d4af37;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Cookie Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-accept,
.cookie-reject {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.cookie-accept {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cookie-reject {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

/* Header */
.main-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-top: 20px;
}

/* Page Hero */
.page-hero {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

/* Welcome Languages */
.welcome-languages {
    background: var(--light-bg);
    padding: 40px 0;
}

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

.lang-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Intro Section */
.intro-section {
    padding: 60px 0;
}

.intro-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Calculator Section */
.calculator-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.calculator-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calc-input-group {
    margin-bottom: 20px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.calc-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.calc-button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-button:hover {
    background: #c49d2e;
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    min-height: 60px;
}

/* Posts Section */
.posts-section {
    padding: 60px 0;
}

.posts-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

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

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.post-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin: 30px 0 20px;
}

.content-text h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin: 25px 0 15px;
}

.content-text p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.content-inline-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* About Section */
.about-intro {
    padding: 60px 0;
    background: var(--light-bg);
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 60px 0;
}

.team-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

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

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 15px;
    line-height: 1.6;
}

/* Values Section */
.values-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.values-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

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

.contact-info-box,
.contact-form-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info-box h2,
.contact-form-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 12px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #c49d2e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Legal Section */
.legal-section {
    padding: 60px 0;
}

.legal-section h1 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 30px;
}

.legal-content h2 {
    color: var(--secondary-color);
    font-size: 24px;
    margin: 30px 0 15px;
}

.legal-content h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin: 20px 0 10px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Disclaimer */
.institutional-disclaimer {
    background: var(--light-bg);
    padding: 40px 0;
}

.disclaimer-box {
    background: var(--white);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.disclaimer-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Article */
.post-article {
    padding: 60px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h1 {
    color: var(--primary-color);
    font-size: 38px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    flex-wrap: wrap;
}

.article-featured-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 40px;
    display: block;
}

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

.article-content h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin: 40px 0 20px;
}

.article-content h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link:hover {
    background: var(--primary-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-info {
    font-style: italic;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
}