:root {
    --h-primary: #B71C1C;
    --h-secondary: #121212;
    --h-accent: #D32F2F;
    --h-text: #1A1A1A;
    --h-text-light: #666666;
    --h-bg: #FFFFFF;
    --h-bg-soft: #F8F9FA;
    --h-border: #EEEEEE;
    --h-shadow: 0 10px 40px rgba(183, 28, 28, 0.1);
    --h-header-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --h-bg: #0F172A;
    --h-bg-soft: #1E293B;
    --h-text: #F1F5F9;
    --h-text-light: #94A3B8;
    --h-border: #334155;
    --h-secondary: #FFFFFF;
    --h-header-bg: rgba(15, 23, 42, 0.95);
    --h-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.h-body {
    font-family: 'Inter', 'Outfit', sans-serif;
    color: var(--h-text);
    background-color: var(--h-bg);
    overflow-x: hidden;
}

/* Prevent ALL children from causing overflow */
.h-body * {
    max-width: 100%;
}

/* Global section padding reduction */
.section {
    padding: 40px 0 !important;
}

.h-header {
    background: var(--h-header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--h-border);
    transition: all 0.3s ease;
}

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

.h-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--h-primary);
}

.h-nav-links a {
    color: var(--h-text);
    font-weight: 600;
}

.h-nav-links a:hover {
    color: var(--h-primary);
}

.h-nav-links a.btn:hover {
    color: white !important;
}

/* Hero Section */
.h-hero {
    padding: clamp(80px, 15vh, 120px) 0 40px;
    background: linear-gradient(135deg, var(--h-bg-soft) 0%, var(--h-bg) 100%);
    position: relative;
    overflow: hidden;
}

.h-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 94, 156, 0.05) 0%, transparent 70%);
}

.h-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .h-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .h-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .h-hero-image {
        display: none;
    }
}

.h-hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--h-primary);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.h-hero-content p {
    font-size: 1.25rem;
    color: var(--h-text-light);
    margin-bottom: 35px;
}

.h-hero-image img {
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.h-services {
    padding: 40px 0 20px;
}

.h-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.h-service-card {
    background: var(--h-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--h-border);
    transition: all 0.3s ease;
    box-shadow: var(--h-shadow);
}

.h-service-card:hover {
    transform: translateY(-10px);
    background: var(--h-bg);
    border-color: var(--h-primary);
}

.h-service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 94, 156, 0.1);
    color: var(--h-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 15px;
    margin-bottom: 25px;
}

/* Deesha Integration Section */
.h-deesha-promo {
    background: linear-gradient(135deg, #B71C1C 0%, #880E4F 100%);
    color: white;
    padding: 50px 0 10px;
    border-radius: 50px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(183, 28, 28, 0.3);
}

.h-deesha-promo::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.h-deesha-promo::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.h-deesha-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.h-deesha-content h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.h-deesha-content .badge {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.h-deesha-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
}

.h-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.h-mockup-img {
    width: 100%;
    max-width: 480px;
    border-radius: 30px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.h-mockup-container:hover .h-mockup-img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.h-btn-deesha {
    background: white;
    color: var(--h-primary);
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 800;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-bottom: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.h-btn-deesha:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .h-deesha-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.h-btn-deesha:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Info Footer */
.h-footer {
    background: #0D1B2A;
    color: white;
    padding: 80px 0 50px;
}

.h-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.6;
    color: #94A3B8;
    max-width: 450px;
    margin-top: 15px;
    text-align: center;
    font-weight: 400;
}

.h-footer h4 {
    margin-bottom: 30px;
    /* Increased from 25px */
    font-size: 1.4rem;
    /* Increased from 1.2rem */
    font-weight: 700;
}

.h-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #94A3B8;
}

.h-contact-list i {
    color: var(--h-secondary);
}

.h-marquee-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
}

.h-marquee-container:active {
    cursor: grabbing;
}

.h-marquee-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.h-marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.h-marquee-container:hover .h-marquee-content {
    /* Hover pause is now handled in JS for consistency */
}

@keyframes h-marquee {
    /* Animation removed in favor of JS scrolling for button compatibility */
}

.h-scroll-card {
    width: 350px;
    max-width: 85vw;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.h-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--h-primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-slider-btn:hover {
    background: var(--h-primary);
    color: white;
}

.h-slider-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.h-slider-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.3);
}

.h-slider-btn.prev {
    left: 0;
}

.h-slider-btn.next {
    right: 0;
}


/* Testimonials refinement */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.testimonial-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--h-primary);
}

@media (max-width: 1024px) {

    .h-hero-grid,
    .h-deesha-grid,
    .h-about-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }

    .h-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .h-hero-image {
        display: none;
    }

    .h-hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .h-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .h-hero-image img,
    .mentor-img img {
        max-width: 100%;
        height: auto;
    }
}

.h-about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

/* Header Action Controls */
@media (max-width: 768px) {
    /* Footer: single column, all centered */
    .h-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .h-footer {
        padding: 60px 0 40px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-brand img {
        margin: 0 auto 15px;
        display: block;
    }

    .footer-brand p {
        margin: 0 auto;
        text-align: center;
        max-width: 85%;
    }

    .footer-links {
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 35px;
    }

    .footer-links ul, 
    .footer-list {
        padding: 0 !important;
        list-style: none;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer-links li,
    .footer-list li {
        margin-bottom: 15px;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-links h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-contact {
        text-align: center;
    }

    .h-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 !important;
    }

    .h-contact-list li {
        width: 310px; /* Precise width for icon alignment */
        justify-content: flex-start !important;
        padding-left: 0 !important;
        margin: 0 auto 30px;
    }

    .footer-contact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Center footer-contact-row on mobile (hospital footer) */
    .footer-contact-row {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 310px !important; /* Definitive width for icon alignment */
        margin: 0 auto 15px !important;
        text-align: left !important;
    }

    .h-hero-content h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
        text-align: center;
    }

    .h-hero-content p {
        text-align: center;
    }

    .h-store-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin: 25px auto 0 !important;
        width: 100% !important;
    }

    .h-store-card {
        width: 100% !important;
        max-width: 250px !important; /* Perfect size for mobile */
        padding: 10px 15px !important;
        justify-content: center !important; /* Center icon + text inside button */
        display: flex !important;
        margin: 0 auto !important;
    }

    .hero-btns {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .h-hero-stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .h-slider-wrapper {
        padding: 0 10px !important;
    }

    .h-slider-btn {
        display: none;
    }

    .h-marquee-container {
        cursor: grab;
    }

    .h-contact-overlay {
        position: absolute;
        bottom: 10px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        margin-top: 0;
        border-radius: 15px;
        padding: 12px 15px;
    }
    
    .h-overlay-title {
        font-size: 1.1rem;
    }
    
    .h-overlay-desc {
        font-size: 0.9rem;
    }

    .h-contact-overlay:hover {
        transform: translateY(-5px);
    }

    .mentor-card {
        grid-template-columns: 1fr !important;
    }

    .mentor-info {
        padding: 30px 20px;
    }

    .mentor-img {
        min-height: 400px; /* More height on mobile to show image + overlay */
        position: relative;
        overflow: visible;
    }

    .h-deesha-content h2 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .h-deesha-promo {
        border-radius: 25px;
        padding: 35px 15px;
        margin: 20px 0;
    }

    .h-deesha-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .h-modal-container {
        border-radius: 20px;
        max-height: 95vh;
        margin: 10px;
    }

    .h-modal-content {
        padding: 30px 15px;
    }

    .h-modal-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .modal-stat-item {
        padding: 15px 10px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .h-nav-links a.btn {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 10px;
    }

    .h-store-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px; /* Tighter gap for stacked mobile buttons */
    }

    .h-store-card {
        width: 100%;
        max-width: 280px; /* More standard mobile width */
        min-width: unset;
        padding: 16px 20px; /* Balanced padding */
        justify-content: center; /* Center content inside on mobile */
    }

    .h-section-title h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-title h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* Footer bottom bar */
    .footer-bottom {
        text-align: center;
        padding: 20px 15px;
        font-size: 0.85rem;
    }
}

.lang-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--h-bg-soft);
    border-radius: 12px;
    border: 1px solid var(--h-border);
    transition: all 0.3s ease;
    height: 45px;
    padding: 0 10px;
}

.lang-wrapper:hover {
    background: var(--h-bg);
    border-color: var(--h-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lang-wrapper i {
    color: var(--h-primary);
    font-size: 1.1rem;
    margin-right: 10px;
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--h-text);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    outline: none;
    padding-right: 25px !important;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B71C1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    background: var(--h-bg-soft);
    border: 1px solid var(--h-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--h-text);
}

.theme-toggle:hover {
    background: var(--h-bg);
    border-color: var(--h-primary);
    color: var(--h-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Override style.css red hover for hospital theme */
.lang-wrapper:hover {
    border-color: var(--h-primary);
}

.lang-wrapper:hover .lang-select {
    background-color: transparent !important;
    color: var(--h-text) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B71C1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

.lang-wrapper:hover i {
    color: var(--h-primary) !important;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--h-border);
    background: var(--h-bg-soft);
    color: var(--h-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--h-primary);
    color: var(--h-primary);
}

[data-theme="dark"] .h-service-card,
[data-theme="dark"] .mentor-card,
[data-theme="dark"] .mission-card {
    background: var(--h-bg-soft) !important;
}

[data-theme="dark"] .mentor-info {
    background: var(--h-bg-soft) !important;
}

/* Contact Section Card */
.mentor-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--h-bg);
    overflow: hidden;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--h-border);
}

.mentor-info {
    padding: 60px;
    background: var(--h-bg);
}

.h-contact-title {
    color: var(--h-primary);
    margin-bottom: 35px;
    font-size: 2.2rem;
    font-weight: 800;
}

.mentor-img {
    position: relative;
    background: var(--h-bg-soft);
    min-height: 400px;
}

.h-contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    display: block;
}

@media (max-width: 992px) {
    .mentor-card {
        grid-template-columns: 1fr;
    }

    .mentor-info {
        padding: 40px;
        order: 1;
    }

    .mentor-img {
        position: relative;
        min-height: 350px;
        order: 2;
        overflow: hidden;
        border-radius: 20px;
    }
}

/* Contact Image Overlay */
.h-contact-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: max-content;
    max-width: 90%;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.h-contact-overlay:hover {
    transform: translateX(-50%) translateY(-5px);
    background: var(--h-bg);
    border-color: var(--h-primary);
    box-shadow: 0 10px 30px rgba(183, 28, 28, 0.2);
}

.h-overlay-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
}

.h-overlay-icon {
    width: 36px;
    height: 36px;
    background: var(--h-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.h-overlay-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--h-primary);
    font-weight: 800;
}

.h-overlay-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--h-text-light);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .h-contact-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 15px;
    }
}

.h-store-btns {
    display: flex;
    gap: 18px;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.h-store-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 28px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 210px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Premium Shine Effect */
.h-store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.h-store-card:hover::before {
    left: 150%;
}

.h-store-card:hover {
    background: #000;
    border-color: var(--h-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(183, 28, 28, 0.3);
}

.h-store-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transition: opacity 0.5s;
    opacity: 0;
    pointer-events: none;
}

.h-store-card:hover::after {
    opacity: 1;
}

.store-icon {
    width: 40px;
    height: 40px;
    font-size: 2.2rem;
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.store-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-main {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.h-store-card-white {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.h-store-card-white .store-main {
    color: #121212 !important;
}

.h-store-card-white .store-sub {
    color: #666 !important;
}

.h-store-card-white .store-icon {
    color: #121212 !important;
}

.h-store-card-white:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--h-primary) !important;
}

.h-store-status {
    font-size: 0.65rem;
    color: #4db6ac;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 1px;
}

.play-store-card {
    cursor: default;
}

.play-store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.h-mockup-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: 0;
    left: 0;
    z-index: -1;
    filter: blur(40px);
}

/* Modal Styles */
.h-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.h-modal.active {
    display: flex;
}

.h-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: h-fade-in 0.3s ease;
}

.h-modal-container {
    position: relative;
    background: var(--h-bg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: h-modal-slide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--h-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent container itself from scrolling */
}

.h-modal-scroll-area {
    width: 100%;
    overflow-y: auto;
    /* Scroll only the content area */
    flex: 1;
}

.h-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    font-size: 2rem;
    background: white;
    border: 1px solid var(--h-border);
    color: var(--h-text-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    /* High z-index to stay above content */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.h-modal-close:hover {
    color: var(--h-primary);
    transform: rotate(90deg);
}

.h-modal-content {
    padding: 60px;
}

.h-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-logo {
    height: 70px;
    margin-bottom: 20px;
}

.modal-subtitle {
    color: var(--h-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

/* Stats Row */
.h-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.modal-stat-item {
    background: var(--h-bg-soft);
    padding: 25px 15px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--h-border);
    transition: all 0.3s ease;
}

.modal-stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--h-primary);
    background: var(--h-bg);
    box-shadow: 0 15px 30px rgba(183, 28, 28, 0.1);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--h-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--h-text-light);
    font-weight: 600;
}

/* Info Grid */
.h-modal-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.h-info-title {
    font-size: 1.4rem;
    color: var(--h-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-info-title i {
    font-size: 1.2rem;
}

.h-info-main p {
    line-height: 1.7;
    color: var(--h-text-light);
    margin-bottom: 25px;
}

/* Mini Facilities Grid */
.h-facility-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.mini-feat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--h-bg-soft);
    padding: 15px;
    border-radius: 18px;
    border: 1px solid var(--h-border);
}

.mini-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h-primary);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mini-text strong {
    display: block;
    font-size: 1rem;
    color: var(--h-text);
}

.mini-text span {
    font-size: 0.8rem;
    color: var(--h-text-light);
}

/* Footer */
.h-modal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--h-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-cert-labels {
    display: flex;
    gap: 30px;
    color: var(--h-text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.h-cert-labels i {
    color: var(--h-secondary);
    margin-right: 8px;
}

@keyframes h-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes h-modal-slide {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .h-modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .h-modal-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .h-modal-content {
        padding: 40px 20px;
    }

    .h-modal-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 20px;
    }

    .h-cert-labels {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .h-hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 15px;
    }
    
    .stat {
        padding: 15px;
        background: var(--h-bg-soft);
        border-radius: 15px;
        text-align: center;
    }

    .h-deesha-content h2 {
        font-size: 1.8rem;
    }

    .h-store-card {
        min-width: 100%;
    }
}

/* ======================================================
   MOBILE SLIDER FIX — touch-scroll, no page overflow
   ====================================================== */
@media (max-width: 768px) {
    /* Make slider wrapper full-width, remove side padding */
    .h-slider-wrapper {
        padding: 0 !important;
        overflow: hidden;
    }

    /* Make the container scroll horizontally within itself */
    .h-marquee-container {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-bottom: 10px; /* space for scrollbar on Android */
    }

    /* Hide scrollbar visually but keep functionality */
    .h-marquee-container::-webkit-scrollbar {
        height: 4px;
    }
    .h-marquee-container::-webkit-scrollbar-track {
        background: var(--h-bg-soft);
        border-radius: 10px;
    }
    .h-marquee-container::-webkit-scrollbar-thumb {
        background: var(--h-primary);
        border-radius: 10px;
    }

    /* Each card snaps into view */
    .h-scroll-card {
        scroll-snap-align: start;
        width: calc(85vw) !important;
        max-width: calc(85vw) !important;
        flex-shrink: 0;
    }

    /* Keep cards in a row inside the container */
    .h-marquee-content {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 5px 15px 5px 15px;
        width: max-content;
    }
}

/* Hospital Button Overrides */
.btn-primary {
    background: var(--h-primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background: var(--h-accent) !important;
    color: white !important;
}

.btn-secondary {
    border-color: var(--h-primary) !important;
    color: var(--h-primary) !important;
}

.btn-secondary:hover {
    background: var(--h-primary) !important;
    color: white !important;
}

/* =======================================
   DESIGN SYSTEM - Consistent Components
   ======================================= */

/* Fluid section heading - replaces all inline h2 overrides */
.h-section-h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--h-primary);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
}

/* Consistent button sizing */
.btn {
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 28px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 52px;
}

/* Contact section button row */
.contact-btn-row {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: stretch;
}

.contact-btn-full {
    flex: 1;
    border-radius: 15px !important;
    padding: 16px 20px !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

.contact-btn-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px !important;
    padding: 0 !important;
    flex-shrink: 0;
    font-size: 1.2rem !important;
    border: 2px solid var(--h-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .contact-btn-row {
        flex-direction: column;
        gap: 12px;
    }

    .contact-btn-full {
        width: 100%;
        flex: none;
    }

    .contact-btn-icon {
        width: 100%;
        height: 56px;
        font-size: 1rem !important;
    }

    .contact-btn-icon::after {
        content: " Call Now";
    }
}

/* Footer Products section */
.footer-product-grid {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-deesha-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-deesha-link img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-deesha-link span {
    color: #94A3B8;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-deesha-link:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-products .footer-product-grid {
        align-items: center;
    }

    .footer-products {
        text-align: center;
    }

    /* About section centering on mobile */
    .h-about-grid .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left; /* Keep internal text left-aligned */
    }
    
    .footer-contact h4 {
        text-align: center;
        width: 100%;
    }

    .h-about-grid    .footer-contact {
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .h-about-grid .h-hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .h-about-grid .h-hero-content ul li {
        justify-content: center;
    }

    .h-section-h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        text-align: center;
    }

    /* Hero image absolute card - hide on mobile to prevent overflow */
    .h-about-grid .h-hero-image > div[style*="absolute"] {
        display: none;
    }

    .h-about-grid .h-hero-image img {
        border-radius: 20px !important;
        width: 100%;
        max-height: 280px;
        object-fit: cover;
    }

    /* Deesha promo section centering */
    .h-deesha-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .h-deesha-promo .h-store-btns {
        justify-content: center;
        width: 100%;
    }

    /* Store button equality */
    .h-store-card {
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
        min-width: unset;
    }

    /* h-footer contact items center */
    .h-footer .footer-contact > div {
        justify-content: center;
        text-align: left;
    }

    /* Hospital footer bottom bar */
    .footer-bottom {
        text-align: center !important;
        padding: 25px 15px 15px;
    }
}

@media (max-width: 480px) {
    .h-section-h2 {
        font-size: 1.5rem;
    }

    .contact-btn-row {
        margin-top: 25px;
    }

    .h-store-card {
        min-width: 100%;
        max-width: 100%;
    }

    .h-footer {
        padding: 50px 0 30px;
    }

    .h-footer-grid {
        gap: 30px;
    }

    /* Consistent button size on tiny screens */
    .btn {
        padding: 12px 22px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Contact Details Classes */
.h-contact-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.h-contact-label {
    color: var(--h-text);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.h-contact-value {
    font-size: 1.05rem;
    color: var(--h-text-light);
    line-height: 1.4;
}

.helpline-val {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--h-primary) !important;
}

@media (max-width: 480px) {
    .h-contact-list li {
        gap: 15px !important;
        padding-left: 10px;
    }
    
    .h-contact-label {
        font-size: 1rem;
    }
    
    .h-contact-value {
        font-size: 0.95rem;
    }
    
    .helpline-val {
        font-size: 1.1rem !important;
    }
}

.footer-links.footer-products {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-product-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.footer-deesha-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #94A3B8;
    transition: color 0.3s;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-deesha-link img {
    height: 36px;
    width: auto;
}

.footer-deesha-link:hover {
    color: white;
}

.text-white { color: white !important; }
.text-gray-light { color: #94A3B8 !important; }

.footer-contact-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(183, 28, 28, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5252;
    flex-shrink: 0;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
