/********** Template CSS **********/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --font-family-sans-serif: 'Cairo', sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
/* تصميم مستوحى من pharma-master لبطاقات الأدوية */
.drug-modern-card {
    background: #f0f9ff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 123, 255, 0.1);
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px 18px 16px;
    position: relative;
    border: 1px solid #f9f4f1;
}
.drug-modern-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(30,64,175,0.17);
}
.drug-modern-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffece0 0%, #f9f3f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    overflow: hidden;
}
.drug-modern-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.2s;
}
.drug-modern-card:hover .drug-modern-img img {
    transform: scale(1.08) rotate(-2deg);
}
.drug-modern-body {
    text-align: center;
    width: 100%;
}
.drug-modern-body h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.drug-modern-price {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.drug-modern-btn {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.drug-modern-btn:hover {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}
/* تصميم عصري لبطاقات الأدوية */
.pharma-card {
    background: #f8fafc;
    border-radius: 22px;
    box-shadow: 0 6px 24px rgba(0, 123, 255, 0.07);
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    margin-bottom: 18px;
    position: relative;
}
.pharma-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 32px rgba(30,64,175,0.13);
}
.pharma-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(120deg, #e0e7ff 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
}
.pharma-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px #c7d2fe);
    transition: filter 0.2s;
}
.pharma-card:hover .pharma-img img {
    filter: drop-shadow(0 6px 16px #a5b4fc);
}
.pharma-info {
    padding: 20px 14px 18px 14px;
    width: 100%;
    text-align: center;
}
.pharma-info h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.pharma-info p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 18px;
    min-height: 32px;
}
.pharma-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.pharma-btn:hover {
    background: #0056b3;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.18);
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7)), url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.service-item {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.1);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.2);
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15);
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #ffffff;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
.text-primary {
    color: var(--primary) !important;
}


.bg-primary {
    background-color: var(--primary) !important;
}
.container-fluid.bg-primary.my-5.py-5 {
    color: #fff !important; /* نص أبيض */
}
.navbar-nav .nav-link {
    font-size: 2cap !important;
}
/* Clinic Card Custom Styles */
.clinic-card {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.clinic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15);
}

.clinic-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    flex-grow: 1;
}

.clinic-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.clinic-card .card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.clinic-card .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 200px;
    object-fit: cover;
}

.clinic-card .btn-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}
/* Team Card Styles */
.team-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    margin-bottom: 30px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.2);
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
}

.team-info h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.team-info p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.team-social a:hover {
    color: var(--dark);
}
/* Testimonial Card Styles */
.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.15);
}

.testimonial-img {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--light);
}

.testimonial-img .fa-quote-left {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.5rem;
    color: var(--primary);
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.testimonial-card span {
    color: var(--primary);
    font-weight: 500;
}
