/* Base Styles and Reset */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #f39237;
    --text-color: #333;
    --light-text: #777;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --container-width: 1200px;
    --header-height: 70px;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

.btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
}

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

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

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Banner Section */
.banner {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    flex: 1;
}

.banner-content h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.banner-image {
    flex: 1;
    text-align: right;
}

.banner-image img {
    max-width: 90%;
    margin-left: auto;
}

/* About Section */
.values {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.value {
    flex-basis: calc(33.333% - 20px);
    margin-bottom: 20px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.value:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.value h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Services Section */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.service-card {
    flex: 1 0 calc(25% - 30px);
    margin: 0 15px 30px;
    padding: 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 80px;
    margin: 0 auto 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Blog Section */
.blog-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.blog-post {
    flex: 1 0 calc(50% - 20px);
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    margin-bottom: 10px;
}

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

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

.read-more:after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    transition: var(--transition);
}

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

/* Testimonials Section */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -15px;
    padding-bottom: 20px;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px;
    padding: 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.testimonial p {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial p:before,
.testimonial p:after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
}

.testimonial p:before {
    left: 0;
    top: -10px;
}

.testimonial p:after {
    right: 0;
    bottom: -20px;
}

.testimonial-author {
    margin-top: 20px;
    text-align: right;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author p {
    font-style: normal;
    color: var(--light-text);
    padding: 0;
}

.testimonial-author p:before,
.testimonial-author p:after {
    display: none;
}

/* Subscription Section */
.subscription {
    text-align: center;
    background-color: white;
}

.subscription p {
    max-width: 600px;
    margin: 0 auto 30px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

input[type="checkbox"] {
    margin-right: 10px;
}

form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-details {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    padding-right: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.social-links a {
    margin-right: 15px;
    color: var(--text-color);
    transition: var(--transition);
}

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

.map {
    flex: 1;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    margin-right: 30px;
}

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

.footer-links {
    flex: 1;
    margin-right: 30px;
}

.footer-links h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

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

.footer-links ul li a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter {
    flex: 1;
}

.footer-newsletter h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

.footer-newsletter p {
    margin-bottom: 20px;
}

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

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(52, 58, 64, 0.95);
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-content p {
    margin-bottom: 20px;
    text-align: center;
}

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

.cookie-banner button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-banner button#accept-all {
    background-color: var(--primary-color);
    color: white;
}

.cookie-banner button#accept-all:hover {
    background-color: var(--secondary-color);
}

.cookie-banner button#accept-necessary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cookie-banner button#accept-necessary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-banner button#cookie-settings {
    background-color: transparent;
    color: #ddd;
}

.cookie-banner button#cookie-settings:hover {
    color: white;
}

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

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input {
    margin-right: 10px;
}

.cookie-option label {
    font-weight: 600;
    display: inline;
}

.cookie-option p {
    margin-top: 5px;
    margin-left: 25px;
    color: var(--light-text);
}

#save-preferences {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#save-preferences:hover {
    background-color: var(--secondary-color);
}

/* Thank You Page */
.thank-you {
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-icon {
    color: var(--success-color);
    margin: 30px 0;
}

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

/* Article Pages */
.article-header {
    background-color: var(--light-bg);
    padding: 100px 0 60px;
    text-align: center;
}

.article-header h1 {
    max-width: 800px;
    margin: 0 auto 20px;
}

.article-meta {
    color: var(--light-text);
    margin-bottom: 30px;
}

.article-image {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 8px;
    overflow: hidden;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content h2 {
    text-align: left;
    margin-top: 40px;
}

.article-content h2:after {
    margin-left: 0;
}

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

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

.article-content li {
    margin-bottom: 10px;
}

.article-cta {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 20px;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-navigation a {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.article-navigation a svg {
    margin: 0 8px;
}

.article-navigation .prev-article svg {
    margin-right: 8px;
}

.article-navigation .next-article {
    text-align: right;
}

.article-navigation .next-article svg {
    margin-left: 8px;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h2:after {
    margin-left: 0;
}

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

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .testimonial {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .value {
        flex-basis: calc(50% - 20px);
    }
    
    .service-card {
        flex: 1 0 calc(50% - 30px);
    }
    
    .blog-post {
        flex: 1 0 100%;
    }
    
    .testimonial {
        flex: 0 0 calc(100% - 30px);
    }
    
    .contact-info,
    .map {
        flex: 1 0 100%;
    }
    
    .contact-info {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .footer-logo,
    .footer-links,
    .footer-newsletter {
        flex: 1 0 calc(50% - 30px);
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px 0;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
    }
    
    nav ul li {
        margin: 0 0 20px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content,
    .banner-image {
        flex: 1 0 100%;
    }
    
    .banner-image {
        margin-top: 30px;
        text-align: center;
    }
    
    .banner-image img {
        margin: 0 auto;
    }
    
    .value {
        flex-basis: 100%;
    }
    
    .service-card {
        flex: 1 0 100%;
    }
    
    .footer-logo,
    .footer-links,
    .footer-newsletter {
        flex: 1 0 100%;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }

    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-navigation .prev-article,
    .article-navigation .next-article {
        text-align: center;
    }
}
