:root {
    --primary-color: #0b5ed7; /* Trustworthy medical blue */
    --secondary-color: #6c757d;
    --accent-color: #198754; /* Success green for CTA */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #212529;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 115px; /* Increased to prevent marquee overlap */
}

@media (max-width: 767.98px) {
    body { padding-top: 80px; }
}

/* Header & Sticky Effect */
#main-header {
    transition: all 0.4s ease;
    z-index: 1030;
}

.header-scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-scrolled .top-bar {
    margin-top: -50px; /* Hide top bar on scroll */
    opacity: 0;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    background: var(--white);
}
.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
}
.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 5px;
}
.btn-primary:hover {
    background-color: #094eb3;
    box-shadow: 0 4px 10px rgba(11, 94, 215, 0.3);
}
.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 10px 24px;
    font-weight: 600;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}
.top-bar i:not(.social-icon i) { margin-right: 5px; }
.social-icon i { margin: 0 !important; }

/* Sections */
.section-padding { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50\%;
    transform: translateX(-50\%);
    width: 60px; height: 3px;
    background: var(--primary-color);
}

/* Cards */
.service-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-radius: 8px;
    height: 100\%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #111;
    color: #eee;
    padding: 60px 0 20px;
}
footer h5 { color: white; margin-bottom: 20px; }
footer a { color: #aaa; text-decoration: none; transition: 0.3s; }
footer a:hover { color: white; padding-left: 5px;}
.footer-social a {
    display: inline-flex;
    width: 40px; height: 40px;
    background: #222;
    align-items: center; justify-content: center;
    border-radius: 50\%; margin-right: 10px;
}
.footer-social a:hover { background: var(--primary-color); }

/* Blinking Image Border */
@keyframes blinkBorder {
    0% { border-color: rgba(11, 94, 215, 1); box-shadow: 0 0 15px rgba(11, 94, 215, 0.5); }
    50% { border-color: rgba(25, 135, 84, 1); box-shadow: 0 0 25px rgba(25, 135, 84, 0.8); }
    100% { border-color: rgba(11, 94, 215, 1); box-shadow: 0 0 15px rgba(11, 94, 215, 0.5); }
}
.blink-border {
    border: 5px solid var(--primary-color);
    animation: blinkBorder 2s infinite;
}

/* Animations & Effects */
.pulse-btn {
    animation: pulseBtn 2s infinite;
}
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.highlight-card {
    transition: all 0.3s ease;
}
.highlight-card:hover {
    transform: translateY(-8px);
}


/* Marquee Styling */
.promo-marquee {
    background: #ffc107;
    color: #212529;
    padding: 10px 0;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #e0a800;
    overflow: hidden;
    white-space: nowrap;
}
.promo-marquee a {
    color: inherit;
    text-decoration: none;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 50s linear infinite;
}
.promo-marquee:hover .marquee-content {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Green CTA Banner Section */
.cta-banner {
    background: linear-gradient(rgba(25, 135, 84, 0.9), rgba(25, 135, 84, 0.9)), url('https://images.unsplash.com/photo-1576091160550-217359f42f8c?auto=format&fit=crop&q=80') center/cover;
    color: white;
    padding: 40px 0;
    text-align: center;
}
.cta-banner h3 { color: white; margin-bottom: 15px; }
.cta-banner .btn-success {
    background-color: #ffffff;
    color: #198754;
    border: none !important;
    font-size: 1.1rem;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 700;
}
.cta-banner .btn-success:hover {
    background-color: #e8f5e9;
    transform: scale(1.05);
}

/* Offcanvas Mobile Menu (Mobile Only) */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 300px !important;
    }

    .offcanvas-header {
        background: #f8f9fa;
        padding: 1.5rem;
    }

    .offcanvas-title {
        letter-spacing: 1px;
        text-transform: uppercase;
        font-size: 1.1rem;
    }

    .offcanvas-body .nav-link {
        color: var(--dark-color) !important;
        font-weight: 600;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        font-family: 'Roboto', sans-serif;
        transition: all 0.3s ease;
    }

    .offcanvas-body .nav-link:hover {
        color: var(--primary-color) !important;
        padding-left: 5px !important;
    }

    .offcanvas-body .dropdown-menu {
        border: none;
        padding-left: 1rem;
        background: #fdfdfd;
    }

    .offcanvas-body .dropdown-item {
        font-size: 0.9rem;
        padding: 8px 0;
        font-weight: 500;
    }

    .offcanvas-body .dropdown-item:hover {
        background: transparent;
        color: var(--primary-color);
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
}

/* Branding & Logo Enhancements */
.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-physio { color: #0b5ed7; } /* Primary Blue */
.logo-sunil { color: #198754; }  /* Success Green */
.logo-chauhan { color: #212529; } /* Dark Gray/Navy */

.logo-subtext {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 1.2px;
    margin-top: 3px;
    text-transform: uppercase;
}

.tagline-cloud {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-icon-glow {
    filter: drop-shadow(0 0 8px rgba(11, 94, 215, 0.4));
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-icon-glow {
    transform: scale(1.1) rotate(-5deg);
}

/* Social Icon Styling */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white !important;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.si-facebook { background: #3b5998; }
.si-instagram { background: #e1306c; }
.si-youtube { background: #ff0000; }
.si-whatsapp { background: #25d366; }

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    filter: brightness(1.2);
}

/* Footer Jaagriti Branding */
.jaagriti-footer-link {
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.jaagriti-footer-link:hover {
    filter: brightness(1.2);
}

.jaagriti-footer-link span {
    display: inline-block;
}

.jaagriti-footer-link:hover span {
    animation: letterBounce 0.4s ease forwards;
}

@keyframes letterBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.jaagriti-footer-link .digital-group, 
.jaagriti-footer-link span[style*="color:#0dcaf0"],
.jaagriti-footer-link span[style*="color:#ffc107"] {
    transition: all 0.3s ease;
}

.jaagriti-footer-link:hover span[style*="color:#0dcaf0"] {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(13, 202, 240, 0.8);
}

.jaagriti-footer-link:hover span[style*="color:#ffc107"] {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

/* Membership Section Styling */
.membership-card {
    background: linear-gradient(135deg, #0b5ed7 0%, #198754 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

/* Dynamic Consultation Themes */
.form-theme-member {
    border: 3px solid #198754 !important;
    background-color: #f8fff9 !important;
    transition: all 0.5s ease;
}

.form-theme-member .card-header, 
.form-theme-member .text-primary {
    color: #198754 !important;
}

.form-theme-member .btn-primary {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.form-theme-nonmember {
    border: 3px solid #ffc107 !important;
    background-color: #fffdf5 !important;
    transition: all 0.5s ease;
}

.form-theme-nonmember .card-header,
.form-theme-nonmember .text-primary {
    color: #856404 !important;
}

.form-theme-nonmember .btn-primary {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.live-price-indicator {
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.theme-member-bg { background-color: #d1e7dd; color: #0f5132; }
.theme-nonmember-bg { background-color: #fff3cd; color: #664d03; }

.membership-toggle-btn {
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.membership-toggle-btn.active.member {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.membership-toggle-btn.active.non-member {
    background-color: #ffc107;
    color: black;
    border-color: #ffc107;
}

/* Membership Details Page Styles */
.section-padding {
    padding: 80px 0;
}

/* Premium Consultation Hero Banner */
.consultation-hero {
    background: linear-gradient(135deg, #0d3b66 0%, #052c4d 100%), 
                url('https://www.transparenttextures.com/patterns/cross-stripes.png');
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.text-gold-gradient {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-badge i {
    color: #ffc107;
}

/* Verified Experience Badge */
.experience-verified-badge {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.experience-verified-badge:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    border-color: #198754;
}

.experience-verified-badge i {
    color: #198754;
    font-size: 1.1rem;
}

.experience-verified-badge span {
    color: #0d3b66;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.top-bar-verified-wrapper {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    padding: 2px 0 2px 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991px) {
    .experience-verified-badge {
        justify-content: center;
        margin: 15px auto;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .consultation-hero {
        padding: 60px 0 50px;
    }
    .consultation-hero h1 {
        font-size: 2.2rem;
    }
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateX(10px);
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0b5ed7;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

@media (max-width: 991.98px) {
    .membership-card {
        text-align: center;
    }
    .membership-card .col-lg-5 {
        margin-top: 2rem;
    }
    .membership-card .benefit-item {
        justify-content: center;
    }
}

/* Smart Membership Popup Styling */
.membership-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.membership-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.membership-popup-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.membership-popup-overlay.show .membership-popup-content {
    transform: translateY(0);
}

.popup-gradient {
    background: linear-gradient(135deg, #0b5ed7 0%, #198754 100%);
    position: relative;
    overflow: hidden;
}

.popup-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    filter: invert(1) grayscale(100%) brightness(200%);
    z-index: 10;
}

/* Yellow-Green Heading Gradient */
.heading-mix-yg {
    background: linear-gradient(135deg, #ffeb3b 0%, #a2ff00 50%, #198754 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}
