/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #777;
    --background-color: #fff;
    --background-alt: #f9f9f9;
    --border-color: #eee;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --container-width: 1200px;
    --font-size-base: 16px;
    --font-size-increase: 1.2;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

body.font-increased {
    --font-size-base: calc(16px * var(--font-size-increase));
}

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

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    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;
}

/* Buttons and Forms */
.btn, button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
}

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

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Header and Navigation */
header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.font-size button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-size button:hover {
    background-color: var(--background-alt);
    transform: none;
}

/* Hero Section and Slider */
.hero {
    background-color: var(--background-alt);
    padding: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
    height: 100%;
}

.slide.current {
    display: block;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.slide-content h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.slide-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-buttons button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Latest Posts Section */
.latest-posts {
    padding: 80px 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.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 10px 20px rgba(0, 0, 0, 0.1);
}

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

.post-content {
    padding: 20px;
}

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

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

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

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

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

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-form input {
    flex: 1;
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--accent-color);
}

.newsletter-form button:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

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

.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(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

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

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
}

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

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

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

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

.cookie-policy a {
    color: white;
    text-decoration: underline;
}

/* Blog Page */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.blog-posts {
    padding: 80px 0;
}

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

.post-image {
    height: 100%;
}

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

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Post Content */
.blog-post-content {
    padding: 60px 0;
}

.post-header {
    margin-bottom: 40px;
}

.post-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
}

.post-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body ul li, .post-body ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}

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

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.tags a {
    display: inline-block;
    background-color: var(--background-alt);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--background-alt);
    border-radius: 50%;
    color: var(--primary-color);
}

.author-bio {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    background-color: var(--background-alt);
    padding: 30px;
    border-radius: var(--border-radius);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 5px;
}

.author-info h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.related-posts {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.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);
}

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

.related-post h4 {
    padding: 15px;
    margin-bottom: 5px;
}

.related-post .read-more {
    padding: 0 15px 15px;
    display: block;
}

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-description {
    max-width: 800px;
    margin: 0 auto;
}

.team-section {
    padding: 60px 0;
    background-color: var(--background-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

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

.team-member h3, .team-member p {
    padding: 0 20px;
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-member p:nth-of-type(1) {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-member p:nth-of-type(2) {
    padding-bottom: 20px;
}

.values-section {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.value-card svg {
    margin: 0 auto 20px;
    color: var(--secondary-color);
}

.value-card h3 {
    margin-bottom: 15px;
}

.value-card p {
    margin-bottom: 0;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding-right: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.contact-form {
    background-color: var(--background-alt);
    padding: 30px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 5px;
    margin-bottom: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

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

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 30px;
}

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

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

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

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

.modal-content svg {
    color: var(--success-color);
    margin: 0 auto 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.close-btn {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slider-container {
        height: 500px;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .post {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 300px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: a;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .post-footer {
        flex-direction: column;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto 20px;
    }
}
