/* ================= DEPARTMENT PAGE ================= */

.dept-page {
    padding: 60px 0;
    background: #f8f9fb;
}

/* LEFT CONTENT */
.dept-image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 25px;
}

.dept-title {
    font-size: 36px;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
}

.dept-intro {
    color: #3f99c6cc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.dept-description {
    color: #555;
    line-height: 1.9;
    font-size: 15px;
}

/* RIGHT SIDEBAR */
.dept-sidebar {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.dept-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept-sidebar-list li {
    border-bottom: 1px solid #f1f1f1;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.5s ease forwards;
}

.dept-sidebar-list li:last-child {
    border-bottom: none;
}

.dept-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Arrow icon */
.dept-sidebar-list i {
    color: #3f99c6cc;
    font-size: 12px;
}

/* STATUS DOT */
/* DOT BASE */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* 🟢 ACTIVE → BLINKING */
.active-dot {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40,167,69,0.8);
    animation: blinkGreen 1s infinite;
}

/* 🔴 INACTIVE → STABLE */
.inactive-dot {
    background: #dc3545;
    box-shadow: 0 0 6px rgba(220,53,69,0.6);
}

/* Hover */
.dept-sidebar-list li:hover a {
    background: #f6f9ff;
    padding-left: 26px;
}

/* ACTIVE SELECTED ITEM */
.dept-sidebar-list li.active a {
    background: linear-gradient(135deg, #3f99c6cc, #2c7fa5);
    color: #fff;
}

.dept-sidebar-list li.active i {
    color: #fff;
}

/* animation */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Push dot to RIGHT */
.dept-name {
    flex: 1;
}







/* BLINK ANIMATION */
@keyframes blinkGreen {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.3; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* ACTIVE SELECTED ITEM */
.dept-sidebar-list li.active a {
    background: linear-gradient(135deg, #3f99c6cc, #2c7fa5);
    color: #fff;
}

/* Make dot visible on active bg */
.dept-sidebar-list li.active .status-dot {
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* RTL */
html[dir="rtl"] .dept-sidebar-list a {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dept-sidebar-list li:hover a {
    padding-left: 20px;
    padding-right: 26px;
}

/* ================= CLOCK ICON ANIMATION ================= */
.dept-timing-box{
    background:#202125;

}
/* ================= TIMING BOX TEXT COLOR ================= */

.dept-timing-box,
.dept-timing-box * {
    color: #ffffff;
    padding-top: 7px;
    padding-bottom: 10px;
}

/* time value slightly highlighted (optional) */
.dept-timing-list strong {
    color: #ffffff;
    font-weight: 600;
}

/* keep borders soft */
.dept-timing-list li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}


.clock-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(212, 123, 7, 0.15);
    align-items: center;
    justify-content: center;
    position: relative;
}

.clock-icon i {
    color: #3f99c6cc;
    font-size: 16px;
    animation: clockTick 1.2s infinite steps(1);
}

/* pulse ring */
.clock-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(77,163,255,0.35);
    animation: clockPulse 1.8s infinite;
}

/* tick animation */
@keyframes clockTick {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* pulse animation */
@keyframes clockPulse {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* RTL FIX */
html[dir="rtl"] .clock-icon {
    margin-right: 0;
    margin-left: 10px;
}
.dept-timing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



/* ================= FINAL ACCORDION CSS ================= */

.dept-category {
    border-bottom: 1px solid #eaeaea;
}

.dept-category-header {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-right: 20px;
    padding-left: 20px;
    background: #56a3c8b8;
}

.dept-category-header i {
    color: #fff;
    transition: transform 0.3s ease;
}

/* BODY */
.dept-category-body {
    display: none;
    padding: 10px 0 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #000000;
    background: #fff;
    padding-left: 10px;
}

/* ACTIVE */
.dept-category.active .dept-category-body {
    display: block;
}

.dept-category.active .dept-category-header i {
    transform: rotate(180deg);
}

/* ================= DOCTOR SLIDER ================= */

.dept-doctors-slider {
    background: #ffffff;
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
     width: 100%;
    overflow: hidden;
}

.dept-doctors-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
}

.dept-doctors-title i {
    color: #3f99c6cc;
}

/* ===== Slider ===== */
.doctor-slider {
    display: flex;
    transition: transform 0.6s ease;
}


.doctor-slider::-webkit-scrollbar {
    height: 6px;
}
.doctor-slider::-webkit-scrollbar-thumb {
    background: #3f99c6cc;
    border-radius: 10px;
}

/* ===== One card per view ===== */
.doctor-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    background: #f7fbfe;
    border-radius: 6px;
    text-align: center;
    padding: 15px;
}


.doctor-card:hover {
    transform: translateY(-6px);
}

/* Image */
.doctor-img img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
}
/* Info */
.doctor-info h5 {
    font-size: 16px;
    font-weight: 700;
}


.doctor-info span {
    font-size: 14px;
    color: #3f99c6cc;
}
/* ===== DOTS ===== */
.doctor-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.doctor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfdce6;
    cursor: pointer;
    transition: 0.3s;
}

.doctor-dot.active {
    background: #3f99c6cc;
    width: 24px;
    border-radius: 20px;
}

html[dir="rtl"] .doctor-slider {
    flex-direction: row-reverse;
}

/* ===== Visit Doctor Button ===== */
.btn-doctor {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3f99c6cc, #2f86b0);
    border-radius: 30px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(63,153,198,0.25);
}

/* Hover */
.btn-doctor:hover {
    background: linear-gradient(135deg, #2f86b0, #3f99c6cc);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(63,153,198,0.35);
    color: #ffffff;
}

/* Active */
.btn-doctor:active {
    transform: scale(0.96);
}

/* Center button in card */
.doctor-info .btn-doctor {
    margin-left: auto;
    margin-right: auto;
}
