/* Base Styles */
:root {
    --primary-color: #3a3a3a;
    --secondary-color: #6e6e6e;
    --accent-color: #e6846e;
    --light-gray: #f5f5f5;
    --medium-gray: #ebebeb;
    --dark-gray: #333333;
    --white: #ffffff;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #d06a55;
}

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

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: var(--accent-color);
    width: 0%;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
}

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

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

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

nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

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

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

nav ul li a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 5% 5%;
    background-color: var(--light-gray);
    min-height: 80vh;
}

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

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

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

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Featured Posts Section */
.featured-posts {
    padding: 5% 5%;
    background-color: var(--white);
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.featured-posts h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

.post-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

.read-more {
    align-self: flex-start;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.read-more:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.read-more:hover:after {
    width: 100%;
}

.view-all {
    text-align: center;
}

/* Testimonial Section */
.testimonials {
    padding: 5% 5%;
    background-color: var(--light-gray);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.testimonials h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

.testimonial {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stars {
    margin-bottom: 1rem;
    display: flex;
    color: #FFD700;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    flex: 1;
}

.testimonial-author {
    font-weight: 500;
    color: var(--primary-color);
    align-self: flex-end;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 5%;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--medium-gray);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-links ul li a {
    color: var(--medium-gray);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--medium-gray);
}

.footer-contact svg {
    margin-right: 0.5rem;
}

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

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

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

.social-icons svg {
    width: 18px;
    height: 18px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

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

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

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

.cookie-content p {
    flex: 1 1 100%;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-link {
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 5% 5% 3%;
    background-color: var(--light-gray);
}

.page-header h1 {
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Blog Page Styles */
.blog-container {
    display: flex;
    gap: 3rem;
    padding: 3% 5%;
}

.blog-posts {
    flex: 2;
}

.blog-post {
    display: flex;
    margin-bottom: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-image {
    flex: 1;
}

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

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.post-date, .post-category, .post-author {
    position: relative;
}

.post-date:after, .post-author:after {
    content: '•';
    margin-left: 1rem;
}

.sidebar {
    flex: 1;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--medium-gray);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list li a {
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
}

.category-list li a:hover {
    color: var(--accent-color);
}

.popular-posts {
    list-style: none;
    padding: 0;
}

.popular-posts li {
    margin-bottom: 1rem;
}

.popular-posts li:last-child {
    margin-bottom: 0;
}

.popular-posts li a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.popular-posts li a:hover {
    color: var(--accent-color);
}

.popular-posts li a img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 1rem;
}

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

.subscription-form input {
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

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

.about-content {
    flex: 3;
}

.about-image {
    flex: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.values-list {
    padding-left: 1.5rem;
}

.values-list li {
    margin-bottom: 0.75rem;
}

.team-section {
    padding: 3% 5%;
    background-color: var(--light-gray);
    text-align: center;
}

.team-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.team-member h3 {
    margin: 1rem 0 0.25rem;
    font-size: 1.2rem;
}

.team-member p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.team-member .social-icons {
    justify-content: center;
    margin: 1rem 0;
}

.stats-section {
    padding: 3% 5%;
    background-color: var(--white);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary-color);
}

.cta-section {
    text-align: center;
    padding: 5% 5%;
    background-color: var(--light-gray);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Page */
.contact-section {
    display: flex;
    gap: 3rem;
    padding: 3% 5%;
}

.contact-info {
    flex: 1;
}

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

.info-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.icon {
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(230, 132, 110, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
}

.info-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.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: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.map-section {
    padding: 3% 5%;
    background-color: var(--light-gray);
}

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

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

/* Blog Post Full Page */
.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 3% 5%;
}

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

.post-header .post-meta {
    margin-bottom: 1rem;
}

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

.post-excerpt {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.post-image-full {
    margin-bottom: 2rem;
}

.post-image-full img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

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

.post-content-full h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

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

.post-content-full ul,
.post-content-full ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content-full li {
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.post-tags span {
    font-weight: 600;
    color: var(--primary-color);
}

.post-tags a {
    background-color: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

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

.related-posts {
    padding: 3% 5% 5%;
    background-color: var(--light-gray);
}

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

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

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

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.related-post h3 {
    font-size: 1.1rem;
    margin: 1rem 1rem 0.5rem;
}

.related-post p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0 1rem 1rem;
}

.related-post .read-more {
    margin: 0 1rem 1rem;
    display: inline-block;
}

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

.modal.active {
    display: flex;
}

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

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

.modal-icon {
    margin-bottom: 1.5rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding-top: 3rem;
        padding-bottom: 3rem;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .about-story {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .contact-section {
        flex-direction: column;
    }
    
    .info-item {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .post-image, .blog-post .post-content {
        flex: none;
    }
    
    .post-image img {
        height: 250px;
    }
    
    .blog-container {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .post-grid, .testimonial-container, .footer-content, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .post-date:after, .post-author:after {
        content: none;
    }
}
