/**
 * File: css/doctors-archive.min.css
 * Styling for the Find Doctors directory listing page
 */

.doctors-archive-main {
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #333333;
}

/* 1. Hero Section */
.doctors-hero {
    position: relative;
    height: 520px;
    margin-top: 120px; /* Push hero down below fixed top bar & navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: kenBurnsSlow 20s ease-in-out infinite alternate;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 26, 53, 0.95) 0%, rgba(11, 34, 64, 0.75) 50%, rgba(6, 26, 53, 0.95) 100%);
    z-index: 2;
}

.doctors-hero-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(6, 26, 53, 0.4);
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 650px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(6, 26, 53, 0.3);
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
    margin-top: 0.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.hero-btn.btn-primary {
    background: #008080;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.25);
    border: 2px solid transparent;
}

.hero-btn.btn-primary:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 102, 0.35);
}

.hero-btn.btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.hero-btn.btn-secondary:hover {
    background: #ffffff;
    color: #0b2240 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Containers */
.doctors-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* 2. Search & Dynamic Filtering Dashboard */
.search-filter-section {
    background: #ffffff;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(11, 34, 64, 0.05);
}

.search-filter-dashboard {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 10px 40px rgba(6, 26, 53, 0.05);
    border: 1px solid rgba(11, 34, 64, 0.04);
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2.5rem;
    align-items: center;
    box-sizing: border-box;
}

.dashboard-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #777777;
    margin-bottom: 0.65rem;
    display: block;
    letter-spacing: 0.5px;
}

.search-group-wrapper {
    display: flex;
    flex-direction: column;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-icon-inside {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #888888;
}

.doctor-search-input {
    width: 100%;
    padding: 0.95rem 1.25rem 0.95rem 3rem;
    font-size: 0.98rem;
    color: #333333;
    border: 1.5px solid #dcdcdc;
    border-radius: 12px;
    background-color: #fbfcfc;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.doctor-search-input:focus {
    border-color: #008080;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.08);
}

.filters-container-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.filter-select-group {
    display: flex;
    flex-direction: column;
}

.filter-select {
    padding: 0.95rem 1.15rem;
    font-size: 0.92rem;
    color: #333333;
    border: 1.5px solid #dcdcdc;
    border-radius: 12px;
    background-color: #fbfcfc;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-select:focus {
    border-color: #008080;
    background-color: #ffffff;
}

/* 3. Doctors Directory Grid */
.doctors-grid-section {
    padding: 5rem 0;
    background: #f4f9fa; /* Light teal tint */
    min-height: 450px;
}

.doctors-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.directory-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 34, 64, 0.03);
    border: 1px solid rgba(11, 34, 64, 0.05);
    border-top: 4px solid #008080 !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.directory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 26, 53, 0.1), 0 0 25px rgba(0, 128, 128, 0.15);
    border-color: rgba(0, 128, 128, 0.25);
}

.directory-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.directory-portrait {
    position: relative;
    width: 100%;
    padding-top: 105%; /* Clean aspect ratio for medical headshots */
    background: radial-gradient(circle at center, rgba(0, 128, 128, 0.07) 0%, rgba(11, 34, 64, 0.02) 100%);
    overflow: hidden;
    border-bottom: 3px solid rgba(0, 128, 128, 0.08);
}

.directory-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.directory-card:hover .directory-img {
    transform: scale(1.05);
}

.directory-placeholder-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.directory-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.directory-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff !important;
    background: linear-gradient(135deg, #008080 0%, #00a3a3 100%);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.15);
}
.owner-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #b8860b !important; /* Gold text */
    background: rgba(184, 134, 11, 0.08); /* Soft Gold Tint */
    border: 1px solid rgba(184, 134, 11, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

.directory-name {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0;
}

.directory-specialty {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.directory-qualification {
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
}

.directory-timings {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666666;
    margin-top: auto;
    padding: 0.75rem;
    background: rgba(0, 128, 128, 0.03);
    border: 1px solid rgba(0, 128, 128, 0.08);
    border-radius: 10px;
}

.timing-icon {
    font-size: 0.9rem;
    color: #008080;
}

.directory-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    background: #fafcfc;
    border-top: 1px solid #f0f0f0;
}

.directory-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.directory-btn.btn-outline {
    background: transparent;
    color: #008080 !important;
    border: 1px solid #008080;
}

.directory-btn.btn-outline:hover {
    background: #008080;
    color: #ffffff !important;
}

.directory-btn.btn-primary {
    background: #008080;
    color: #ffffff !important;
    border: 1px solid transparent;
}

.directory-btn.btn-primary:hover {
    background: #0b2240;
}

/* Highlighted searched tags */
.search-highlight {
    background-color: rgba(0, 128, 128, 0.15);
    color: #0b2240;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

/* Empty State Styling */
.empty-search-state {
    text-align: center;
    max-width: 500px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(6, 26, 53, 0.04);
    box-sizing: border-box;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.empty-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 0.5rem 0;
}

.empty-desc {
    font-size: 0.95rem;
    color: #666666;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.empty-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-btn.btn-primary {
    background: #008080;
    color: #ffffff !important;
}

.empty-btn.btn-primary:hover {
    background: #0b2240;
}

.empty-btn.btn-secondary {
    background: #f0f0f0;
    color: #333333;
}

.empty-btn.btn-secondary:hover {
    background: #e0e0e0;
}

/* 4. Bottom Appointment Section */
.booking-form-section {
    position: relative;
    padding: 6.5rem 0;
    background: url('../assets/images/hospital2-scaled.jpeg') no-repeat center center/cover;
    box-sizing: border-box;
}

.booking-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 26, 53, 0.95) 0%, rgba(11, 34, 64, 0.85) 100%);
    z-index: 1;
}

.booking-form-section .doctors-container {
    position: relative;
    z-index: 2;
}

.booking-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.booking-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.15;
}

.booking-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 0 2.5rem 0;
}

.booking-hotlines {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hotline-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hotline-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hotline-details {
    display: flex;
    flex-direction: column;
}

.hotline-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

.hotline-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hotline-value:hover {
    color: #008080 !important;
}

/* Quick Booking Form Card */
.appointment-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    box-sizing: border-box;
}

.form-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid rgba(0, 128, 128, 0.1);
    padding-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #333333;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    background-color: #fafafa;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-select:focus {
    border-color: #008080;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.08);
}

.form-submit-btn {
    width: 100%;
    padding: 0.95rem;
    background: #008080;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
}

.form-submit-btn:hover {
    background: #0b2240;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 34, 64, 0.25);
}

/* Animations */
.fade-up-reveal {
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-up-item {
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeUpReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurnsSlow {
    0% {
        transform: scale(1.02) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

/* Responsive Queries */
@media (max-width: 1200px) {
    .doctors-directory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .doctors-hero {
        margin-top: 110px;
        height: 480px;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .search-filter-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .doctors-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-box {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .booking-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .filters-container-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .doctors-hero {
        margin-top: 100px;
        height: 450px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-btn {
        width: 100%;
    }
    .doctors-directory-grid {
        grid-template-columns: 1fr;
    }
    .appointment-form-card {
        padding: 1.5rem;
    }
    .booking-title {
        font-size: 1.8rem;
    }
}
