/* Google Fonts: Inter (body) + Poppins (headings) */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-secondary: 'Poppins', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Prevent FOUT by providing fallback fonts */
body {
    font-family: var(--font-primary);
    font-display: swap;
}

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Prevent layout shifts with explicit icon dimensions */
img.icon-md, img.icon-md2, img.icon-lg {
    width: auto;
    height: auto;
}

img.icon-md {
    max-width: 24px;
    max-height: 24px;
}

img.icon-md2 {
    max-width: 32px;
    max-height: 32px;
}

img.icon-lg {
    max-width: 48px;
    max-height: 48px;
}

/* Add aspect ratio for logo to prevent layout shift */
.logo-height {
    width: auto;
    height: 40px;
    aspect-ratio: 3 / 1;
}

/* Hero image optimization - prevent layout shift */
.cta-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

/* CSS Containment for performance - isolate sections */
.feature, .container-fluid.py-5, .testimonial-section {
    contain: layout style;
}

/* Reduce reflows during animations */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

/* Performance optimization for animated elements */
.fadeInUp, .fadeIn, .zoomIn {
    will-change: opacity, transform;
}

/* Remove will-change after animation completes to free resources */
.animated {
    animation-fill-mode: both;
}

@media (prefers-reduced-motion: reduce) {
    .wow {
        visibility: visible !important;
        animation: none !important;
        transition: none !important;
    }
}

/* YouTube Lazy Loading Styles */
.youtube-lazy {
    position: relative;
    overflow: hidden;
}

.youtube-placeholder {
    transition: transform 0.3s ease;
}

.youtube-placeholder:hover {
    transform: scale(1.02);
}

.youtube-placeholder:hover svg {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

.youtube-placeholder svg {
    transition: transform 0.3s ease;
}

.contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-card .mt-4 {
    margin-top: auto !important;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99998;
}

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

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

:root {
    --brand-btn: #12B135;
    --brand-heading: #6D78F5;
    --bs-primary: var(--brand-heading);
}

/* Ensure Bootstrap utility classes use our primary variable */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.btn.btn-primary,
.btn-primary {
    background-color: var(--brand-btn) !important;
    color: var(--bs-white) !important;
    border: none !important;
}

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

.btn:not(.btn-light):not(.btn-dark):not(.btn-outline-secondary):not(.btn-outline-primary) {
    background-color: var(--brand-btn);
    color: var(--bs-white);
    border: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-heading) !important;
}

.btn {
    font-weight: 600;
    transition: .5s;
}

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

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

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

.contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-icon.bg-primary {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

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

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

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

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

.nav-bar {
    background: var(--bs-white);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.nav-bar .navbar-light .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-item .nav-link {
    padding: 0;
}

.navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
}

/* Prevent navbar link text from wrapping to next line */
.navbar .navbar-nav .nav-link {
    padding: 2;
    white-space: nowrap;
}

/* Keep navbar items on a single row and allow horizontal scrolling if needed */
.navbar .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item:hover .nav-link {
    color: var(--bs-primary);
}

@media (max-width: 991px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0;
    }

    .navbar .navbar-nav .nav-item {
        display: flex;
        padding: 20px;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .navbar .navbar-nav .nav-btn {
        display: flex;
        justify-content: start;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        margin-top: 20px;
        padding-bottom: 20px;
        background: var(--bs-light);
        border-radius: 10px;
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }
    
    .navbar-toggler i {
        color: var(--bs-primary);
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .nav-btn {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--bs-light);
        border-radius: 10px;
    }

    .navbar .navbar-nav .nav-btn {
        width: 100%;
        display: flex;
        margin-left: auto;
    }
}

:root {
    --section-vertical-gap: 1rem;
}

.container-fluid:not(.nav-bar):not(#spinner):not(.topbar):not(.modal):not(.partners-marquee-wrapper) {
    padding-top: var(--section-vertical-gap) !important;
    padding-bottom: var(--section-vertical-gap) !important;
}

.feature-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10vw;

}

.feature-carousel:focus {
    outline: none;
}

.feature-card {
    flex: 0 0 70vw;
    max-width: 70vw;
    scroll-snap-align: center;
    box-shadow: 0 2px 2px rgba(28, 39, 53, 0.023);
    border-radius: 12px;
    background: #ffffff;
    min-height: 140px;
}

.feature-card .feature-item {
    padding: 1rem;
    height: 100%;
}

.feature-card .feature-icon { 
    background: transparent; 
}

.feature-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.feature-carousel::-webkit-scrollbar { 
    display: none; 
    height: 0; 
}

@media (min-width: 768px) {
    .feature-carousel { 
        display: none !important; 
    }
    .feature-card { 
        display: none !important; 
    }
}

.feature-carousel[data-js-snap] { 
    scroll-snap-type: x mandatory; 
}

.modal .container-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.container-fluid.testimonial {
    padding-bottom: 0 !important;
}

.container-fluid .container[class*="py-"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero-section {
    padding: 1rem 0;
    background-color: #F2F5F9;
    margin-top: 80px;
    padding-top: 2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 2rem 0;
    }
    
    .hero {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

.hero-text p:first-child {
    color: #2563eb;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .hero-text h1 {
        font-size: 4rem;
    }
}

.hero-text p:not(:first-child) {
    font-size: 1.125rem;
    color: #6D78F5;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-text .cta {
    display: inline-flex;
    align-items: center;
    padding: 16px 24px;
    background-color: #12B135;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    gap: 8px;
}

.hero-text .cta:hover {
    background-color: #6D78F5;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
}

/* About image: moved from inline styles in index.html
   - default height: 20rem
   - smaller height on narrow screens (matches previous onload behavior)
   - center the image and preserve aspect with cover */
.about-1-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 30rem;
    width: auto;
    max-width: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .about-1-img {
        height: auto;
        width: 100%; /* Ensure the full image is displayed */
        object-fit: contain; /* Maintain aspect ratio without cropping */
    }
}

/* Modal overrides: ensure modal displays above all (above the fixed nav-bar)
   and keep the dialog centered. Also style the close button as a red circular button. */
.modal {
    z-index: 100001 !important; /* higher than .nav-bar (100000) */
}
.modal-backdrop {
    z-index: 100000 !important; /* backdrop just below the modal, above nav-bar */
}

/* Ensure the dialog is centered horizontally and vertically (Bootstrap has modal-dialog-centered,
   but reinforce here in case of custom layout). */
.modal.modal-center-reinforce .modal-dialog,
.modal .modal-dialog.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100% - 2.5rem);
}

/* Style the Bootstrap close button inside modals to be a red circular button with a white X */
.modal .btn-close {
     /* bootstrap danger */
    color: red; /* SVG uses currentColor for the X */
    opacity: 1; /* ensure it's fully visible */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0.25rem; /* keep SVG centered */
    border: none;
}

/* For small screens keep the close button from overlapping content */
@media (max-width: 576px) {
    .modal .btn-close {
        width: 32px;
        height: 32px;
    }
}

.feature .feature-item {
    border-radius: 10px;
    background: var(--bs-white);
    transition: 0.5s;
}

/* Pricing cards: make plan boxes more curved */
.pricing .card {
    border-radius: 12px; /* larger curve for plan boxes */
    overflow: hidden;    /* ensure header/footer respect the radius */
    transition: box-shadow .25s ease-in-out;
}

.pricing .card .card-header {
    border-radius: 0; /* parent handles rounding via overflow */
}

.pricing .card:hover {
    box-shadow: 0 8px 20px rgba(28,39,53,0.08);
}

.feature .feature-item:hover {
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon {
    position: relative;
    width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-light);
}

.feature .feature-item:hover .feature-icon i {
    z-index: 9;
}

/* 3D card effect for feature tabs */
.feature .feature-item {
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(243,246,255,0.6) 100%);
    box-shadow: 0 6px 18px rgba(28,39,53,0.08), 0 2px 6px rgba(28,39,53,0.04);
    transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease, filter .28s ease;
    position: relative;
    overflow: visible;
}

.feature .feature-item::after {
    /* soft ground shadow to enhance 3D look */
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -10px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(28,39,53,0.14) 0%, rgba(28,39,53,0.02) 60%, rgba(28,39,53,0) 100%);
    filter: blur(8px);
    border-radius: 50%;
    z-index: 0;
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: none;
}

.feature .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 46px rgba(28,39,53,0.18), 0 10px 24px rgba(28,39,53,0.08);
}

.feature .feature-item:hover::after {
    transform: translateY(4px) scale(1.06);
    opacity: 0.95;
}

.feature .feature-item .feature-icon {
    z-index: 2; /* keep icon above the ground-shadow */
}

.feature .feature-item .feature-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}

.feature .feature-item:hover .feature-icon::after {
    height: 0;
}

.feature .feature-item .feature-icon {
    color: var(--bs-primary);
}

.feature .feature-item h5 {
    color: var(--brand-btn) !important;
}

.feature .row {
    align-items: stretch;
}

.feature .row>[class*="col-"] {
    display: flex;
}

.feature .feature-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 160px;
}

.feature .feature-item .feature-icon {
    flex: 0 0 auto;
}

.feature .feature-item p {
    flex: 1 1 auto;
}

.feature .feature-item .feature-icon,
.feature .feature-item h5,
.feature .feature-item p {
    transition: 0.5s;
}

.feature .feature-item:hover .feature-icon {
    color: var(--bs-white);
    background: #12B135;
}

/* Ensure image-based SVG icons turn white on hover (applies to feature & trust sections) */
.feature .feature-item .feature-icon img {
    transition: filter .18s ease, opacity .18s ease;
}

.feature .feature-item:hover .feature-icon img,
.feature .feature-item:focus-within .feature-icon img {
    /* Make monochrome SVGs appear white on the hovered icon background */
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* For inline SVG or icon fonts, ensure color/fill becomes white on hover */
.feature .feature-item:hover .feature-icon svg,
.feature .feature-item:hover .feature-icon i {
    color: var(--bs-white) !important;
    fill: var(--bs-white) !important;
}

.feature .feature-item:hover p {
    color: var(--bs-white);
}

.feature .feature-item:hover h5 {
    color: var(--bs-white) !important;
}
.feature .feature-item:hover h4 {
    color: var(--bs-white) !important;
}

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

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

.faq-section .accordion .accordion-item .accordion-header .accordion-button {
    color: var(--bs-white);
    background: rgba(1, 95, 201, .8);
    font-size: 18px;
}

.faq-section .accordion .accordion-item .accordion-header .accordion-button::after {
    filter: brightness(0) invert(1);
}

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

.faq-section .accordion .accordion-item .accordion-header .accordion-button.collapsed::after {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(218deg) brightness(97%) contrast(93%);
}

.blog .blog-item {
    border-radius: 10px;
    transition: 0.5s;
}

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

.blog .blog-item:hover .blog-content {
    background: var(--bs-white);
}

.blog .blog-item .blog-img {
    border-top-left-radius: 10px;
    border-top-right-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: 0;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(1, 95, 201, .2);
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item:hover .blog-img::after {
    height: 100%;
}

.blog .blog-item .blog-img .blog-categiry {
    position: absolute;
    bottom: 0;
    right: 0;
    border-top-left-radius: 10px;
    display: inline-flex;
    color: var(--bs-white);
    background: var(--bs-primary);
    z-index: 9;
}

.blog .blog-item .blog-content {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-light);
}

.blog .blog-item .blog-content a.btn {
    color: var(--bs-dark);
}

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

.blog-content-post {
    height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

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

.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 10px 15px;
    border-radius: 50%;
    transition: 0.5s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 10px 15px;
    border-radius: 50%;
    transition: 0.5s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 767.98px) {
    .testimonial .owl-nav,
    .testimonial .owl-dots {
        display: none !important;
    }

    .testimonial-carousel .owl-stage-outer {
        margin-top: 20px;
        overflow: visible !important;
        padding-left: 0 !important;
    }

    .testimonial-carousel .owl-stage {
        display: flex !important;
        transition-duration: 0ms !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        transform: none !important;
    }

    .testimonial-carousel .owl-item {
        width: 70vw !important;
        margin-right: 2.5vw !important;
        float: none !important;
        min-width: 70vw !important;
        flex-shrink: 0;
    }

    .testimonial-carousel .owl-item:first-child {
        margin-left: 0 !important;
    }

    .owl-carousel.testimonial-carousel {
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        cursor: grab;
        padding: 0 !important;
    }

    .owl-carousel.testimonial-carousel:active {
        cursor: grabbing;
    }

    .owl-carousel.testimonial-carousel::-webkit-scrollbar {
        display: none;
    }

    .owl-carousel.testimonial-carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .testimonial-carousel .owl-item {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .testimonial-item {
        min-height: auto !important;
        padding: 20px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: 100%;
    }

    .testimonial-item p {
        font-size: 14px;
        line-height: 1.4;
    }

    .testimonial-item h5 {
        font-size: 16px;
    }

    .testimonial-item .text-muted {
        font-size: 12px;
    }

    .testimonial-carousel {
        position: relative;
        width: 100%;
    }

    .testimonial-carousel .owl-stage-outer {
        position: relative;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .testimonial .owl-nav .owl-prev {
        left: -30px;
        width: 40px;
        height: 40px;
    }

    .testimonial .owl-nav .owl-next {
        right: -30px;
        width: 40px;
        height: 40px;
    }

    .testimonial .owl-dots {
        margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .testimonial .owl-nav {
        display: block;
    }

    .testimonial .owl-dots {
        margin-top: 30px;
    }
}

.footer-section {
    background-color: var(--bs-primary);
    padding-top: 1rem;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
    color: white;
    grid-auto-rows: 1fr;
}

.footer-grid > * {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-logo {
    height: auto;
    width: 200px;
}

.footer-text {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.75rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    transition: background-color 0.2s ease;
}

.social-btn:hover,
.social-btn:focus {
    background-color: #ffffff;
}

.footer-social-media .social-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-media .social-btn i {
    font-size: 40px;
    line-height: 1;
    color: #111827;
}

.footer-social-media .social-btn.twitter i { 
    color: #1DA1F2; 
}

.footer-social-media .social-btn.facebook i { 
    color: #1877F2; 
}

.footer-social-media .social-btn.instagram i { 
    color: #E4405F; 
}

.footer-social-media .social-btn.github i { 
    color: #181717; 
}

.footer-social-media .social-btn.youtube svg {
    width: 56px;
    height: 40px;
    display: block;
}

.nav-bar .d-none.d-xl-flex .btn:hover,
.nav-bar .d-none.d-xl-flex .btn:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
    box-shadow: none;
    background-color: inherit;
}

.nav-bar .d-none.d-xl-flex .btn i {
    font-size: 1.35rem;
    line-height: 1;
    transition: none;
    color: #111827 !important;
}

.nav-bar .d-none.d-xl-flex .btn i.fa-phone-alt,
.nav-bar .d-none.d-xl-flex .btn i.fa-whatsapp {
    color: #25D366 !important;
}

.nav-bar .d-none.d-xl-flex .btn:hover i,
.nav-bar .d-none.d-xl-flex .btn:focus i {
    transform: none !important;
}

.nav-bar .d-none.d-xl-flex .btn:hover i,
.nav-bar .d-none.d-xl-flex .btn:focus i,
.nav-bar .d-none.d-xl-flex .btn:active i {
    color: inherit !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.nav-bar .d-none.d-xl-flex .btn .fa-whatsapp {
    color: #25D366 !important;
}

.nav-bar .btn i,
.footer-social-media .social-btn i,
.social-links a i,
.footer-links a i {
    color: white !important;
    opacity: 1 !important;
    filter: none !important;
}

.nav-bar .btn:hover i,
.footer-social-media .social-btn:hover i,
.social-links a:hover i,
.footer-links a:hover i,
a:hover i {
    color: #12B135 !important;
}

.footer-social-media .social-btn:hover,
.footer-social-media .social-btn:focus {
    background: transparent;
    transform: scale(1.05);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link {
    margin-top: 1.5rem;
}

.footer-links {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #f3ff50;
}

.footer-line {
    margin: 2rem 0 1rem;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.footer-copy {
    text-align: center;
    font-size: 0.875rem;
    color: #ffffff;
    padding-bottom: 1rem;
    margin-bottom: 0 !important;
}

.footer-text {
    color: #ffffff;
}

.social-icon {
    width: 50px;
    height: 50px;
}

/* Language Switcher Styles */
#languageSwitcher {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 8px 15px !important;
    cursor: pointer;
    margin-left: 15px;
}

#languageSwitcher:hover {
    /* background-color: rgba(18, 177, 53, 0.1); */
    color: var(--brand-btn) !important;
}

#languageSwitcher i {
    margin-right: 5px;
    font-size: 1.1em;
}

#languageSwitcher .lang-text {
    font-weight: 600;
}

/* Mobile copy style (mirror of #languageSwitcher) */
.language-switch-mobile {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 8px 15px !important;
    cursor: pointer;
}

.language-switch-mobile:hover {
    /* background-color: rgba(18, 177, 53, 0.1); */
    color: var(--brand-btn) !important;
}

.language-switch-mobile .lang-text {
    font-weight: 600;
}

/* Smooth transitions for translated elements */
[data-translate],
[data-translate-html] {
    transition: opacity 0.2s ease;
}

/* Mobile responsive language switcher */
@media (max-width: 991px) {
    #languageSwitcher {
        display: inline-block;
        margin: 10px 0;
    }
}

/* Icon Styles */
.icon-white {
    filter: brightness(0) invert(1);
}

.icon-blue {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(218deg) brightness(97%) contrast(93%);
}

.icon-sm {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.icon-md {
    width: 20px;
    height: 20px;
}
.icon-star{
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    margin: 0 2px 0 0 !important;
    vertical-align: middle !important;
}
.icon-md2 {
    width: 25px;
    height: 25px;
}

.icon-lg {
    width: 48px;
    height: 48px;
}

.icon-xl {
    width: 64px;
    height: 64px;
}

.icon-inline {
    vertical-align: middle;
}

.icon-star-inactive {
    opacity: 0.3;
}

.icon-green {
    color: #28a745;
}

.icon-red {
    color: #dc3545;
}

/* Custom Bootstrap functionality CSS */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
}

.navbar-collapse.show {
    height: auto;
}

/* Custom modal styles for better CSP compliance */
.modal {
    transition: opacity 0.3s ease-out;
}

.modal.show {
    opacity: 1;
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Accordion custom styles */
.accordion-collapse {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.accordion-collapse:not(.show) {
    height: 0 !important;
}

.accordion-button {
    transition: all 0.3s ease-in-out;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Utility classes for common inline styles */
.cursor-pointer {
    cursor: pointer;
}

.logo-height {
    height: 200px;
}

.spinner-custom {
    width: 3rem;
    height: 3rem;
}

.flex-display {
    display: flex;
}

.max-width-800 {
    max-width: 800px;
}

.max-width-900 {
    max-width: 900px;
}

.min-height-200 {
    min-height: 200px;
}

.mt-inline-block {
    margin-top: 1rem;
    display: inline-block;
    text-align: left;
}

.text-start-inline {
    display: inline-block;
    text-align: left;
}

.image-cover-max-height {
    object-fit: cover;
    max-height: 420px;
}

.testimonial-stars {
    margin: 0 auto;
}

.display-none {
    display: none;
}

.modal-border-rounded {
    border-radius: 20px;
}

.modal-header-success {
    background: #11b232;
}

.text-required {
    color: #dc3545;
}

.text-muted-small {
    font-size: 0.9rem;
}

.text-white-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
}

.mt-4-text-start {
    display: inline-block;
    text-align: left;
}

.border-top-light {
    border-top: 1px solid #dee2e6;
}
