/* Global Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #f1a208;
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --text-color: #333;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --success-color: #2a9d8f;
    --danger-color: #e63946;
    --max-width: 1200px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --border-radius: 4px;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #ff6b6b;
    --secondary-color: #ffc045;
    --dark-color: #f1faee;
    --light-color: #1d3557;
    --text-color: #f1faee;
    --gray-color: #a9b3c1;
    --light-gray: #2c3e50;
    --border-color: #4b5563;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    transition: var(--transition);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--dark-color);
}

.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme h4, .dark-theme h5, .dark-theme h6 {
    color: var(--light-color);
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 4rem 0;
}

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

#progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.2s ease;
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.dark-theme header {
    background-color: var(--light-color);
}

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

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

nav ul {
    display: flex;
}

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

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.dark-theme nav ul li a {
    color: var(--dark-color);
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 1.5rem;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.dark-theme .theme-toggle {
    color: var(--dark-color);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.dark-theme .mobile-menu-icon {
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

/* Featured Posts */
.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.dark-theme .post-card {
    background-color: var(--light-gray);
}

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

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

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

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

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

/* Call to Action */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

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

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

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

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

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

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a, .footer-legal a {
    color: var(--light-color);
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 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: var(--transition);
}

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

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

/* Page Banner */
.page-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.page-banner h1 {
    color: white;
    margin-bottom: 1rem;
}

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

.post-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.dark-theme .post-item {
    background-color: var(--light-gray);
}

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

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.3rem;
}

.post-item .post-image {
    height: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags a {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--gray-color);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.dark-theme .post-tags a {
    background-color: var(--dark-color);
    color: var(--light-color);
}

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

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

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

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 0.5rem;
    color: white;
    transition: var(--transition);
}

.post-share .facebook {
    background-color: #3b5998;
}

.post-share .twitter {
    background-color: #1da1f2;
}

.post-share .linkedin {
    background-color: #0077b5;
}

.post-share .pinterest {
    background-color: #bd081c;
}

.post-share a:hover {
    transform: translateY(-3px);
}

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

.nav-previous, .nav-next {
    max-width: 45%;
}

.nav-subtitle {
    display: block;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.nav-title {
    font-weight: 600;
}

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

.dark-theme .related-posts {
    background-color: var(--dark-color);
}

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

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

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

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

.newsletter p {
    margin-bottom: 2rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--dark-color);
}

.newsletter-form .btn:hover {
    background-color: var(--secondary-color);
}

/* About Content */
.about-content {
    padding: 4rem 0;
}

.about-intro, .about-mission {
    margin-bottom: 3rem;
}

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

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

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.dark-theme .team-card {
    background-color: var(--light-gray);
}

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

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

.team-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
}

.team-card p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.team-card .social-icons {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.team-card .social-icons a {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.dark-theme .team-card .social-icons a {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
}

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

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

.contact-details {
    margin-top: 2rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

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

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

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

.dark-theme .contact-form {
    background-color: var(--light-gray);
}

.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: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.dark-theme .form-group input, .dark-theme .form-group textarea {
    background-color: var(--dark-color);
    color: var(--light-color);
    border-color: var(--border-color);
}

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

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-checkbox label {
    margin-bottom: 0;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
}

.map-container {
    margin-top: 3rem;
}

.map-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

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

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalopen 0.4s;
}

.dark-theme .modal-content {
    background-color: var(--light-gray);
}

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

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

.thank-you-content {
    text-align: center;
}

.thank-you-content i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.modal-btn {
    margin-top: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem;
    z-index: 999;
    display: none;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.btn-cookie {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

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

.btn-cookie.decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

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

.cookie-more-info {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-more-info a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .post-item {
        grid-template-columns: 1fr;
    }
    
    .post-item .post-image {
        height: 300px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .dark-theme nav {
        background-color: var(--light-gray);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .mobile-menu-icon {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-previous, .nav-next {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 1rem;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
