/*
Theme Name: AVP Theme
Author: Your Name
Version: 1.0
*/

nav {
    position: relative;
    z-index: 1000 !important;
}

li.nav-item.mega-menu.dropdown {
    position: static !important;
}

li.nav-item.mega-menu.dropdown .mega-menu-wrapper {
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #e8e8e8 !important;
    overflow: visible !important;
}

header nav .navbar-menu-block {
    position: relative !important;
}

header {
    position: relative !important;
    z-index: 1000 !important;
}

li.nav-item.mega-menu.dropdown:hover .mega-menu-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

/* ── TREATMENTS MEGA MENU — match reference style ── */

li.nav-item.mega-menu.dropdown .mega-menu-wrapper {
    background: #fff !important;
    border-top: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

li.nav-item.mega-menu.dropdown .mega-menu-wrapper .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 20px 28px !important;
}

/* ── FORCE remove ALL CAPS and font-variant from everything inside ── */
li.nav-item.mega-menu.dropdown .mega-menu-wrapper *,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row li a,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item {
    text-transform: none !important;
    font-variant: normal !important;
}

/* ── FORCE regular (non-bold) font weight everywhere, including bold wrapper tags ── */
li.nav-item.mega-menu.dropdown .mega-menu-wrapper *,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper strong,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper b {
    font-weight: 400 !important;
}

/* List items — match reference font size and weight */
li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row li a {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #1a1a1a !important;
    padding: 3px 0 !important;
    display: block !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;
    background: none !important;
    border-bottom: none !important;
    transition: color 0.2s ease !important;
}

li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row li a:hover,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row li a:focus {
    color: #2d6a4f !important;
    background: none !important;
}

/* Remove Bootstrap dropdown-item default styles */
li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item {
    white-space: normal !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    padding: 10px 0 !important;
    background: transparent !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item:hover,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item:focus {
    background: transparent !important;
    color: #2d6a4f !important;
}

/* ── ACTIVE / CURRENT — green text only, zero background ── */
li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item.current-treatment,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item.active,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper .dropdown-item:active,
li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row li a.current-treatment {
    color: #2d6a4f !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    font-weight: 500 !important;
}

/* ── Column layout — explicit 4 columns to match reference ── */
li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    column-gap: 40px !important;
    row-gap: 4px !important;
}

li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row li {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
}

/* ── KILL the green background on active dropdown-item from theme-style ── */
header nav .navbar-menu-block .main-menu-block .navbar-nav
.nav-item.mega-menu.dropdown .mega-menu-wrapper
.dropdown-item.active,
header nav .navbar-menu-block .main-menu-block .navbar-nav
.nav-item.mega-menu.dropdown .mega-menu-wrapper
.dropdown-item.current-treatment,
header nav .navbar-menu-block .main-menu-block .navbar-nav
.nav-item.mega-menu.dropdown .mega-menu-wrapper
.dropdown-item:active {
    background-color: transparent !important;
    color: #2d6a4f !important;
    font-weight: 500 !important;
}

/* ── FIX ALL CAPS — target the exact selector chain ── */
header nav .navbar-menu-block .main-menu-block .navbar-nav
.nav-item.mega-menu.dropdown .mega-menu-wrapper
ul.row li a.dropdown-item {
    text-transform: none !important;
    font-variant: normal !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    background: transparent !important;
    padding: 6px 0 !important;
}

/* ── HOVER — green text only ── */
header nav .navbar-menu-block .main-menu-block .navbar-nav
.nav-item.mega-menu.dropdown .mega-menu-wrapper
ul.row li a.dropdown-item:hover {
    color: #2d6a4f !important;
    background: transparent !important;
}

/* ── FIX OVERLAP: Push page content below the mega menu ── */

/* Breadcrumb / bottom bar must sit below the nav z-index */
.breadcrumb,
.breadcrumb-bar,
.breadcrumb-wrap,
.page-breadcrumb,
.site-breadcrumb,
.woocommerce-breadcrumb,
.elementor-widget-breadcrumbs {
    position: relative !important;
    z-index: 1 !important;
}

/* Footer also kept low */
footer,
.footer,
.site-footer,
.footer-wrap {
    position: relative !important;
    z-index: 1 !important;
}

/* Main page content kept low */
main,
.main,
.site-main,
.page-content,
.entry-content,
.content-area,
#content,
#main {
    position: relative !important;
    z-index: 1 !important;
}

/* ── Responsive fallback so 4 columns don't get cramped on smaller screens ── */
@media (max-width: 991px) {
    li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    li.nav-item.mega-menu.dropdown .mega-menu-wrapper ul.row {
        grid-template-columns: 1fr !important;
    }
}


/* blog sapcing*/
.blogs-details-page-section .blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blogs-details-page-section .blog-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
}

.blogs-details-page-section .blog-content ul,
.blogs-details-page-section .blog-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blogs-details-page-section .blog-content li {
    margin-bottom: 8px;
}
/*---------------------------------------------------------------*/

/* ── Partners Section ─────────────────────────── */
.partners-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding:30px 20px;
}
.partners-card img {
    max-width: 150px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: cover;
    margin: 0;
    display: block;
}
.partners-card h4 {
    text-align: center;
    margin: 0;
    font-size: 14px;
}
.partners-section .section-title {
    justify-content: center !important;
    flex-wrap: wrap !important;
}
.partners-section .section-title .left-block {
    text-align: center !important;
    width: 100% !important;
}
.partners-section .section-title .left-block .sub-title,
.partners-section .section-title .left-block h2.title {
    text-align: center !important;
    display: block !important;
}

/* appointment form */
.appointment-form {
    background-color: #fff;
}
.appointment-form .form-content-block p {
    margin-bottom: 16px;
}
.appointment-form .contact-form .form-control, .appointment-form .contact-form .form-select {
    border: 1px solid rgba(0, 0, 0, .15);
    background-color: #f4f7f4;
}
.appointment-form .contact-form label {
    font-size: 15px;
    margin-bottom: 10px;
}

/*FOR GALLERY PAGE*/
.gallery-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 22px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0e6937;
    color: #fff;
    border-color: #0e6937;
}

.gallery-grid,
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    aspect-ratio: 4 / 3;   /* forces every box to same shape */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    padding: 35px 16px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.3px;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.35s ease;
   /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
}

.gallery-item:hover .gallery-item-title {
    opacity: 1;
    transform: translateY(0);
}

/* GALLERY STYLE END HERE */


/*  SINGLE-TREATMENT-BANNER */


.page-header {
    position: relative;
}
.page-header .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.page-header .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-header .custom-container {
    position: relative;
    z-index: 2;
}
.page-header .page-title {
    position: relative;
    z-index: 2;
}

/* Banner END  */


html {
    scroll-behavior: smooth;
}

#branches-section {
    scroll-margin-top: 1px; /* adjust to your header height */
}

.page-header .page-title h1 {
    color: #ffffff;
    text-shadow: 
        0px 0px 8px rgba(0,0,0,0.9),
        0px 2px 15px rgba(0,0,0,0.8),
        0px 0px 30px rgba(0,0,0,0.6);
}

.cta-btn .site-btn .text {
    text-transform: none;
}

/*---------------------------appointment footer------------------------*/
footer.theme-footer {
    position: relative;
    overflow: hidden;
}

footer.theme-footer .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

footer.theme-footer .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer.theme-footer .container {
    position: relative;
    z-index: 1;
}

footer.theme-footer .bg-img .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

footer .cta-block .icon {
    background: #ffffff;
    border-radius: 10px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

footer .cta-block .icon img {
    width: 28px;
    height: 28px;
}

.footer-top .site-btn.btn-fill .icon {
    background: #1a7a3f;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-top .site-btn.btn-fill .icon svg,
.footer-top .site-btn.btn-fill .icon svg *,
.footer-top .site-btn.btn-fill .icon .replaced-svg,
.footer-top .site-btn.btn-fill .icon .replaced-svg * {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Animate hamburger to X when offcanvas is open */
.navbar-toggler .burger-menu .top_bar,
.navbar-toggler .burger-menu .middle_bar,
.navbar-toggler .burger-menu .bottom_bar {
    display: block;
    transition: all 0.3s ease;
}

body.offcanvas-open .navbar-toggler .burger-menu .top_bar {
    transform: translateY(8px) rotate(45deg);
}

body.offcanvas-open .navbar-toggler .burger-menu .middle_bar {
    opacity: 0;
    transform: scaleX(0);
}

body.offcanvas-open .navbar-toggler .burger-menu .bottom_bar {
    transform: translateY(-8px) rotate(-45deg);
}

/*-----------------------------------------whatsapp icon outter ring remover*-----------------------------*/
@media (max-width: 991px) {
    /* Show the CTA button on mobile */
    header nav .navbar-menu-block .cta-btn {
        display: flex !important;
        align-items: center !important;
    }

    /* Remove only the ring/outline, keep the button visible */
    header nav .navbar-menu-block .cta-btn .site-btn {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Hide the text label on mobile, show only icon */
    header nav .navbar-menu-block .cta-btn .site-btn .text {
        display: none !important;
    }

    /* Keep the icon visible and styled */
    header nav .navbar-menu-block .cta-btn .site-btn .icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        background: #2d6a4f !important;
        border-radius: 50% !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 991px) {
    header nav .navbar-menu-block .cta-btn .site-btn .icon {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: #2d6a4f !important;
        border-radius: 50% !important;
        width: 42px !important;
        height: 42px !important;
    }

    /* Kill any ring coming from the button or its wrapper */
    header nav .navbar-menu-block .cta-btn .site-btn,
    header nav .navbar-menu-block .cta-btn a,
    header nav .navbar-menu-block .cta-btn {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }
}


/* Testimonials card — avatar style */
.testimonials-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
}

.testimonials-card .quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #2D6A4F;
    opacity: 0.08;
}

.testimonials-card .image-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonials-card .image-block img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.testimonials-card .content-block h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
}

.testimonials-card .content-block .role {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2D6A4F;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
}

.testimonials-card .content-block p {
    color: #555;
    font-style: italic;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ── Testimonials Home Section ───────────────────── */
.testimonials-section .testimonials-sidebar {
    padding-right: 2rem;
}
.testimonials-section .testimonials-sidebar .title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.testimonials-section .testimonials-sidebar .sidebar-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.testimonials-custom-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.testimonials-custom-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}
.testimonials-custom-nav button:last-child {
    border-color: #2D6A4F;
    color: #2D6A4F;
}
.testimonials-custom-nav button:hover {
    border-color: #2D6A4F;
    color: #2D6A4F;
}
.testimonials-view-more {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.8rem;
    border: 2px solid #2D6A4F;
    color: #2D6A4F;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.testimonials-view-more:hover {
    background: #2D6A4F;
    color: #fff;
}

/* ── Testimonial Card ────────────────────────────── */
.testimonials-home-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #eee;
    position: relative;
    min-height: 220px;
    transition: box-shadow 0.2s;
}
.testimonials-home-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.t-quote-bg {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #2D6A4F;
    opacity: 0.06;
    pointer-events: none;
}
.t-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    position: relative;
}
.t-card-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.t-card-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 3px;
}
.t-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2D6A4F;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.t-card-text {
    color: #555;
    font-style: italic;
    line-height: 1.75;
    font-size: 0.9rem;
    position: relative;
}

/* ── Equal height testimonial cards ─────────────────────────── */
.testimonials-home-slider.owl-carousel .owl-stage {
    display: flex !important;
}

.testimonials-home-slider.owl-carousel .owl-item {
    display: flex !important;
}

.testimonials-home-slider .slider-item {
    display: flex !important;
    flex: 1 !important;
    height: auto !important;
}

.testimonials-home-slider .testimonials-home-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

.testimonials-home-slider .testimonials-home-card .t-card-text {
    flex: 1 !important;
}

/* Same for FAQ page testimonials slider */
.testimonials-slider.owl-carousel .owl-stage {
    display: flex !important;
}

.testimonials-slider.owl-carousel .owl-item {
    display: flex !important;
}

.testimonials-slider .slider-item {
    display: flex !important;
    flex: 1 !important;
    height: auto !important;
}

.testimonials-slider .testimonials-home-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

.testimonials-slider .testimonials-home-card .t-card-text {
    flex: 1 !important;
}

/* ── Clickable card cursor ───────────────────────────────────── */
.testimonials-home-card[data-modal="true"] {
    cursor: pointer !important;
}

/* ── Testimonial Modal Overlay ───────────────────────────────── */
#avp-testimonial-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#avp-testimonial-modal.is-open {
    display: flex !important;
}

#avp-testimonial-modal .modal-inner {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: avpModalIn 0.25s ease;
}

@keyframes avpModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

#avp-testimonial-modal .modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

#avp-testimonial-modal .modal-close:hover {
    background: #f0f0f0;
    color: #111;
}

#avp-testimonial-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

#avp-testimonial-modal .modal-header img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

#avp-testimonial-modal .modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
}

#avp-testimonial-modal .modal-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2D6A4F;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#avp-testimonial-modal .modal-body p {
    color: #444;
    font-style: italic;
    line-height: 1.85;
    font-size: 0.95rem;
    margin: 0;
}

/* ── Avatar fix everywhere ───────────────────────────────────── */
.t-card-header img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Prevent page jump when modal opens */
/* Prevent page jump when modal opens */
body.modal-open {
    overflow: hidden !important;
}

/* ── Fixed height testimonial cards with text clamp ── */
.testimonials-home-card {
    min-height: unset !important;
    height: 320px !important;
    overflow: hidden !important;
}

.testimonials-home-card .t-card-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex: unset !important;
}


/* ── Fix oversized location icon in footer CTA ── */
.footer-top .get-location-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.footer-top .get-location-btn .icon {
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
}

.footer-top .get-location-btn .icon img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    object-fit: contain !important;
}



/* ── Testimonial card — Google + Stars ── */
.t-card-header {
    justify-content: flex-start !important;
}

.t-card-header-info {
    flex: 1;
}

.t-google-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.t-google-link:hover {
    opacity: 1;
}

.t-stars {
    margin-bottom: 0.8rem;
}

.t-star {
    font-size: 1.1rem;
    color: #ddd;
}

.t-star.filled {
    color: #FBBC05;
}

#avp-testimonial-modal .modal-inner {
    max-width: 680px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 2.5rem !important;
}

#avp-testimonial-modal .modal-body p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Fix modal overlay covering everything ── */
#avp-testimonial-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#avp-testimonial-modal.is-open {
    display: flex !important;
}

#avp-testimonial-modal .modal-inner {
    position: relative !important;
    z-index: 1000000 !important;
    background: #fff !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    max-width: 680px !important;
    width: 100% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
}

#avp-testimonial-modal .modal-body {
    display: block !important;
}

#avp-testimonial-modal .modal-body p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #444 !important;
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
}


/* Override t-stars margin inside modal only */
#avp-testimonial-modal .t-stars {
    margin-bottom: 0 !important;
}

#avp-testimonial-modal .modal-header {
    margin-bottom: 16px !important;
}

#avp-testimonial-modal .modal-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#avp-testimonial-modal .modal-header img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
}

#avp-testimonial-modal .modal-inner {
    padding-top: 3.5rem !important;
}

#avp-testimonial-modal .modal-header {
    padding-right: 40px !important;
}

/* Remove gap between role and stars on the CARD */
.t-card-header {
    margin-bottom: 4px !important;
}

.t-stars {
    margin-bottom: 0.6rem !important;
    margin-top: 0 !important;
}
.t-card-header-info {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.t-card-header-info h4 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.t-role {
    margin-top: 0 !important;
    line-height: 1.2 !important;
}

.t-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
}

.t-card-header img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

.t-card-header-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    justify-content: center !important;
}

.t-card-header-info h4 {
    margin: 0 !important;
    line-height: 1.2 !important;
}

.t-role {
    margin-top: 0 !important;
    line-height: 1.2 !important;
}

#avp-testimonial-modal .modal-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    padding-right: 40px !important;
}

/* ── Mobile testimonial card fixes ── */
@media (max-width: 767px) {
    .testimonials-home-card {
        height: auto !important;
        min-height: unset !important;
        padding: 1.2rem !important;
    }

    .t-card-header {
        gap: 10px !important;
    }

    .t-card-header img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }

    .t-card-header-info h4 {
        font-size: 0.9rem !important;
    }

    .t-role {
        font-size: 10px !important;
    }

    .t-card-text {
        font-size: 0.85rem !important;
    }

    /* Modal mobile fix */
    #avp-testimonial-modal .modal-inner {
        padding: 1.5rem !important;
        padding-top: 3rem !important;
        max-height: 90vh !important;
    }

    #avp-testimonial-modal .modal-header {
        gap: 12px !important;
    }

    #avp-testimonial-modal .modal-header img {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
    }
}
/**/



/* ── Validation Error Styles ── */
.input-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.field-error-msg {
    display: block;
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Force modal to always be perfectly centered */
#avp-testimonial-modal {
    margin: 0 !important;
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

#avp-testimonial-modal .modal-inner {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── MOBILE: kill horizontal overflow/shift ───────────────── */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

@media (max-width: 991px) {
    .animBx,
    .shape-top-left,
    .shape-bottom-right {
        display: none !important;
    }
}