/* =========================================================
   Jigyasa Public School - Modern Play-School Theme
   ========================================================= */

:root {
    --sunny: #FFC93C;
    --sunny-dark: #F4A100;
    --sky: #4EC5F1;
    --sky-dark: #1AA6DE;
    --coral: #FF6B6B;
    --coral-dark: #F4442E;
    --leaf: #4CD787;
    --leaf-dark: #1FAE63;
    --grape: #9B6BFF;
    --grape-dark: #7A45E5;
    --ink: #2E2A4A;
    --ink-soft: #5A5678;
    --cream: #FFFBF2;
    --font-display: 'Baloo 2', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-text, .btn-cta {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
}

/* ---------- Accent color utility classes ---------- */
.accent-sunny {
    color: var(--sunny-dark) !important;
}

.accent-sky {
    color: var(--sky-dark) !important;
}

.accent-coral {
    color: var(--coral-dark) !important;
}

.accent-leaf {
    color: var(--leaf-dark) !important;
}

.accent-grape {
    color: var(--grape-dark) !important;
}

.accent-border-sunny {
    border-left: 6px solid var(--sunny);
}

.accent-border-sky {
    border-left: 6px solid var(--sky);
}

.accent-border-coral {
    border-left: 6px solid var(--coral);
}

.accent-border-leaf {
    border-left: 6px solid var(--leaf);
}

.accent-border-grape {
    border-left: 6px solid var(--grape);
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--ink);
    color: #fff;
    font-size: .85rem;
}

.top-bar-item {
    padding: 2px 8px;
    opacity: .85;
}

    .top-bar-item i {
        color: var(--sunny);
        margin-right: 4px;
    }

/* ---------- Navbar ---------- */
.main-navbar {
    background: #fff;
    box-shadow: 0 4px 20px rgba(46,42,74,.08);
    padding: .6rem 0;
}

.brand-logo {
    height: 46px;
    width: auto;
    border-radius: 10px;
    margin-right: 10px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
    vertical-align: middle;
}

    .brand-text span {
        color: var(--coral);
    }

.navbar-brand {
    display: flex;
    align-items: center;
}

.main-navbar .nav-link {
    font-weight: 700;
    color: var(--ink-soft) !important;
    padding: .5rem .85rem !important;
    border-radius: 20px;
    transition: all .2s ease;
}

    .main-navbar .nav-link:hover,
    .main-navbar .nav-link:focus {
        color: var(--coral-dark) !important;
        background: #FFF1EC;
    }

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(46,42,74,.15);
    padding: .6rem;
}

.dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    padding: .5rem .8rem;
    color: var(--ink-soft);
}

    .dropdown-item:hover {
        background: #FFF1EC;
        color: var(--coral-dark);
    }

.btn-cta {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: .55rem 1.4rem;
    border: none;
    box-shadow: 0 8px 20px rgba(255,107,107,.35);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .btn-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(255,107,107,.45);
        color: #fff;
    }

.btn-outline-light {
    border-radius: 50px;
    font-weight: 700;
    padding: .55rem 1.4rem;
}

/* ---------- Hero Carousel ---------- */
.hero-carousel-wrap {
    position: relative;
}

.hero-slide {
    height: 78vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(46,42,74,.82) 20%, rgba(46,42,74,.35) 70%);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 560px;
    opacity: .95;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.35);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
}

.hero-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    backdrop-filter: blur(4px);
}

.hero-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background-color: #fff !important;
    opacity: .5;
}

    .hero-indicators button.active {
        opacity: 1;
        background-color: var(--sunny) !important;
    }

.wave-divider {
    height: 60px;
    width: 100%;
    background: var(--cream);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,80 900,-20 1200,30 L1200,60 L0,60 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,80 900,-20 1200,30 L1200,60 L0,60 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    margin-top: -2px;
    position: relative;
    z-index: 2;
}

/* ---------- Stats strip ---------- */
.stats-strip {
    background: #fff;
    padding: 2.5rem 0;
    margin-top: -1px;
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--coral);
}

.stat-card h3 {
    font-weight: 800;
    margin: .3rem 0 0;
    color: var(--ink);
    font-size: 2rem;
}

.stat-card p {
    color: var(--ink-soft);
    font-weight: 600;
    margin: 0;
}

/* ---------- Section tags/titles ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .5px;
    margin-bottom: .6rem;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.section-body {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.lead-intro {
    color: var(--ink-soft);
    font-size: 1.15rem;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
}

    .check-list li {
        padding: .35rem 0;
        font-weight: 600;
        color: var(--ink-soft);
    }

        .check-list li i {
            margin-right: 8px;
        }

/* ---------- Welcome section blobs ---------- */
.welcome-image-wrap {
    position: relative;
}

.welcome-img-main {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(46,42,74,.18);
    position: relative;
    z-index: 1;
}

.welcome-mascot {
    position: absolute;
    bottom: -25px;
    right: -15px;
    width: 110px;
    z-index: 3;
}

.blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: .5;
}

.blob-sunny {
    width: 130px;
    height: 130px;
    background: var(--sunny);
    top: -30px;
    left: -30px;
}

.blob-sky {
    width: 90px;
    height: 90px;
    background: var(--sky);
    bottom: -20px;
    left: 40%;
}

.mascot-float {
    animation: floaty 3.2s ease-in-out infinite;
    width: 40vh;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ---------- Feature cards ---------- */
.features-section {
    background: #fff;
}

.feature-card {
    background: var(--cream);
    border-radius: 22px;
    padding: 2rem 1.6rem;
    height: 100%;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 2px solid transparent;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 30px rgba(46,42,74,.12);
    }

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 1rem;
    color: #fff;
}

.feature-card h5 {
    font-weight: 800;
    margin-bottom: .5rem;
}

.feature-card p {
    color: var(--ink-soft);
    font-size: .95rem;
    margin: 0;
}

.feature-sunny .feature-icon {
    background: linear-gradient(135deg, var(--sunny), var(--sunny-dark));
}

.feature-sky .feature-icon {
    background: linear-gradient(135deg, var(--sky), var(--sky-dark));
}

.feature-coral .feature-icon {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
}

.feature-leaf .feature-icon {
    background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
}

.feature-grape .feature-icon {
    background: linear-gradient(135deg, var(--grape), var(--grape-dark));
}

/* ---------- Activity cards ---------- */
.activity-card {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(46,42,74,.08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

    .activity-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 32px rgba(46,42,74,.16);
    }

.activity-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.activity-body {
    padding: 1.1rem 1.2rem;
}

    .activity-body h6 {
        font-weight: 800;
        color: var(--ink);
        margin-bottom: .3rem;
    }

    .activity-body p {
        font-size: .88rem;
        color: var(--ink-soft);
        margin: 0;
    }

/* ---------- Admission strip ---------- */
.admission-strip {
    background: linear-gradient(120deg, var(--grape), var(--sky));
    border-radius: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-section {
    background: #fff;
}

.testimonial-card {
    background: var(--cream);
    border-radius: 22px;
    padding: 1.8rem;
    height: 100%;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--sunny);
}

.testimonial-card p {
    color: var(--ink-soft);
    font-style: italic;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

/* ---------- Notice board ---------- */
.notice-board {
    background: #fff;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(46,42,74,.08);
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .notice-list li {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: .7rem 0;
        border-bottom: 1px dashed #eee;
        font-weight: 600;
    }

        .notice-list li:last-child {
            border-bottom: none;
        }

.notice-date {
    background: var(--sunny);
    color: var(--ink);
    font-weight: 800;
    padding: .25rem .7rem;
    border-radius: 10px;
    font-size: .8rem;
    white-space: nowrap;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--coral-dark), var(--grape-dark));
    color: #fff;
}

.cta-title {
    font-weight: 800;
    font-size: 2rem;
}

.cta-text {
    opacity: .9;
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46,42,74,.72);
}

.page-hero-title {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: .6rem;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.5);
}

.page-hero .breadcrumb a {
    text-decoration: none;
}

.page-hero-sunny .page-hero-overlay {
    background: rgba(244,161,0,.75);
}

.page-hero-sky .page-hero-overlay {
    background: rgba(26,166,222,.75);
}

.page-hero-coral .page-hero-overlay {
    background: rgba(244,68,46,.75);
}

.page-hero-leaf .page-hero-overlay {
    background: rgba(31,174,99,.75);
}

.page-hero-grape .page-hero-overlay {
    background: rgba(122,69,229,.78);
}

/* ---------- Content blocks ---------- */
.content-block {
    margin-top: 1rem;
}

.content-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(46,42,74,.15);
}

.rounded-blob-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--sunny);
    box-shadow: 0 10px 24px rgba(46,42,74,.15);
}

.section-heading {
    font-weight: 800;
    margin-bottom: .7rem;
}

    .section-heading i {
        margin-right: 8px;
    }

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 25px rgba(46,42,74,.08);
}

.highlight-pill {
    background: #fff;
    border-radius: 14px;
    padding: .9rem 1.2rem;
    font-weight: 700;
    color: var(--ink-soft);
    box-shadow: 0 6px 16px rgba(46,42,74,.06);
}

    .highlight-pill i {
        margin-right: 8px;
    }

/* ---------- Step cards (admissions) ---------- */
.step-card {
    background: #fff;
    border-radius: 22px;
    padding: 2rem 1.4rem;
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 25px rgba(46,42,74,.08);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(255,107,107,.4);
}

.step-icon {
    font-size: 2rem;
    color: var(--grape);
    margin: 1rem 0 .7rem;
    display: block;
}

.step-card h6 {
    font-weight: 800;
}

.step-card p {
    color: var(--ink-soft);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(46,42,74,.1);
}

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

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

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(46,42,74,.85), transparent);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: .8rem .7rem .5rem;
}

.video-card {
    background: #fff;
    border-radius: 18px;
    padding: .8rem;
    box-shadow: 0 8px 20px rgba(46,42,74,.08);
}

    .video-card iframe {
        border-radius: 12px;
    }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border-radius: 26px;
    padding: 2.2rem;
    box-shadow: 0 16px 36px rgba(46,42,74,.1);
}

.form-label {
    font-weight: 700;
    color: var(--ink);
    font-size: .9rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #EFEAF6;
    padding: .65rem .9rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--grape);
        box-shadow: 0 0 0 4px rgba(155,107,255,.15);
    }

.contact-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 8px 20px rgba(46,42,74,.06);
}

    .contact-info-card i {
        font-size: 1.4rem;
        color: var(--coral);
        margin-top: 3px;
    }

    .contact-info-card h6 {
        font-weight: 800;
        margin-bottom: .2rem;
    }

    .contact-info-card p {
        color: var(--ink-soft);
        margin: 0;
        font-size: .9rem;
    }

.map-embed {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(46,42,74,.1);
}

/* ---------- Homepage popup ---------- */
.popup-modal-content {
    border: none;
    border-radius: 26px;
    overflow: hidden;
}

.popup-modal-img {
    width: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, var(--grape), var(--sky));
    padding: 1rem;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    padding: .5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.footer-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}

.footer-shapes .shape-1 {
    width: 260px;
    height: 260px;
    background: var(--coral);
    top: -80px;
    right: -60px;
}

.footer-shapes .shape-2 {
    width: 180px;
    height: 180px;
    background: var(--sky);
    bottom: -60px;
    left: 10%;
}

.footer-shapes .shape-3 {
    width: 140px;
    height: 140px;
    background: var(--sunny);
    bottom: 20px;
    right: 20%;
}

.footer-heading {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: .5rem;
        color: rgba(255,255,255,.7);
        font-size: .9rem;
    }

    .footer-links a {
        color: rgba(255,255,255,.7);
    }

        .footer-links a:hover {
            color: var(--sunny);
        }

.footer-divider {
    border-color: rgba(255,255,255,.15);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    margin-right: 8px;
    transition: background .2s ease;
}

    .social-icons a:hover {
        background: var(--coral);
    }

.share-label {
    font-size: .8rem;
}

/* ---------- Gallery lightbox popup ---------- */
.gallery-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(46,42,74,.75);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lightbox-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: var(--ink);
}

.lightbox-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 320px;
    max-height: 70vh;
}

    .lightbox-image-wrap img {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
        display: block;
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    z-index: 3;
}

    .lightbox-nav:hover {
        background: rgba(255,255,255,.35);
    }

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--ink);
    color: #fff;
    flex-wrap: wrap;
}

    .lightbox-footer h6 {
        color: #fff;
        font-weight: 800;
    }

.share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .share-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        color: #fff;
        transition: background .2s ease;
    }

        .share-icons a:hover {
            background: var(--grape);
        }

/* ---------- Social embeds (Contact page) ---------- */
.social-embed-card {
    background: #fff;
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(46,42,74,.08);
    height: 100%;
}

    .social-embed-card h6 {
        font-weight: 800;
        margin-bottom: .8rem;
    }

    .social-embed-card iframe {
        border: none;
        width: 100%;
    }

.whatsapp-connect-card {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 22px;
    padding: 1.6rem;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .6rem;
}

    .whatsapp-connect-card i.bi-whatsapp {
        font-size: 2.4rem;
    }

    .whatsapp-connect-card .btn-light {
        border-radius: 12px;
        font-weight: 700;
    }

/* ---------- Floating WhatsApp button ---------- */
.jps-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37,211,102,.5);
    transition: transform .2s ease;
}

    .jps-whatsapp-float:hover {
        transform: scale(1.08);
        color: #fff;
    }

/* ---------- AI Chatbot widget ---------- */
.jps-chatbot-launcher {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 1040;
    height: 52px;
    padding: 0 1.1rem;
    border: none;
    border-radius: 30px;
    background: var(--grape);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(155,107,255,.5);
    transition: transform .2s ease;
}

    .jps-chatbot-launcher:hover {
        transform: scale(1.05);
    }

    .jps-chatbot-launcher i {
        font-size: 1.3rem;
    }

.jps-chatbot-window {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 1050;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(46,42,74,.28);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.97);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

    .jps-chatbot-window.jps-chatbot-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

.jps-chatbot-header {
    background: var(--grape);
    color: #fff;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.jps-chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.jps-chatbot-status {
    font-size: .72rem;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jps-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4CD787;
    display: inline-block;
}

.jps-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    background: var(--cream);
}

.jps-msg {
    max-width: 84%;
    padding: .55rem .8rem;
    border-radius: 16px;
    font-size: .88rem;
    line-height: 1.4;
}

.jps-msg-bot {
    align-self: flex-start;
    background: #fff;
    color: var(--ink);
    border-bottom-left-radius: 4px;
    box-shadow: 0 3px 8px rgba(46,42,74,.08);
}

.jps-msg-user {
    align-self: flex-end;
    background: var(--grape);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.jps-chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: .6rem .8rem;
    background: #fff;
    border-top: 1px solid #EFEAF6;
}

.jps-quick-reply-btn {
    border: 1.5px solid var(--grape);
    color: var(--grape-dark);
    background: #fff;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .7rem;
    transition: background .2s ease, color .2s ease;
}

    .jps-quick-reply-btn:hover {
        background: var(--grape);
        color: #fff;
    }

.jps-chatbot-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .6rem .7rem;
    border-top: 1px solid #EFEAF6;
    background: #fff;
}

    .jps-chatbot-input input {
        flex: 1;
        border: 1.5px solid #EFEAF6;
        border-radius: 20px;
        padding: .5rem .9rem;
        font-size: .88rem;
        outline: none;
    }

        .jps-chatbot-input input:focus {
            border-color: var(--grape);
        }

    .jps-chatbot-input button {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: none;
        background: var(--grape);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

@media (max-width: 575.98px) {
    .jps-whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .jps-chatbot-launcher {
        right: 14px;
        bottom: 78px;
    }

    .jps-chatbot-window {
        right: 14px;
        bottom: 78px;
        width: calc(100vw - 28px);
        height: 68vh;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-slide {
        height: 62vh;
    }

    .main-navbar .nav-link {
        padding: .6rem 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        height: 52vh;
        min-height: 380px;
    }

    .stats-strip {
        padding: 1.5rem 0;
    }

    .stat-card i {
        font-size: 1.7rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }
    /* Keep the decorative blobs as small corner accents peeking out from
       behind the photo, instead of large circles that swallow it. */
    .welcome-image-wrap {
        margin-top: 1.5rem;
    }

    .blob-sunny {
        width: 60px;
        height: 60px;
        top: -14px;
        left: -14px;
    }

    .blob-sky {
        width: 40px;
        height: 40px;
        bottom: -10px;
        left: 45%;
    }
}
