:root {
    --primary-color: #007bff;
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

.hospital-shorts-section {
    /* background: var(--bg-dark); */
    padding: 40px 20px;
    border-radius: 20px;
    color: rgb(7, 7, 7);
    font-family: 'Segoe UI', sans-serif;
}

.shorts-header {
    margin-bottom: 25px;
    text-align: center;
}

.shorts-header h2 {
    font-size: 3rem;
    margin: 0;
}

.shorts-header p {
    font-size: 1.2rem;
    margin: 0;
}

.highlight {
    color: #E579A4;
}

.shorts-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    height: 600px;
    max-width: 100%;
    padding: 30px 40px;
}

/* Main Player Styling */
.main-display {
    width: 90%;
    background: #00000079;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
}

.video-wrapper {
    width: 100%;
    min-width: 337px;
    /* Maintains Shorts 9:16 Ratio */
    height: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* Sidebar Styling */
.shorts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    margin-left: -5em;
}

/* Custom Scrollbar */
.shorts-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shorts-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    margin-left: 10px;
}

/* Card Styling */
.short-card {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    padding: 10px;
    padding-top: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.short-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.short-card.active {
    border-color: var(--primary-color);
    background: #e579a444;
}

.thumb-box {
    position: relative;
    width: 100px;
    height: 150px;
    flex-shrink: 0;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 40%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.short-card:hover .play-overlay {
    display: flex;
}

.short-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.short-info span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Responsive View */
@media (max-width: 992px) {
    .shorts-header h2 {
        font-size: 2.4em;
    }

    .shorts-container {
        overflow: hidden;
        grid-template-columns: 1fr;
        height: 700px;
    }

    .shorts-sidebar {
        /* margin: 0 auto; */
        margin-left: 0;
        height: 400px;
        margin-left: -2.2em;
        /* width: 380px !important; */
    }

    .main-display {
        /* margin-left: -2em; */
        /* width: 380px !important; */
        height: 500px;
        margin-bottom: 2em;
    }
}

@media (max-width: 763px) {
    .shorts-container {
        /* grid-template-columns: 1fr; */
        /* width: 100% !important; */
        height: 100% !important;
        overflow: hidden;
    }

    .shorts-container .shorts-sidebar {
        width: 87vw !important;
    }

    .shorts-container .main-display {
        height: 60vh !important;
        width: 90vw !important;
        margin-left: -2.5em;
    }

    .shorts-container .main-display {
        height: 80vh !important;
        width: 90vw !important;
        margin-left: -2.5em;
    }
}

/* Marquee Banner Styles */
.marquee-banner {
    width: 100%;
    background-color: #3b3c8b;
    /* Dark background */
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

.marquee-slide {
    /* Important: Width auto allows text to be different lengths */
    width: auto;
    padding: 0 40px;
    /* Gap between text items */
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.marquee-slide strong{
    color: white !important;
}

/* CRITICAL: This makes the animation continuous linear instead of jerky */
.marquee-banner .swiper-wrapper {
    transition-timing-function: linear;
}



.fab-container {
    position: fixed;
    bottom: 15%;
    right: 1.5rem;
    z-index: 9999;
    /* High z-index to stay on top */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-family: sans-serif;
}

/* The Round Button */
.fab-button {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    outline: none;
}

.fab-button:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

.fab-icon {
    font-size: 2rem;
    line-height: 1;
}

/* The Popup Card */
.popup-card {
    display: none;
    /* Hidden by default */
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 5px solid#dc2626;
    width: 18rem;
    margin-bottom: 0.5rem;
    transform-origin: bottom right;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.popup-title {
    font-weight: 700;
    color: #b91c1c;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
}

.number-display {
    background-color: #fef2f2;
    padding: 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
    margin: 0.75rem 0;
}

.number-text {
    font-family: monospace;
    font-weight: 700;
    color: #991b1b;
    font-size: 1.25rem;
}

.call-btn {
    display: block;
    text-align: center;
    background-color: #dc2626;
    color: white;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.call-btn:hover {
    background-color: #b91c1c;
}

/* Animations */
.animate-slide-up {
    animation: slideInUp 0.3s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-ring {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* --- Load More Functionality --- */
.mix.item-hidden {
    display: none !important;
}

#loadMoreBtn {
    display: none;
    /* Hidden by default until JS calculates items */
    cursor: pointer;
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    /* visibility: hidden; */
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.popup-overlay.live {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Popup content */
.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 92%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s;
    position: relative;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-content h1 {
    margin-top: 0;
    color: #2B2C77;
    font-size: 24px;
    padding-right: 30px;
}

.popup-content p {
    color: #e579a4af;
    margin-bottom: 10px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 44px !important;
    color: #888;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #2B2C77;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: currentColor;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Form elements */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2B2C77;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E579A4;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    padding: 10px 20px;
    /* margin-top: -2em; */
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-group .submit-btn {
    background-color: #ee78a7;
    color: white;
}

.button-group .submit-btn:hover {
    background-color: #e579a4b0;
}

.button-group .remind-btn {
    background-color: #2B2C77;
    color: white;
}

.button-group .remind-btn:hover {
    background-color: #2B2C77b0;
}

/* Divider */
/* .divider {
            height: 1px;
            background-color: #eee;
            margin: 20px 0;
        } */
/* @media (max-width: 950px){
    .form-popup{
       
       
        width: 350px;
        height: 630px;
    }
} */

.our-faqs {
    padding: 100px 0;
}

.our-faqs-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    height: 100%;
    padding: 20px 0;
}

.faq-contact-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--divider-color);
    padding-top: 30px;
}

.faq-contact-box .icon-box {
    position: relative;
    background: var(--accent-color);
    border-radius: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.faq-contact-box .icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--primary-color);
    width: 100%;
    height: 100%;
    transform: rotate(180deg) scale(0);
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.faq-contact-box:hover .icon-box::before {
    transform: rotate(0) scale(1);
}

.faq-contact-box .icon-box img {
    position: relative;
    width: 100%;
    max-width: 30px;
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.faq-contact-box:hover .icon-box img {
    filter: brightness(0) invert(1);
}

.faq-contact-box-content {
    width: calc(100% - 70px)
}

.faq-contact-box-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.faq-contact-box-content p {
    margin-bottom: 0;
}

.faq-contact-box-content p a {
    color: inherit;
    transition: all 0.4s ease-in-out;
}

.faq-contact-box-content p a:hover {
    color: var(--accent-color);
}

.faq-accordion {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 40px;
}

.faq-accordion .accordion-item {
    position: relative;
    background: #FFFFFF;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-header .accordion-button {
    font-family: var(--accent-font);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4em;
    background: transparent;
    color: black;
    padding: 20px 54px 20px 30px;
}

.faq-accordion .accordion-item .accordion-button::after,
.faq-accordion .accordion-item .accordion-button.collapsed::after {
    content: '\2b';
    font-family: 'FontAwesome';
    position: absolute;
    right: 30px;
    top: 50%;
    font-size: 20px;
    font-weight: 400;
    transform: translateY(-50%);
    color: var(--accent-color);
    transition: all 0.4s ease-in-out;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: '\f068';
    color: #2B2C77;
}

.faq-accordion .accordion-item .accordion-body {
    border-top: 1px solid var(--divider-color);
    background: transparent;
    padding: 0px 20px 30px;
}

.faq-accordion .accordion-item .accordion-body p {
    margin: 0;
}
/* Overlay */
.appointment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal Box */
.appointment-modal {
    background: #fff;
    width: 90%;
    max-width: 520px;
    padding: 30px;
    border-radius: 14px;
    position: relative;
    animation: slideUp 0.35s ease;
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
}

/* Form */
.appointment-modal input,
.appointment-modal textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.form-row {
    margin-bottom: 15px;
}

.modal-title {
    margin-bottom: 20px;
    font-weight: 600;
}
