/* Layout Wrapper */
.doctors-directory-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* --- GRID SETTINGS --- */
.doctors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr; 
    }
}

/* --- CARD STYLING --- */
.doctor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doc-portrait-container {
    height: 350px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.doc-img-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.doc-content {
    padding: 20px;
}

.doc-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center; 
}

/* --- ICON IMAGE STYLES (New) --- */
.icon-img {
    display: inline-block;
    vertical-align: middle;
}

/* Green Verified Tick */
.verified-img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

/* Red Location Pin */
.location-img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    /* This filter ensures it stays red even if the image source changes */
    opacity: 0.9; 
}

/* Text */
.doc-specialty {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
}

.doc-address {
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* Button */
.view-profile-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: transparent;
    border: 2px solid #222;
    color: #222;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background-color: #222;
    color: #fff;
}
/* Container Spacing */
.doctors-directory-section-4col {
    padding: 50px 0;
    background-color: #fff; /* White background to differentiate from other section */
}

/* --- 4 COLUMN GRID SETTINGS --- */
.doctors-grid-4 {
    display: grid;
    /* Desktop: 4 Equal Columns */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Slightly tighter gap for 4 items */
    margin: 0 auto;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    /* Tablet: 3 Columns */
    .doctors-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile: 2 Columns (As requested) */
    .doctors-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Smaller gap on mobile */
    }
}

/* --- ADJUSTING IMAGE HEIGHT FOR 4-COL LAYOUT --- */
/* Since cards are narrower, we make images shorter to keep proportion */
.doctors-grid-4 .doc-portrait-container {
    height: 260px; 
}

/* Adjust text size slightly for the compact view */
.doctors-grid-4 .doc-name {
    font-size: 16px; /* Slightly smaller title for compact grid */
}
.doctors-grid-4 .doc-specialty {
    font-size: 13px;
}
.doctors-grid-4 .doc-content {
    padding: 15px; /* Slightly less padding */
}
/* Section Padding and Background */
.diseases-list-section {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* --- GRID LAYOUT (6 Columns) --- */
.diseases-grid {
    display: grid;
    /* This creates exactly 6 columns of equal width */
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px;
    margin: 0 auto;
}

/* --- THE DISEASE BOX --- */
.disease-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Light Grey Background */
    border: 1px solid #eee;
    border-radius: 15px; /* Nice rounded corners */
    padding: 20px 10px;
    text-decoration: none; /* Removes underline from link */
    transition: all 0.3s ease;
    height: 100%; /* Ensures equal height boxes */
}

/* Hover Effect */
.disease-box:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px); /* Lifts up slightly */
    border-color: #007bff; /* Optional: Blue border on hover */
}

/* Icon Style */
.disease-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.disease-box:hover .disease-icon {
    transform: scale(1.1); /* Icon grows slightly on hover */
}

/* Text Style */
.disease-name {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

/* --- RESPONSIVENESS --- */

/* Tablet (iPad): 4 Columns */
@media (max-width: 991px) {
    .diseases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile (Phones): 3 Columns (Tight grid) or 2 Columns (Spacious) */
@media (max-width: 768px) {
    .diseases-grid {
        /* I suggest 3 columns on mobile to keep it compact like apps (Swiggy/Zomato style) */
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px;
    }
    
    .disease-box {
        padding: 15px 5px;
    }
    
    .disease-icon {
        width: 36px; /* Smaller icons for mobile */
        height: 36px;
    }
    
    .disease-name {
        font-size: 12px; /* Smaller text for mobile */
    }
}



/* === MAIN CONTAINER === */
.doctor-profile-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif; /* Or your theme font */
    color: #333;
}

/* === HERO SECTION === */
.doc-hero {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.doc-hero-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Image */
.doc-hero-image-box {
    flex: 0 0 300px; /* Fixed width for image */
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.doc-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Side */
.doc-hero-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}
.profile-verified-icon {
    width: 28px;
    height: 28px;
    margin-left: 10px;
}
.profile-specialty {
    font-size: 18px;
    color: #007bff;
    margin-top: 5px;
    font-weight: 500;
}

/* Stats Row */
.profile-stats-row {
    display: flex;
    gap: 30px;
    margin: 25px 0;
}
.stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.stat-icon { width: 32px; height: 32px; }
.stat-label { font-size: 12px; color: #666; display: block; }
.stat-value { font-size: 16px; font-weight: 700; color: #222; }

/* Buttons */
.profile-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s;
}
.btn-icon { width: 20px; height: 20px; }

.call-btn { background-color: #222; }
.call-btn:hover { background-color: #444; color: white;}

.whatsapp-btn { background-color: #25D366; }
.whatsapp-btn:hover { background-color: #1ebc57; color: white;}

.book-appt-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #007bff;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s;
}
.book-appt-btn:hover { background: #0056b3; color: white;}

/* === CONTENT LAYOUT === */
.doc-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for Main, 1/3 for Sidebar */
    gap: 30px;
}

.content-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    border: 1px solid #eee;
}
.card-title {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #222;
}

/* Tags (Services) */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    background: #e7f3ff;
    color: #007bff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Checklist (Qualifications) */
.check-list { list-style: none; padding: 0; }
.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* === CLINIC BOXES === */
.clinic-box {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #007bff; /* Blue accent line */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.clinic-name { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.clinic-address, .clinic-time {
    font-size: 14px; color: #555; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px;
}
.tiny-icon { width: 16px; height: 16px; opacity: 0.6; }

.clinic-link-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dashed #007bff;
}

/* === CERTIFICATES SLIDER (Horizontal Scroll) === */
.cert-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}
/* Hide scrollbar but keep functionality */
.cert-slider::-webkit-scrollbar { height: 6px; }
.cert-slider::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

.cert-img {
    height: 120px;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0; /* Prevents squishing */
}

/* === REVIEW SECTION === */
.review-score-box { text-align: center; margin-bottom: 20px; background: #fafafa; padding: 15px; border-radius: 8px; }
.score-big { font-size: 36px; font-weight: 800; color: #ffb400; display: block; }
.stars { color: #ffb400; font-size: 18px; margin: 5px 0; }
.review-item { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.review-text { font-style: italic; color: #555; font-size: 14px; }
.reviewer-name { font-weight: 700; font-size: 13px; display: block; text-align: right; margin-top: 5px; }
.write-review-btn {
    width: 100%; padding: 10px; background: transparent; border: 2px solid #222; border-radius: 5px; font-weight: 600; cursor: pointer;
}

/* === RESPONSIVE (Mobile) === */
@media (max-width: 768px) {
    .doc-hero-grid { flex-direction: column; text-align: center; }
    .doc-hero-image-box { width: 100%; height: 300px; }
    .profile-name { justify-content: center; font-size: 26px; }
    .profile-stats-row { justify-content: center; }
    .profile-actions { flex-direction: column; }
    .doc-content-layout { grid-template-columns: 1fr; } /* Stack columns */
}
/* --- Product page Image gap from above if bredcrumb is off --- */
.tp-product-details-thumb-wrapper {
    position: static;
}

/* --- Bulleting issue in blog --- */
.tp-postbox-details-content p, .tp-postbox-details-content ul {
    font-size: 18px;
    line-height: 1.56;
    margin-bottom: 23px;
}
/* --- Hide Post Meta - Author, date and views in blog --- */
.tp-postbox-details-meta.mb-50 {
    display: all;
}
/* --- How Categories are shown in blog detail page  --- */
.tp-postbox-details-category {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;              /* space between buttons */
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    list-style: none !important;
}

/* REMOVE ANY THEME BULLETS / EXTRA BORDERS / SHAPES */
.tp-postbox-details-category,
.tp-postbox-details-category * ,
.tp-postbox-details-category *::before,
.tp-postbox-details-category *::after {
    box-shadow: none !important;
    background-image: none !important;
    border: 0 !important;
    list-style: none !important;
}

/* SIMPLE BUTTON STYLE FOR EACH CATEGORY */
.tp-postbox-details-category a,
.tp-postbox-details-category span,
.tp-postbox-details-category li {
    padding: 4px 14px !important;
    margin: 0 !important;
    background-color: #f3f4f6 !important;  /* light gray */
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
    position: static;
}