/* ==========================================================
   EgDoctor homepage — scoped styles (kept separate from the
   shared theme CSS above to avoid touching those files).
   Palette is inherited from the current theme's primary
   brand blue (#15499C) used across style.css.
========================================================== */
:root {
    --egd-primary: #15499c;
    --egd-primary-dark: #0f386f;
    --egd-primary-light: #eaf0fb;
    --egd-accent: #17a884;
    --egd-star: #f5a623;
    --egd-dark: #1c1e1d;
    --egd-text-muted: #62696f;
    --egd-bg-soft: #f4f7fb;
    --egd-border: #e6ebf2;
    --egd-radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body.egd-home {
    font-family: -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--egd-dark);
    background: #ffffff;
}

.egd-home a {
    text-decoration: none;
}

.egd-home ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.egd-home img {
    max-width: 100%;
}

.egd-home .container {
    max-width: 1230px;
}

/* ---------- Section heading ---------- */
.egd-section {
    padding: 30px 0;
}

.egd-section-soft {
    background: var(--egd-bg-soft);
}

.egd-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}

.egd-title .egd-eyebrow {
    display: inline-block;
    color: var(--egd-primary);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.egd-title h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--egd-dark);
}

.egd-title p {
    font-size: 16px;
    color: var(--egd-text-muted);
    margin: 0;
    line-height: 1.9;
}

.egd-title.egd-title-start {
    text-align: right;
    margin-inline: 0;
}

/* ---------- Buttons ---------- */
.egd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 8px;
    background-color: var(--egd-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    transition: 0.3s;
}

.egd-btn:hover {
    background-color: var(--egd-primary-dark);
    color: #fff;
}

.egd-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--egd-primary);
    border-radius: 8px;
    background-color: transparent;
    color: var(--egd-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 26px;
    transition: 0.3s;
}

.egd-btn-outline:hover {
    background-color: var(--egd-primary);
    color: #fff;
}

.egd-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    color: var(--egd-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    transition: 0.3s;
}

.egd-btn-light:hover {
    background-color: var(--egd-primary-light);
    color: var(--egd-primary-dark);
}

/* ---------- Top bar ---------- */
.egd-topbar {
    background: var(--egd-primary-dark);
    color: #dbe6f7;
    font-size: 13px;
}

.egd-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
}

.egd-topbar-info {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.egd-topbar-info a,
.egd-topbar-info span {
    color: #dbe6f7;
}

.egd-topbar-info i {
    margin-inline-end: 6px;
}

.egd-topbar-social a {
    color: #dbe6f7;
    margin-inline-start: 12px;
    font-size: 13px;
}

.egd-topbar-social a:hover {
    color: #fff;
}

/* ---------- Header ---------- */
.egd-header {
    background: #fff;
    box-shadow: 0 2px 18px rgba(21, 73, 156, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.egd-header .navbar {
    padding: 14px 0;
    position: relative;
}

.egd-logo {
    display: flex;
    align-items: center;
}

.egd-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.egd-header .navbar-nav .nav-link {
    color: var(--egd-dark);
    font-weight: 600;
    font-size: 15.5px;
    padding: 10px 16px !important;
    text-align: right;
}

.egd-header .navbar-nav .nav-link:hover,
.egd-header .navbar-nav .nav-item.active .nav-link {
    color: var(--egd-primary);
}

.egd-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 991px) {
    .egd-header-actions {
        margin-top: 14px;
    }
    .egd-search-field {
        flex: auto;
    }
    .egd-search-field {
        flex: auto;
    }
}

/* ---------- Mobile mean-menu integration ----------
   The reveal button must stay a slim, transparent strip anchored to the
   header row (so it doesn't cover the logo); the actual dropdown nav is
   pushed to sit right below the header row instead of overlapping it. */
.egd-header .navbar.zash-responsive-menu {
    position: relative;
}

.egd-home .mean-container .mean-bar {
    /* Static wrapper only — its children (reveal button + dropdown)
       position themselves against nav.zash-responsive-menu instead, so
       this element needs no size/paint of its own. */
    position: static;
    float: none;
    width: auto;
    background: transparent;
    padding: 0;
}

.egd-home .mean-container a.meanmenu-reveal {
    position: absolute;
    top: 20px;
    z-index: 1001;
    color: var(--egd-primary);
}

.egd-home .mean-container a.meanmenu-reveal span {
    background: var(--egd-primary);
}

.egd-home .mean-container .mean-nav ul li a {
    color: var(--egd-dark);
}

.egd-home .mean-container .mean-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 0;
    background: #fff;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(15, 40, 90, 0.18);
    border-radius: 0 0 12px 12px;
    z-index: 1000;
}

/* The cloned search CTA must stay hidden while the drawer is closed —
   only the .meanclose state (added by meanmenu.js on open) reveals it. */
.egd-home .mean-container .mean-nav .egd-header-actions {
    display: none;
    padding: 16px 6%;
    border-top: 1px solid #DBEEFD;
}

.egd-home .mean-container a.meanmenu-reveal.meanclose ~ .mean-nav .egd-header-actions {
    display: flex;
}

.egd-home .mean-container .mean-nav .egd-header-actions .egd-btn-outline {
    width: 100%;
    justify-content: center;
}

/* ---------- Hero ---------- */
.egd-hero {
    position: relative;
    background: linear-gradient(135deg, var(--egd-primary) 0%, var(--egd-primary-dark) 100%);
    overflow: hidden;
    padding: 70px 0 130px;
}

.egd-hero::before,
.egd-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.egd-hero::before {
    width: 420px;
    height: 420px;
    top: -180px;
    inset-inline-end: -120px;
}

.egd-hero::after {
    width: 260px;
    height: 260px;
    bottom: -140px;
    inset-inline-start: -60px;
}

.egd-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.egd-hero-inner h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.egd-hero-inner p {
    color: #dbe6f7;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 0;
}

.egd-hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.egd-hero-stats .egd-stat {
    text-align: center;
    color: #fff;
}

.egd-hero-stats .egd-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
}

.egd-hero-stats .egd-stat span {
    font-size: 13px;
    color: #cfe0f7;
}

/* ---------- Search card ---------- */
.egd-search-wrap {
    position: relative;
    z-index: 3;
    margin-top: 20px;
    margin-bottom: 10px;
}

.egd-search-card {
    background: #fff;
    border-radius: var(--egd-radius);
    box-shadow: 0 20px 50px rgba(15, 40, 90, 0.18);
    padding: 28px;
}

.egd-search-card form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.egd-search-field {
    flex: 1 1 200px;
}

.egd-search-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--egd-text-muted);
    margin-bottom: 8px;
}

.egd-search-field .egd-input-icon {
    position: relative;
}

.egd-search-field .egd-input-icon i {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    color: var(--egd-primary);
    font-size: 15px;
}

.egd-search-field select,
.egd-search-field input[type="text"] {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    border: 1.5px solid var(--egd-border);
    background: var(--egd-bg-soft);
    padding: 0 44px 0 16px;
    font-size: 14.5px;
    color: var(--egd-dark);
    appearance: none;
}

.egd-search-field select:focus,
.egd-search-field input[type="text"]:focus {
    outline: none;
    border-color: var(--egd-primary);
    background: #fff;
}

.egd-search-submit {
    flex: 0 0 auto;
}

.egd-search-submit button {
    height: 52px;
    padding: 0 32px;
    border: none;
    border-radius: 8px;
    background: var(--egd-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.egd-search-submit button:hover {
    background: var(--egd-primary-dark);
}

.egd-search-tags {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--egd-text-muted);
}

.egd-search-tags a {
    color: var(--egd-primary);
    font-weight: 700;
    background: var(--egd-primary-light);
    padding: 5px 14px;
    border-radius: 30px;
}

.egd-search-tags a:hover {
    background: var(--egd-primary);
    color: #fff;
}

/* ---------- Specialties ---------- */
.egd-specialty-card {
    display: block;
    text-align: center;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 28px 14px;
    height: 100%;
    transition: 0.3s;
}

.egd-specialty-card:hover {
    border-color: var(--egd-primary);
    box-shadow: 0 16px 34px rgba(21, 73, 156, 0.12);
    transform: translateY(-4px);
}

.egd-specialty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--egd-primary-light);
    color: var(--egd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: 0.3s;
}

.egd-specialty-card:hover .egd-specialty-icon {
    background: var(--egd-primary);
    color: #fff;
}

.egd-specialty-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--egd-dark);
}

.egd-specialty-card span {
    font-size: 12.5px;
    color: var(--egd-text-muted);
}

/* ---------- Doctor cards ---------- */
.egd-doctor-card {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    overflow: hidden;
    height: 100%;
    transition: 0.3s;
}

.egd-doctor-card:hover {
    box-shadow: 0 18px 40px rgba(21, 73, 156, 0.12);
    transform: translateY(-4px);
}

.egd-doctor-top {
    background: var(--egd-primary-light);
    padding: 26px 22px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.egd-doctor-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--egd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.egd-doctor-top h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--egd-dark);
}

.egd-doctor-top .egd-specialty-tag {
    font-size: 13px;
    color: var(--egd-primary);
    font-weight: 700;
}

.egd-doctor-body {
    padding: 18px 22px 22px;
}

.egd-doctor-body .egd-doc-meta {
    font-size: 13.5px;
    color: var(--egd-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.egd-doctor-body .egd-doc-meta i {
    color: var(--egd-primary);
    margin-top: 3px;
}

.egd-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--egd-text-muted);
    margin: 10px 0 14px;
}

.egd-rating i {
    color: var(--egd-star);
    font-size: 13px;
}

.egd-doctor-body .egd-btn-outline {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
}

/* ---------- Doctor profile page ---------- */
.egd-doctor-profile-card {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 32px 26px;
    text-align: center;
}

.egd-doctor-profile-avatar {
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--egd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    overflow: hidden;
}

.egd-doctor-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egd-doctor-profile-card h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 6px;
}

.egd-doctor-profile-degree {
    display: inline-block;
    font-size: 14px;
    color: var(--egd-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.egd-doctor-profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.egd-doctor-profile-tags a {
    background: var(--egd-primary-light);
    color: var(--egd-primary);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    transition: 0.25s;
}

.egd-doctor-profile-tags a:hover {
    background: var(--egd-primary);
    color: #fff;
}

.egd-doctor-profile-contact {
    text-align: start;
    /* border-top: 1px solid var(--egd-border); */
    padding-top: 20px;
    margin-bottom: 20px;
}

.egd-doctor-profile-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--egd-text-muted);
    margin-bottom: 12px;
}

.egd-doctor-profile-contact li:last-child {
    margin-bottom: 0;
}

.egd-doctor-profile-contact i {
    color: var(--egd-primary);
    margin-top: 3px;
    flex: 0 0 auto;
}

.egd-doctor-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.egd-doctor-profile-actions .egd-btn,
.egd-doctor-profile-actions .egd-btn-outline {
    width: 100%;
    justify-content: center;
}

.egd-doctor-profile-about {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 30px 28px;
}

.egd-doctor-profile-about h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 14px;
}

.egd-doctor-profile-about p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--egd-text-muted);
    margin: 0;
    white-space: pre-line;
}

/* ---------- Location grid ---------- */
.egd-location-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: 12px;
    padding: 18px 20px;
    transition: 0.3s;
}

.egd-location-card:hover {
    border-color: var(--egd-primary);
    background: var(--egd-primary-light);
}

.egd-location-card i {
    font-size: 20px;
    color: var(--egd-primary);
}

.egd-location-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--egd-dark);
}

.egd-location-card span {
    font-size: 12px;
    color: var(--egd-text-muted);
}

/* ---------- Why us ---------- */
.egd-why-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    height: 100%;
}

.egd-why-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--egd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.egd-why-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.egd-why-card p {
    font-size: 14px;
    color: var(--egd-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ---------- Articles ---------- */
.egd-article-card {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    overflow: hidden;
    height: 100%;
    transition: 0.3s;
}

.egd-article-card:hover {
    box-shadow: 0 18px 40px rgba(21, 73, 156, 0.1);
    transform: translateY(-4px);
}

.egd-article-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    background: linear-gradient(135deg, var(--egd-primary), var(--egd-primary-dark));
}

.egd-article-body {
    padding: 20px 22px 22px;
}

.egd-article-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--egd-primary);
    background: var(--egd-primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.egd-article-body h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px;
}

.egd-article-body h3 a {
    color: var(--egd-dark);
}

.egd-article-body h3 a:hover {
    color: var(--egd-primary);
}

.egd-article-body p {
    font-size: 14px;
    color: var(--egd-text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.egd-article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--egd-text-muted);
    border-top: 1px solid var(--egd-border);
    padding-top: 14px;
}

.egd-article-foot a {
    color: var(--egd-primary);
    font-weight: 700;
}

/* ---------- Consultations ---------- */
.egd-consult-card {
    display: block;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    color: inherit;
    transition: 0.3s;
}

.egd-consult-card:hover {
    color: inherit;
    border-color: var(--egd-primary);
    box-shadow: 0 14px 30px rgba(21, 73, 156, 0.1);
}

.egd-consult-card .egd-consult-q {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.egd-consult-card .egd-consult-q i {
    color: var(--egd-primary);
    font-size: 18px;
    margin-top: 3px;
}

.egd-consult-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0;
    line-height: 1.7;
}

.egd-consult-meta {
    font-size: 12.5px;
    color: var(--egd-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--egd-border);
    padding-top: 12px;
}

.egd-consult-meta span {
    color: var(--egd-accent);
    font-weight: 700;
}

/* ---------- Medical info ---------- */
.egd-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    height: 100%;
}

.egd-info-card:hover {
    border-color: var(--egd-accent);
    box-shadow: 0 14px 30px rgba(23, 168, 132, 0.12);
}

.egd-info-card i {
    font-size: 22px;
    color: var(--egd-accent);
}

.egd-info-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--egd-dark);
}

/* ---------- Doctor CTA ---------- */
.egd-doctor-cta {
    background: linear-gradient(135deg, var(--egd-primary) 0%, var(--egd-primary-dark) 100%);
    border-radius: 20px;
    padding: 55px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.egd-doctor-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.egd-doctor-cta p {
    color: #dbe6f7;
    font-size: 15.5px;
    max-width: 520px;
    line-height: 1.9;
    margin-bottom: 0;
}

.egd-doctor-cta-points {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.egd-doctor-cta-points span {
    font-size: 13.5px;
    color: #eaf0fb;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.egd-doctor-cta-points i {
    color: var(--egd-star);
}

/* ---------- Ad slot (Google AdSense reservation) ---------- */
.egd-ad-section {
    padding: 30px 0;
}

/* align-items is "stretch" (not the flexbox default "center") on purpose:
   these are column flex containers reserving space for either placeholder
   text or a real AdSense <ins> (usually still wrapped in the original
   placeholder's <p>). A flex item that isn't stretched sizes to fit-content
   on the cross axis (width) instead of filling the container — and at the
   moment adsbygoogle.push() runs, the <ins>/<p> is empty, so fit-content
   resolves to 0 and AdSense refuses to render with "availableWidth=0".
   text-align:center still keeps any placeholder text/ad centered visually.
   Verified on the Home Page first, then confirmed to be the same root cause
   on every internal page's .egd-ad-slot / .egd-ad-rail before rolling out. */
.egd-ad-slot {
    position: relative;
    max-width: 970px;
    margin: 0 auto;
    min-height: 110px;
    background: var(--egd-bg-soft);
    border: 1.5px dashed var(--egd-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    text-align: center;
}

.egd-ad-tag {
    position: absolute;
    top: 10px;
    inset-inline-start: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--egd-text-muted);
    background: #fff;
    border: 1px solid var(--egd-border);
    border-radius: 20px;
    padding: 2px 10px;
}

.egd-ad-slot p {
    margin: 0;
    font-size: 13.5px;
    color: var(--egd-text-muted);
}

/* Vertical skyscraper rails (160x600 — see each page's "Ad-Fly (160x600)"
   markup comment) — shown only once the viewport has real gutter space
   beside the 1320px content column. */
.egd-ad-rail {
    display: none;
    position: fixed;
    top: 55%;
    transform: translateY(-50%);
    z-index: 500;
    width: 160px;
    min-height: 600px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    background: var(--egd-bg-soft);
    border: 1.5px dashed var(--egd-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.egd-ad-rail p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--egd-text-muted);
}

.egd-ad-rail-start {
    inset-inline-start: 16px;
}

.egd-ad-rail-end {
    inset-inline-end: 16px;
}

@media (min-width: 1650px) {
    .egd-ad-rail {
        display: flex;
    }
}

/* ---------- Footer ---------- */
.egd-footer {
    background: var(--egd-dark);
    color: #c7cbce;
    padding-top: 60px;
}

.egd-footer h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
}

.egd-footer .egd-logo {
    background: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.egd-footer .egd-logo img {
    height: 40px;
}

.egd-footer p {
    font-size: 14px;
    line-height: 1.9;
    color: #a9afb4;
}

.egd-footer-links li {
    margin-bottom: 12px;
}

.egd-footer-links a {
    color: #c7cbce;
    font-size: 14.5px;
    transition: 0.3s;
}

.egd-footer-links a:hover {
    color: #fff;
    padding-inline-start: 4px;
}

.egd-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #c7cbce;
}

.egd-footer-contact i {
    color: var(--egd-primary);
    margin-top: 4px;
}

.egd-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.egd-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.egd-footer-social a:hover {
    background: var(--egd-primary);
}

.egd-copyright {
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13.5px;
    color: #8f959a;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .egd-hero-inner h1 {
        font-size: 32px;
    }

    .egd-search-wrap {
        margin-top: 10px;
    }

    .egd-search-card form {
        flex-direction: column;
        align-items: stretch;
    }

    .egd-search-submit button {
        width: 100%;
        justify-content: center;
    }

    .egd-doctor-cta {
        padding: 34px;
        text-align: center;
        justify-content: center;
    }

    .egd-doctor-cta-points {
        justify-content: center;
    }
    .egd-search-field {
        flex: auto;
    }
}

@media (max-width: 767px) {
    .egd-section {
        padding: 50px 0;
    }

    .egd-hero {
        padding: 40px 0 150px;
    }

    .egd-hero-inner h1 {
        font-size: 26px;
    }

    .egd-title h2 {
        font-size: 26px;
    }

    .egd-topbar-info span:not(:first-child) {
        display: none;
    }
    .egd-search-field {
        flex: auto;
    }
}

@media (max-width: 575px) {
    .egd-hero-stats {
        gap: 30px;
    }

    .egd-doctor-top {
        flex-direction: column;
        text-align: center;
    }

    .egd-location-card {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .egd-search-field {
        flex: auto;
    }
}

/* ---------- Inner-page hero (main.blade.php page title) ---------- */
.egd-page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--egd-primary) 0%, var(--egd-primary-dark) 100%);
    overflow: hidden;
    padding: 50px 0;
    text-align: center;
}

.egd-page-hero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -160px;
    inset-inline-end: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.egd-page-hero-content {
    position: relative;
    z-index: 2;
}

.egd-page-hero h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
}

.egd-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.egd-breadcrumb li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.egd-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-inline-start: 8px;
    margin-inline-end: 4px;
    color: rgba(255, 255, 255, 0.45);
}

.egd-breadcrumb a {
    color: #fff;
}

.egd-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- Departments search (inner-page layout) ---------- */
.egd-dept-search {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.egd-dept-search a {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    color: var(--egd-dark);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.25s;
}

.egd-dept-search a:hover {
    background: var(--egd-primary);
    border-color: var(--egd-primary);
    color: #fff;
}

/* ---------- Related content sections (doctor profile, etc.) ---------- */
.egd-related-videos-placeholder {
    background: #fff;
    border: 1.5px dashed var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--egd-text-muted);
}

.egd-related-videos-placeholder i {
    font-size: 32px;
    color: var(--egd-primary);
    margin-bottom: 12px;
    display: block;
}

/* ---------- Doctor page: two-column layout ---------- */
.egd-doctor-part>*+* {
    margin-top: 24px;
}

.egd-side-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 18px;
}

.egd-side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.egd-side-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 14px;
    transition: 0.25s;
}

.egd-side-item:hover {
    box-shadow: 0 10px 24px rgba(21, 73, 156, 0.1);
    transform: translateY(-2px);
}

.egd-side-item-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--egd-primary-light);
    color: var(--egd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.egd-side-item-body h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--egd-dark);
    margin: 0 0 6px;
    line-height: 1.5;
}

.egd-side-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--egd-text-muted);
}

.egd-doctor-contact-card h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 15px;
    text-align: start;
}

.egd-doctor-profile-bio {
    font-size: 14px;
    line-height: 1.8;
    color: var(--egd-text-muted);
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--egd-border);
    text-align: start;
    white-space: pre-line;
}

/* ---------- Doctor list (department page) ---------- */
.egd-doctor-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.egd-doctor-list-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 18px;
    transition: 0.25s;
}

.egd-doctor-list-item:hover {
    box-shadow: 0 14px 32px rgba(21, 73, 156, 0.1);
    transform: translateY(-2px);
}

.egd-doctor-list-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--egd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    overflow: hidden;
}

.egd-doctor-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egd-doctor-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.egd-doctor-list-body h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--egd-dark);
}

.egd-doctor-list-body h3 a {
    color: inherit;
}

.egd-doctor-list-body .egd-specialty-tag {
    font-size: 13px;
    color: var(--egd-primary);
    font-weight: 700;
}

.egd-doctor-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--egd-text-muted);
}

.egd-doctor-list-meta i {
    color: var(--egd-primary);
    margin-inline-end: 4px;
}

.egd-doctor-list-action {
    flex: 0 0 auto;
}

@media (max-width: 575px) {
    .egd-doctor-list-item {
        flex-wrap: wrap;
    }

    .egd-doctor-list-action {
        width: 100%;
    }

    .egd-doctor-list-action .egd-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Pagination ---------- */
.egd-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin-top: 32px !important;
}

.egd-pagination li a,
.egd-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid var(--egd-border);
    background: #fff;
    color: var(--egd-dark);
    font-weight: 700;
    font-size: 14px;
}

.egd-pagination li a:hover {
    border-color: var(--egd-primary);
    color: var(--egd-primary);
}

.egd-pagination li a.active {
    background: var(--egd-primary);
    border-color: var(--egd-primary);
    color: #fff;
}

.egd-pagination li.disabled span,
.egd-pagination li.disabled button {
    background: var(--egd-bg-soft);
    border: 1.5px solid var(--egd-border);
    color: var(--egd-text-muted);
    opacity: 0.6;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* ---------- Article list (articles listing page) ---------- */
.egd-article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.egd-article-list-item {
    display: flex;
    align-items: stretch;
    gap: 18px;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 18px;
    transition: 0.25s;
}

.egd-article-list-item:hover {
    box-shadow: 0 14px 32px rgba(21, 73, 156, 0.1);
    transform: translateY(-2px);
}

.egd-article-list-cover {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--egd-primary-light);
    color: var(--egd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.egd-article-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.egd-article-list-body h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--egd-dark);
}

.egd-article-list-body h3 a {
    color: inherit;
}

.egd-article-list-body .egd-specialty-tag {
    font-size: 12.5px;
    color: var(--egd-primary);
    font-weight: 700;
}

.egd-article-list-body p {
    font-size: 13.5px;
    color: var(--egd-text-muted);
    line-height: 1.7;
    margin: 8px 0 10px;
}

.egd-article-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.egd-article-list-meta span {
    font-size: 12.5px;
    color: var(--egd-text-muted);
}

.egd-article-list-meta .egd-btn-outline {
    padding: 6px 16px;
    font-size: 13px;
}

@media (max-width: 575px) {
    .egd-article-list-item {
        flex-wrap: wrap;
    }
    .egd-search-field {
        flex: auto;
    }
}

/* ---------- Article detail page ---------- */
.egd-article-detail-card {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 32px 28px;
}

.egd-article-detail-card h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 16px;
    line-height: 1.5;
}

.egd-article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--egd-border);
    font-size: 13.5px;
    color: var(--egd-text-muted);
}

.egd-article-detail-meta span {
    display: inline-flex;
    align-items: center;
}

.egd-article-detail-meta i {
    color: var(--egd-primary);
    margin-inline-end: 6px;
}

.egd-article-detail-body {
    font-size: 15.5px;
    line-height: 2;
    color: var(--egd-dark);
}

.egd-article-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
}

.egd-article-detail-body p {
    margin: 0 0 16px;
}

/* ---------- Video grid (sidebar widget) ---------- */
.egd-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.egd-video-item h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--egd-dark);
    margin: 8px 0 0;
    line-height: 1.5;
}

.egd-video-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: var(--egd-bg-soft);
    border: 1.5px solid var(--egd-border);
    overflow: hidden;
}

.egd-video-thumb i {
    font-size: 26px;
    color: var(--egd-primary);
}

.egd-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Question detail page ---------- */
.egd-question-detail-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 16px;
    line-height: 1.5;
}

.egd-question-detail-body {
    font-size: 15.5px;
    line-height: 2;
    color: var(--egd-dark);
    margin: 0 0 24px;
}

.egd-answer-card {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 18px 20px;
}

.egd-answer-card + .egd-answer-card {
    margin-top: 14px;
}

.egd-answer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--egd-primary);
}

.egd-answer-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--egd-dark);
}

.answers-list .egd-title{
    margin-bottom: 20px;
}
.answers-list h2#egd-answers-count {
    font-size: 20px;
    margin-bottom: 0;
}

/* ---------- Simple front-end form (answer form, etc.) ---------- */
.egd-form-group {
    margin-bottom: 18px;
}

.egd-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--egd-text-muted);
    margin-bottom: 8px;
}

.egd-form-group input,
.egd-form-group textarea {
    width: 100%;
    border: 1.5px solid var(--egd-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--egd-dark);
    font-family: inherit;
}

.egd-form-group input:focus,
.egd-form-group textarea:focus {
    outline: none;
    border-color: var(--egd-primary);
}

.egd-form-error {
    display: block;
    color: #c0392b;
    font-size: 12.5px;
    margin-top: 6px;
}

.egd-char-count {
    display: block;
    text-align: end;
    color: var(--egd-text-muted);
    font-size: 12px;
    margin-top: 6px;
}

.egd-char-count-limit {
    color: #c0392b;
    font-weight: 700;
}

.egd-form-group input.egd-input-invalid,
.egd-form-group textarea.egd-input-invalid {
    border-color: #c0392b;
}

.egd-form-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--egd-text-muted);
    font-size: 15px;
}

.egd-form-loading i {
    color: var(--egd-primary);
    margin-inline-end: 8px;
}

.egd-alert-success,
.egd-alert-danger {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.egd-alert-success {
    background: #e8f8f2;
    border: 1.5px solid var(--egd-accent);
    color: #0d6b4f;
}

.egd-alert-danger {
    background: #fdeeee;
    border: 1.5px solid #e35d5d;
    color: #a12d2d;
}

.egd-alert-danger ul {
    margin: 6px 0 0;
    padding-inline-start: 18px;
    list-style: disc;
}

/* ---------- Video cards (videos listing "مقالات أخرى" grid) ---------- */
.egd-video-card {
    display: block;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    overflow: hidden;
    height: 100%;
    transition: 0.3s;
}

.egd-video-card:hover {
    box-shadow: 0 18px 40px rgba(21, 73, 156, 0.1);
    transform: translateY(-4px);
}

.egd-video-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    background: linear-gradient(135deg, var(--egd-primary), var(--egd-primary-dark));
    overflow: hidden;
}

.egd-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egd-video-body {
    padding: 20px 22px 22px;
}

.egd-video-body h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px;
}

.egd-video-body h3 a {
    color: var(--egd-dark);
}

.egd-video-body h3 a:hover {
    color: var(--egd-primary);
}

.egd-video-body p {
    font-size: 14px;
    color: var(--egd-text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.egd-video-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--egd-text-muted);
    border-top: 1px solid var(--egd-border);
    padding-top: 14px;
}

.egd-video-foot a {
    color: var(--egd-primary);
    font-weight: 700;
}

/* ---------- Video list (videos listing page) ---------- */
.egd-video-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.egd-video-list-item {
    display: flex;
    align-items: stretch;
    gap: 18px;
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 18px;
    transition: 0.25s;
}

.egd-video-list-item:hover {
    box-shadow: 0 14px 32px rgba(21, 73, 156, 0.1);
    transform: translateY(-2px);
}

.egd-video-list-cover {
    width: 120px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--egd-primary-light);
    color: var(--egd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
}

.egd-video-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egd-video-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.egd-video-list-body h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--egd-dark);
}

.egd-video-list-body h3 a {
    color: inherit;
}

.egd-video-list-body p {
    font-size: 13.5px;
    color: var(--egd-text-muted);
    line-height: 1.7;
    margin: 8px 0 10px;
}

.egd-video-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.egd-video-list-meta span {
    font-size: 12.5px;
    color: var(--egd-text-muted);
}

.egd-video-list-meta .egd-btn-outline {
    padding: 6px 16px;
    font-size: 13px;
}

@media (max-width: 575px) {
    .egd-video-list-item {
        flex-wrap: wrap;
    }

    .egd-video-list-cover {
        width: 100%;
        height: 160px;
    }
    .egd-search-field {
        flex: auto;
    }
}

/* ---------- Video detail page ---------- */
.egd-video-detail-card {
    background: #fff;
    border: 1.5px solid var(--egd-border);
    border-radius: var(--egd-radius);
    padding: 32px 28px;
}

.egd-video-detail-card h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--egd-dark);
    margin: 0 0 16px;
    line-height: 1.5;
}

.egd-video-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--egd-border);
    font-size: 13.5px;
    color: var(--egd-text-muted);
}

.egd-video-detail-meta span {
    display: inline-flex;
    align-items: center;
}

.egd-video-detail-meta i {
    color: var(--egd-primary);
    margin-inline-end: 6px;
}

.egd-video-embed {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.egd-video-detail-body {
    font-size: 15.5px;
    line-height: 2;
    color: var(--egd-dark);
}

.egd-video-detail-body p {
    margin: 0 0 16px;
}
