@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Tajawal:wght@300;400;700&display=swap');

:root {
    --navy: #103058;
    --royal: #0D6EFD;
    --orange: #D82424; /* Logo Red */
    --white: #FFFFFF;
    --light: #F5F7FA;
    --dark-text: #1F2937;
    --gray-muted: #6B7280;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--navy);
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 80px;
}

.nav-link {
    color: var(--navy) !important;
    font-weight: 600;
    margin: 0 10px;
}

.navbar-toggler {
    border-color: rgba(11, 31, 58, 0.1);
}

.navbar-toggler-icon {
    filter: brightness(0) saturate(100%) invert(10%) sepia(30%) saturate(2000%) hue-rotate(195deg) brightness(90%) contrast(105%);
}

.nav-link:hover {
    color: var(--orange) !important;
}

.btn-orange {
    background-color: var(--orange);
    color: var(--white);
    font-weight: 700;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-orange:hover {
    background-color: #b01a1a;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(216, 36, 36, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 48, 88, 0.8), rgba(10, 48, 88, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 160px 0 120px;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #FFFFFF !important; /* Force white for clarity */
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--orange); /* This is the new logo red */
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Features/Services Cards */
.card-service {
    border: none;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
    background: var(--white);
}

.card-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: var(--navy);
    color: var(--white);
}

.card-service:hover h5 {
    color: var(--white);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--light);
    color: var(--royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: 0.3s;
}

.card-service:hover .icon-box {
    background: var(--orange);
    color: var(--white);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light) !important;
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--orange);
}

/* Forms */
.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Footer */
footer {
    background: var(--navy);
    color: #cbd5e0;
    padding: 80px 0 40px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 25px;
}

footer a {
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--orange);
    padding-right: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

.social-icons a:hover {
    background: var(--orange);
}

/* RTL Specific Fixes */
[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}
