/* Base Styles */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #c0392b;
    --accent-color: #f39c12;
    --light-color: #f4f4f4;
    --dark-color: #333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #ddd;
    
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Open Sans', sans-serif;
    
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    
    --container-width: 1200px;
    --content-width: 800px;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

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

.btn-secondary {
    background-color: var(--gray-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.logo span {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 70%;
}

.nav-links a.active {
    color: var(--secondary-color);
}

.font-size-control {
    margin-left: 1rem;
}

.font-size-control button {
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.font-size-control button:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--light-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/4.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

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

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-color);
}

/* Featured Posts */
.featured-posts {
    padding: 4rem 0;
}

.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(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

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

.post-card:hover {
    transform: translateY(-5px);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.post-content {
    padding: 1.5rem;
}

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

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

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

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-date {
    margin-right: 1rem;
}

.post-category {
    padding: 3px 10px;
    background-color: var(--light-gray);
    border-radius: 20px;
}

/* About Preview */
.about-preview {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

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

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

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

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    text-align: center;
    background-color: #fff;
}

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

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

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

.newsletter-form input {
    flex: 1;
    padding: 10px 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 */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 1rem;
}

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

.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: #fff;
    margin-bottom: 0.5rem;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.footer h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
}

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

.footer-links ul li a,
.footer-legal ul li a {
    color: #ccc;
    transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

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

.social-icons a {
    color: #ccc;
    transition: color var(--transition-speed) ease;
}

.social-icons a:hover {
    color: #fff;
}

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

.footer-bottom p {
    color: #ccc;
    margin-bottom: 0;
}

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

/* Blog Post Single */
.blog-post {
    padding: 3rem 0;
}

.blog-post .container {
    max-width: var(--content-width);
}

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

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

.post-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.post-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info h3 {
    margin-bottom: 0;
    font-size: 1rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

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

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

.post-content {
    line-height: 1.8;
}

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

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

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

.post-content ul li, 
.post-content ol li {
    margin-bottom: 0.5rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-image-container {
    margin: 2rem 0;
    text-align: center;
}

.post-image-container img {
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    max-width: 100%;
    display: inline-block;
}

.image-caption {
    color: var(--gray-color);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

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

.post-tags {
    margin: 3rem 0 1.5rem;
}

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

.post-tags a {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--gray-color);
    padding: 5px 10px;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

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

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

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

.social-share {
    display: flex;
    gap: 0.5rem;
}

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

.social-share a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Related Posts */
.related-posts {
    padding: 3rem 0;
    background-color: var(--light-color);
}

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

/* Comments Section */
.comments-section {
    padding: 3rem 0;
}

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

.comments-form {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.comments-form h3 {
    margin-bottom: 1.5rem;
}

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

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

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

.comments-list {
    max-width: 800px;
    margin: 0 auto;
}

.comment {
    display: flex;
    margin-bottom: 2rem;
}

.comment-avatar {
    margin-right: 1.5rem;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-meta h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.comment-meta span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-top: 0.5rem;
}

.reply-btn:hover {
    color: var(--secondary-color);
}

/* About Page */
.about-story {
    padding: 4rem 0;
}

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

.about-mission {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

.mission-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.mission-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

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

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

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

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

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

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

.stats-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

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

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

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

.info-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.info-item .details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-item .details p {
    margin-bottom: 0;
    color: var(--gray-color);
}

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

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

.map-section {
    padding: 4rem 0;
    background-color: #fff;
}

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

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Modal */
.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-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.close-btn {
    margin-top: 1rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: #fff;
    padding: 1.5rem 0;
    z-index: 999;
    transition: bottom 0.5s ease;
}

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

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

.cookie-more-info {
    font-size: 0.9rem;
    color: #ccc;
}

.cookie-more-info a {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-story .container,
    .about-preview .container,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 2rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-share span {
        margin-bottom: 1rem;
    }
    
    .mission-values,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

/* Active states for cookie consent */
.cookie-consent.active {
    bottom: 0;
}

/* Style for reduced font size */
.reduced-font {
    font-size: 0.9em;
}
