/* Base styles and resets */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b8f71;
    --accent-color: #d9934e;
    --text-color: #333333;
    --light-text: #666666;
    --lightest-text: #999999;
    --background-color: #ffffff;
    --light-bg: #f5f7fa;
    --border-color: #e5e5e5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --container-width: 1200px;
    --heading-spacing: 0.75rem;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    text-align: center;
}

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

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

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

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

p {
    margin-bottom: 1.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

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

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Container and layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header styles */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

/* Featured posts section */
.featured-posts {
    padding: 5rem 5%;
}

.featured-posts h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

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

.post-content {
    padding: 1.5rem;
}

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

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

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 0.35rem;
    transition: margin-left 0.3s ease;
}

.read-more:hover:after {
    margin-left: 0.55rem;
}

/* Newsletter section */
.newsletter {
    background-color: var(--primary-color);
    padding: 5rem 5%;
    margin-top: 3rem;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form .btn {
    background-color: var(--accent-color);
    flex-shrink: 0;
}

.newsletter-form .btn:hover {
    background-color: #c07e38;
}

/* Footer styles */
footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 5% 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-social h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 1.5rem 5%;
    text-align: center;
    font-size: 0.9rem;
}

/* Blog page styles */
.blog-header {
    background-color: var(--light-bg);
    padding: 5rem 5%;
    text-align: center;
}

.blog-header h2 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.blog-posts {
    padding: 5rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.blog-post {
    display: flex;
    margin-bottom: 4rem;
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.post-image {
    flex: 0 0 300px;
}

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

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--lightest-text);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-meta .post-category {
    background-color: #eef2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: var(--primary-color);
}

/* About page styles */
.about-header {
    background-color: var(--light-bg);
    padding: 5rem 5%;
    text-align: center;
}

.about-header h2 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.about-story {
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

.team-section {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.team-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding-bottom: 1.5rem;
}

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

.team-member h3 {
    font-size: 1.3rem;
    margin: 1.25rem 0 0.25rem;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #eef2f7;
    border-radius: 50%;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.values-section {
    padding: 5rem 5%;
}

.values-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

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

.value-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    background-color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--light-text);
}

/* Contact page styles */
.contact-header {
    background-color: var(--light-bg);
    padding: 5rem 5%;
    text-align: center;
}

.contact-header h2 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.contact-container {
    padding: 5rem 5%;
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.contact-form-container {
    flex: 1;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-form-container h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.map-section {
    padding: 3rem 5% 5rem;
}

.map-section h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    height: 400px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog post content styles */
.post-content-wrapper {
    display: flex;
    padding: 5rem 5%;
    gap: 3rem;
}

.blog-post-content {
    flex: 2;
}

.post-sidebar {
    flex: 1;
}

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

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

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.25rem;
}

.post-body .post-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.post-tags {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    background-color: #eef2f7;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-nav-prev a,
.post-nav-next a {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.post-nav-prev a:before {
    content: '←';
    margin-right: 0.5rem;
}

.post-nav-next a:after {
    content: '→';
    margin-left: 0.5rem;
}

.post-comments {
    margin-top: 3rem;
}

.post-comments h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

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

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.comment-form textarea {
    resize: vertical;
}

/* Sidebar styles */
.sidebar-section {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-author .author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.about-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-author p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0;
}

.related-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.related-post:last-child {
    margin-bottom: 0;
}

.related-post img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.related-post h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.related-post .post-date {
    font-size: 0.85rem;
    color: var(--lightest-text);
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

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

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

.thank-you-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thank-you-message svg {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.thank-you-message h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
}

/* Cookie banner styles */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
}

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

.cookie-content p {
    margin-bottom: 1.25rem;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.cookie-content a {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Glossary styles */
.glossary {
    background-color: var(--light-bg);
    padding: 3rem 5%;
    margin-top: 3rem;
    text-align: center;
}

.glossary h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.glossary dl {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.25rem 2rem;
    text-align: left;
}

.glossary dt {
    font-weight: 600;
    color: var(--primary-color);
}

.glossary dd {
    margin: 0;
    color: var(--light-text);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero, 
    .about-story,
    .contact-container,
    .post-content-wrapper {
        flex-direction: column;
    }
    
    .hero-content,
    .about-content {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .post-image {
        flex: auto;
        height: 250px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 5%;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem 1rem;
    }
    
    .hero-content h2,
    .blog-header h2,
    .about-header h2,
    .contact-header h2 {
        font-size: 2.25rem;
    }
    
    .post-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .post-header h2 {
        font-size: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .glossary dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h2,
    .blog-header h2,
    .about-header h2,
    .contact-header h2,
    .post-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p,
    .blog-header p,
    .about-header p,
    .contact-header p {
        font-size: 1rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
