/* ==========================================================================
   G.R. Medical College - OPD (Outpatient Department) Stylesheet
   Design Spec: Matches Figma design with "Doctor's Available" dynamic showcase,
   faculty thumbnail styling matching department pages, interactive filters,
   and clean responsive layout.
   ========================================================================== */

/* OPD Page Container System */
.gr-opd-page-container {
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .gr-opd-page-container {
        max-width: 1540px;
        padding-left: 31px;
        padding-right: 31px;
    }
}

/* ==========================================================================
   "Doctor's Available" Dynamic Section
   ========================================================================== */
.gr-opd-doctors-section {
    padding: 60px 0 90px 0;
    background-color: #FFFFFF;
}

.gr-opd-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.gr-opd-section-title {
    font-family: 'Instrument Sans', 'Outfit', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 400;
    color: #111111;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (max-width: 768px) {
    .gr-opd-section-title {
        font-size: 2.1rem;
    }
}

/* Filter Controls Group */
.gr-opd-filter-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Dropdown Select (Matches Top-Right Figma Dropdown Style) */
.gr-opd-select-wrapper {
    position: relative;
    min-width: 220px;
}

.gr-opd-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #F8FAFC;
    border: 1px solid transparent;
    padding: 12px 42px 12px 20px;
    font-family: 'Instrument Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.gr-opd-select:hover,
.gr-opd-select:focus {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
}

.gr-opd-select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #475569;
}

/* Weekday Filter Buttons / Pills */
.gr-opd-weekday-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.gr-opd-weekday-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gr-opd-day-btn {
    padding: 7px 16px;
    font-family: 'Instrument Sans', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.gr-opd-day-btn:hover {
    background-color: #F8FAFC;
    border-color: #003B6D;
    color: #003B6D;
}

.gr-opd-day-btn.active {
    background-color: #003B6D;
    border-color: #003B6D;
    color: #FFFFFF;
}

/* ==========================================================================
   Doctor Cards Grid (5 Column Layout across full container matching Department Page)
   ========================================================================== */
.gr-opd-doctors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 24px;
}

@media (max-width: 1200px) {
    .gr-opd-doctors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .gr-opd-doctors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 20px;
    }
}

@media (max-width: 640px) {
    .gr-opd-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

@media (max-width: 420px) {
    .gr-opd-doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Doctor Card */
.gr-opd-doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    padding: 0;
    transition: transform 0.3s ease;
}

/* Thumbnail Avatar Frame (Identical to Department Page) */
.gr-opd-doctor-avatar-wrapper {
    width: 100%;
    max-width: 175px;
    height: 228px;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 5px solid #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #EBF0F6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gr-opd-doctor-card:hover .gr-opd-doctor-avatar-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(42, 62, 192, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gr-opd-doctor-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Doctor Typography */
.gr-opd-doctor-name {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.gr-opd-doctor-degree {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    color: #333333;
    margin: 0 0 2px 0;
}

.gr-opd-doctor-designation {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13.5px;
    color: #666666;
    margin: 0;
    line-height: 1.35;
}

/* Empty State */
.gr-opd-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
}

.gr-opd-empty-state p {
    color: #64748B;
    font-size: 15px;
    margin: 0;
}
