/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #0b4f8c;
    /* Corporate Deep Blue */
    --secondary-color: #00a8e8;
    /* Trustworthy Cyan */
    --accent-color: #fca311;
    /* Subtle Accent (Gold/Orange) for CTAs */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --border-color: #e9ecef;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Professional, subtle shadow */
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
    /* Professional curve */
    --nav-height: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #0d2b45;
    /* Dark Navy for Headings */
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    height: var(--nav-height);
    transition: all 0.3s;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    padding: 0 1.2rem !important;
    transition: color 0.3s;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
    }

.btn-login {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s;
}

    .btn-login:hover {
        background-color: #083d6b;
    }

.btn-admin-login {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s;
    border-color: var(--primary-color)
}

.btn-admin-login:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Carousel */
.carousel-item {
    height: 600px;
    background-color: #000;
}

    .carousel-item img {
        object-fit: cover;
        height: 100%;
        width: 100%;
        opacity: 0.5;
        /* Overlay for readability */
    }

.carousel-caption {
    bottom: 35%;
    left: 10%;
    right: 10%;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
    /* Ensure visibility on dark overlay */
}

.hero-text {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

    .section-title h2 {
        font-size: 2.5rem;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: var(--secondary-color);
            border-radius: 2px;
        }

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Clients Strip */
.clients-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.client-logo {
    opacity: 0.6;
    transition: opacity 0.3s, filter 0.3s;
    filter: grayscale(100%);
    max-height: 40px;
}

    .client-logo:hover {
        opacity: 1;
        filter: grayscale(0%);
    }

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
        border-color: var(--secondary-color);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 168, 232, 0.1);
    color: var(--primary-color);
    line-height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: background 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

/* Service Cards */
.service-card {
    border: none;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

.service-body {
    padding: 25px;
}

/* Stats */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background-color: white;
    padding: 1.25rem;
}

    .accordion-button:not(.collapsed) {
        color: var(--primary-color);
        background-color: rgba(0, 168, 232, 0.05);
        box-shadow: none;
    }

.accordion-body {
    color: var(--text-secondary);
    padding: 1.5rem;
}

/* Contact Form */
.form-control,
.form-select {
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

    .form-control:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.25);
    }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #083d6b;
        border-color: #083d6b;
    }

/* Footer */
.footer {
    background-color: #0a1f33;
    /* Corporate Dark */
    color: white;
    padding: 60px 0 30px;
}

    .footer h5 {
        color: white;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .footer ul li a {
        color: #aeb9c2;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer ul li a:hover {
            color: white;
        }

/* News Cards */
.news-card {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s;
}

    .news-card:hover {
        transform: translateY(-5px);
    }

.news-img {
    height: 200px;
    object-fit: cover;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

/* Subscribe Button Fix */
.input-group .btn {
    z-index: 2;
    height: 100%;
    /* Ensure it matches input */
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.input-group .form-control {
    height: auto;
    /* Let padding define height */
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* RTL / Arabic Support */


html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}
