/*
Theme Name: Doctors BD Directory
Theme URI: https://example.com/doctors-bd-theme
Author: Antigravity
Author URI: https://example.com
Description: A modern directory theme for Doctors BD.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doctors-bd
Tags: directory, medical, modern
*/

/* Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
}

/* Reset & Scaffolding */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0a58ca;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--dark-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--light-color);
    opacity: 0.8;
}

.site-footer a:hover {
    opacity: 1;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

/* Cards (as per guide) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
}

.btn:hover {
    background: #0a58ca;
    color: #fff;
}

/* --- Doctor Theme Additions --- */

/* Search Tabs */
.search-tabs .tab-btn {
    transition: all 0.2s ease;
}
.search-tabs .tab-btn:hover {
    background: rgba(255,255,255,0.2) !important;
}
.search-tabs .tab-btn.active:hover {
    background: #fff !important;
}

/* Specialty Cards */
.specialty-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

/* Doctor Card */
.doctor-card .card-image img {
    transition: transform 0.3s ease;
}
.doctor-card:hover .card-image img {
    transform: scale(1.05);
}
.doctor-card .btn-sm {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #0d6efd;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.doctor-card .btn-sm:hover {
    background: #0d6efd;
    color: white;
}

/* Single Doctor Profile */
.single-doctor-profile .doctor-header {
    background: #fff;
    border: 1px solid #eee;
}
.check-list li {
    font-size: 0.95rem;
    color: #555;
}
.timeline li {
    position: relative;
    padding-bottom: 1rem;
}
.timeline li:last-child {
    border-left-color: transparent;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 50%;
}
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doctor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .doctor-body-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem !important;
    }
    .search-container form {
        flex-direction: column;
    }
    .doctor-card-row {
        flex-direction: column;
        text-align: center;
    }
    .doctor-card-row .card-image {
        width: 100%;
        height: 250px;
    }
    .doctor-card-row .card-action {
        border-left: none;
        border-top: 1px solid #eee;
        flex-direction: row;
    }
}

