/**
 * Header Page & Department Showcase Styles
 * RSCS - Republican Specialized Center of Surgery
 */

.dept-showcase {
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
    margin: 10px 0 40px 0;
}

.dept-doc-block {
    margin-bottom: 40px;
}

.dept-block-main-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.dept-lead-text {
    font-size: 17px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.7;
    margin: 0 0 14px 0;
}

.dept-sub-text {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.dept-doctor-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin: 24px 0 30px 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.dept-doctor-photo-wrap {
    flex-shrink: 0;
    text-align: center;
}

.dept-doctor-photo {
    width: 160px;
    height: 205px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #e0e7ff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: block;
}

.dept-doctor-badge {
    display: inline-block;
    margin-top: 10px;
    background: #eff6ff;
    color: #0056b3;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.dept-doctor-info {
    flex: 1;
}

.dept-doctor-name {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.dept-doctor-post {
    font-size: 15px;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 8px;
}

.dept-doctor-spec {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.dept-doctor-desc {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 14px;
}

.dept-doctor-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: #0056b3;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dept-doctor-contact a:hover {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

.dept-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 45px 0;
}

@media (max-width: 768px) {
    .dept-doctor-card {
        flex-direction: column;
        text-align: center;
    }
}

.dept-page {
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
    margin: 10px 0 30px 0;
}

/* Intro Box */
.dept-intro-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-left: 5px solid #0056b3;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 26px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.04);
}

.dept-intro-lead {
    font-size: 16.5px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.65;
    margin: 0 0 10px 0;
}

.dept-intro-sub {
    font-size: 14.5px;
    color: #475569;
    margin: 0;
    line-height: 1.65;
}

/* Head of Department Card */
.dept-head-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 35px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-head-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.dept-head-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    text-align: center;
}

.dept-head-avatar {
    width: 160px;
    height: 205px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #e0e7ff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: block;
}

.dept-head-badge {
    display: inline-block;
    margin-top: 10px;
    background: #eff6ff;
    color: #0056b3;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.dept-head-info {
    flex: 1;
}

.dept-head-name {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.dept-head-title {
    font-size: 15px;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 6px;
}

.dept-head-specialty {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-head-specialty i {
    color: #0056b3;
}

.dept-head-bio {
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 16px 0;
}

.dept-head-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dept-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0056b3;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.dept-email-btn:hover {
    background: #003e82;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Sections */
.dept-section {
    margin-bottom: 35px;
}

.dept-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-section-title i {
    color: #0056b3;
    font-size: 18px;
}

.dept-section-lead {
    font-size: 14.5px;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.65;
}

/* Grid Layouts */
.dept-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dept-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dept-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dept-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.08);
    transform: translateY(-2px);
}

.dept-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
}

.dept-card-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.dept-card-text {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Metrics in Numbers */
.dept-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dept-metric-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0056b3;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.09);
    border-top-color: #0284c7;
}

.metric-val {
    font-size: 24px;
    font-weight: 800;
    color: #0056b3;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.metric-lbl {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

.dept-metric-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
}

.dept-metric-banner i {
    font-size: 22px;
    color: #0056b3;
    margin-top: 2px;
    flex-shrink: 0;
}

.dept-metric-banner strong {
    display: block;
    font-size: 14.5px;
    margin-bottom: 4px;
    color: #0f172a;
}

/* Country Tags */
.dept-country-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
}

.country-chip i {
    color: #0056b3;
    font-size: 11px;
}

.country-chip:hover {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

.country-chip:hover i {
    color: #ffffff;
}

/* Top Countries Cards */
.dept-top-countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.dept-top-country-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0056b3;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dept-top-country-card .country-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dept-top-country-card .country-name i {
    color: #0056b3;
    font-size: 12px;
}

.dept-top-country-card .country-count {
    font-size: 15px;
    font-weight: 700;
    color: #0056b3;
}

/* 5 Steps to Apply */
.dept-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.dept-step-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dept-step-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.08);
    border-color: #93c5fd;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0056b3;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 86, 179, 0.25);
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.step-content p {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* How to Submit Request Box */
.dept-apply-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}

.dept-apply-box p {
    font-size: 14.5px;
    color: #334155;
    margin: 0 0 14px 0;
    line-height: 1.65;
}

.dept-apply-reqs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dept-apply-reqs span {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.dept-apply-reqs span i {
    color: #10b981;
    font-size: 13px;
}

/* Contacts Card */
.dept-contact-card {
    background: linear-gradient(135deg, #0b3b60 0%, #0056b3 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 22px rgba(0, 86, 179, 0.18);
}

.dept-contact-header h5 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.dept-contact-header p {
    font-size: 13.5px;
    color: #bfdbfe;
    margin: 0 0 20px 0;
}

.dept-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 18px;
}

.dept-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dept-contact-item i {
    font-size: 19px;
    color: #93c5fd;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-lbl {
    font-size: 12px;
    color: #bfdbfe;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dept-contact-item a {
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dept-contact-item a:hover {
    color: #93c5fd !important;
    text-decoration: underline;
}

.dept-contact-item span {
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dept-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dept-top-countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dept-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .dept-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dept-apply-reqs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dept-head-card {
        flex-direction: column;
        text-align: center;
        gap: 18px;
        padding: 18px;
    }
    .dept-head-specialty {
        justify-content: center;
    }
    .dept-head-contact {
        justify-content: center;
    }
    .dept-grid-2,
    .dept-grid-3 {
        grid-template-columns: 1fr;
    }
    .dept-metrics-grid {
        grid-template-columns: 1fr;
    }
    .dept-apply-reqs {
        grid-template-columns: 1fr;
    }
    .dept-step-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
