/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a3d73;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background-color: #1a3d73;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: white;
}

.btn-tertiary {
    background-color: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-tertiary:hover {
    background-color: #2c5aa0;
    color: white;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo h1 a {
    color: inherit;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2c5aa0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2c5aa0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d73 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d73 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 2rem;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 1rem;
}

.article-content h3 a {
    color: #333;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #2c5aa0;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.category {
    background-color: #2c5aa0;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about h2 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.stat h3 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
}

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.reviewer {
    margin-top: 1rem;
    font-weight: 600;
}

.reviewer span {
    display: block;
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d73 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 24px;
    background-color: white;
    color: #2c5aa0;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    color: #2c5aa0;
    font-size: 2rem;
    margin-top: 0.5rem;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a.active {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Blog Page */
.blog-content {
    padding: 4rem 0;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
}

.post-image {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d73 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-content h2 {
    margin-bottom: 1rem;
}

.post-content h2 a {
    color: #333;
    transition: color 0.3s ease;
}

.post-content h2 a:hover {
    color: #2c5aa0;
}

.read-more {
    color: #2c5aa0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.read-more:hover {
    color: #1a3d73;
}

/* Article Page */
.article-page {
    padding: 2rem 0 4rem;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #2c5aa0;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
    margin-bottom: 2rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body .article-image {
    text-align: center;
    margin: 3rem 0;
    background: none;
    color: #2c5aa0;
}

.image-caption {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-tags {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.tag {
    display: inline-block;
    background-color: #2c5aa0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-share {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.article-share h3 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.9;
    color: white;
}

.share-btn.facebook {
    background-color: #1877f2;
}

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

.share-btn.linkedin {
    background-color: #0a66c2;
}

/* Related Articles */
.related-articles {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

/* Thank You Page */
.thank-you-page {
    padding: 4rem 0;
    text-align: center;
}

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

.thank-you-icon {
    color: #28a745;
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.confirmation-details {
    margin: 3rem 0;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step i {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step h3 {
    color: #333;
    margin-bottom: 1rem;
}

.newsletter-benefits {
    margin: 3rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.benefits-list i {
    color: #28a745;
}

.social-follow {
    margin: 3rem 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    opacity: 0.9;
    color: white;
}

.social-btn.facebook {
    background-color: #1877f2;
}

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

.social-btn.linkedin {
    background-color: #0a66c2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Legal Pages */
.legal-page {
    padding: 2rem 0 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content h1 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-content h2 {
    color: #2c5aa0;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Cookie Policy Tables */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cookie-table th {
    background-color: #2c5aa0;
    color: white;
    font-weight: 600;
}

.cookie-settings-link {
    text-align: center;
    margin: 3rem 0;
}

/* Cookie Banner and Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cookie-buttons button:hover {
    opacity: 0.9;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2c5aa0;
}

.close {
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category div {
    flex: 1;
    margin-right: 2rem;
}

.cookie-category h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.cookie-category p {
    color: #666;
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2c5aa0;
}

input:disabled + .slider {
    background-color: #2c5aa0;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal {
        padding: 1rem;
    }

    .cookie-category {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-category div {
        margin-right: 0;
    }

    .blog-post {
        grid-template-columns: 1fr;
    }

    .post-image {
        order: -1;
    }

    .share-buttons {
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-buttons {
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    .contact-info {
        display: block;
    }

    .contact-item {
        margin-bottom: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .next-steps {
        grid-template-columns: 1fr;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .social-links,
    .share-buttons,
    .newsletter {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-page,
    .legal-page {
        padding: 0;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
    }

    .article-image,
    .post-image {
        background: #000 !important;
    }

    .btn-primary {
        background-color: #000;
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
