/*** Fade-in-up animation ***/
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px); 
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}
.fade-in-up.animate {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*** Smooth Scroll ***/
html { scroll-behavior: smooth;}
@media screen and (prefers-reduced-motion: reduce) {
  html {scroll-behavior: auto;}
}


/*** General Styles ***/
.container {
    padding: 0 4%;
    width: 92%;
    max-width: 1360px;
    display: block;
    margin: 0 auto;}
.section {
    padding: 96px 0;}
html {
    scroll-behavior: smooth;}
body {
    background-color: #f8f7f4;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;}
h1, h2, h3 {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: #0d0c22;
    line-height: 1.1;
    margin: 0 0 32px;}
h1 {
    font-size: 72px;}
h2 {
    font-size: 52px;}
h3 {
    font-size: 42px;}
p, span {
    font-size:16px;
    line-height: 1.6;
    color: #0d0c22;}
b, strong {
    font-weight: 700;}
h1, h2, h3, img, li {
    -webkit-transition: width 1s ease-in-out, left 1.5s ease-in-out;
    -moz-transition: width 1s ease-in-out, left 1.5s ease-in-out;
    -o-transition: width 1s ease-in-out, left 1.5s ease-in-out;
    transition: width 1s ease-in-out, left 1.5s ease-in-out;}



/*** Header ***/
header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 94px;
    width: 100%;
    background-color: #f8f7f4;
    z-index: 1;}
.logo {
    height: 54px;
    display: flex;
    align-items: center;}
.logo img {width: 139px;}


/*** Hero ***/
main {
    padding-top: 94px;}
.section.hero {
    padding: 56px 0 0;}
.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;}
.hero .left, 
.hero .right {
    flex: 0 0 auto;}
.hero .left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;}
.tagline {
    font-weight: 500;
    position: relative;
    margin: 0 0 32px;} 
.tagline .yellow-underline {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    border-bottom: 10px solid #ffda79;
    z-index: -1;
    top: 16px;}
.highlights {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;}
.highlights li {
    padding: 0 10px;}
.highlights.mobile {
        display: none;}
.hero .right {
    width: 35%;
    border-radius: 40px;
    border: 3px solid #fff;
    padding: 30px;
    box-shadow: 5px 5px 40px rgba(0,0,0,0.2);}
.hero .right.thankyou {
    text-align: center;
    padding: 86px 30px;}
.hero .right h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 16px;}
form {
    display: flex;
    flex-direction: column;}
label {
    font-size: 14px;
    font-weight: 500;}
input {
    height: 54px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 0px 10px;
    border-radius: 8px;
    border: 2px solid #fff;
    margin-bottom: 16px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;}
input:focus {
    border: 2px solid #000;
    outline: none;}
input[type="checkbox"] {
    margin-right: 8px;
    height: auto;}
label.optin-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;}
label .optin {
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: #757575;}
button {
    background: #000;
    border-radius: 80px;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;}
button:hover {
    background-color: #2F2D82;}


.providers .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
    list-style: none;
    gap: 36px;}
.grid li {
    background-color: #fff;
    border-radius: 15px;
    width: calc(33.33% - 24px);
    flex: 0 0 auto;}
.grid li.empty, 
.grid li.provider-placeholder {
    background-color: transparent;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;}
.grid a {
    text-decoration: none;}
.card-img {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 65%; /* Adjusted to better match original height */
    overflow: hidden;}
.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px 15px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;}

.rating {
    position: absolute;
    bottom: 0;
    left: 0px;
    background-color: #ffda79;
    border-radius: 4px 4px 0 0;
    padding: 8px 10px 10px;
    font-size: 20px;
    font-weight: 700;
    z-index: 2;}

/* Add fixed-width rating class to ensure consistent width */
.fixed-width-rating {
    min-width: 28px;
    text-align: center;}

.card-content {
    padding: 20px;}
.card-content p {
    margin: 0;}
.card-content .name {
    font-size: 18px;
    font-weight: 600;}
.card-content .local {
    font-size: 15px;
    font-weight: 500;}
.lang {
    list-style: none;
    margin-top: 16px;
    padding: 0;
    display: flex;}
.lang li {
    width: auto!important;
    flex: 0 0 auto;
    background-color: #e0e8ff;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    margin-right: 10px;}



.cta {
    display: flex;
    justify-content: center;
    padding-top: 56px;}
.cta .btn {
    border: 2px solid #000;
    color: #000;
    border-radius: 80px;
    padding: 20px 26px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    text-decoration: none;}
.cta .btn:hover {
    border: 2px solid #2F2D82;
    color: #2F2D82;}



/*** Reviews ***/
.section.reviews {
    padding: 100px 0;
    background: #ffda79;}
.reviews .container {
    display: flex;
    flex-direction: column;
    align-items: center;}
.reviews h2 {
    width: 70%;
    text-align: center;
    margin: 0 0 52px;}
.slider-container::-webkit-scrollbar {
    height: 8px;}
.slider-container::-webkit-scrollbar-track {
    background: none;
    border-radius: 10px;}
.slider-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    border-radius: 10px;}
.slider-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);}
.slider-container{
    width: 100%;
    overflow-x: auto;}
.slider {
    display: flex;
    overflow: scroll;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 40px;
    overflow-x: auto;
    margin: auto;
    padding: 20px;}
.slide {
    width: 100%;
    min-height: 500px;
    min-width: 460px;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.3s ease;}
.card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;}
.slide .rating {
    position: relative;
    background-color: #000;
    color: #fff;
    padding: 8px 10px;
    font-weight: 600;
    border-radius: 4px;
    margin: 0;
    z-index: 2;
    min-width: 28px;
    text-align: center;}
.reviewer-name {
    font-size: 16px;
    font-weight: 600;}
.reviewer-location {
    font-size: 14px;
    font-weight: 500;
    color: #6d6d6d;}
.initial-review {
    display: inline-block;
    margin-bottom: 8px;
    background-color: #e0e8ff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #000;}
.service {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 56px;}
.review-details {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    margin-bottom: 24px;}
.review-text {
    font-size: 16px;
    font-weight: 500;
    color: #4f4f4f;}
.rating-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;}
.rating-item {
    display: flex;
    align-items: center;
    gap: 8px;}
.rating-score {
    background-color: #f6f6f6;
    font-size: 16px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;}
.rating-label {
    font-size: 15px;
    font-weight: 500;
    color: #6d6d6d;}

/*** Faqs ***/
.faqs {
    background-color: #e7e7e7;}
.faqs .intro {  
    width: 80%;
    margin: 0 auto 56px;
    text-align: center;}
.faqs h2 {
    margin-bottom: 16px;}
.acc {
    overflow: hidden;
    padding: 0;}
.acc button:hover, 
button.acc_ctrl.active {
    background-color: #fff;}
.acc li {
    list-style-type: none;
    padding: 0;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 16px;}
.acc li:last-child {
    margin-bottom: 0;}
.acc_ctrl {
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    display: block;
    outline: none;
    padding: 30px;
    position: relative;
    text-align: left;
    width: 100%;}
.acc_ctrl:before {
    background: #000;
    content: '';
    height: 2px;
    margin-right: 37px;  
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    width: 18px;}
.acc_ctrl:after {
    background: #000;
    content: '';
    height: 2px;
    margin-right: 37px;
    position: absolute;
    right: 0;
    top: 50%;
    width: 18px;}
.acc_ctrl.active:before {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);}
.acc_ctrl.active h3, 
.acc_ctrl:focus h3 {
    position: relative;}
.acc h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;}
.acc_panel {
    background: #fff;
    padding: 0 30px 30px;
    border-radius: 0 0 15px 15px;
    display: none;
    overflow: hidden;}


/*** Footer ***/
footer {
    padding: 44px 0;
    display: flex;
    flex-direction: column;
    align-items: center;}
.footer-menu ul {
    list-style: none;
    display: flex;
    padding: 0;}
.footer-menu ul li {
    padding: 0 12px;}
.footer-menu a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #0d0c22;}
.footer-menu a:hover {
    opacity: .7;}
.footer-social ul {
    list-style: none;
    display: flex;
    padding: 0;}
.footer-social ul li {
    padding: 0 12px;}
.footer-social a:hover {
    opacity: .7;}

.footer-legal {
    display: flex;
    align-items: center;}
.footer-legal p,
.footer-legal a {
    color: #888;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.1;}
.footer-legal a:hover {
    color: #0d0c22;}



/*** Media Queries ***/
@media only screen and (max-width: 992px) {
    h1 {
        font-size: 42px;
        margin-bottom: 8px;}
    h2 {
        font-size: 34px;}
    h3 {
        font-size: 34px;}
    p, span {
        font-size:15px;
        line-height: 1.4;}
    .hero .container {
        display: flex;
        justify-content: space-between;
        flex-direction: column;}
    .hero .left, .hero .right {
        width: auto;}
    .tagline {
        margin: 0 0 24px;}
    .hero .left {
        margin-bottom: 24px;}
    .highlights {
        display: none;}
    .highlights.mobile {
        display: flex;
        margin-top: 56px;}
    .grid li {
        width: calc(50% - 18px);}
    .faqs .intro {
        width: 100%;}
}

/*** Media Queries ***/
@media only screen and (max-width: 640px) {
    .grid li {
        width: 100%;}
    .slide {
        min-width: 360px;}
    .acc h3 {
        width: 85%;}
}