/* ============================================
   Khobara AlTibb Co. - Professional Website
   Colors based on logo: #A3C92B (lime green), #2C3E8C (royal blue)
   ============================================ */

:root {
    --primary-color: #2C3E8C;
    --secondary-color: #A3C92B;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
}

/* Fonts */
body {
    font-family: 'Cairo', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
}

[dir="ltr"] body {
    font-family: 'Roboto', sans-serif;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-inline-end: 15px;
}

.brand-text {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link.lang-switcher {
    color: var(--white) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px 2px 0 0;
}

.lang-switcher {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 5px;
    padding: 0.5rem 1rem !important;
    margin-inline-start: 1rem;
}

.navbar-nav .nav-link.lang-switcher,
.navbar-nav .nav-link.lang-switcher *,
.lang-switcher,
.lang-switcher *,
.lang-switcher i,
.lang-switcher span {
    color: var(--white) !important;
}

.lang-switcher:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
}

.navbar-nav .nav-link.lang-switcher:hover,
.navbar-nav .nav-link.lang-switcher:hover *,
.lang-switcher:hover,
.lang-switcher:hover *,
.lang-switcher:hover i,
.lang-switcher:hover span {
    color: var(--white) !important;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slideshow .carousel-item {
    height: 600px;
}

.hero-slideshow .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.6);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
    padding: 2rem;
}

.carousel-caption h1,
.carousel-caption h2 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.carousel-caption .lead {
    color: var(--white);
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(44, 62, 140, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.5;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: var(--secondary-color);
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

/* Intro Section */
.intro-section {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    margin-top: 76px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* About Page */
.about-logo {
    max-width: 300px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.section-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.mission-list li:last-child {
    border-bottom: none;
}

.mission-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

[dir="rtl"] .mission-list li {
    padding: 1rem 2rem 1rem 0;
}

[dir="rtl"] .mission-list li::before {
    left: auto;
    right: 0;
}

.value-item {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.value-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.operation-item {
    padding: 1.5rem;
}

.operation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.8rem;
}

.operation-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.fact-item {
    padding: 1.5rem;
}

.fact-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fact-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Page */
.contact-form-card,
.contact-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 140, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Vision, Mission, Values Sections */
.vision-section,
.mission-section,
.values-section {
    padding: 5rem 0;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 1rem 0;
}

.value-item p {
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slideshow,
    .hero-slideshow .carousel-item {
        height: 400px;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }

    .hero-slideshow,
    .hero-slideshow .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption h2 {
        font-size: 1.25rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > * {
    animation: fadeIn 0.6s ease-out;
}

