:root {
    --primary-blue: #2C5F8D;
    --secondary-blue: #4A90C8;
    --dark-gray: #3A4750;
    --medium-gray: #6C757D;
    --light-gray: #E8EAED;
    --trust-green: #28A745;
    --warm-orange: #F89C3F;
    --alert-blue: #17A2B8;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FA;
    --soft-gray: #F1F3F5;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-gray);
    background-color: var(--pure-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.particles-js-canvas-el {
  position: absolute;
}

.main-header {
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.phone-link {
    color: var(--primary-blue);
    font-weight: 600;
}

.phone-link i {
    margin-right: 0.5rem;
}

.lang-switcher {
    margin-left: 1rem;
}

.lang-link {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-link:hover {
    background-color: var(--primary-blue);
    color: var(--pure-white);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#particles-hero {
    position: relative;
}

.hero-title {
    font-size: 3rem;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--off-white);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

.btn-primary {
    background-color: var(--warm-orange);
    border-color: var(--warm-orange);
    color: var(--pure-white);
}

.btn-primary:hover {
    background-color: #E08B35;
    border-color: #E08B35;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 156, 63, 0.3);
}

.btn-outline-primary {
    border-color: var(--pure-white);
    color: var(--pure-white);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--warm-orange);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.mission-section .lead {
    font-size: 1.15rem;
    color: var(--medium-gray);
}

.topic-card {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.topic-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.topic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.guide-item {
    background-color: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.guide-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.guide-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.guide-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
}

.guide-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--medium-gray);
}

.quiz-form {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quiz-question {
    padding: 1rem;
    background-color: var(--soft-gray);
    border-radius: 8px;
}

.quiz-result {
    padding: 2rem;
    background-color: var(--trust-green);
    color: var(--pure-white);
    border-radius: 10px;
    display: none;
}

.quiz-result.show {
    display: block;
}

.blog-preview-card {
    background-color: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.blog-preview-card h3 {
    font-size: 1.3rem;
    padding: 1rem 1rem 0.5rem;
}

.blog-preview-card p {
    padding: 0 1rem;
    color: var(--medium-gray);
}

.blog-preview-card .btn {
    margin: 1rem;
}

.contact-form {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 141, 0.25);
}

.iti {
    width: 100%;
}

.legal-info-section {
    background-color: var(--soft-gray);
}

.legal-links a {
    color: var(--primary-blue);
    margin: 0 0.5rem;
    font-weight: 500;
}

.legal-links a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.separator {
    color: var(--medium-gray);
}

.main-footer {
    background-color: var(--dark-gray);
    color: var(--off-white);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.main-footer h4 {
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

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

.footer-nav a {
    color: var(--off-white);
}

.footer-nav a:hover {
    color: var(--warm-orange);
}

.main-footer p {
    margin-bottom: 0.5rem;
}

.main-footer a {
    color: var(--off-white);
}

.main-footer a:hover {
    color: var(--warm-orange);
}

.lang-footer {
    margin-top: 1rem;
}

.lang-footer a {
    color: var(--off-white);
    margin: 0 0.5rem;
}

.lang-footer a.active {
    color: var(--warm-orange);
    font-weight: 600;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--off-white);
}

.offer-section img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.help-card {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.help-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 5rem 0;
}

.blog-accordion .accordion-item {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-accordion .accordion-button {
    background-color: var(--pure-white);
    color: var(--dark-gray);
    font-weight: 600;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.blog-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-blue);
    color: var(--pure-white);
}

.article-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1.5rem;
}

.article-header-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

.accordion-button:not(.collapsed) .article-meta {
    color: var(--off-white);
}

.article-content {
    padding: 2rem;
    background-color: var(--soft-gray);
}

.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.checklist i {
    position: absolute;
    left: 0;
    top: 0.7rem;
    color: var(--trust-green);
    font-size: 1.2rem;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--pure-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.category-list a:hover {
    color: var(--primary-blue);
}

.category-list i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.resource-card {
    text-align: center;
}

.resource-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.resource-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cta-widget {
    background-color: var(--primary-blue);
    color: var(--pure-white);
}

.cta-widget h4 {
    color: var(--pure-white);
}

.contact-card {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.data-protection-card {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.thanks-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--trust-green);
}

.thanks-actions {
    margin-top: 2rem;
}

.resource-card-alt {
    background-color: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.resource-card-alt:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.resource-card-alt h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.resource-card-alt p {
    padding: 0 1.5rem 1rem;
    color: var(--medium-gray);
}

.resource-card-alt .btn {
    margin: 0 1.5rem 1.5rem;
}

.legal-page {
    background-color: var(--off-white);
}

.legal-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.legal-date {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.legal-content {
    background-color: var(--pure-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-blue);
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

.cookie-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--light-gray);
}

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

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

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-gray);
    color: var(--pure-white);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

.cookie-consent-banner.show {
    display: block;
}

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

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

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

.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--soft-gray);
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: 0.4s;
    border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--trust-green);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: var(--pure-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .article-thumb {
        width: 80px;
        height: 60px;
    }
    
    .article-header-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}