/* ==================== HIGH-END ANIMATED DOCTORS STYLING ==================== */
.doctors-page-section {
    padding: 30px;
    background: radial-gradient(circle at top, #f0f7ec 0%, #f7f9f6 70%);
}

.doctors-animated-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1250px;
    margin: 0 auto;
}

.doctor-magic-card {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #dcebd4;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.05);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Glowing background highlight on hover */
.card-glow-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transition: transform 0.6s ease;
    z-index: 0;
}

.doctor-magic-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 25px 50px rgba(46, 125, 50, 0.15);
    border-color: #2e7d32;
}

.doctor-magic-card:hover .card-glow-bg {
    transform: scale(2.5);
}

.doc-top-content, .doc-info-chips, .doc-details-tags, .doc-text-desc, .doc-specialization-section, .doc-interactive-btns {
    position: relative;
    z-index: 1;
}

.doc-top-content {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 25px;
    padding-bottom: 22px;
    border-bottom: 2px dashed #eaf2e8;
}

/* Avatar Pulse Ring Animation */
.doc-avatar-pulse {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
}

.doc-avatar-pulse img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2e7d32;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #4caf50;
    animation: avatarPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    z-index: 1;
}

@keyframes avatarPulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 1; }
}

.doc-heading-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a3022;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.animated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.doc-info-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.chip-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f4f8f2;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid #dceddb;
    transition: transform 0.3s ease, background 0.3s ease;
}

.chip-box:hover {
    transform: translateX(5px);
    background: #eaf2e8;
}

.chip-box i {
    width: 35px;
    height: 35px;
    background: #2e7d32;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.chip-box small {
    display: block;
    font-size: 11px;
    color: #66776b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip-box strong {
    font-size: 14px;
    color: #1a3022;
    font-weight: 700;
}

.doc-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.d-tag {
    background: #ffffff;
    color: #2c3e50;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #dceddb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.d-tag i {
    color: #2e7d32;
}
.doc-text-desc {
    font-size: 14.5px;
    color: #556058;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

/* ==================== SPECIALIZATION SECTION GRID ==================== */
.doc-specialization-section {
    margin: 20px 0 25px 0;
}

.doc-specialization-section > h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1a3022;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px dashed #eaf2e8;
    padding-bottom: 8px;
}

.doc-specialization-section > h3 i {
    color: #2e7d32;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.specialization-grid::-webkit-scrollbar {
    width: 4px;
}
.specialization-grid::-webkit-scrollbar-thumb {
    background: #c8e6c9;
    border-radius: 10px;
}

.spec-item {
    background: #f9fbf8;
    border: 1px solid #e2ebd9;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.08);
}

.spec-item i {
    width: 32px;
    height: 32px;
    background: #eaf2e8;
    color: #2e7d32;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.spec-item h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: #1a3022;
    margin-bottom: 2px;
}

.spec-item p {
    font-size: 12px;
    color: #556058;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.doc-interactive-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid #eaf2e8;
}

.btn-anim-primary {
    flex: 1;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.35s ease;
    white-space: nowrap;
}

.btn-anim-primary:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-3px);
}

.btn-anim-secondary {
    background: #ffffff;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    padding: 10px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.btn-anim-secondary:hover {
    background: #2e7d32;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==================== FULL RESPONSIVE MEDIA QUERIES ==================== */
@media screen and (max-width: 1024px) {
    .doctors-animated-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .specialization-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .doctors-page-section {
        padding: 40px 0 60px 0;
    }
    .doctor-magic-card {
        padding: 20px;
        border-radius: 20px;
    }
    .doc-top-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .doc-heading-wrap h2 {
        font-size: 21px;
    }
    .doc-interactive-btns {
        flex-direction: column;
    }
    .btn-anim-primary, .btn-anim-secondary {
        width: 100%;
    }
    .d-tag {
        font-size: 11.5px;
        padding: 5px 10px;
    }
}