/* ====================
   GENERAL STYLES
======================= */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --accent-color: #ff5e3a;
    --text-color: #333;
    --text-light: #777;
    --background-color: #fff;
    --background-light: #f9f9f9;
    --border-color: #eaeaea;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-main: 'Roboto', 'Arial', sans-serif;
    --font-heading: 'Montserrat', 'Helvetica', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 15px;
}

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

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

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    line-height: 1.4;
}

.btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

section {
    padding: 80px 0;
}

.hidden {
    display: none !important;
}

/* ====================
   HEADER STYLES
======================= */
header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

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

.logo span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-button span {
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ====================
   BANNER SECTION
======================= */
.banner {
    background-color: var(--background-light);
    padding: 100px 0;
}

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

.banner-content {
    flex: 1;
    padding-right: 50px;
}

.banner-content h1 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.banner-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-light);
}

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

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

/* ====================
   ABOUT SECTION
======================= */
.about {
    background-color: var(--background-color);
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* ====================
   SERVICES SECTION
======================= */
.services {
    background-color: var(--background-light);
}

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

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

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

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

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

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

/* ====================
   COMPARISON SECTION
======================= */
.comparison {
    background-color: var(--background-color);
}

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

.comparison-table-wrapper {
    overflow-x: auto;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, 
.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--background-light);
}

.comparison-table tr:hover {
    background-color: rgba(58, 123, 213, 0.05);
}

.comparison-note {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* ====================
   TESTIMONIALS SECTION
======================= */
.testimonials {
    background-color: var(--background-light);
}

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

.testimonial-slider {
    position: relative;
    margin-bottom: 30px;
}

.testimonial {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-image {
    flex: 0 0 100px;
    margin-right: 30px;
}

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

.testimonial-content {
    flex: 1;
}

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

.testimonial-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.dot {
    height: 10px;
    width: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ====================
   CONTACT SECTION
======================= */
.contact {
    background-color: var(--background-color);
}

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

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.contact-info-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    background-color: var(--background-light);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-info-item img {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.contact-info-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.social-media {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

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

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

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

.contact-form h3 {
    margin-bottom: 20px;
    text-align: center;
}

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

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

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

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

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

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

/* ====================
   FOOTER SECTION
======================= */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    flex: 1 1 300px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 1 1 200px;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.footer-links ul li a:hover,
.footer-links ul li a.active {
    color: white;
    text-decoration: underline;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ====================
   COOKIE BANNER
======================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

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

#accept-all {
    background-color: var(--primary-color);
    color: white;
}

#accept-all:hover {
    background-color: var(--secondary-color);
}

#accept-necessary {
    background-color: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

#accept-necessary:hover {
    background-color: var(--border-color);
}

#customize-cookies {
    background-color: var(--background-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

#customize-cookies:hover {
    background-color: rgba(58, 123, 213, 0.1);
}

.cookie-settings {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: var(--radius);
}

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

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

#save-preferences {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ====================
   THANKS PAGE
======================= */
.thanks {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 20px;
}

.thanks-content img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

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

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

.thanks-content .btn {
    margin-top: 20px;
}

/* ====================
   BLOG STYLES
======================= */
.blog-header {
    background-color: var(--background-light);
    padding: 60px 0;
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 15px;
}

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

.blog-header img {
    max-width: 400px;
    margin: 0 auto;
}

.blog-articles {
    padding: 60px 0;
}

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

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

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

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

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

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-content h2, 
.article-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-excerpt {
    margin-bottom: 15px;
    color: var(--text-color);
}

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

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

.blog-newsletter {
    background-color: var(--background-light);
    padding: 60px 0;
}

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

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

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

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    max-width: 400px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

/* ====================
   ARTICLE PAGE STYLES
======================= */
.article {
    padding: 60px 0;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.article-category {
    color: var(--primary-color);
    font-weight: 600;
}

.article-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

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

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

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

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

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

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-table th, 
.article-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-table tr:nth-child(even) {
    background-color: var(--background-light);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tag-label {
    margin-right: 10px;
    font-weight: 600;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    background-color: var(--background-light);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.article-share {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.article-share span {
    margin-right: 15px;
    font-weight: 600;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-pagination {
    display: flex;
    gap: 20px;
}

.prev-article, 
.next-article {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.prev-article:before {
    content: '«';
    margin-right: 5px;
}

.next-article:after {
    content: '»';
    margin-left: 5px;
}

.prev-article:hover, 
.next-article:hover {
    color: var(--secondary-color);
}

.related-articles {
    background-color: var(--background-light);
    padding: 60px 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

/* ====================
   LEGAL PAGES STYLES
======================= */
.legal-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 10px;
}

.legal-date {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-section h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul, 
.legal-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

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

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.cookie-table th, 
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--background-light);
}

/* ====================
   RESPONSIVE STYLES
======================= */
@media screen and (max-width: 1024px) {
    section {
        padding: 60px 0;
    }
    
    .banner {
        padding: 80px 0;
    }
    
    .banner-content {
        padding-right: 30px;
    }
}

@media screen and (max-width: 900px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .banner .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .banner-content {
        padding-right: 0;
        margin-top: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .testimonial {
        flex-direction: column;
    }
    
    .testimonial-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .testimonial-content {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .mobile-menu-open nav {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-open nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .mobile-menu-open nav ul li {
        margin: 15px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        min-width: 200px;
    }
}

@media screen and (max-width: 600px) {
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .article-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}
