/*
 * ============================================================
 * مستشفى الأطفال التخصصي بالبحيرة
 * Care Pathways Redesign — مسارات الرعاية الطبية
 * ============================================================
 * ملف: pd-pathways.css
 * RTL Mode & Responsive Design System Integration
 * ============================================================
 */

:root {
    --pw-primary: #0cb8b6;
    --pw-primary-dark: #00796b;
    --pw-dark-green: #11382b;
    --pw-accent-gold: #d4af37;
    --pw-bg-light: #f4f9f6;
    --pw-white: #ffffff;
    --pw-text-main: #2b3933;
    --pw-text-muted: #5e7067;
    --pw-border: rgba(12, 184, 182, 0.16);
    --pw-shadow-soft: 0 10px 30px rgba(17, 56, 43, 0.05);
    --pw-shadow-hover: 0 20px 40px rgba(12, 184, 182, 0.14);
}

.pw-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.pw-hero {
    position: relative;
    background: linear-gradient(135deg, #09281e 0%, #11382b 50%, #0d4636 100%);
    color: var(--pw-white);
    padding: 70px 0 90px;
    overflow: hidden;
    direction: rtl;
    font-family: var(--hf-font, system-ui);
}

.pw-hero__bg-glow {
    position: absolute;
    top: -30%;
    right: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(12, 184, 182, 0.25) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
}

.pw-hero__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pw-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.pw-breadcrumb a {
    color: var(--pw-primary);
    text-decoration: none;
    font-weight: 600;
}

.pw-breadcrumb .sep {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.pw-breadcrumb .current {
    color: var(--pw-white);
    font-weight: 700;
}

.pw-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 184, 182, 0.15);
    border: 1px solid rgba(12, 184, 182, 0.3);
    color: #4dd0e1;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pw-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--pw-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pw-primary);
    animation: pwPulse 2s infinite;
}

@keyframes pwPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(12, 184, 182, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(12, 184, 182, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(12, 184, 182, 0); }
}

.pw-hero__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--pw-white);
    margin-bottom: 20px;
}

.pw-hero__desc {
    font-size: 16.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
    max-width: 620px;
}

.pw-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pw-hero__visual {
    position: relative;
}

.pw-hero__card-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.12);
}

.pw-hero__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.pw-hero__floating-tag {
    position: absolute;
    background: rgba(17, 56, 43, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.pw-hero__floating-tag--1 {
    top: 24px;
    right: 24px;
}

.pw-hero__floating-tag--2 {
    bottom: 24px;
    left: 24px;
}

.pw-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(12, 184, 182, 0.2);
    color: var(--pw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pw-float-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
}

.pw-float-info span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   2. TIMELINE SECTION
   ============================================================ */
.pw-steps-sec {
    padding: 90px 0;
    background: var(--pw-bg-light);
    direction: rtl;
    font-family: var(--hf-font, system-ui);
}

.pd-section-head {
    margin-bottom: 50px;
}

.pd-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 184, 182, 0.12);
    color: var(--pw-primary-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

.pd-section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--pw-dark-green);
    margin-bottom: 12px;
}

.pd-section-title span {
    color: var(--pw-primary);
}

.pd-section-desc {
    font-size: 15.5px;
    color: var(--pw-text-muted);
    max-width: 650px;
    margin-inline: auto;
}

.pw-timeline {
    position: relative;
    max-width: 960px;
    margin-inline: auto;
    padding-inline: 20px;
}

.pw-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    background: linear-gradient(to bottom, var(--pw-primary) 0%, rgba(12, 184, 182, 0.2) 100%);
    border-radius: 4px;
}

.pw-timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.pw-timeline-item:last-child {
    margin-bottom: 0;
}

.pw-timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.pw-timeline-card {
    width: 45%;
    background: var(--pw-white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--pw-border);
    box-shadow: 0 8px 24px rgba(12, 184, 182, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pw-timeline-item:hover .pw-timeline-card {
    transform: translateY(-6px);
    box-shadow: var(--pw-shadow-hover);
    border-color: var(--pw-primary);
}

.pw-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(12, 184, 182, 0.1);
    color: var(--pw-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.pw-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--pw-dark-green);
    margin-bottom: 10px;
}

.pw-card-text {
    font-size: 14.5px;
    color: var(--pw-text-muted);
    line-height: 1.75;
}

.pw-timeline-node {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pw-primary) 0%, var(--pw-dark-green) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 0 0 6px var(--pw-bg-light), 0 8px 20px rgba(12, 184, 182, 0.3);
    z-index: 3;
}

/* ============================================================
   3. CLINICAL PATHWAYS GRID SECTION (Design System Grid & Cards)
   ============================================================ */
.pw-grid-sec {
    padding: 90px 0;
    background: var(--pw-white);
    direction: rtl;
    font-family: var(--hf-font, system-ui);
}

.pd-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pd-card-base.pd-service-card {
    background: var(--pw-white);
    border-radius: 20px;
    border: 1px solid rgba(17, 56, 43, 0.08);
    overflow: hidden;
    box-shadow: var(--pw-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-card-base.pd-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pw-shadow-hover);
    border-color: rgba(12, 184, 182, 0.3);
}

.pw-hero__card-frame {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 440px !important;
    min-height: 440px !important;
    border-radius: 28px !important;
    display: block !important;
}

.pw-hero__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.pd-service-card__image,
.pw-card__img-wrap {
    position: relative !important;
    overflow: hidden !important;
    height: 240px !important;
    min-height: 240px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.pd-service-card__image img,
.pw-card__img-wrap img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s ease;
}

.pd-card-base.pd-service-card:hover .pd-service-card__image img {
    transform: scale(1.05);
}

.pd-service-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.pd-service-badge--popular { background: rgba(17, 56, 43, 0.9); }
.pd-service-badge--new { background: rgba(12, 184, 182, 0.9); }

.pd-service-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pd-service-card__title {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--pw-dark-green);
    margin-bottom: 12px;
    line-height: 1.4;
}

.pd-service-card__desc {
    font-size: 14px;
    color: var(--pw-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.pd-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.pd-service-features li {
    font-size: 13.5px;
    color: var(--pw-text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-service-features li i {
    color: var(--pw-primary);
    font-size: 14px;
}

.pd-service-card__actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pd-btn-primary {
    background: linear-gradient(135deg, var(--pw-primary) 0%, var(--pw-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(12, 184, 182, 0.3);
}

.pd-btn-primary:hover {
    background: var(--pw-dark-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 56, 43, 0.3);
}

.pd-btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.pd-btn-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

/* ============================================================
   4. TABLE SECTION (Table Responsive & Style)
   ============================================================ */
.pw-table-sec {
    padding: 90px 0;
    background: var(--pw-bg-light);
    direction: rtl;
    font-family: var(--hf-font, system-ui);
}

.table-responsive.pd-table-responsive {
    background: var(--pw-white);
    border-radius: 20px;
    overflow-x: auto;
    border: 1px solid var(--pw-border);
    box-shadow: var(--pw-shadow-soft);
}

.pw-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.pw-table thead {
    background: var(--pw-dark-green);
}

.pw-table th {
    background: var(--pw-dark-green);
    color: #ffffff;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
    border-bottom: 3px solid var(--pw-primary);
}

.pw-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(17, 56, 43, 0.06);
    font-size: 14px;
    color: var(--pw-text-main);
    transition: background 0.2s ease;
}

.pw-table tbody tr {
    transition: background 0.25s ease;
}

.pw-table tbody tr:hover {
    background: rgba(12, 184, 182, 0.05);
}

.pw-table tr:last-child td {
    border-bottom: none;
}

.pw-td-program {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pw-dark-green);
}

.pw-td-program i {
    color: var(--pw-primary);
    font-size: 18px;
}

.pw-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
}

.pw-pill--green { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.pw-pill--blue { background: rgba(33, 150, 243, 0.12); color: #1565c0; }
.pw-pill--purple { background: rgba(156, 39, 176, 0.12); color: #7b1fa2; }
.pw-pill--gold { background: rgba(255, 193, 7, 0.15); color: #f57f17; }

.pw-table-note {
    font-size: 13px;
    color: var(--pw-text-muted);
    margin-top: 16px;
    text-align: center;
}

/* ============================================================
   5. CTA SECTION
   ============================================================ */
.pw-cta-sec {
    padding: 60px 0 90px;
    direction: rtl;
    font-family: var(--hf-font, system-ui);
}

.pw-cta-card {
    background: linear-gradient(135deg, var(--pw-dark-green) 0%, #082118 100%);
    border-radius: 28px;
    padding: 50px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(17, 56, 43, 0.25);
    border: 1px solid rgba(12, 184, 182, 0.3);
}

.pw-cta-title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pw-cta-desc {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 650px;
    margin-inline: auto;
    margin-bottom: 24px;
}

.pw-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .pw-hero__inner { grid-template-columns: 1fr; }
    .pw-hero__visual { display: none; }
    .pw-timeline::before { right: 20px; }
    .pw-timeline-item { flex-direction: row !important; }
    .pw-timeline-node { right: 20px; transform: translateX(50%); }
    .pw-timeline-card { width: calc(100% - 60px); margin-right: 60px; }
    .pw-cta-card { padding: 36px 24px; }
}
