/* ========= RESET & BASE ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Cairo", sans-serif;
    direction: rtl;
    background: #f7fbfc;
    color: #053b50;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== HEADER ========== */

.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* ===== LOGO ===== */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 700;
    font-size: 18px;
    color: #0284c7;
}

.logo-subtitle {
    font-size: 12px;
    color: #64748b;
}

/* ===== NAV LINKS ===== */

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    text-decoration: none;
    font-size: 14px;
    color: #036672;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.main-nav a:hover {
    color: #0284c7;
    border-color: #0ea5e9;
}

/* ===== AUTH BUTTON ===== */

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0f9bcc);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(14,165,233,0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 16px rgba(14,165,233,0.45);
}

/* ===== MOBILE MENU BTN ===== */

.nav-toggle {
    display: none;
    border: none;
    background: #0ea5e9;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */

.hero {
    background: linear-gradient(to bottom, #ecfeff, #f7fbfc);
    padding: 32px 0 24px;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #036672;
    margin-bottom: 8px;
}

.hero p {
    font-size: 14px;
    color: #64748b;
}

/* ========== SEARCH BAR SECTION ========== */

.search-bar {
    margin-top: -16px;
    padding-bottom: 32px;
}

.doctor-search-form {
    background: #0597b680;
    border-radius: 999px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.3fr 1.3fr auto;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 28px rgba(13,148,136,0.25);
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-field label {
    font-size: 11px;
    color: #e0f2fe;
    padding-inline: 4px;
}

.search-field input,
.search-field select {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    color: #0f172a;
    background: #f9fafb;
}

.search-field input::placeholder {
    color: #94a3b8;
}

.search-submit {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search {
    height: 100%;
    padding-inline: 18px;
    white-space: nowrap;
}

/* ========== FEATURED DOCTORS (نفس استايل صفحة البحث) ========== */

.featured-doctors-section {
    padding: 40px 0 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #036672;
    text-align: center;
}

.section-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
    text-align: center;
}

.featured-doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* كارت الدكتور */

.doctor-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(4, 133, 119, 0.13);
    padding: 18px 20px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.doctor-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.doctor-main-top {
    flex: 1;
    min-width: 0;
}

.doctor-photo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    background: #dff6ff;
    border: 2px solid #b6eaff;
    flex-shrink: 0;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.doctor-name {
    color: #035663;
    font-size: 18px;
    font-weight: 700;
}

.doctor-verified {
    color: #fff;
    background: #0ea5e9;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    font-size: 12px;
    justify-content: center;
}

.doctor-title {
    font-size: 13px;
    color: #3b4856;
    margin-bottom: 3px;
    font-weight: 600;
}

.doctor-specialty {
    font-size: 13px;
    color: #036672;
    font-weight: 600;
}

.doctor-location {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 13px;
    color: #5d6d7b;
    margin-top: 8px;
    margin-bottom: 8px;
}

.icon-map {
    font-size: 14px;
    color: #f97373;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.doctor-tag {
    font-size: 12px;
    background: #e2f5ff;
    color: #0077a8;
    padding: 4px 10px;
    border-radius: 999px;
}

.doctor-tag-main {
    background: #ccfbf1;
    color: #047857;
}

.doctor-price {
    font-size: 15px;
    color: #000;
    font-weight: 700;
    margin-bottom: 10px;
}

.doctor-summary {
    background: #f9fffd;
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #4f5e6d;
    line-height: 1.7;
    border: 1px solid #e9f5ef;
}

.doctor-actions {
    display: flex;
    justify-content: flex-end;
}

.doctor-actions .btn {
    border-radius: 18px;
    padding: 10px 24px;
}

.doctor-card-rating {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0f172a;
}

.doctor-card-rating .stars {
    color: #f97316;
    font-size: 16px;
}

.doctor-card-rating .rating-number {
    font-weight: 600;
}

.doctor-card-rating .rating-count {
    font-size: 12px;
    color: #64748b;
}

/* ========== SPECIALTIES GRID ========== */

.specialties-grid-section {
    padding: 40px 0 30px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.specialty-card {
    background: #f4fbff;
    border-radius: 18px;
    padding: 18px 12px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.16);
    background: #e8f6ff;
}

.specialty-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #4ade80, #0891b2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 24px;
}

.specialty-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #036672;
}

.specialty-count {
    font-size: 12px;
    color: #64748b;
}

/* ========== CTA DOCTOR BANNER ========== */

.cta-doctor-banner {
    background: #e0faff;
    padding: 28px 0;
    margin: 10px 0 30px;
}

.cta-doctor-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.cta-doctor-text h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f766e;
}

.cta-doctor-text p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #0f172a;
    max-width: 480px;
}

.cta-doctor-btn {
    font-size: 13px;
    padding-inline: 18px;
}

.cta-doctor-illustration {
    display: flex;
    justify-content: center;
    flex: 0 0 180px;
}

.cta-logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 40px;
    background: linear-gradient(135deg, #0ea5e9, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px rgba(15, 118, 110, 0.35);
}

.cta-logo-circle img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* ========== ARTICLES SECTION ========== */

.articles-section {
    padding: 40px 0 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
}

.article-img {
    position: relative;
    padding-top: 55%;
    overflow: hidden;
}

.article-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 12px 14px 14px;
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.article-excerpt {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
}

.article-link {
    font-size: 12px;
    color: #0ea5e9;
    text-decoration: none;
}

.article-link:hover {
    text-decoration: underline;
}

/* ========== LOGIN PAGE (لو حبيت تستخدمه) ========== */

.auth-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
    padding: 24px 24px 28px;
}

.auth-card h1 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #036672;
    text-align: center;
}

.auth-card p {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-bottom: 18px;
}

.auth-card label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #0f172a;
}

.auth-card input[type="text"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14,165,233,0.25);
    background: #ffffff;
}

.auth-card .form-group {
    margin-bottom: 14px;
}

.auth-card .btn-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-error {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.auth-note {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* ========== RESPONSIVE ========== */

/* تابلت */
@media (max-width: 992px) {
    .doctor-search-form {
        grid-template-columns: 1.7fr 1.2fr 1.2fr;
        grid-template-rows: auto auto;
        border-radius: 26px;
    }

    .search-text {
        grid-column: span 3;
    }

    .search-submit {
        grid-column: span 3;
    }

    .featured-doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-doctor-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .cta-doctor-illustration {
        align-self: center;
    }
}

/* موبايل */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        display: none;
        z-index: 199;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 18px;
        gap: 14px;
    }

    .auth-buttons {
        display: none;
    }

    .logo-img {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .logo-title {
        font-size: 16px;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .doctor-search-form {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        border-radius: 22px;
    }

    .search-text,
    .search-submit {
        grid-column: span 1;
    }

    .featured-doctors-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ARTICLE PAGE ========== */

.article-hero {
    padding: 30px 0 20px;
}

.article-hero .hero-content h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.article-page-section {
    padding: 20px 0 50px;
}

.article-page-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 20px 22px 26px;
}

.article-page-image-wrapper {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    max-height: 360px;
}

.article-page-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-page-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.article-page-body {
    font-size: 15px;
    line-height: 1.9;
    color: #0f172a;
}

/* موبايل */
@media (max-width: 768px) {
    .article-page-card {
        border-radius: 18px;
        padding: 16px 14px 20px;
    }

    .article-hero .hero-content h1 {
        font-size: 20px;
    }

    .article-page-body {
        font-size: 14px;
    }
}

/* ========== ARTICLE PAGE ========== */

.article-page {
    padding: 32px 0 60px;
}

.article-full-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

/* ===== صورة المقال (صغيرة مربعة) ===== */
.article-full-image-wrapper {
    width: 240px;               /* حجم الصورة */
    height: 240px;
    margin: 25px auto 10px;     /* في المنتصف */
    border-radius: 18px;        /* شكل احترافي */
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.article-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* قص مضبوط */
    display: block;
}

/* ===== هيدر المقال ===== */
.article-full-header {
    padding: 18px 22px 12px;
    text-align: right;
}

.article-full-title {
    font-size: 22px;
    font-weight: 700;
    color: #036672;
    margin: 0 0 6px;
}

.article-full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.article-full-excerpt {
    font-size: 14px;
    color: #0f172a;
    margin: 0 0 6px;
}

/* ===== نص المقال ===== */
.article-full-body {
    padding: 0 22px 22px;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.9;
}

.article-full-body p {
    margin-bottom: 12px;
}

/* ===== موبايل ===== */
@media (max-width: 768px) {
    .article-full-title {
        font-size: 18px;
    }

    .article-full-header,
    .article-full-body {
        padding-inline: 16px;
    }

    .article-full-image-wrapper {
        width: 110px;
        height: 110px;
    }
}
/* تكبير لوجو المراكز / المعامل / الأشعة في الكروت */
.facility-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-card-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

