html {
    scroll-behavior: smooth;
}


/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.btn.btn-light {
    color: var(--bs-primary);
    border: none;
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Topbar Start ***/
.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
}

.topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    padding-top: 11px;
    border: 0;
    transition: .5s;
    opacity: 1;
}

/*** Topbar End ***/



/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-white);
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link,
.sticky-top.navbar-light .navbar-nav .nav-item .nav-link {
    padding: 20px 0;
    color: var(--bs-dark);
}

.navbar-light .navbar-nav .nav-item .nav-link {
    color: var(--bs-white);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-item .nav-link:hover,
.navbar-light .navbar-nav .nav-item .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}

.navbar .nav-link.active {
    font-weight: bold;
    color: rgb(0, 193, 29);
}



@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1030;
        background: var(--bs-white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark);
    }

    .navbar-light .navbar-nav .nav-item .nav-link {
        color: var(--bs-dark);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light);
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link::after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        width: 2px;
        height: 12px;
    }
}

/*** Navbar End ***/

/*** Carousel Hero Header Start ***/
.header-carousel .header-carousel-item img {
    object-fit: cover;
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
    height: 700px;
}


.header-carousel .owl-nav .owl-next,
.header-carousel .owl-nav .owl-prev {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
    bottom: 30px;
    left: 30px;
    margin-left: 90px;
    display: none;
}

.header-carousel .owl-nav .owl-prev {
    bottom: 30px;
    left: 30px;
    display: none;
}

.header-carousel .owl-nav .owl-next:hover,
.header-carousel .owl-nav .owl-prev:hover {
    box-shadow: inset 0 0 100px 0 var(--bs-light);
    color: var(--bs-primary);
}


.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    padding-top: 120px;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 45px;
    }
}

@media (max-width: 767px) {
    .header-carousel .owl-nav .owl-next {
        left: 50%;
        transform: translateX(-50%);
        margin-left: -45px;
    }


    .header-carousel .owl-nav .owl-prev {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 45px;
    }
}


.header-carousel .header-carousel-item img {
    animation-name: image-zoom;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: 1s;
}

@keyframes image-zoom {
    0% {
        height: 100%;
        opacity: 0.9;
    }

    25% {
        height: 110%;
        opacity: 0.50;
    }

    50% {
        height: 115%;
        opacity: 1;
    }

    75% {
        height: 110%;
        opacity: 0.50;
    }

    100% {
        height: 100%;
        opacity: 0.9;
    }
}

/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 140px 0 60px 0;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .bg-breadcrumb {
        padding: 140px 0 60px 0;
    }
}

@media (max-width: 991px) {
    .bg-breadcrumb {
        padding: 60px 0 60px 0;
    }
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

/*** Single Page Hero Header End ***/


/*** Service Start ***/
.service .service-item {
    background: var(--bs-light);
    border-radius: 10px;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service .service-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
    height: 200px;
    /* Fixed image height */
}

.service .service-item .service-img img {
    transition: 0.5s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image fills the area */
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

.service .service-item .rounded-bottom {
    flex-grow: 1;
    /* Ensures content fills the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.service .service-item .rounded-bottom a.h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service .service-item .rounded-bottom p {
    flex-grow: 1;
    /* Makes description grow if content is short */
    margin-bottom: 1rem;
}

.service .service-item .rounded-bottom .btn {
    align-self: start;
    /* Align button at the bottom */
    margin-top: auto;
}


/*** Service End ***/


/*** Features Start ***/
.feature .feature-item {
    text-align: center;
    border-radius: 10px;
    background: var(--bs-light);
    border: 1px solid transparent;
    transition: 0.5s;
}

.feature .feature-item:hover {
    border: 1px solid var(--bs-primary);
}

.feature .feature-item .feature-icon {
    background: var(--bs-white);
    border-radius: 10px;
    display: inline-block;
}

/*** Features End ***/

/*** Offer Start ***/
.offer-section .nav a.accordion-link {
    width: 100%;
    border-radius: 10px;
    display: flex;
    background: var(--bs-white);
    transition: 0.5s;
}

.offer-section .nav a.accordion-link.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

.offer-section .nav a.accordion-link h5 {
    transition: 0.5s;
}

.offer-section .nav a.accordion-link.active h5 {
    color: var(--bs-white);
}

/*** Offer End ***/

/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    background: var(--bs-white);
    box-shadow: inset 0 0 45px rgba(0, 0, 0, .1);
    transition: 0.5s;
}

.blog .blog-item a {
    transition: 0.5s;
}

.blog .blog-item:hover a:hover {
    color: var(--bs-primary);
}

.blog .blog-item .blog-img {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 208, 132, 0.1);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item:hover .blog-img::after {
    opacity: 1;
}

.blog .blog-item .blog-img .blog-title {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 5;
}

.blog .blog-item .blog-img .blog-title a {
    color: var(--bs-white);
    background: var(--bs-primary);
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img .blog-title a:hover {
    color: var(--bs-dark);
}

.blog-carousel .owl-stage-outer {
    margin-top: 58px;
}

.blog .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    left: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 6px 35px;
    border-radius: 30px;
    transition: 0.5s;
}

.blog .owl-nav .owl-next:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.blog .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 6px 35px;
    border-radius: 30px;
    transition: 0.5s;
}

.blog .owl-nav .owl-prev:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

/*** Blog End ***/


/*** FAQs Start ***/
.faq-section .accordion .accordion-item .accordion-header .accordion-button {
    color: var(--bs-secondary);
}

.faq-section .accordion .accordion-item .accordion-header .accordion-button.collapsed {
    color: var(--bs-dark);
}

/*** FAQs End ***/

/*** Team Start ***/
.team .team-item {
    position: relative;
    padding: 0 25px 25px 25px;
    border-radius: 10px;
    transition: 0.5s;
}

.team .team-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: var(--bs-light);
    border-radius: 10px;
    transition: 0.5s;
    z-index: -1;
}

.team .team-item:hover::before {
    height: 0;
}

.team .team-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
    z-index: -1;
}

.team .team-item:hover::after {
    height: 100%;
    background: var(--bs-primary);
}

.team .team-item .team-img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    position: relative;
    margin-top: 50%;
    transform: translateY(-50%);
    margin-bottom: -50%;
    display: flex;
    justify-content: center;
    border: 4px solid var(--bs-primary);
    border-style: dotted;
    padding: 4px;
    background: var(--bs-white);
    transition: 0.5s;
}

.team .team-item:hover .team-img {
    border: 4px solid var(--bs-white);
    border-style: dotted;
    background: 0;
}

.team .team-item .team-img img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    transition: 0.5s;
}

.team .team-item .team-title {
    padding: 25px 0 25px 0;
    text-align: center;
}

.team .team-item .team-title h4,
.team .team-item .team-title p {
    transition: 0.5s;
}

.team .team-item:hover .team-title h4,
.team .team-item:hover .team-title p {
    color: var(--bs-white);
}

.team .team-item .team-icon {
    display: flex;
    justify-content: center;
}

.team .team-item .team-icon a {
    transition: 0.5s;
}

.team .team-item:hover .team-icon a {
    color: var(--bs-dark);
    background: var(--bs-white);
}

.team .team-item:hover .team-icon a:hover {
    color: var(--bs-primary);
    background: var(--bs-dark);
}

/*** Team End ***/

/*** Testimonial Start ***/
.testimonial .testimonial-item {
    position: relative;
    margin-bottom: 30px;
    padding: 0 25px 25px 25px;
}

.testimonial .testimonial-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: calc(100% - 50px);
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .testimonial-item .testimonial-img {
    display: flex;
    justify-content: center;
}

.testimonial .testimonial-item .testimonial-img img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    border: 5px solid var(--bs-light);
    border-style: double;
    background: var(--bs-white);
}

.testimonial .testimonial-item .testimonial-text {
    padding: 25px 0;
    text-align: center;
}

.testimonial .testimonial-item .testimonial-title {
    display: flex;
    justify-content: space-between;
}

.testimonial .testimonial-item .testimonial-quote-left {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 20px;
    left: 25px;
    border-radius: 60px;
    color: var(--bs-primary);
    background: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .testimonial-item .testimonial-quote-right {
    position: absolute;
    width: 60px;
    height: 60px;
    bottom: -30px;
    right: 25px;
    margin-top: -5px;
    border-radius: 60px;
    color: var(--bs-primary);
    background: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-stage-outer {
    margin-top: 58px;
    margin-right: -1px;
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    left: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 5px 30px;
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 5px 30px;
    border-radius: 30px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    margin: 20px 10px 0 10px;
    background: var(--bs-primary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background: var(--bs-secondary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-carousel .owl-dots .owl-dot.active span::after {
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
    transition: 0.5s;
}

/*** Testimonial End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-secondary);
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}

/*** Footer End ***/

/* Shimmer Effect for Skeleton Cards */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Base Skeleton Style */
.skeleton {
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Shimmer Effect Applied to Skeleton */
.skeleton.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Skeleton Image */
.skeleton-img {
    width: 100%;
    height: 200px;
    background: #f3f3f3;
    margin-bottom: 15px;
    position: relative;
}

/* Skeleton Title */
.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 10px;
    position: relative;
}

.skeleton-title.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Skeleton Content */
.skeleton-content {
    height: 12px;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.skeleton-content.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Skeleton Button */
.skeleton-button {
    height: 30px;
    width: 50%;
    margin-top: 15px;
    position: relative;
}

.skeleton-button.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/*flips details*/

/* Flip Detail Page Styles */
.flip-detail-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    /* Increased default padding for better spacing */
    background: linear-gradient(135deg, #f0fdf4, #f8fafc);
    transition: padding 0.3s ease-in-out;
}

.flip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    gap: 50px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Left Section */
.flip-text {
    flex: 1;
    max-width: 600px;
    order: 2;
    /* Default order for desktop */
    font-family: 'DM Sans', sans-serif;
}

.flip-text h5 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.flip-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #212529;
    transition: font-size 0.5s ease-in-out;
}

.flip-text h4 {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 15px;
}

.flip-text p {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 30px;
}

/* Right Section */
.flip-image {
    flex: 1;
    max-width: 45%;
    text-align: center;
    order: 1;
    /* Default order for desktop */
    overflow: hidden;
    /* Ensure image doesn't overflow */
}

.flip-image img {
    width: 100%;
    /* Ensure it takes up 100% of the container's width */
    height: auto;
    max-height: 1000px;
    /* Set a higher max-height */
    object-fit: cover;
    /* Ensure the image covers the container */
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: width 0.5s ease, height 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .flip-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .flip-detail-page {
        padding: 30px 15px;
        /* Reduced padding for mobile view */
    }

    .flip-text {
        order: 2;
        /* Ensure text comes after the image */
        margin: 20px 0;
    }

    .flip-text h1 {
        font-size: 2rem;
    }

    .flip-text h4 {
        font-size: 1rem;
    }

    .flip-text p {
        font-size: 0.9rem;
    }

    .flip-image {
        order: 1;
        /* Ensure image comes first */
    }

    .flip-image img {
        width: 100vw;
        /* Let the image take up the full viewport width */
        height: auto;
        max-height: 700px;
        /* Increase height for better look */
        object-fit: cover;
        /* Ensures the image fills the container */
    }
}

@media (min-width: 992px) {
    .flip-detail-page {
        padding: 50px 20px;
        /* Increased padding for larger screens */
    }
}


@media (max-width: 768px) {
    .flip-container {
        padding: 15px;
    }

    .flip-image img {
        width: 200%;
        /* Image fully fits the screen */
        height: auto;
        max-height: 1000px;
        /* Ensure image fills more of the card */
        object-fit: cover;
        /* Ensures the image fills the container aesthetically */
    }
}


/* Updated Editorial Detail Page Styles */
.editorial-detail-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #f0fdf4, #f8fafc);
    transition: padding 0.3s ease-in-out;
}

.editorial-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'DM Sans', sans-serif;
    transition: box-shadow 0.3s ease-in-out;
}

.editorial-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.editorial-banner img {
    display: block;
    width: 50%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.editorial-banner img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Header Section */
.editorial-header {
    text-align: center;
    margin-bottom: 30px;
}

.editorial-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1b4332;
}

.editorial-header h5 {
    font-size: 1rem;
    color: #6c757d;
}

/* Content Section */
.editorial-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    letter-spacing: 0.02em;
}

.editorial-content h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2d6a4f;
    position: relative;
}

.editorial-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #95d5b2;
    margin: 10px auto 0;
}

.editorial-content h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #34495e;
}

.editorial-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.editorial-content ul,
.editorial-content ol {
    margin: 1rem 0;
    padding-left: 3rem;
}

.editorial-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
}

.editorial-content li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #47efa9;
    font-size: 1rem;
    font-weight: bold;
}

/* Keywords */
.editorial-content .keyword {
    background-color: #d8f3dc;
    color: #1c9d63;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}

/* Links and Images */
.editorial-content a {
    color: #1fbf77;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.editorial-content a:hover {
    color: #1b4332;
    text-decoration: none;
}

.editorial-content img {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.editorial-content img:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Author/Metadata Section */
.editorial-metadata {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .editorial-container {
        padding: 20px;
        gap: 20px;
    }

    .editorial-detail-page {
        padding: 50px 15px;
    }

    .editorial-header h1 {
        font-size: 2rem;
    }

    .editorial-content h2 {
        font-size: 1.5rem;
    }

    .editorial-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .editorial-container {
        padding: 15px;
    }

    .editorial-header h1 {
        font-size: 1.8rem;
    }

    .editorial-content h2 {
        font-size: 1.3rem;
    }

    .editorial-content p {
        font-size: 0.9rem;
    }
}


/* General Calculator Styles */
.calculator-detail-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px;
    transition: padding 0.3s ease-in-out;
}

.calculator-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #e5f6f2, #ffffff);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'DM Sans', sans-serif;
}

/* Header */
.calculator-container h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2d6a4f;
}



/* Slider Section */
.calculator-section {
    margin-bottom: 25px;
}

.calculator-section label {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.calculator-section input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 8px;
    background: #b2d8b2;
    outline: none;
    transition: background 0.3s ease;
}

.calculator-section input[type="range"]:focus {
    background: #04ff00;
}

.calculator-section input[type="range"]::-webkit-slider-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #47efa9;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.calculator-section input[type="range"]:hover::-webkit-slider-thumb {
    background: #63ffa1;
    transform: scale(1.1);
}

.calculator-section input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #47efa9;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.calculator-section input[type="range"]:hover::-moz-range-thumb {
    background: #6c63ff;
    transform: scale(1.1);
}

/* Manual Input Field */
.calculator-section input[type="number"],
.calculator-section input[type="text"] {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 10px;
    box-sizing: border-box;
    color: #1b4332;
    /* Dark green text */
    background-color: #ffffff;
    /* White background */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.calculator-section input[type="number"]:focus,
.calculator-section input[type="text"]:focus {
    border-color: #47efa9;
    background-color: #ffffff;
    /* Keep background white on focus */
    outline: none;
}


/* Result Display Card */
.result-display {
    margin-top: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1b4332;
    /* Deep green for primary text */
    background: #f0fdf4;
    /* Soft green background */
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #47efa9;
    /* Accent green border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main Result Text */
.result-display .result-value {
    font-size: 2.4rem;
    font-weight: bold;
    color: #2d6a4f;
    /* Darker green for emphasis */
    margin-bottom: 8px;
}

/* Supporting Text */
.result-display .result-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6c757d;
    /* Muted gray for clarity */
    margin-top: 5px;
}



/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .calculator-container {
        padding: 15px;
    }

    .calculator-container h2 {
        font-size: 2rem;
    }

    .calculator-section label {
        font-size: 1.1rem;
    }

    .result-display {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 12px;
    }

    .calculator-container h2 {
        font-size: 1.6rem;
    }

    .calculator-section label {
        font-size: 1rem;
    }

    .result-display {
        font-size: 1.2rem;
    }
}


/* Add this to your CSS to customize the sliders */
.rc-slider {
    width: 100%;
    margin: 10px 0;
}

.rc-slider-rail {
    background-color: #ddd;
    height: 8px;
}

.rc-slider-track {
    background-color: #47efa9;
    height: 8px;
}

.rc-slider-handle {
    border: 2px solid #47efa9;
    background-color: #fff;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.rc-slider-handle:hover {
    background-color: #47efa9;
    border-color: #fff;
}

.input-field {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.result-display h3 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
}

.calculator-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rc-slider-handle {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.rc-slider-handle:hover {
    transform: scale(1.2);
}

.toggle-switch {
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #f0fdf4, #f8fafc);
    border: 2px solid #ccc;
    border-radius: 50px;
    position: relative;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
  }
  
  .toggle-switch:hover {
    background: linear-gradient(135deg, #47efa9, #d4edda);
  }
  
  .toggle-thumb {
    width: 26px;
    height: 26px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 2px;
    transition: transform 0.3s ease;
    font-size: 12px;
    font-weight: bold;
    color: #1b4332;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .toggle-en {
    transform: translateX(2px);
  }
  
  .toggle-hi {
    transform: translateX(30px);
  }
  
  .ad-container {
    margin: 20px auto;
    text-align: center;
  }

/* =====================================================
   DARK MODE STYLES - Modern Minimal Theme
   ===================================================== */

[data-theme="dark"] {
  color-scheme: dark;
}

/* Dark Mode - Navbar */
[data-theme="dark"] .navbar-scrolled,
[data-theme="dark"] .fixed.bg-white {
  background: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .navbar .text-gray-700,
[data-theme="dark"] .text-gray-700 {
  color: var(--foreground) !important;
}

/* Dark Mode - Cards & Surfaces */
[data-theme="dark"] .card,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
  background: var(--card-background) !important;
  border-color: var(--card-border) !important;
}

[data-theme="dark"] .carousel-inner,
[data-theme="dark"] .carousel-item-bg {
  background: var(--background-secondary) !important;
}

[data-theme="dark"] .service-item,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .about-item,
[data-theme="dark"] .blog-item,
[data-theme="dark"] .team-item,
[data-theme="dark"] .testimonial-item {
  background: var(--card-background) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
}

[data-theme="dark"] .service-item:hover,
[data-theme="dark"] .feature-item:hover,
[data-theme="dark"] .blog-item:hover {
  box-shadow: var(--card-shadow-hover) !important;
}

/* Dark Mode - Text Colors */
[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black {
  color: var(--foreground) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
  color: var(--foreground-muted) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .card-text {
  color: var(--foreground-secondary) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .h1,
[data-theme="dark"] .h2,
[data-theme="dark"] .h3,
[data-theme="dark"] .h4,
[data-theme="dark"] .h5,
[data-theme="dark"] .h6 {
  color: var(--foreground) !important;
}

/* Dark Mode - Borders */
[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
  border-color: var(--border) !important;
}

/* Dark Mode - Backgrounds */
[data-theme="dark"] .bg-secondary {
  background: var(--background-secondary) !important;
}

[data-theme="dark"] section,
[data-theme="dark"] .page-section {
  background: var(--background);
}

[data-theme="dark"] .section-title {
  color: var(--foreground);
}

/* Dark Mode - Form Elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control {
  background: var(--background-secondary) !important;
  color: var(--foreground) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--foreground-muted) !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-light) !important;
}

/* Dark Mode - Buttons */
[data-theme="dark"] .btn-light {
  background: var(--background-secondary) !important;
  color: var(--foreground) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .btn-light:hover {
  background: var(--background-tertiary) !important;
}

[data-theme="dark"] .btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

/* Dark Mode - FAQ/Accordion */
[data-theme="dark"] .accordion-item {
  background: var(--card-background) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .accordion-button {
  background: var(--card-background) !important;
  color: var(--foreground) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: var(--background-secondary) !important;
  color: var(--primary) !important;
}

[data-theme="dark"] .accordion-body {
  background: var(--card-background) !important;
  color: var(--foreground-secondary) !important;
}

/* Dark Mode - Tables */
[data-theme="dark"] table,
[data-theme="dark"] .table {
  color: var(--foreground) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .table thead th {
  background: var(--background-secondary) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
  border-color: var(--border) !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background: var(--background-secondary) !important;
}

/* Dark Mode - Skeleton Loading */
[data-theme="dark"] .skeleton-item {
  background: var(--background-secondary) !important;
}

[data-theme="dark"] .skeleton-item::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--background-tertiary),
    transparent
  ) !important;
}

/* Dark Mode - Dropdowns */
[data-theme="dark"] .dropdown-menu {
  background: var(--card-background) !important;
  border-color: var(--border) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

[data-theme="dark"] .dropdown-item {
  color: var(--foreground) !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--background-secondary) !important;
  color: var(--primary) !important;
}

/* Dark Mode - Modals */
[data-theme="dark"] .modal-content {
  background: var(--card-background) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--border) !important;
}

/* Dark Mode - Calculator Styles */
[data-theme="dark"] .calculator-card {
  background: var(--card-background) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="dark"] .calculator-section {
  background: var(--background) !important;
}

[data-theme="dark"] .slider-container input[type="range"]::-webkit-slider-track {
  background: var(--background-tertiary) !important;
}

/* Dark Mode - Editorial Styles */
[data-theme="dark"] .editorial-card {
  background: var(--card-background) !important;
}

[data-theme="dark"] .editorial-content {
  background: var(--background) !important;
}

/* Dark Mode - Flip Details */
[data-theme="dark"] .flip-detail-card {
  background: var(--card-background) !important;
}

/* Dark Mode - Owl Carousel */
[data-theme="dark"] .owl-carousel .owl-nav button.owl-prev,
[data-theme="dark"] .owl-carousel .owl-nav button.owl-next {
  background: var(--background-secondary) !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="dark"] .owl-carousel .owl-nav button:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

[data-theme="dark"] .owl-carousel .owl-dots .owl-dot span {
  background: var(--border) !important;
}

[data-theme="dark"] .owl-carousel .owl-dots .owl-dot.active span {
  background: var(--primary) !important;
}

/* Dark Mode - Shadow Adjustments */
[data-theme="dark"] .shadow,
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-lg {
  box-shadow: var(--card-shadow) !important;
}

/* Dark Mode - Link Hover */
[data-theme="dark"] a:hover {
  color: var(--primary);
}

/* Dark Mode - List Groups */
[data-theme="dark"] .list-group-item {
  background: var(--card-background) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
}

/* Dark Mode - Badges */
[data-theme="dark"] .badge.bg-light {
  background: var(--background-secondary) !important;
  color: var(--foreground) !important;
}

/* Dark Mode - Alerts */
[data-theme="dark"] .alert {
  border-color: var(--border) !important;
}

/* Dark Mode - Progress Bars */
[data-theme="dark"] .progress {
  background: var(--background-secondary) !important;
}

/* Modern Minimal Enhancements */
.modern-card {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all 250ms ease;
  overflow: hidden;
}

.modern-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.modern-section {
  padding: 80px 0;
  background: var(--background);
}

.modern-section-alt {
  background: var(--background-secondary);
}

/* Smooth Transitions for Theme Change */
* {
  transition: background-color 250ms ease, border-color 250ms ease, color 150ms ease;
}

/* Disable transitions on page load to prevent flash */
.preload * {
  transition: none !important;
}

