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

:root {
    --primary-color: #2c5282;
    --secondary-color: #4299e1;
    --accent-color: #48bb78;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --text-color: #2d3748;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --error-color: #e53e3e;
}

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

.main-header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--success-color);
    transform: translateY(-2px);
}

.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-posts,
.blog-posts,
.fun-fact,
.newsletter-section {
    padding: 4rem 0;
}

.featured-posts h2,
.blog-posts h2,
.fun-fact h2,
.newsletter-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

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

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

.letter-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.letter-box h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.letter-box p {
    margin-bottom: 1.5rem;
}

.signature {
    font-style: italic;
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3,
.footer-links h3,
.footer-legal h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links a,
.footer-legal a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

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

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 32, 44, 0.98);
    color: white;
    padding: 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
}

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

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

.cookie-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, opacity 0.3s;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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

.cookie-btn.reject {
    background-color: var(--error-color);
    color: white;
}

.cookie-btn.customize {
    background-color: var(--secondary-color);
    color: white;
}

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

.blog-header,
.about-header,
.contact-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.blog-header h1,
.about-header h1,
.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    transition: transform 0.3s;
}

.blog-post-item:hover {
    transform: translateX(5px);
}

.blog-post-img {
    width: 300px;
    height: 250px;
    object-fit: cover;
}

.blog-post-content {
    padding: 2rem;
    flex: 1;
}

.blog-post-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.about-intro {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.about-intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.team-section {
    padding: 4rem 0;
}

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

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 1.5rem;
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
}

.member-role {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.team-member p {
    padding: 0 1rem;
    line-height: 1.6;
}

.mission-section {
    padding: 4rem 0;
    background: white;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.mission-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

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

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

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-btn:hover {
    background-color: var(--success-color);
    transform: translateY(-2px);
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

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

.post-article {
    padding: 3rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-meta {
    color: #718096;
    font-size: 0.9rem;
}

.post-meta span {
    margin: 0 1rem;
}

.post-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.post-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.post-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-navigation {
    margin-top: 3rem;
    text-align: center;
}

.back-to-blog {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

@media (max-width: 768px) {
    .container-header {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        display: none;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-item {
        flex-direction: column;
    }

    .blog-post-img {
        width: 100%;
        height: 200px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}