/*--------------------- Google Fonts ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* --------------------- CSS Global Variables ------------ */
:root {
    /*------------ Colors -------------*/
    --primary-color: #963cdd;     /* Purple */
    --secondary-color: #1668b8;   /* Blue */
    --third-color: #000000;       /* Black */
    --fourth-color: #ffffff;      /* White */
    --blue-color: #2540ce;        /* Button Blue */
    --yellow-color: #fcb900;      /* Button Yellow */
    --dark-blue-color: #0a114f;   /* Dark Blue */
    --light-blue-color: #87ceeb;  /* Light Blue */
    --dark-gray-color: #333333;   /* Dark Gray */
    --light-gray-color: #f7f7f7;  /* Light Gray */

    /*------------ Font Size --------------*/
    --heading-font-size: 2.2rem;
    --paragraph-font-size: 1rem;
    --small-font-size: 0.8rem;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.container {
    padding: 2rem;
}

.heading {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 1rem 0;
}

.sub-heading {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

p {
    font-family: 'Inter', sans-serif;
}

.white {
    color: #ffffff;
}

.para-line {
    font-size: var(--paragraph-font-size);
    line-height: 1.5;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn a {
    font-size: var(--paragraph-font-size);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

/*-------------------------- Menu Style -------------------------*/

.menu-container {
    width: 1152px;
    max-width: 90%;
    margin: 0 auto;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 7rem;
}

.nav-wrapper ul.nav-list {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-wrapper ul.nav-list li {
    margin-left: 30px;
    padding: 20px 0;
    position: relative;
}

.nav-wrapper ul.nav-list li a {
    color: var(--third-color);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.5s ease-in-out;
}

.nav-wrapper ul.nav-list li a:hover,
.nav-wrapper ul.nav-list li.active a {
    color: var(--blue-color);
}

nav ul.dropdown-list {
    list-style-type: none;
    display: block;
    background: whitesmoke;
    padding: 6px 16px;
    position: absolute;
    width: max-content;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
}

.nav-wrapper ul.dropdown-list li {
    margin-left: 0;
    padding: 5px 0;
}

.nav-wrapper ul.dropdown-list li a {
    color: var(--third-color);
}

.nav-wrapper ul.nav-list li:hover .dropdown-list {
    opacity: 1;
    pointer-events: auto;
    animation: moveUp 0.5s ease-in-out forwards;
}

.nav-wrapper .nav-list li .btn a {
    color: var(--fourth-color);
}

.nav-wrapper .nav-list li .btn:hover a {
    color: var(-- third-color);
}

@keyframes moveUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(20px);
    }
}

.hamberger {
    display: none;
}

.mobile .hamberger {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    cursor: pointer;
}

.mobile .hamberger span {
    background: var(--third-color);
    width: 28px;
    height: 2px;
    margin-bottom: 8px;
}

.mobile ul.nav-list {
    background: linear-gradient(45deg, #f5f6fa, #dcdde1);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.hamberger, .brand {
    z-index: 9999;
}

.mobile ul.nav-list.open {
    opacity: 1;
    pointer-events: auto;
    z-index: 999;
    overflow-y: auto;
}

.mobile .hamberger span {
    transform-origin: left;
    transition: all 0.3s ease-in-out;
}

.mobile ul.nav-list li a {
    font-size: 20px;
}

.mobile ul.dropdown-list {
    position: relative;
    background: transparent;
    text-align: center;
    height: 0;
    overflow-y: hidden;
    transition: opacity 1s ease-in-out;
    padding-top: 0;
}

.mobile .nav-wrapper ul li:hover .dropdown-list {
    opacity: 1;
    height: auto;
    padding-top: 6px;
}

.mobile ul.nav-list li {
    margin-left: 0;
    text-align: center;
}

.mobile .nav-wrapper ul.dropdown-list li a {
    color: #7f8fa6;
}

.mobile .nav-wrapper ul.dropdown-list li a:hover {
    color: var(--third-color);
}

@media (max-width: 768px) {
    .hamberger {
        display: block;
    }
}

@media (max-width: 480px) {
    .hamberger {
        display: block;
    }
}


/*----------- Scroll to Top --------------*/
#topBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: var(--blue-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
}

#topBtn ion-icon {
    color: #fff;
}

/*-------- Button Styles ---------*/
.btn-blue {
    background: var(--blue-color);
    transition: background 0.3s ease-in-out;
}

.btn-blue:hover {
    background: var(--yellow-color);
}

.btn-blue a {
    color: var(--fourth-color);
}

.btn-blue:hover > a {
    color: var(--third-color);
}

.btn-yellow {
    background: var(--yellow-color);
    transition: background 0.3s ease-in-out;
}

.btn-yellow:hover {
    background: var(--blue-color);
}

.btn-yellow > a {
    color: #000;
}

.btn-yellow:hover > a {
    color: var(--fourth-color);
}

/*------------ Full Width Button ------------*/
.btn-full-w {
    padding: 1.2rem 2rem;
    display: block;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

/*----------------- Hero Section Styling ----------------*/
.hero {
    background: linear-gradient(rgba(150, 60, 221, 0.4), rgba(22, 104, 184, 0.9)), url("../img/hero-bg.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .hero-container {
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.hero-container .row > .col {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero-content {
    padding: 0 2rem 3.6rem 2rem;
}

.hero-heading {
    font-size: 2.3rem;
    line-height: 1.1;
}

.inner-row .inner-col {
    margin: 1rem 0;
}

/*----------------- Why Us Section Styling ---------------*/
.why-us {
    background-image: linear-gradient(155deg , hsl(215deg 100% 98%) 0%, hsl(215deg 100% 98%) 30%, hsl(215deg 100% 98%) 38%, hsl(215deg 100% 98%) 43%, hsl(215deg 100% 98%) 47%, hsl(215deg 100% 98%) 48%, hsl(215deg 100% 98%) 50%, hsl(215deg 100% 98%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 50%, hsl(215deg 100% 99%) 51%, hsl(215deg 100% 100%) 53%, hsl(215deg 100% 100%) 55%, hsl(215deg 100% 100%) 60%, hsl(215deg 100% 100%) 68%, hsl(0deg 0% 100%) 96%);
}

.why-us-col ion-icon {
    font-size: 2rem;
    color: var(--fourth-color);
    background: var(--yellow-color);
    padding: 1rem;
    border: none;
    border-radius: 50px;
}

.why-us-highlight-heading {
    font-size: 1.4rem;
    font-weight: 600;
}

.lead-form {
    border: none;
    border-radius: 12px;
    margin: 2.5rem 0;
    padding: 3rem 1.6rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.input-field {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

.input-field label {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.3rem 0;
    text-transform: uppercase;
}

.input-field input {
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    padding: 1rem;
    background: #f3f8ff;
}

/*----------------- Services Section Styling ---------------*/
.container {
    width: 100%;
    max-width: 1200px; /* Limit width for larger screens */
    margin: 0 auto; /* Center the container */
    padding: 0 1.5rem; /* Add padding for spacing */
}

.road-safety {
    margin-bottom: 2rem; /* Space between Road Safety and Insurance Solutions */
}

.insurance-solutions {
    margin-top: 2rem; /* Space between sections */
}

.service-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b10a13;
    margin: 10px 0;
}


.service-img {
    border-radius: 5px;
    margin: 0 0 1.5rem 0; /* Reduced bottom margin for less spacing */
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default to 3 columns */
    gap: 1.5rem; /* Space between service cards */
}

.service {
    padding: 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    border-radius: 10px;
    margin: 0; /* Ensure no additional margin */
    transition: box-shadow 0.3s ease; /* Smooth transition for hover effect */
}

.service:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

.service img {
    max-width: 100%;
    height: 15rem;
    object-fit: cover;
}

.service .service-heading {
    font-weight: 600;
    margin: 0.5rem 0; /* Consistent spacing */
}

.service .buy-button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: #fff;
    background-color: var(--yellow-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.service .buy-button:hover {
    background-color: darken(var(--yellow-color), 10%); /* Darken on hover for effect */
}

.para-line {
    margin: 0.5rem 0; /* Reduces spacing between paragraphs */
}

.our-services.container h2 {
    margin-top: 5rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .services {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}


/*----------------- Overline Section Styling ---------------*/
.overline {
    background: linear-gradient(rgba(10, 17, 79, 0.9), rgba(10, 17, 79, 0.9)), url("../img/hero-bg.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.insurance-policies {
    border-radius: 6px;
}

.overlines .row .col {
    margin: 2.6rem 0;
}

.overlines .row .col ion-icon {
    font-size: 2.6rem;
}

.overline-heading {
    color: var(--yellow-color);
    font-size: 1.3rem;
    font-weight: 600;
}

/*----------------- About Us Section Styling ---------------*/
.about-highlights {
    margin: 2rem 0;
}

.about-highlight-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.about-highlight-line ion-icon {
    color: var(--yellow-color);
    font-size: 1.6rem;
}

.highlight-line-heading {
    font-size: 1rem;
    font-weight: 600;
}

.about-img {
    border-radius: 6px;
    margin-top: 4rem;
}

.partners {
    margin: 2rem 0;
}

/* Ensure the images are responsive */
.partner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Maintain aspect ratio */
    margin-bottom: 10px;
}

/* Responsive grid for partner images */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Fixed size for each image, maintaining the aspect ratio */
.partner-img-container {
    width: 10rem;  /* 3 items per row */
    height: 200px;  /* Fixed height */
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .partner-img-container {
        width: 45%;  /* 2 items per row */
    }
    .nav-list {
        display: none;
        flex-direction: column;
    }
    .hamberger {
        display: block;
    }
    .services .partners-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

@media (max-width: 480px) {
    .partner-img-container {
        width: 100%;  /* 1 item per row */
    }
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .services .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}


/*----------------- Testimonial Section Styling --------------*/
.testimonial {
    background: linear-gradient(rgba(10, 17, 79, 0.9), rgba(10, 17, 79, 0.9)), url("../img/hero-bg.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.testimonial-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem;
}

.testimonial-profile .profile-img {
    border-radius: 50%;
    width: 5rem;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.client-location {
    text-align: left;
}

.stars ion-icon {
    color: var(--yellow-color);
}

/*----------------- Footer Styling ------------------*/
/* Footer Styling */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
}

.footer-top {
    background: #002e5f;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 90%;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ffffff;
    
}

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

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

.footer-column ul li i {
    color: #00bfff;
    margin-right: 8px;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #00bfff;
}

.footer-column .social-links {
    text-align: left; 
    margin-top: 1rem; /* Ensures that the links are centered */
}

.footer-column .social-links a {
    display: inline-block;
    color: #ffffff;
    background: #00bfff;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin-right: 8px;
    transition: background 0.3s;
}

.footer-column .social-links a:hover {
    background: #ffffff;
    color: #00bfff;
}

.footer-column form input[type="email"] {
    width: 70%;
    padding: 10px;
    margin-right: 5px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}

.footer-column form input[type="submit"] {
    padding: 10px 20px;
    background: #00bfff;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-column form input[type="submit"]:hover {
    background: #ffffff;
    color: #00bfff;
}

.footer p {
    line-height: 1.5;
    font-size: 14px;
}

/* Footer Bottom */
.footer-bottom {
    background: #222;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

.footer-bottom .copyright {
    margin-bottom: 0;
    color: #bbb;
}

.footer-bottom .credit {
    margin-top: 5px;
    color: #bbb;
}

.footer-bottom .credit a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom .credit a:hover {
    color: #ffffff;
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 80px; /* Adjust the underline width */
        height: 2px;
        background: #ffffff;
        margin: 0 auto; /* Centers the underline horizontally */
    }

    .footer-column .social-links {
        text-align: center; /* Center the icons */
    }

    .footer-column .social-links a {
        margin: 0 8px; /* Ensure consistent spacing between icons */
    }
}




    

/*----------------- Footer Styling ------------------*/

/*--------------------------------------------------------------*/
/*-------------------- Desktop Screen Styling ------------------*/
/*--------------------------------------------------------------*/
@media screen and (min-width: 789px) {
    .container, .hero-container {
        max-width: 1180px;
        margin: 0 auto;
    }

    .container {
        padding: 4rem 0;
    }

    .heading {
        font-size: 3.2rem;
    }

    .para-line {
        line-height: 1.8;
    }

    .sub-heading {
        font-size: 1rem;
    }

    .row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .row .col {
        width: 100%;
    }

    .inner-row {
        display: flex;
        gap: 2rem;
    }

    /*-------------- Hero Section Styling ------------------*/
    .hero-container .row > .hero-content {
        width: 140%;
    }

    .hero-heading {
        font-size: 4rem;
    }

    .hero {
        background: linear-gradient(rgba(150, 60, 221, 0.2), rgba(13, 14, 56, 0.9)), url("../img/hero-bg.jpg");
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
    }
    /*-------------- Hero Section Styling ------------------*/

    /*-------------- Why Us Styling ---------------------*/
    .why-us .container .row {
        gap: 5rem;
    }

    .why-us .container .row .why-us-content {
        width: 150%;
    }

    .why-us-content .inner-row {
        margin-top: 2rem;
    }

    .lead-form {
        background: var(--fourth-color);
        padding: 3rem !important;
    }

    .input-field {
        margin: 1.5rem 0;
    }
    /*-------------- Why Us Styling ---------------------*/

    /*-------------- Services Section Styling --------------*/
    .our-services {
        text-align: center;
    }

    .our-services .container .head-desc {
        max-width: 66%;
        margin: 0 auto;
    }

    .services, .partners-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2rem;
    }

    /*-------------- Services Section Styling --------------*/

    /*-------------- About Section Styling ------------------*/
    .about .container .row {
        gap: 4rem;
    }

    .partners {
        margin-top: 4rem;
    }
    /*-------------- About Section Styling ------------------*/

    /*-------------- Testimonial Section Styling ---------------*/
    .testimonial .container .para-line {
        max-width: 840px;
        margin: 0 auto;
        font-size: 1.1rem;
    }

    .testimonial {
        padding: 4rem 0;
    }
    /*-------------- Testimonial Section Styling ---------------*/
}