/* Emergency & Trauma Care */

/* ===== Emergency Page Specific Styles ===== */

/* Emergency Header */
.emergency-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #153e77;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.emergency-tag {
    background: #0f3263;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.emergency-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
}


/* Emergency Hero Section */
.emergency-hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* .emergency-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background:
        radial-gradient(circle at 10% 20%, rgba(255, 59, 59, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 59, 59, 0.03) 0%, transparent 40%); */
} */

.emergency-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 59, 0.1);
    color: #0f3263;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.emergency-hero-content h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f3263;
}

.emergency-hero-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.emergency-cta-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0f3263, #1a427a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-content .cta-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cta-number {
    font-size: 28px;
    font-weight: 700;
    color: #0f3263;
    margin-top: 10px;
    line-height: 1;
}

.cta-number:hover{
    color: #0f3263;
}

.cta-content p {
    color: #777;
    margin: 0;
    font-size: 14px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-emergency-call, .btn-emergency-locate {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-emergency-call {
    background: #0f3263;
    color: white;
    border: 2px solid #4a6fff;
}

.btn-emergency-call:hover{
    background-color: #4a6fff;
    color: var(--card-bg);
}

.btn-emergency-locate {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.btn-emergency-locate:hover {
    border-color: #0f3263;
    color: #0f3263;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Tablet Devices (768px - 991px) */
@media (max-width: 991px) {
    .emergency-cta-box {
        padding: 25px;
        border-radius: 18px;
    }

    .cta-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    .cta-number {
        font-size: 80px;
    }

    .btn-emergency-call, .btn-emergency-locate {
        padding: 12px 22px;
    }
}

/* Mobile Devices (576px - 767px) */
@media (max-width: 767px) {
    .emergency-cta-box {
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .cta-main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .cta-number {
        font-size: 26px;
    }

    .cta-content .cta-label {
        font-size: 13px;
    }

    .cta-content p {
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-emergency-call, .btn-emergency-locate {
        padding: 14px 25px;
        justify-content: center;
        width: 100%;
        font-size: 15px;
    }
}

/* Small Mobile Devices (Below 576px) */
@media (max-width: 575px) {
    .emergency-cta-box {
        padding: 18px;
        border-radius: 14px;
        margin: 0 10px;
    }

    .cta-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .cta-number {
        font-size: 24px;
    }

    .cta-content .cta-label {
        font-size: 12px;
    }

    .cta-content p {
        font-size: 12px;
    }

    .btn-emergency-call, .btn-emergency-locate {
        padding: 13px 20px;
        font-size: 14px;
    }
}

/* Extra Small Mobile Devices (Below 400px) */
@media (max-width: 400px) {
    .emergency-cta-box {
        padding: 15px;
    }

    .cta-main {
        gap: 12px;
        margin-bottom: 20px;
    }

    .cta-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .cta-number {
        font-size: 22px;
    }

    .btn-emergency-call, .btn-emergency-locate {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Large Desktop (1200px and above) - Optional for better scaling */
@media (min-width: 1200px) {
    .emergency-cta-box {
        padding: 35px;
    }

    .cta-icon {
        width: 75px;
        height: 75px;
        font-size: 30px;
    }

    .cta-number {
        font-size: 34px;
    }
}

/* Emergency Card Stack - Desktop (unchanged) */
.emergency-card-stack {
    position: relative;
    height: 450px;
}

.card-stack-item {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
}

.card-stack-item:hover {
    transform: translateY(-40px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.card-1 {
    top: 0;
    right: 0;
    width: 280px;
}

.card-2 {
    top: 130px;
    left: 0;
    width: 280px;
}

.card-3 {
    bottom: 0   ;
    right: 40px;
    width: 280px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0f3263, #335688);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
}

.card-content h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.card-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .emergency-card-stack {
        height: 380px;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .card-stack-item {
        padding: 22px;
        width: 260px;
        margin-bottom: 30px;
    }
    
    .card-1 {
        right: 10px;
        margin-bottom: 30px;
    }
    
    .card-2 {
        left: 10px;
        top: 120px;
        margin-bottom: 30px;
    }
    
    .card-3 {
        right: 30px;
        bottom: -60px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .emergency-card-stack {
        height: 360px;
        max-width: 280px;
    }
    
    .card-stack-item {
        padding: 20px;
        width: 240px;
    }
    
    .card-1 {
        right: 20px;
        top: 10px;
        margin-bottom: 30px;
    }
    
    .card-2 {
        left: 20px;
        top: 110px;
        margin-bottom: 30px;
    }
    
    .card-3 {
        right: 20px;
        bottom: -50px;
        margin-bottom: 30px;
    }
    
    /* Mobile hover effect - less movement */
    .card-stack-item:hover {
        transform: translateY(-30px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
}
/* mobile se */
@media (max-width: 576px) {
    .emergency-card-stack {
        height: 340px;
        /* max-width: 260px;
        margin: 0 auto 40px; */
        margin-top: 45px;
    }
    
    .card-stack-item {
        padding: 18px;
        width: 220px;
    }
    
    .card-1 {
        right: -10px;
        top: -30px;
    }
    
    .card-2 {
        left: -20px;
        top: 70px;
        margin-bottom: 30px;
    }
    
    .card-3 {
        right: -10px;
        bottom: -50px;
        margin-bottom: 50px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .card-content h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .card-content p {
        font-size: 13px;
    }
    
    /* Reduce hover movement for mobile */
    .card-stack-item:hover {
        transform: translateY(-25px);
    }
}

@media (max-width: 400px) {
    .emergency-card-stack {
        height: 320px;
        max-width: 240px;
    }
    
    .card-stack-item {
        padding: 16px;
        width: 200px;
    }
    
    .card-1 {
        right: -20px;
        
    }
    
    .card-2 {
        left: -20px;
        top: 70px;
    }
    
    .card-3 {
        right: -20px;
        bottom: -55px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .card-content h4 {
        font-size: 17px;
    }
    
    .card-content p {
        font-size: 12.5px;
    }
    
    .card-stack-item:hover {
        transform: translateY(-20px);
    }
}

/* Touch Device Support */
@media (hover: none) and (pointer: coarse) {
    /* Active state for touch devices (tap effect) */
    .card-stack-item:active {
        transform: translateY(-25px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Disable hover effects on touch devices */
    .card-stack-item:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}



/* Services Grid */
.emergency-services-section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: rgba(74, 111, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #0f3263;
}

.section-header p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* NEW: Service Header Container */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

/* Updated Icon Box */
.service-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #4a6fff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(74, 111, 255, 0.3);
}

/* Updated Service Number */
.service-number {
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
    line-height: 1.3;
    padding-right: 20px;
    text-align: left;
}

/* Text Justify */
.text-justify {
    text-align: justify;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Ensure all paragraphs in service cards are justified */
.service-card p {
    text-align: center;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Responsive Styles for Service Cards */
@media (max-width: 1199px) {
    .service-card h3 {
        font-size: 20px;
    }

    .service-icon-box {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .service-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .emergency-services-section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .service-card {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .emergency-services-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .service-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .service-card {
        padding: 20px;
    }

    .service-header {
        margin-bottom: 15px;
    }
}



/* Horizontal Scroller Wrapper */
.horizontal-scroller-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 50px;
}

/* Scroller Controls */
.scroller-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 10px;
}

.scroll-btn {
    width: 44px;
    height: 44px;
    background: rgba(74, 111, 255, 0.1);
    border: 1px solid rgba(74, 111, 255, 0.3);
    border-radius: 50%;
    color: #4a6fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-btn:hover {
    background: #4a6fff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 111, 255, 0.4);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: auto;
    transform: none !important;
}

.scroll-indicator {
    flex: 1;
    max-width: 200px;
    margin: 0 15px;
}

.indicator-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(33, 3, 3, 0.171);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4a6fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(74, 111, 255, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.scroller-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px 5px;
    will-change: transform; /* Optimize for mobile */
}

/* Feature Cards - Perfect Sizing for Hospital Website */
.feature-card {
    flex: 0 0 360px;
    background: linear-gradient(#0f3263, #335688);
    border-radius: 12px;
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 200px;
    box-sizing: border-box;
    touch-action: pan-y; /* Allow vertical scrolling within card on mobile */
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: #4a6fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a6fff, #6c8cff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    transition: all 0.3s ease;
    font-family: 'Epilogue', sans-serif;
}

.feature-card:hover .card-number {
    color: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0f3263, #335688);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(74, 111, 255, 0.3);
}

.card-content {
    flex: 1;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 0px;
    color: white;
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Epilogue', sans-serif;
}

.card-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-tag {
    display: inline-block;
    background: rgba(74, 111, 255, 0.15);
    color: #8da4ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.feature-card:hover .card-tag {
    background: #4a6fff;
    color: white;
}

/* Scroll Hint */
.scroll-hint {
    text-align: center;
    margin-top: 25px;
    color: gray;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}

.scroll-hint i {
    color: #4a6fff;
    font-size: 14px;
    animation: bounceHorizontal 2s infinite;
}

@keyframes bounceHorizontal {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .horizontal-scroller-wrapper {
        max-width: 960px;
    }

    .feature-card {
        flex: 0 0 340px;
        height: 190px;
        padding: 22px 18px;
    }

    .card-content h3 {
        font-size: 17px;
    }

    .card-content p {
        font-size: 13.5px;
    }
    
    /* Enable touch scrolling on tablet */
    .horizontal-scroll-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        cursor: grab;
    }
    
    .horizontal-scroll-container:active {
        cursor: grabbing;
    }
    
    .scroller-track {
        transition: none; /* Disable JS transition for native scrolling */
    }
    
    .feature-card {
        scroll-snap-align: center;
    }
}

/* Medium Tablet (576px - 991px) */
@media (max-width: 991px) {
    .horizontal-scroller-wrapper {
        max-width: 720px;
        padding: 0 10px;
    }

    .feature-card {
        flex: 0 0 320px;
        height: 180px;
        padding: 20px 16px;
    }

    .scroller-controls {
        margin-bottom: 25px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        display: none; /* Hide buttons on mobile for native scrolling */
    }

    .card-number {
        font-size: 28px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 13px;
    }
    
    /* Enhanced mobile scrolling */
    .horizontal-scroll-container {
        padding: 0 5px;
    }
    
    .scroller-track {
        gap: 15px;
        padding: 10px 0;
    }
    
    .scroll-indicator {
        display: flex;
        justify-content: center;
        margin: 20px auto 0;
        max-width: 100%;
    }
}

/* Mobile (Below 768px) */
@media (max-width: 767px) {
    .horizontal-scroller-wrapper {
        max-width: 540px;
        padding: 0 15px;
    }

    .feature-card {
        flex: 0 0 300px;
        height: 170px;
        padding: 18px 15px;
    }

    .scroller-controls {
        padding: 0;
        margin-bottom: 20px;
    }

    .scroll-btn {
        display: none; /* Completely hide buttons on mobile */
    }

    .scroll-indicator {
        margin: 15px auto 0;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .card-content h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .card-content p {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .card-number {
        font-size: 26px;
        top: 12px;
        right: 12px;
    }

    .scroll-hint {
        font-size: 12px;
        margin-top: 15px;
    }
    
    /* Mobile scroll improvements */
    .horizontal-scroll-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .horizontal-scroll-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .scroller-track {
        gap: 12px;
        padding: 5px 15px;
    }
    
    .feature-card {
        flex: 0 0 calc(85vw - 30px);
        scroll-snap-align: start;
    }
    
    /* Active card highlight on mobile */
    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
}

/* Small Mobile (Below 576px) */
@media (max-width: 575px) {
    .horizontal-scroller-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .feature-card {
        flex: 0 0 calc(90vw - 20px);
        height: 160px;
        padding: 16px 14px;
    }

    .scroller-controls {
        margin-bottom: 15px;
    }

    .card-content h3 {
        font-size: 14px;
    }

    .card-content p {
        font-size: 12px;
    }

    .card-tag {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    /* Mobile scroll enhancements */
    .scroller-track {
        gap: 10px;
        padding: 5px 10px;
    }
    
    .feature-card {
        flex: 0 0 calc(85vw - 20px);
    }
    
    /* Touch feedback for mobile */
    .feature-card {
        -webkit-tap-highlight-color: rgba(74, 111, 255, 0.2);
    }
}

/* Extra Small Mobile (Below 400px) */
@media (max-width: 400px) {
    .feature-card {
        flex: 0 0 calc(90vw - 15px);
        height: 150px;
        padding: 14px 12px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .card-content h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .card-content p {
        font-size: 11.5px;
        line-height: 1.3;
    }
    
    .card-number {
        font-size: 24px;
    }
    
    .scroller-track {
        gap: 8px;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .horizontal-scroller-wrapper {
        max-width: 1140px;
    }
    
    /* Smooth scrolling for desktop with buttons */
    .horizontal-scroll-container {
        overflow: hidden; /* Hide scrollbar on desktop */
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        background: linear-gradient(#0f3263, #2a4a7a);
    }
    
    .feature-card:hover::before {
        transform: scaleX(0);
    }
    
    .feature-card:hover .card-icon {
        transform: none;
        box-shadow: none;
    }
    
    .feature-card:hover .card-number {
        transform: none;
        color: rgba(255, 255, 255, 0.07);
    }
    
    .feature-card:hover .card-tag {
        background: rgba(74, 111, 255, 0.15);
        color: #8da4ff;
    }
    
    /* Enable native scrolling on touch devices */
    .horizontal-scroll-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .scroller-track {
        transition: none;
    }
}





/* Reviews */
/* Patient Testimonials Section */
.patient-testimonials-section {
    padding: 80px 0;
    background: #f8f9ff;
}

.section-header .section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Testimonials Grid Container */
.testimonials-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stats Sidebar */
.testimonials-stats-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.stats-summary-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.stats-header .stats-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    font-weight: 600;
    text-align: center;
}

.overall-rating-box {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.rating-score {
    font-size: 48px;
    font-weight: 700;
    color: #4a6fff;
    line-height: 1;
    margin-bottom: 10px;
}

.rating-icons {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.rating-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* Stats Items List */
.stats-items-list {
    margin-bottom: 30px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(74, 111, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6fff;
    font-size: 16px;
    flex-shrink: 0;
}

.stats-content {
    flex: 1;
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    margin-bottom: 4px;
}

.stats-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* CTA Wrapper */
.cta-wrapper {
    text-align: center;
}

.btn-feedback {
    padding: 12px 25px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4a6fff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-feedback:hover {
    background: #3a5fef;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 111, 255, 0.3);
}

.btn-feedback i {
    font-size: 16px;
}

/* Testimonials Scroller Column */
.testimonials-scroller-column {
    position: relative;
}

.vertical-testimonials-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    height: 600px;
    display: flex;
    flex-direction: column;
}

/* Scroller Controls Panel */
.scroller-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.counter-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', monospace;
}

.current-slide-number {
    font-size: 24px;
    font-weight: 700;
    color: #4a6fff;
}

.counter-divider {
    font-size: 18px;
    color: #999;
}

.total-slides-count {
    font-size: 18px;
    color: #666;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: #f8f9ff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #4a6fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #4a6fff;
    color: white;
    border-color: #4a6fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 255, 0.2);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Vertical Scroller Wrapper */
.vertical-scroller-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-right: 10px;
}

/* Testimonial Item */
.testimonial-item {
    background: #fcfcff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.testimonial-item:hover {
    background: white;
    border-color: #4a6fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.testimonial-item.active {
    background: white;
    border-color: #4a6fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    margin-bottom: 15px;
}

.rating-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.star-rating {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}

.testimonial-date {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.testimonial-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.testimonial-body {
    margin-bottom: 15px;
}

.testimonial-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.author-details .author-name {
    font-size: 15px;
    margin-bottom: 3px;
    color: #222;
    font-weight: 600;
}

.author-details .author-relation {
    font-size: 12px;
    color: #666;
}

.category-tags .tag-cardiac {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.category-tags .tag-trauma {
    background: rgba(74, 111, 255, 0.1);
    color: #4a6fff;
    border: 1px solid rgba(74, 111, 255, 0.2);
}

.category-tags .tag-pediatric {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.category-tags .tag-icu {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.category-tags .tag-ambulance {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.category-tags .tag-diagnostic {
    background: rgba(253, 203, 110, 0.1);
    color: #fd8c04;
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.category-tags span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Auto-scroll Indicator */
.auto-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.indicator-icon {
    width: 36px;
    height: 36px;
    background: rgba(74, 111, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6fff;
    font-size: 14px;
    animation: spinAnimation 2s linear infinite;
}

@keyframes spinAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.indicator-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indicator-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.progress-indicator {
    display: flex;
    gap: 6px;
}

.progress-dot {
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #4a6fff;
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .testimonials-grid-container {
        max-width: 960px;
        gap: 25px;
    }

    .vertical-testimonials-container {
        height: 550px;
    }
}

@media (max-width: 991px) {
    .patient-testimonials-section {
        padding: 70px 0;
    }

    .testimonials-grid-container {
        grid-template-columns: 1fr;
        max-width: 720px;
        gap: 30px;
    }

    .testimonials-stats-sidebar {
        position: static;
    }

    .stats-summary-card {
        padding: 25px;
    }

    .vertical-testimonials-container {
        height: 500px;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .patient-testimonials-section {
        padding: 60px 0;
    }

    .section-header .section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .testimonials-grid-container {
        max-width: 540px;
    }

    .stats-summary-card {
        padding: 20px;
    }

    .rating-score {
        font-size: 42px;
    }

    .stats-value {
        font-size: 22px;
    }

    .vertical-testimonials-container {
        height: 450px;
        padding: 18px;
    }

    .testimonial-item {
        padding: 18px;
    }

    .testimonial-title {
        font-size: 15px;
    }

    .testimonial-body p {
        font-size: 13.5px;
        -webkit-line-clamp: 4;
    }

    .scroller-controls-panel {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .current-slide-number {
        font-size: 22px;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .patient-testimonials-section {
        padding: 50px 0;
    }

    .testimonials-grid-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .stats-summary-card {
        padding: 18px;
    }

    .rating-score {
        font-size: 38px;
    }

    .stats-item {
        padding: 12px 0;
    }

    .stats-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stats-value {
        font-size: 20px;
    }

    .vertical-testimonials-container {
        height: 400px;
        padding: 15px;
    }

    .testimonial-item {
        padding: 16px;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .category-tags {
        align-self: flex-start;
    }

    .scroller-controls-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .navigation-buttons {
        align-self: flex-end;
    }

    .auto-scroll-indicator {
        margin-top: 15px;
        padding-top: 15px;
    }
}





/* FAQ Section */
/* CSS Variables */
:root {
    --primary-red: #e63946;
    --dark-blue: #1d3557;
    --section-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --border-color: #334155;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #153e77;
    color: var(--text-light);
}



/* FAQ Section Container */
.faq-section {
    padding: 100px 20px;
    /* background-color: var(--section-bg); */
    position: relative;
}

.container-lg {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.section-intro {
    margin-bottom: 70px;
    color: #0f172a !important;
}

.section-label {
    display: inline-block;
    background: #0f3263;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-heading {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-light);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Layout */
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* margin-bottom: 80px; */
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ Cards */
.faq-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.faq-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-heavy);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    padding: 26px 28px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question[aria-expanded="true"] {
    background: #0f3263;
    border-bottom: 1px solid #1a1a1a;
}

.question-number {
    font-size: 16px;
    font-weight: 700;
    color: white;
    min-width: 35px;
}

.question-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.toggle-icon {
    color: white;
    font-size: 14px;
    transition: transform var(--transition-speed) ease;
    min-width: 20px;
}

.faq-question[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
    color: var(--text-light);
}

.faq-question[aria-expanded="true"] .question-text {
    color: ;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer.expanded {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 28px 28px;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}


/* Responsive Design */

/* Tablet Devices */
@media (max-width: 992px) {
    .faq-section {
        padding: 80px 20px;
    }

    .section-heading {
        font-size: 36px;
    }

    .faq-container {
        gap: 25px;
    }

    .faq-question {
        padding: 22px 24px;
    }

    .question-text {
        font-size: 17px;
    }

    .emergency-contact-box {
        padding: 30px;
    }

    .contact-icon-container {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .contact-details h3 {
        font-size: 22px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section-intro {
        margin-bottom: 50px;
    }

    .section-heading {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .faq-question {
        padding: 20px 22px;
        gap: 15px;
    }

    .question-text {
        font-size: 16px;
    }

    .question-number {
        min-width: 30px;
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 22px 22px;
        font-size: 15px;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .emergency-call-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .faq-section {
        padding: 60px 15px;
    }

    .section-label {
        font-size: 12px;
        padding: 8px 18px;
    }

    .section-heading {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    .faq-question {
        padding: 18px 20px;
        gap: 12px;
    }

    .question-text {
        font-size: 15px;
    }

    .question-number {
        min-width: 28px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    .emergency-contact-box {
        padding: 25px 20px;
        margin-top: 30px;
    }

    .contact-icon-container {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .contact-details h3 {
        font-size: 20px;
    }

    .contact-details p {
        font-size: 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
    .faq-question {
        padding: 16px 18px;
    }

    .question-text {
        font-size: 14px;
    }

    .toggle-icon {
        font-size: 12px;
    }

    .emergency-call-btn {
        font-size: 15px;
        padding: 14px 25px;
    }

    .section-heading {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .faq-section {
        padding: 50px 0;
        background: white;
        color: black;
    }

    .faq-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }

    .faq-question[aria-expanded="true"] {
        background: #f5f5f5;
    }

    .faq-answer {
        max-height: none !important;
        display: block !important;
    }

    .emergency-contact-box {
        display: none;
    }
}