/* =========================================================
   Aleyada Homepage CSS
   File: assets/css/home.css
========================================================= */

:root {
    --ay-primary: #0070f3;
    --ay-primary-dark: #0051b3;
    --ay-secondary: #00a6ff;
    --ay-accent: #00d4aa;
    --ay-bg: #f4f8ff;
    --ay-white: #ffffff;
    --ay-text: #1a2332;
    --ay-muted: #6b7c93;
    --ay-border: #e2eaf4;
    --ay-shadow: 0 4px 24px rgba(0,112,243,0.08);
    --ay-shadow-hover: 0 12px 40px rgba(0,112,243,0.18);
    --ay-radius: 18px;
    --ay-font: 'Cairo', sans-serif;
}

/* =========================
   Hero
========================= */

.ay-hero {
    background: linear-gradient(145deg, #e8f2ff 0%, #f0f8ff 40%, #e0f0ff 100%);
    padding: 80px 24px 90px;
    position: relative;
    overflow: hidden;
    direction: rtl;
    font-family: var(--ay-font);
}

.ay-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,112,243,0.08), transparent 70%);
    border-radius: 50%;
}

.ay-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0,166,255,0.07), transparent 70%);
    border-radius: 50%;
}

.ay-hero-decor {
    position: absolute;
    color: var(--ay-primary);
    opacity: 0.13;
    font-size: 28px;
    animation: ayFloat 6s ease-in-out infinite;
}

.ay-decor-1 { top: 12%; right: 8%; }
.ay-decor-2 { top: 60%; right: 5%; animation-delay: 1.4s; font-size: 22px; }
.ay-decor-3 { top: 25%; left: 6%; animation-delay: 2s; font-size: 20px; }
.ay-decor-4 { bottom: 18%; left: 10%; animation-delay: 3s; font-size: 26px; }

@keyframes ayFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.ay-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ay-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,112,243,0.1);
    color: var(--ay-primary);
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
    border: 1px solid rgba(0,112,243,0.2);
}

.ay-hero-content h1 {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.25;
    color: var(--ay-text);
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.ay-hero-content h1 span {
    background: linear-gradient(135deg, var(--ay-primary), var(--ay-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ay-hero-content p {
    font-size: 17px;
    color: var(--ay-muted);
    margin: 0 0 34px;
    max-width: 520px;
    line-height: 1.9;
}

.ay-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ay-btn-main,
.ay-btn-outline {
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .25s ease;
}

.ay-btn-main {
    background: linear-gradient(135deg, var(--ay-primary), var(--ay-secondary));
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0,112,243,0.35);
}

.ay-btn-outline {
    background: #fff;
    color: var(--ay-primary) !important;
    border: 2px solid var(--ay-primary);
}

.ay-btn-main:hover,
.ay-btn-outline:hover {
    transform: translateY(-2px);
}

.ay-hero-panel {
    background: #fff;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,112,243,0.12);
    border: 1px solid rgba(0,112,243,0.08);
}

.ay-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.ay-hero-stat {
    text-align: center;
    padding: 17px 10px;
    background: var(--ay-bg);
    border-radius: 14px;
    border: 1px solid var(--ay-border);
}

.ay-hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--ay-primary);
    line-height: 1.1;
    margin-bottom: 5px;
}

.ay-hero-stat span {
    font-size: 12px;
    color: var(--ay-muted);
    font-weight: 700;
}

.ay-hero-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #e8f2ff, #f0f8ff);
    padding: 17px;
    border-radius: 16px;
    border: 1px solid rgba(0,112,243,0.12);
}

.ay-preview-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ay-primary), var(--ay-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.ay-preview-info {
    flex: 1;
}

.ay-preview-info strong {
    display: block;
    font-size: 15px;
    color: var(--ay-text);
    margin-bottom: 3px;
}

.ay-preview-info span {
    display: block;
    font-size: 13px;
    color: var(--ay-muted);
    margin-bottom: 6px;
}

.ay-preview-stars {
    color: #f59e0b;
    font-size: 13px;
}

.ay-preview-stars small {
    color: var(--ay-muted);
    margin-right: 5px;
}

.ay-preview-badge {
    background: #e8f7f0;
    color: #10b981;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================
   Common Sections
========================= */

.ay-section,
.specialties-section,
.home-doctors-section,
.home-articles-section {
    padding: 70px 24px;
    direction: rtl;
    font-family: var(--ay-font);
}

.ay-section,
.home-articles-section {
    background: var(--ay-bg);
}

.specialties-section,
.home-doctors-section {
    background: #fff;
}

.ay-section-inner,
.section-inner,
.home-section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ay-section-head,
.section-head,
.home-section-head {
    text-align: center;
    margin-bottom: 44px;
}

.ay-section-head h2,
.section-head h2,
.home-section-head h2 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
}

.ay-section-head p,
.section-head p,
.home-section-head p {
    color: #64748b;
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =========================
   Specialties Shortcode
========================= */

.spec-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

.spec-link {
    text-decoration: none !important;
    color: inherit;
}

.spec-link.is-hidden {
    display: none;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 108px;
    padding: 18px 10px;
    border-radius: 16px;
    border: 1.5px solid var(--ay-border);
    background: var(--ay-bg);
    transition: all .25s ease;
}

.spec-item:hover {
    border-color: var(--ay-primary);
    background: rgba(0,112,243,0.04);
    transform: translateY(-3px);
}

.spec-item i {
    font-size: 26px;
    color: var(--ay-primary);
}

.spec-item span {
    font-size: 13px;
    font-weight: 800;
    color: var(--ay-text);
    text-align: center;
}

.spec-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    background: var(--ay-primary);
    color: white;
    border: none;
    padding: 10px 26px;
    border-radius: 30px;
    font-family: var(--ay-font);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

/* =========================
   Doctors Shortcode
========================= */

.home-doctors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.home-doctor-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,0.07);
    transition: all .25s ease;
}

.home-doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,87,184,0.14);
}

.home-doctor-image {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: #e8f0fb;
    text-decoration: none !important;
}

.home-doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-doctor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ay-primary);
    font-size: 70px;
}

.home-doctor-rating {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fff;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.home-doctor-rating i {
    color: #f5b50a;
}

.home-doctor-status {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #10b981;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900;
}

.home-doctor-body {
    padding: 18px;
}

.home-doctor-body h3 {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.4;
}

.home-doctor-body h3 a {
    color: #0f172a;
    text-decoration: none !important;
}

.home-doctor-title,
.home-doctor-location {
    margin: 0 0 9px;
    color: var(--ay-primary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.home-doctor-location {
    color: #64748b;
}

.home-doctor-title i,
.home-doctor-location i {
    margin-left: 6px;
}

.home-doctor-fee {
    border-top: 1px solid #e2e8f0;
    margin-top: 14px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-doctor-fee span {
    color: #64748b;
    font-size: 13px;
}

.home-doctor-fee strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}

.home-doctor-fee small {
    font-size: 12px;
    color: #64748b;
    margin-right: 3px;
}

.home-doctor-wa {
    margin-top: 14px;
    background: linear-gradient(135deg, #22c55e, #059669);
    color: #fff !important;
    border-radius: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 900;
}

.home-doctors-more {
    text-align: center;
    margin-top: 34px;
}

.home-doctors-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ay-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 900;
}

.home-doctors-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-weight: 800;
}

/* =========================
   Features / Future Blocks
========================= */

.ay-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ay-blocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ay-feature-card,
.ay-service-block {
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px;
    box-shadow: var(--ay-shadow);
    border: 1px solid var(--ay-border);
    transition: all .25s ease;
    position: relative;
}

.ay-feature-card:hover,
.ay-service-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--ay-shadow-hover);
}

.ay-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,112,243,0.1), rgba(0,166,255,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 26px;
    color: var(--ay-primary);
}

.ay-feature-card h3,
.ay-service-block h3 {
    font-size: 19px;
    font-weight: 900;
    color: var(--ay-text);
    margin: 0 0 10px;
}

.ay-feature-card p,
.ay-service-block p {
    font-size: 14px;
    color: var(--ay-muted);
    line-height: 1.8;
    margin: 0;
}

.ay-soon-badge {
    display: inline-flex;
    background: #e8f7f0;
    color: #10b981;
    font-size: 12px;
    font-weight: 900;
    border-radius: 30px;
    padding: 5px 11px;
    margin-bottom: 12px;
}

/* =========================
   Articles Shortcode
========================= */

.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-article-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,0.07);
    transition: all .25s ease;
}

.home-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,87,184,0.14);
}

.home-article-img {
    height: 210px;
    background: #e8f0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ay-primary);
    font-size: 42px;
    text-decoration: none !important;
}

.home-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-article-body {
    padding: 22px;
}

.home-article-body h3 {
    font-size: 19px;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.5;
}

.home-article-body h3 a {
    color: #0f172a;
    text-decoration: none !important;
}

.home-article-body p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.home-article-link {
    color: var(--ay-primary);
    font-weight: 900;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1200px) {
    .home-doctors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .spec-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .ay-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .ay-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .spec-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ay-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ay-hero {
        padding: 55px 16px 65px;
    }

    .ay-hero-panel {
        padding: 20px;
    }

    .ay-hero-stats {
        grid-template-columns: 1fr;
    }

    .ay-hero-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-doctor-image {
        height: 230px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ay-features-grid,
    .ay-blocks-grid,
    .home-articles-grid {
        grid-template-columns: 1fr;
    }

    .ay-section,
    .specialties-section,
    .home-doctors-section,
    .home-articles-section {
        padding: 50px 16px;
    }
}

@media (max-width: 520px) {
    .ay-hero-actions {
        flex-direction: column;
    }

    .ay-btn-main,
    .ay-btn-outline {
        width: 100%;
    }

    .home-doctors-grid {
        grid-template-columns: 1fr;
    }

    .home-doctor-image {
        height: 300px;
    }
}
/* =========================================================
   Aleyada Doctor Search Form
========================================================= */

.ay-doctor-search-wrap {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ay-doctor-search-form {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0,112,243,0.12);
    padding: 18px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.ay-search-field label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 7px;
}

.ay-search-input-icon {
    position: relative;
}

.ay-search-input-icon i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0070f3;
    font-size: 14px;
}

.ay-search-input-icon input,
.ay-search-select {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe7f5;
    background: #f8fbff;
    border-radius: 12px;
    padding: 0 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #1a2332;
    outline: none;
}

.ay-search-input-icon input {
    padding-right: 40px;
}

.ay-search-input-icon input:focus,
.ay-search-select:focus {
    border-color: #0070f3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,112,243,0.08);
}

.ay-search-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ay-search-submit {
    height: 48px;
    min-width: 110px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0070f3, #00a6ff);
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.ay-search-reset {
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Compact search inside sidebar */
.ay-search-compact {
    padding: 0;
}

.ay-search-compact .ay-doctor-search-form {
    grid-template-columns: 1fr;
    box-shadow: none;
    border-radius: 14px;
    padding: 0;
    border: none;
}

.ay-search-compact .ay-search-actions {
    flex-direction: column;
    align-items: stretch;
}

.ay-search-compact .ay-search-submit,
.ay-search-compact .ay-search-reset {
    width: 100%;
}

/* Search results page */

.ay-search-results-page {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: #edf4fb;
    min-height: 100vh;
}

.ay-search-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ay-search-results-hero {
    background: linear-gradient(135deg, #e8f2ff, #ffffff);
    padding: 46px 0 40px;
    border-bottom: 1px solid #dbe7f5;
}

.ay-search-results-hero h1 {
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 8px;
}

.ay-search-results-hero p {
    color: #64748b;
    font-size: 16px;
    margin: 0 0 24px;
    line-height: 1.8;
}

.ay-search-results-section {
    padding: 34px 0 70px;
}

.ay-search-results-head {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}

.ay-search-results-head h2 {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px;
}

.ay-search-results-head p {
    color: #64748b;
    margin: 0;
}

.ay-search-results-head strong {
    color: #0070f3;
}

.ay-search-grid {
    margin-top: 0;
}

.ay-search-empty {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    padding: 44px 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}

.ay-search-empty i {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: #e8f2ff;
    color: #0070f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
}

.ay-search-empty h3 {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 8px;
}

.ay-search-empty p {
    color: #64748b;
    margin: 0;
}

/* Responsive */

@media (max-width: 1100px) {
    .ay-doctor-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .ay-search-keyword {
        grid-column: span 2;
    }

    .ay-search-actions {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .ay-doctor-search-wrap,
    .ay-search-container {
        padding: 0 14px;
    }

    .ay-doctor-search-form {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 16px;
    }

    .ay-search-keyword,
    .ay-search-actions {
        grid-column: auto;
    }

    .ay-search-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ay-search-submit,
    .ay-search-reset {
        width: 100%;
    }

    .ay-search-results-hero h1 {
        font-size: 30px;
    }
}
/* =========================================================
   Doctor Submission Form
========================================================= */

.ay-doctor-submit-page {
    background: #edf4fb;
    padding: 54px 20px 80px;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.ay-submit-container {
    max-width: 1100px;
    margin: 0 auto;
}

.ay-submit-head {
    background: linear-gradient(135deg, #e8f2ff, #ffffff);
    border: 1px solid #dbe7f5;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0,112,243,0.08);
}

.ay-submit-head h1 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
}

.ay-submit-head p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.ay-doctor-submit-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ay-form-section,
.ay-consent-box {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 4px 24px rgba(15,23,42,0.07);
}

.ay-form-section h2 {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.ay-clinic-group {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8fbff;
}

.ay-clinic-group:last-child {
    margin-bottom: 0;
}

.ay-clinic-group h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0057b8;
    margin: 0 0 16px;
}

.ay-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ay-field {
    margin-bottom: 16px;
}

.ay-field label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #334155;
    margin-bottom: 7px;
}

.ay-field input,
.ay-field select,
.ay-field textarea {
    width: 100%;
    border: 1px solid #dbe7f5;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #1a2332;
    outline: none;
}

.ay-field textarea {
    resize: vertical;
    min-height: 90px;
}

.ay-field input:focus,
.ay-field select:focus,
.ay-field textarea:focus {
    border-color: #0070f3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,112,243,0.08);
}

.ay-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 230px;
    overflow-y: auto;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
}

.ay-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.ay-checkbox-grid input {
    width: auto;
}

.ay-consent-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

.ay-consent-box input {
    margin-top: 6px;
}

.ay-submit-actions {
    text-align: center;
}

.ay-submit-actions button {
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #0070f3, #00a6ff);
    color: #fff;
    min-height: 52px;
    padding: 0 38px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 24px rgba(0,112,243,0.25);
}

.ay-form-message {
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 900;
}

.ay-form-message.success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ay-form-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ay-form-note {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.ay-hidden-field {
    display: none !important;
}

@media(max-width: 768px) {
    .ay-doctor-submit-page {
        padding: 34px 14px 60px;
    }

    .ay-submit-head {
        padding: 24px;
    }

    .ay-submit-head h1 {
        font-size: 28px;
    }

    .ay-form-section {
        padding: 20px;
    }

    .ay-form-grid {
        grid-template-columns: 1fr;
    }

    .ay-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .ay-submit-actions button {
        width: 100%;
    }
}
/* =========================================================
   Homepage doctors final responsive grid
========================================================= */

.home-doctors-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media(max-width: 1200px) {
    .home-doctors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media(max-width: 992px) {
    .home-doctors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(max-width: 768px) {
    .home-doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 520px) {
    .home-doctors-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Specialties fixed cards
========================================================= */

.spec-grid {
    align-items: stretch;
}

.spec-item {
    height: 138px;
    min-height: 138px;
    padding: 18px 12px !important;
}

.spec-item i {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px !important;
    line-height: 1 !important;
}

.spec-item span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.45;
}

.ay-more-wrap {
    text-align: center;
    margin-top: 28px;
}

.ay-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0057b8;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 900;
}
/* =========================================================
   Specialties directory page
========================================================= */

.ay-specialties-page {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: #edf4fb;
    min-height: 100vh;
}

.ay-specialties-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ay-specialties-hero {
    padding: 38px 0 34px;
    background: linear-gradient(135deg, #edf4fb, #ffffff);
    border-bottom: 1px solid #dbe7f5;
}

.ay-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 18px;
}

.ay-page-breadcrumb a {
    color: #0057b8;
    text-decoration: none;
    font-weight: 800;
}

.ay-specialties-hero-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 22px;
    padding: 34px;
    margin-bottom: 22px;
    box-shadow: 0 10px 34px rgba(15,23,42,0.08);
}

.ay-specialties-hero-card h1 {
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
}

.ay-specialties-hero-card p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.ay-specialties-list-section {
    padding: 34px 0 70px;
}

.ay-all-specialties-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.ay-specialty-directory-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    padding: 24px 16px;
    min-height: 150px;
    text-decoration: none !important;
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(15,23,42,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: all .25s ease;
}

.ay-specialty-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,87,184,0.14);
    border-color: #0057b8;
}

.ay-specialty-directory-card .ay-spec-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0070f3;
}

.ay-specialty-directory-card .ay-spec-icon i {
    font-size: 32px;
}

.ay-specialty-directory-card strong {
    font-size: 16px;
    font-weight: 900;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ay-specialty-directory-card small {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

/* Thank you page */

.ay-thank-you-page {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: #edf4fb;
    padding: 70px 20px;
}

.ay-thank-you-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 24px;
    padding: 42px 30px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(0,112,243,0.12);
}

.ay-thank-you-icon {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 18px;
}

.ay-thank-you-card h1 {
    font-size: 34px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px;
}

.ay-thank-you-card p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 20px;
}

.ay-request-id {
    background: #f4f8ff;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 22px;
    color: #334155;
    font-weight: 800;
}

@media(max-width: 1100px) {
    .ay-all-specialties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width: 768px) {
    .ay-specialties-container {
        padding: 0 14px;
    }

    .ay-all-specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ay-specialties-hero-card {
        padding: 24px;
    }

    .ay-specialties-hero-card h1 {
        font-size: 28px;
    }
}

@media(max-width: 520px) {
    .ay-all-specialties-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Release 2.0 homepage updates
========================================================= */

.home-doctors-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-doctors-grid .aleyada-doctor-card {
    height: 100%;
}

.ay-preview-points {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.ay-preview-points span {
    color: #0057b8;
    background: rgba(0,87,184,.08);
    border-radius: 30px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ay-service-block-link {
    color: inherit;
    text-decoration: none !important;
    display: block;
}

.ay-available-badge {
    display: inline-flex;
    background: #e8f7f0;
    color: #10b981;
    font-size: 12px;
    font-weight: 900;
    border-radius: 30px;
    padding: 5px 11px;
    margin-bottom: 12px;
}

.ay-block-cta {
    margin-top: 18px;
    color: #0057b8;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ay-search-select:disabled,
.ay-field select:disabled {
    opacity: .65;
    cursor: not-allowed;
    background: #eef2f7;
    color: #64748b;
}

.ay-form-section-note,
.ay-field small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    margin: -8px 0 14px;
}

.ay-private-field {
    grid-column: span 2;
    background: #fff8e8;
    border: 1px solid #fde7b2;
    border-radius: 14px;
    padding: 14px;
}

@media(max-width: 1200px) {
    .home-doctors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media(max-width: 992px) {
    .home-doctors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(max-width: 768px) {
    .home-doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ay-private-field {
        grid-column: auto;
    }
}

@media(max-width: 520px) {
    .home-doctors-grid {
        grid-template-columns: 1fr;
    }
}
