/* Base Styles & Variables */
:root {
    --primary-color: #e53935;
    --secondary-color: #ff8f00;
    --accent-color: #2e7d32;
    --text-color: #333333;
    --light-text: #777777;
    --bg-color: #ffffff;
    --light-bg: #f5f5f5;
    --border-color: #dddddd;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

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

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

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

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo-container {
    flex: 0 0 auto;
}

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

nav ul {
    display: flex;
}

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

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: var(--header-font);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

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

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--header-font);
}

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

/* Main Content Containers */
main {
    padding: 60px 5%;
}

section {
    margin-bottom: 80px;
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--header-font);
}

/* Featured Posts Section */
.featured-posts {
    margin-bottom: 60px;
}

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

.post-card {
    background-color: white;
    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.15);
}

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

.post-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: var(--text-color);
    font-family: var(--header-font);
}

.post-card p {
    padding: 0 20px;
    color: var(--light-text);
}

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

/* Hover Effect for Headings */
.hover-effect {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.hover-effect:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
    padding: 60px 5%;
    border-radius: var(--border-radius);
}

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

.testimonial-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: Georgia, serif;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-style: italic;
    text-align: right;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 5%;
    text-align: center;
    border-radius: var(--border-radius);
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta 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;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
}

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

/* Blog Post Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post {
    margin-bottom: 80px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.post-header {
    position: relative;
}

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

.post-header h2 {
    padding: 30px 30px 0;
    text-align: left;
    font-size: 2.2rem;
}

.post-meta {
    padding: 10px 30px 20px;
    color: var(--light-text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.post-meta span {
    margin-right: 20px;
}

.post-content {
    padding: 30px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h3 {
    margin: 30px 0 15px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

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

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

.post-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.tags a {
    display: inline-block;
    background-color: var(--bg-color);
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--light-text);
}

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

.share a {
    margin-left: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--light-text);
    transition: var(--transition);
}

.social-icon:hover {
    fill: var(--primary-color);
}

/* About Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-intro, .our-mission {
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-intro p, .our-mission p {
    margin-bottom: 20px;
}

.our-mission ul {
    padding-left: 20px;
}

.our-mission li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.team-section {
    margin-bottom: 60px;
}

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

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

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

.team-member h3 {
    margin: 20px 0 5px;
    color: var(--primary-color);
}

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

.team-member p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.trust-point {
    display: flex;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.trust-point .icon {
    margin-right: 20px;
}

.trust-point .icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.trust-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.cta-section {
    text-align: center;
    background-color: var(--light-bg);
    padding: 60px;
    border-radius: var(--border-radius);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    text-align: center;
    margin-bottom: 60px;
}

.contact-info p {
    max-width: 700px;
    margin: 0 auto 30px;
}

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

.contact-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
}

.contact-item .icon {
    margin-right: 20px;
}

.contact-item .icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-form-section {
    margin-bottom: 60px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
}

.map-section {
    margin-bottom: 60px;
}

.map-container {
    height: 400px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.faq-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

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

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

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

/* Footer Styles */
footer {
    background-color: #222;
    color: white;
    padding: 60px 5% 30px;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p, .footer-section ul {
    color: #ccc;
    margin-bottom: 15px;
}

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

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

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

.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%;
    transition: var(--transition);
}

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

.footer-section .social-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #777;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    z-index: 999;
    display: none;
}

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

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

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

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

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

.btn-decline {
    background-color: #777;
}

.cookie-policy-link {
    margin-left: 20px;
    color: #ccc;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    .post-header h2 {
        font-size: 1.8rem;
    }
    .trust-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    .logo-container {
        margin-bottom: 15px;
    }
    nav ul {
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px;
    }
    .hero {
        height: 60vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .page-header {
        padding: 40px 0;
    }
    section h2 {
        font-size: 1.8rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    .post-footer {
        flex-direction: column;
    }
    .tags {
        margin-bottom: 15px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .contact-details {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-policy-link {
        margin: 15px 0 0;
    }
}

@media (max-width: 576px) {
    nav ul li {
        margin: 0 5px;
    }
    nav ul li a {
        font-size: 14px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .post-header img {
        height: 250px;
    }
    .post-header h2 {
        font-size: 1.5rem;
        padding: 20px 20px 0;
    }
    .post-meta {
        padding: 10px 20px 15px;
    }
    .post-content {
        padding: 20px;
    }
    .contact-form {
        padding: 20px;
    }
}
