body {
    font-family: Arial;
    background: lightblue;
}

nav {
    display: flex;
    justify-content: space-between;
    background: #2d5fa7;
    color: #fff;
    padding: 10px;
}

nav a {
    color: #fff;
    margin: 10px;
    text-decoration: none;
}

button {
    background: orange;
    padding: 10px;
    border: none;
    color: #fff;
}

a {
    text-decoration: none;
    color: #2d5fa7;
    transition: 0.3s;
}

a:hover {
    color: #ff7a2f;
}

a {
    position: relative;
    color: #2d5fa7;
}

a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -2px;
    background: #ff7a2f;
    transition: 0.3s;
}

a:hover::after {
    width: 100%;
}

.btn {
    background: #ff7a2f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    transition: 0.3s;
}

.btn:hover {
    background: #ff5a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    border: 2px solid #ff7a2f;
    color: #ff7a2f;
    background: transparent;
    padding: 10px 20px;
    border-radius: 30px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #ff7a2f;
    color: white;
}
.btn:hover {
    box-shadow: 0 0 15px rgba(255,122,47,0.6);
}

a:hover, .btn:hover {
    transform: scale(1.05);
}
.navbar a {
    color: #333;
    margin: 0 15px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #ff7a2f;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.chat-button {
background: green;
}
.chat-button:hover{
transform:scale(1.15);
}

#slots button {
    margin: 5px;
    padding: 10px;
    border: 1px solid #2d5fa7;
    background: #1a73e8;
    cursor: pointer;
}

#slots button:hover {
    background: #2d5fa7;
    color: white;
}

.logo{
height:100px;
margin-right:10px;
font-size: 0.88em;
}

.center_logo{
height:300px;
margin-right:10px;
font-size: 0.88em;
}

.QR{
height:150px;
margin-right:10px;
font-size: 0.88em;
}

.services-container {
    padding: 60px;
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card h3 {
    color: #2d5fa7;
}
@media(max-width:768px){
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.reviews {
    padding: 60px;
    background: #f7f9fc;
}

.review-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: gold;
    font-size: 18px;
    margin-bottom: 10px;
}

@media(max-width:768px){
    .review-container {
        grid-template-columns: 1fr;
    }
}

.reviews {
    padding: 60px;
    background: #f7f9fc;
    text-align: center;
}

.slider {
    position: relative;
    max-width: 600px;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;   /* 🔥 IMPORTANT FIX */
    box-sizing: border-box;
    transition: transform 0.5s ease;
}

.stars {
    color: gold;
    margin-bottom: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff7a2f;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 0; }
.next { right: 0; }

.dots {
    margin-top: 15px;
}

.dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: gray;
    margin: 5px;
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: #ff7a2f;
}

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#loader img {
    width: 300px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #ff7a2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#loader p {
    color: #2d5fa7;
    animation: fade 1.5s infinite;
}

@keyframes fade {
    0%,100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.certifications {
    padding: 60px;
    background: #f7f9fc;
    text-align: center;
}

.certifications h2 {
    color: #2d5fa7;
    margin-bottom: 30px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.cert-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-card h3 {
    color: #ff7a2f;
    margin-bottom: 10px;
}

@media(max-width:768px){
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*.hero {
    padding: 100px 50px;
    background: linear-gradient(rgba(0,60,120,0.8), rgba(0,60,120,0.8)),
                url('https://images.unsplash.com/photo-1588776814546-ec7e2f7c1c4d');
    background-size: cover;
    color: white;
}*/

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    width: 50%;
}

.hero-doctor-img {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.hero-stats div {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.hero-right {
    width: 50%;
}

.hero-video {
    width: 100%;
    border-radius: 10px;
}

/* MOBILE */
@media(max-width:768px){
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-left, .hero-right {
        width: 100%;
    }
}

#confirmBtn:disabled {
    background: gray;
    cursor: not-allowed;
}

.disabled {
    background: gray;
    cursor: not-allowed;
}

#confirmBtn {
    background: #ff7a2f;
    color: white;
    padding: 10px 20px;
    border: none;
}

/* CHAT BUTTON */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: green;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    color:white;
    cursor:pointer;
}

@media(max-width:768px){
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: green;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:50px;
    color:white;
    cursor:pointer;
}
}

.cards {
    display:flex;
    gap:20px;
}
.cards div {
    background:#2d5fa7;
    color:white;
    padding:20px;
    border-radius:10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    height: 80vh; /* fit in screen */
}

.chart-card {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    overflow: auto;
}

canvas {
    width: 100% !important;
    height: 250px !important;  /* 🔥 CONTROL SIZE */
}

/* mobile responsive */
@media(max-width: 900px){
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.btn-download {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
}

.orders-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.orders-content {
    background: white;
    width: 400px;
    max-height: 80%;
    overflow-y: auto;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
}

.order-card {
    border: 1px solid #eee;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
}

.order-status {
    font-weight: bold;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
}

a {
    text-decoration: none;
    color: #2d5fa7;
}

@media(max-width: 768px){
    .dashboard {
        grid-template-columns: 1fr;
    }
}

.track-panel {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
}

.track-content {
    background:white;
    width:400px;
    margin:50px auto;
    padding:20px;
    border-radius:10px;
}

.timeline {
    margin-top:20px;
}

.step {
    padding:10px;
    border-left:4px solid #ccc;
    margin-bottom:10px;
}

.step.active {
    border-color: green;
    font-weight: bold;
}

.booking-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.booking-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 92vw;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.booking-card {
    border: 1px solid #eee;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
}


.order-panel {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.order-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.modal {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.modal-content {
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);

    width: 500px;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

textarea {
    font-size: 14px;
}