:root {
    --brand-cream: #F5EEDD;
    --brand-mint: #7AE2CF;
    --brand-teal: #077A7D;
    --brand-navy: #06202B;
}

/* Prevent horizontal overflow on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, .img-fluid {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Merriweather', 'Times New Roman', Times, serif;
}

header.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
}

/* Guard hero and sections against accidental overflow */
header.hero,
section,
footer {
    overflow-x: hidden;
}

@media (max-width: 576px) {
    header.hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }
    header.hero .lead {
        font-size: 1rem;
    }
}

.btn-responsive {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-responsive {
        width: auto;
    }
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.15);
    color: #0f5132;
}

.bg-pattern {
    position: relative;
}

.viewer-count-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--brand-navy);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.viewer-count-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Testimonial cards */
.ts-card {
    position: relative;            /* enable absolute avatar positioning */
    overflow: visible;             /* allow avatar to pop out */
    border-radius: 12px;
    padding-top: 42px;             /* reserve space so avatar doesn't overlap text */
}

/* Testimonial avatar: perfect circle, cover, with mint ring */
.ts-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;                         /* sit on the top edge */
    left: 50%;
    transform: translate(-50%, -50%); /* float half above the card */
    border: 4px solid var(--brand-mint);
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.ts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
