/* =============================================================
   APP LAYOUT CSS
   WhatsApp Floating Button + Page Skeleton Loader
   ============================================================= */

/* Global Mobile Overflow-X Guard */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

/* Floating WhatsApp Button (Visible on all screens) */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 2px 5px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Hide floating WhatsApp button when mobile drawer is open */
body.drawer-open {
    overflow: hidden !important;
}

body.drawer-open .floating-whatsapp {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.7) !important;
}

/* =============================================
   PAGE SKELETON LOADER
   ============================================= */
#tsa-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fbfdfc;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
    pointer-events: none;
}

#tsa-skeleton.tsa-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Shimmer animation */
@keyframes tsa-shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skel,
.skel-nav-logo,
.skel-nav-link,
.skel-nav-btn,
.skel-h-sm,
.skel-h-lg,
.skel-h-lg2,
.skel-h-p,
.skel-h-p2,
.skel-h-p3,
.skel-h-btn,
.skel-img,
.skel-card {
    background: linear-gradient(90deg, #edf4ef 25%, #d8eadc 50%, #edf4ef 75%) !important;
    background-size: 600px 100% !important;
    animation: tsa-shimmer 1.2s infinite linear !important;
    border-radius: 6px;
}

/* Skeleton nav */
.skel-nav {
    height: 65px;
    background: #fff;
    border-bottom: 1px solid #eef5f1;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
}

.skel-nav-logo {
    width: 130px;
    height: 38px;
    border-radius: 6px;
}

.skel-nav-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
    align-items: center;
}

.skel-nav-link {
    width: 64px;
    height: 14px;
    border-radius: 4px;
}

.skel-nav-btn {
    width: 80px;
    height: 34px;
    border-radius: 20px;
}

/* Skeleton hero */
.skel-hero {
    padding: 40px 24px 30px;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.skel-hero-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skel-hero-right {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.skel-h-sm {
    height: 20px;
    width: 45%;
    border-radius: 4px;
}

.skel-h-lg {
    height: 42px;
    width: 90%;
    border-radius: 6px;
}

.skel-h-lg2 {
    height: 42px;
    width: 75%;
    border-radius: 6px;
}

.skel-h-p {
    height: 14px;
    width: 85%;
    border-radius: 4px;
}

.skel-h-p2 {
    height: 14px;
    width: 70%;
    border-radius: 4px;
}

.skel-h-p3 {
    height: 14px;
    width: 55%;
    border-radius: 4px;
}

.skel-h-btn {
    height: 44px;
    width: 160px;
    border-radius: 8px;
    margin-top: 8px;
}

.skel-img {
    width: 100%;
    max-width: 460px;
    height: 320px;
    border-radius: 16px;
}

/* Skeleton cards row */
.skel-cards {
    display: flex;
    gap: 16px;
    padding: 20px 24px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skel-card {
    flex: 1;
    height: 105px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .skel-hero {
        flex-direction: column;
        padding: 20px 16px;
        gap: 24px;
    }

    .skel-hero-right {
        display: none;
    }

    .skel-nav-links {
        display: none;
    }

    .skel-cards {
        flex-wrap: wrap;
        padding: 16px;
    }

    .skel-card {
        flex: 0 0 calc(50% - 8px);
        height: 90px;
    }
}

/* Inline video play button styling (from story component) */
.video-inline-btn {
    width: 80px;
    height: 80px;
    border-radius: 80px;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    background: #ffffff;
    color: #000000 !important;
    font-size: 24px;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-decoration: none !important;
}

.video-inline-btn:hover {
    background: #0b5a26;
    color: #ffffff !important;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(11, 90, 38, 0.3);
}

/* Testimonial Circular SVG Avatar styling (from testimonials component) */
.testimonial-thumb-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.testimonial-thumb-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Equal Height & Uniform Size for Testimonial Cards */
.testimonial-carousel.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.testimonial-carousel.owl-carousel .owl-item {
    display: flex !important;
    height: auto !important;
    align-self: stretch !important;
}

.testimonial-carousel .item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.testimonial-carousel .testimonial-bx {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: calc(100% - 50px) !important;
    height: 100% !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin-left: 45px !important;
    margin-right: 5px !important;
    padding: 24px 28px 24px 55px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.testimonial-carousel .testimonial-thumb {
    position: absolute !important;
    left: -40px !important;
    top: 22px !important;
    transform: none !important;
    z-index: 10 !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.testimonial-carousel .testimonial-info {
    margin-bottom: 12px !important;
    position: relative !important;
    padding-right: 45px !important;
}

.testimonial-carousel .testimonial-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.testimonial-carousel .testimonial-content p {
    color: #444 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    word-break: break-word !important;
}

@media (max-width: 576px) {
    .testimonial-carousel .testimonial-bx {
        min-height: 180px !important;
        padding: 20px 20px 20px 48px !important;
        margin-left: 38px !important;
        width: calc(100% - 42px) !important;
    }

    .testimonial-carousel .testimonial-thumb {
        width: 70px !important;
        height: 70px !important;
        left: -35px !important;
        top: 20px !important;
    }
}