/* Custom CSS for Insure Claims Pro */
body {
    font-family: 'Inter', sans-serif;
    /* Using Inter font as per instructions */
    line-height: 1.6;
    color: #333;
}

/* Navbar Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    /* Slightly larger logo */
    color: #004d99 !important;
    /* Dark blue for brand name */
    border-radius: 8px;
    /* Rounded corners */
}

.nav-link,
.dropdown-item {
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    color: #333;
    /* Darker link color */
    border-radius: 8px;
    /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.dropdown-item:hover {
    color: #004d99;
    background-color: #e0f2ff;
    /* Light blue hover background */
}

.navbar-nav .nav-item .nav-link.active {
    color: #004d99;
    font-weight: 700;
}

.dropdown-menu {
    border-radius: 8px;
    /* Rounded corners for dropdown */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Primary Button Styling */
.btn-primary {
    background-color: #004d99;
    /* Dark blue */
    border-color: #004d99;
    border-radius: 8px;
    /* Rounded corners */
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #003366;
    /* Darker blue on hover */
    border-color: #003366;
    transform: translateY(-2px);
    /* Slight lift on hover */
}

.btn-outline-light {
    border-radius: 8px;
    /* Rounded corners */
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Banner Styling */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/banner.jpg') no-repeat center center/cover;
    color: white;
    padding: 10rem 0;
    text-align: center;
    border-radius: 10px;
    /* Rounded corners for the banner */
    margin-bottom: 3rem;
    /* Space below banner */
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Section Padding */
section {
    padding: 5rem 0;
}

/* About Us Section */
#about img {
    border-radius: 10px;
    /* Rounded corners for about image */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

#about h2 {
    font-weight: 700;
    color: #004d99;
}

/* Service Card Styling */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensures image corners are rounded */
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Ensures images cover the area */
}

.service-card .card-body {
    text-align: center;
    padding: 1.5rem;
}

.service-card .card-title {
    font-weight: 600;
    color: #004d99;
    margin-bottom: 0.75rem;
}

.service-card .card-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    height: 50px;
    /* Ensure 2 lines of text */
    overflow: hidden;
}

/* Why Choose Us Card Styling */
.why-card {
    background: #f8f9fa;
    border-left: 5px solid #004d99;
    /* Blue accent border */
    border-radius: 10px;
    /* Rounded corners */
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #e0f2ff;
    /* Lighter blue on hover */
}

.why-card .card-body i {
    font-size: 3rem;
    /* Larger icons */
    color: #004d99;
    margin-bottom: 1rem;
    display: block;
    /* Center icon */
}

.why-card .card-body h5 {
    font-weight: 600;
    color: #004d99;
    margin-bottom: 0.5rem;
}

.why-card .card-body p {
    color: #555;
}

/* Blog Card Styling */
.blog-card {
    border-radius: 10px;
    /* Rounded corners */
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 220px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-weight: 600;
    color: #004d99;
    margin-bottom: 0.75rem;
}

.blog-card .card-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    height: 40px;
    /* Ensure 2 lines of text */
    overflow: hidden;
}

/* Testimonial Slider Styling */
.testimonial-item {
    padding: 3rem;
    background: #f0f8ff;
    /* Lightest blue background */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    /* Center the item */
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.testimonial-item h5 {
    font-weight: 600;
    color: #004d99;
    margin-bottom: 0.25rem;
}

.carousel-indicators [data-bs-target] {
    background-color: #004d99;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #004d99;
    /* Blue controls */
    border-radius: 50%;
    padding: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    opacity: 1;
}

/* Footer Styling */
footer {
    background: #212529;
    /* Darker background */
    color: #f0f0f0;
    padding: 4rem 0 2rem;
    border-top-left-radius: 10px;
    /* Rounded corners */
    border-top-right-radius: 10px;
}

footer h5 {
    color: #004d99;
    /* Blue headings */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer .text-muted {
    color: #a0a0a0 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        padding: 6rem 0;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }

    .hero-banner p {
        font-size: 1rem;
    }

    .service-card .card-text,
    .blog-card .card-text {
        height: auto;
        /* Allow text to expand on smaller screens */
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-collapse .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Fade-in effect on load */
.vision-mission-values .v-m-v-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.vision-mission-values .col-md-4:nth-child(1) .v-m-v-card {
    animation-delay: 0.2s;
}

.vision-mission-values .col-md-4:nth-child(2) .v-m-v-card {
    animation-delay: 0.4s;
}

.vision-mission-values .col-md-4:nth-child(3) .v-m-v-card {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v-m-v-card {
    transition: all 0.3s ease-in-out;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.v-m-v-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff !important;
}

/* Icon hover color shift */
.v-m-v-card:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease, color 0.3s ease;
    color: #007bff;
}

.breadcrumb-item.active {
    color: #1159a5 !important;
}

/* Hero Section for Get Insurance */
.get-insurance-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1920x400/004d99/ffffff?text=Get+Your+Insurance') no-repeat center center/cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.get-insurance-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.get-insurance-hero p {
    font-size: 1.15rem;
}

/* Form Section */
#insurance-form {
    padding: 3rem 0;
}

#insurance-form .card {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

#insurance-form .card-header {
    background-color: #004d99;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1.5rem;
}

#insurance-form .form-label {
    font-weight: 500;
    color: #004d99;
}

#insurance-form .form-control,
#insurance-form .form-select {
    border-radius: 8px;
    border-color: #ced4da;
    padding: 0.75rem 1rem;
}

#insurance-form .form-control:focus,
#insurance-form .form-select:focus {
    border-color: #004d99;
    box-shadow: 0 0 0 0.25rem rgba(0, 77, 153, 0.25);
    /* Bootstrap's focus ring color */
}

#submitAlert {
    display: none;
    /* Hidden by default */
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .get-insurance-hero {
        padding: 4rem 0;
    }

    .get-insurance-hero h1 {
        font-size: 2.2rem;
    }

    .get-insurance-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-collapse .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

.service-card {
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card .icon i {
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .icon i {
    transform: scale(1.2);
}