/* Base Styles */
:root {
    --primary-color: #2e5aac;
    --secondary-color: #4f76c7;
    --accent-color: #f1c40f;
    --text-color: #333;
    --text-color-light: #666;
    --background-color: #fff;
    --background-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-max-width: 1200px;
    --border-radius: 8px;
    --dark-mode-transition: background-color 0.5s ease, color 0.5s ease;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #4f76c7;
    --secondary-color: #6d8cda;
    --accent-color: #ffd54f;
    --text-color: #e0e0e0;
    --text-color-light: #a0a0a0;
    --background-color: #121212;
    --background-alt: #1e1e1e;
    --border-color: #2a2a2a;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--dark-mode-transition);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-color);
    transition: var(--dark-mode-transition);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

button:hover, .button:hover {
    background-color: var(--secondary-color);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* Header Styles */
header {
    background-color: var(--background-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--dark-mode-transition);
}

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

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.theme-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 1rem;
    transition: var(--transition);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: var(--transition);
}

.theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun {
    display: block;
    color: var(--accent-color);
}

/* Hero Section */
.hero, .about-hero, .contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1, .about-hero h1, .contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.slogan {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Posts Section */
.blog-posts {
    padding: 3rem 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.post-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more svg {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover svg {
    transform: translateX(3px);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--background-alt);
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer Styles */
footer {
    background-color: var(--background-alt);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    transition: var(--dark-mode-transition);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-color-light);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-color-light);
}

.footer-contact svg {
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons svg {
    color: var(--text-color);
    transition: var(--transition);
}

.social-icons a:hover svg {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1001;
    display: none;
    animation: slideIn 0.5s forwards;
    max-width: 500px;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-content a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.cookie-settings {
    background-color: var(--text-color-light);
}

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

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* About Page Styles */
.about-intro {
    padding: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team {
    padding: 3rem 0;
    background-color: var(--background-alt);
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-member {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 1.5rem;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.team-member h3 {
    margin: 1.2rem 0 0.3rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

.team-member p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--background-alt);
    border-radius: 50%;
    transition: var(--transition);
}

.member-social a:hover {
    background-color: var(--primary-color);
}

.member-social svg {
    color: var(--text-color);
    transition: var(--transition);
}

.member-social a:hover svg {
    color: white;
}

.values {
    padding: 3rem 0;
}

.values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.value-card {
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    color: var(--primary-color);
}

.join-us {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.join-us h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.join-us p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Contact Page Styles */
.contact-content {
    padding: 3rem 0;
}

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

.contact-form-container {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

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

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-info-container {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-info-container h2 {
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-bottom: 2rem;
}

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

.contact-icon {
    margin-right: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon svg {
    color: var(--primary-color);
}

.contact-details h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-color-light);
    margin-bottom: 0.2rem;
}

.contact-details a {
    color: var(--text-color-light);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-contact h3 {
    margin-bottom: 1rem;
}

.map-section {
    padding: 3rem 0;
    background-color: var(--background-alt);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-section {
    padding: 3rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-icon svg {
    color: var(--success-color);
}

.modal-content h2 {
    margin-bottom: 1rem;
}

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

.close-button {
    padding: 10px 30px;
}

/* Post Page Styles */
.post-full {
    padding: 3rem 0;
}

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

.post-header h1 {
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.post-meta {
    color: var(--text-color-light);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-content img {
    margin: 2rem auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

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

.post-tags span {
    font-weight: 600;
    margin-right: 0.5rem;
}

.post-tags a {
    display: inline-block;
    margin: 0 0.3rem 0.5rem;
    padding: 5px 12px;
    background-color: var(--background-alt);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.post-share span {
    font-weight: 600;
    margin-right: 1rem;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background-color: var(--background-alt);
    border-radius: 50%;
    transition: var(--transition);
}

.post-share a:hover {
    background-color: var(--primary-color);
}

.post-share svg {
    color: var(--text-color);
    transition: var(--transition);
}

.post-share a:hover svg {
    color: white;
}

.post-author-bio {
    display: flex;
    align-items: center;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
}

.author-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-info p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--background-color);
    border-radius: 50%;
    transition: var(--transition);
}

.author-social a:hover {
    background-color: var(--primary-color);
}

.author-social svg {
    color: var(--text-color);
    transition: var(--transition);
}

.author-social a:hover svg {
    color: white;
}

.related-posts {
    margin-bottom: 3rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.related-post h4 {
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.post-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
}

.post-nav-prev, .post-nav-next {
    flex: 0 0 48%;
}

.post-nav-next {
    text-align: right;
}

.post-nav-links span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.post-nav-links a {
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-info {
        grid-column: span 3;
        margin-bottom: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1, .about-hero h1, .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1.2rem;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        padding: 0.8rem 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .posts-grid, .values-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .post-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .post-nav-next {
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-info {
        grid-column: span 2;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
