:root {
    --primary-color: #1e40af;
    --secondary-color: #059669;
    --accent-color: #dc2626;
    --text-color: #1f2937;
    --bg-color: #f8fafc;
    --premium-color: #f59e0b;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 76px; /* Added to account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1c3899;
    border-color: #1c3899;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: #057857;
    border-color: #057857;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navbar Enhancements */
header.navbar {
    transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 0.75rem 0;
    background-color: rgba(30, 64, 175, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(30, 64, 175, 1) !important;
}

.navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: white;
}

.navbar .nav-link.active {
    color: white;
    font-weight: 600;
}

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

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 30px;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f0f5ff;
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.dropdown-item:hover::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0.75rem;
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.25rem 0;
}

/* Hero Section */
.hero-section {
    background: url('../assets/images/hero-background.jpg') no-repeat center center;
    background-size: cover;
    padding: 140px 0;
    position: relative;
    margin-top: -76px; /* Offset for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 64, 175, 0.85), rgba(30, 64, 175, 0.7));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Insurance Cards */
.insurance-card {
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.insurance-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
}

.contact-form .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    height: auto;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Premium Calculator */
.premium-calculator {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.premium-calculator:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.price-display {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #f0f5ff;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.price-amount {
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.testimonial-card p {
    flex-grow: 1;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Stats Section */
#stats {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    position: relative;
}

#stats::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#stats .display-4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #111827;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

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

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.footer .btn-floating {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .btn-floating:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 64, 175, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 1060;
    display: none; /* Hidden by default, shown with JS */
    backdrop-filter: blur(5px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #f8f9fa;
    text-decoration: underline;
}

.cookie-banner button {
    border-radius: 50px;
    padding: 0.25rem 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    body {
        padding-top: 62px; /* Adjust for smaller navbar */
    }

    .hero-section {
        margin-top: -62px;
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    #stats .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* About Page Styles */
.about-hero {
    padding: 120px 0 80px;
    position: relative;
}

.about-hero h1 {
    position: relative;
    margin-bottom: 30px;
}

.about-hero h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
}

/* Values Cards */
.value-card {
    height: 100%;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(30, 64, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .icon-box {
    background-color: var(--primary-color);
}

.value-card:hover .icon-box i {
    color: #fff !important;
    transform: scale(1.1);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-year {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* Team Cards */
.team-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.team-image {
    position: relative;
    margin-bottom: 1rem;
}

.team-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Certification Badges */
.certification-badge {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.certification-badge i {
    transition: all 0.3s ease;
}

.certification-badge:hover i {
    transform: scale(1.1);
}

/* Responsive Timeline */
@media screen and (max-width: 767px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
        right: auto;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: 15px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
}

/* Products Page Styles */
.products-hero {
    padding: 120px 0 80px;
    position: relative;
    background-color: #f8fafc;
}

.category-pill {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(30, 64, 175, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-pill:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* Accordion Styles */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: #fff;
    color: var(--text-color);
    font-weight: 600;
    padding: 1.25rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(30, 64, 175, 0.05);
}

.accordion-button:not(.collapsed)::after {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .btn-light {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Comparator Page Styles */
.comparator-hero {
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.comparator-hero h1 {
    position: relative;
    margin-bottom: 30px;
}

.comparison-benefits {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.comparison-benefits li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.price-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Rating Stars */
.testimonial-rating {
    font-size: 1.1rem;
}

.price-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Sinistre Page Styles */
.sinistre-hero {
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
}

.sinistre-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.process-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.process-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.process-icon i {
    transition: all 0.3s ease;
}

.process-card:hover .process-icon i {
    transform: scale(1.1);
}

/* Cookie Banner Styles Update */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 64, 175, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 1060;
    backdrop-filter: blur(5px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #f8f9fa;
    text-decoration: underline;
}

.cookie-banner button {
    border-radius: 50px;
    padding: 0.25rem 1rem;
    transition: all 0.3s ease;
}

.cookie-banner button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Legal Pages Styles */
.legal-hero {
    padding: 120px 0 60px;
    position: relative;
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-hero h1 {
    position: relative;
    margin-bottom: 30px;
}

.legal-hero h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-color);
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary-color);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%) !important;
}

