/* Global styles */
:root {
    --primary-color: #3a5f87;
    --secondary-color: #a0c5e8;
    --accent-color: #e87e0c;
    --text-color: #333333;
    --light-gray: #f5f7fa;
    --gray: #e0e0e0;
    --dark-gray: #6c757d;
    --footer-bg: #2c3e50;
    --max-width: 1200px;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

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

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

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

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

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

/* Header styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

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

.logo img {
    max-height: 50px;
}

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

nav ul {
    display: flex;
}

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

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;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Banner styles */
.banner {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/banner.svg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.banner-content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* About section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

/* Services section */
.services {
    background-color: var(--light-gray);
}

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

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
}

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

/* Testimonials section */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    padding: 20px;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.author {
    display: flex;
    flex-direction: column;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-controls button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-controls button:hover {
    background-color: var(--accent-color);
}

/* Blog section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

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

.blog-card:hover {
    transform: translateY(-10px);
}

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

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

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

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

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

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

/* Contact section */
.contact {
    background-color: var(--light-gray);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

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

.contact-item .icon img {
    width: 40px;
    height: 40px;
}

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

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

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

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.contact-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

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

.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(--gray);
    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-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 10px;
    width: auto;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-column ul li a {
    color: #fff;
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
}

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

/* Blog article */
.blog-article {
    padding-top: 120px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-meta {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.article-meta span {
    margin: 0 10px;
}

.article-image {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.article-content {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 50px;
}

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

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

.article-content h3 {
    font-size: 24px;
    margin-top: 30px;
}

.article-content h4 {
    font-size: 20px;
    margin-top: 25px;
}

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

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

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

.article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 14px;
}

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

.share-buttons a {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
}

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

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

.share-email {
    background-color: var(--dark-gray);
}

.related-articles {
    max-width: 1000px;
    margin: 0 auto;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
}

/* Legal pages */
.legal-section {
    padding-top: 120px;
}

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

.legal-content h2 {
    font-size: 24px;
    text-align: left;
    margin-top: 40px;
}

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

.legal-content h3 {
    font-size: 20px;
    margin-top: 30px;
}

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

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

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-content table th,
.legal-content table td {
    padding: 10px;
    border: 1px solid var(--gray);
    text-align: left;
}

.legal-content table th {
    background-color: var(--light-gray);
}

.cookie-settings-button {
    margin: 40px 0;
    text-align: center;
}

/* Thanks page */
.thanks-section {
    height: calc(100vh - 300px);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.thanks-content {
    max-width: 600px;
}

.thanks-content h1 {
    margin-bottom: 20px;
}

.thanks-content p {
    margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .banner h1 {
        font-size: 40px;
    }
    
    .banner p {
        font-size: 20px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    nav.active ul {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .banner {
        height: 70vh;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    .service-card,
    .blog-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .article-image {
        height: 250px;
    }
}
