﻿:root {
    --primary: #f5a300;
    --primary-dark: #e09100;
    --light: #ffffff;
    --gray: #f6f6f6;
    --text: #333;
    --border: #e6e6e6;
    --radius: 14px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #fafafa;
    color: var(--text);
    direction: rtl;
    font-family: dana-fanum;
}

a {
    text-decoration: none;
    color: inherit
}
/* ================= Stories ================= */
/* ===== Story Viewer ===== */
.story-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    display: none;
    flex-direction: column;
    z-index: 9999;
}

    .story-viewer.active {
        display: flex;
    }

.story-header {
    position: absolute;
    top: 10px;
    width: 100%;
    padding: 0 20px;
    z-index: 10;
}

.progress-bars {
    display: flex;
    gap: 5px;
}

    .progress-bars div {
        flex: 1;
        height: 3px;
        background: rgba(255,255,255,0.3);
        overflow: hidden;
    }

        .progress-bars div span {
            display: block;
            height: 100%;
            width: 0%;
            background: #fff;
            transition: width linear;
        }

.story-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

    .story-controls button {
        background: rgba(255,255,255,0.2);
        border: none;
        color: #fff;
        padding: 6px 10px;
        cursor: pointer;
        border-radius: 6px;
    }

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .story-content img,
    .story-content video {
        max-width: 100%;
        max-height: 100%;
    }

.story-section {
    width: 93%;
    margin: 7px auto;
}

.story-title h3 {
    margin: 0 0 15px;
    color: var(--primary-dark);
}

.stories-wrapper {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px;
}

    .stories-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .stories-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

.story {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
}

.story-ring {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
}

.story:hover .story-ring {
    transform: scale(1.08);
}

.story-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #eee;
    border: 3px solid #fff;
}

.story span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #444;
}

.slider {
    width: 90%;
    margin: 30px auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height:250px;
}

    .slider h2 {
        margin: 0 0 10px
    }

/* ================= Feature Boxes ================= */
.features {
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.feature-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ================= Products ================= */
.products-section {
    width: 90%;
    margin: 50px auto;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .products-header h3 {
        margin: 0;
        color: var(--primary-dark);
    }

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
}

.product-image {
    height: 140px;
    background: var(--gray);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.price {
    color: var(--primary-dark);
    font-weight: bold;
}
/* ================= Posters Section ================= */
.posters-section {
    width: 90%;
    margin: 50px 70px 15px 70px;
}

.posters-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.poster {
    position: relative;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff;
    cursor: pointer;
    transition: transform .3s ease;
}

    .poster:hover {
        transform: translateY(-6px);
    }

.poster-content {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 60%;
}

    .poster-content h3 {
        margin: 0 0 10px;
        font-size: 22px;
    }

    .poster-content p {
        margin: 0 0 15px;
        font-size: 14px;
        opacity: .95;
    }

    .poster-content button {
        border: none;
        background: #fff;
        color: var(--primary-dark);
        padding: 8px 16px;
        border-radius: var(--radius);
        font-size: 13px;
        cursor: pointer;
    }

/* Responsive */
@media(max-width:768px) {
    .posters-container {
        grid-template-columns: 1fr;
    }

    .poster {
        height: 220px;
    }
}
/* ================= About Hero ================= */
.about-hero {
    width: 100%;
}

.about-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* Image */
.about-image {
    display: flex;
    justify-content: center;
}

.image-card {
    width: 100%;
    max-width: 420px;
    height: 320px;
    background: #dfe9f1;
    border-radius: 24px;
    background: url('hospital.jpg') center/cover no-repeat;
}

/* Content */
.about-content {
    text-align: right;
}

.badge {
    display: inline-block;
    background: #f19f00;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 14px;
}

.about-content h2 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
    color: #123a5c;
}

.about-content h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #4f6b82;
}

.about-content p {
    font-size: 14px;
    line-height: 1.9;
    color: #5f7387;
    max-width: 650px;
    text-align: justify;
}

/* Buttons */
.about-buttons {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.btn-primary {
    background: #1e78ff;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    font-family: dana-fanum;
}

.btn-outline {
    background: #fff;
    color: #1e78ff;
    border: 1px solid #d6e4ff;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    font-family: dana-fanum;
}

/* Responsive */
@media(max-width:900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .about-buttons {
        justify-content: center;
    }
}
/* ================= Departments ================= */
.departments {
    width: 100%;
    background: #f7fbff;
    padding: 80px 0;
}

.departments-header {
    width: 90%;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.dep-badge {
    display: inline-block;
    background: #e6f7ec;
    color: #2aa36b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.departments-header h2 {
    margin: 0;
    font-size: 32px;
    color: #123a5c;
}

.departments-header p {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.8;
    color: #5f7387;
}

/* Grid */
.departments-grid {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 22px;
}

/* Card */
.dep-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    position: relative;
    transition: .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

    .dep-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,.08);
    }

/* Number */
.dep-number {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 12px;
    color: #a0b4c8;
}

/* Icon */
.dep-icon {
    width: 46px;
    height: 46px;
    background: #edf4ff;
    color: #1e78ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.dep-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #123a5c;
}

.dep-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7f93;
}

/* Responsive */
@media(max-width:900px) {
    .departments-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ================= Medical Grid ================= */
.medical-grid {
    width: 100%;
}

.grid-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 20px;
}

/* Cards */
.card {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    overflow: hidden;
    color: #123;
}

    .card h4 {
        margin: 0 0 12px;
        font-size: 18px;
    }

    .card button {
        background: #fff;
        border: none;
        padding: 6px 16px;
        border-radius: 18px;
        font-size: 12px;
        cursor: pointer;
    }

    /* Tall card */
    .card.tall {
        grid-row: span 3;
    }

/* Colors */
.pink {
    background: #f15b6c;
    color: #fff;
}

.blue {
    background: #2f6fd6;
    color: #fff;
}

.light {
    background: #eef3f9;
}

.dark {
    background: #102a43;
    color: #fff;
}

.red {
    background: #b51f2e;
    color: #fff;
}

/* Decorative Shapes (Placeholder for images) */
.decor {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    opacity: .25;
    border-radius: 50%;
    background: #fff;
}

/* Responsive */
@media(max-width:900px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .card.tall {
        grid-row: auto;
    }
}
/* ================= Medical Section Header ================= */
.medical-header {
    width: 90%;
    margin: 0 auto 50px;
    text-align: center;
}

    .medical-header .badge {
        display: inline-block;
        background: #dff5e6;
        color: #2f8f5b;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .medical-header h2 {
        margin: 0 0 12px;
        font-size: 32px;
        color: #102a43;
    }

    .medical-header p {
        max-width: 600px;
        margin: 0 auto;
        font-size: 14px;
        color: #6b7c93;
        line-height: 1.8;
    }
/* ================= Footer Styles ================= */
.site-footer {
    background: linear-gradient(135deg,#ffb347,#ff8c00);
    color: #fff;
    margin-top: 80px;
}


.footer-container {
    width: 90%;
    margin: 0 auto;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 40px;
}


.footer-col h4 {
    margin-bottom: 16px;
    font-size: 18px;
}


.footer-logo {
    font-size: 26px;
    margin-bottom: 16px;
}


.footer-col p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.9;
}


.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


    .footer-col ul li {
        margin-bottom: 10px;
    }


        .footer-col ul li a {
            color: #fff;
            font-size: 14px;
            opacity: 0.9;
            transition: all .3s ease;
        }


            .footer-col ul li a:hover {
                opacity: 1;
                padding-right: 6px;
            }


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    opacity: 0.9;
}


@media(max-width:768px) {
    .footer-container {
        text-align: center;
    }
}