/* Root Variables (Colors) */
/* ======================== */
:root {
    --gold: #D4AF37; 
    --dark-blue: rgb(1,83,141); 
    --dark-blueone:#01538d;
    --white: #FFFFFF; 
    --light-gray: #F5F5F5; 
    --charcoal-gray: #333333;
    --ack: #cad7df33; 
    --blow: #a1cfec33; 
    --gold-gradient: linear-gradient(135deg, #FFD700, #D4AF37, #B8860B); 

}



/* ======================== */
/* General Styling */
/* ======================== */
body {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl; /* RTL layout for Arabic */
}

/* ======================== */
/* Typography */
/* ======================== */
h1, h2, h3 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
}

p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
}

/* ======================== */
/* Button Styling */
/* ======================== */
.btn-primary {
    background-color: var(--light-gray);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
}

/* ======================== */
/* Navbar Styling */
/* ======================== */
.navbar-custom {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
    border-bottom: 1px solid rgba(255, 215, 0, 0.5); 
    min-height: 90px;
    padding: 10px 20px;
}

.navbar-custom:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.9));
}

/* Navbar Logo */
.navbar-custom .navbar-brand {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand img {
    width: 120px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
    left: 20px;
    display: block;
}



/* Navbar Links */
.navbar-custom .nav-link {
    color: var(--dark-blue);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.7rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 8px;
}

.navbar-custom .nav-link:hover {
    color: var(--gold);
    background-color: rgba(255, 215, 0, 0.1);
}

.navbar-custom .nav-link.active {
    color: var(--gold);
}

/* Navbar Toggler (Hamburger Menu) */
.navbar-custom .navbar-toggler {
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    padding: 8px;
    transition: transform 0.3s ease;
}

.navbar-custom .navbar-toggler:hover {
    transform: rotate(90deg);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Search Bar */
.navbar-custom .search {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--gold);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-custom .search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.navbar-custom .search input::placeholder {
    color: var(--charcoal-gray);
    font-style: italic;
}

.navbar-custom .search button {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}

.navbar-custom .search button:hover {
    background-color: #FFD700;
}

/* ======================== */
/* Offcanvas (Mobile Menu) */
/* ======================== */
/* ======================== */
/* Offcanvas (Mobile Menu) */
/* ======================== */
/* تخصيص خلفية القائمة الجانبية */
.offcanvas {
    height: 100vh !important;
    background: linear-gradient(
        135deg,
        rgba(248, 251, 255, 0.9),
        rgba(230, 214, 129, 0.9)   
    );
    backdrop-filter: blur(10px); 
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1); 
    width: 300px; /* عرض ثابت للقائمة الجانبية */
    transition: transform 0.3s ease-in-out; 
}


/* Offcanvas Header */
.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-header .btn-close {
    font-size: 1.5rem; 
    color: var(--dark-blue); 
    transition: transform 0.3s ease; 
}

.offcanvas-header .btn-close:hover {
    transform: rotate(90deg); 
}

/* Offcanvas Body */
.offcanvas-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.offcanvas-body .navbar-nav {
    margin-top: 1rem;
}

.offcanvas-body .nav-link {
    font-size: 1.1rem; 
    font-weight: 500; 
    color: #01538d;
    padding: 0.75rem 1rem; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    text-align: right; 
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.1); 
    color: var(--gold); 
}

/* Offcanvas Footer (Social Icons) */
.offcanvas-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1); 
    text-align: center;
}

.offcanvas-footer .social-icon {
    color: var(--dark-blue); 
    font-size: 1.5rem; 
    margin: 0 0.5rem; 
    transition: all 0.3s ease; 
}

.offcanvas-footer .social-icon:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

/* ======================== */
/* Responsive Adjustments */
/* ======================== */
@media (max-width: 767.98px) {
    .offcanvas {
        width: 250px;
    }

    .offcanvas-body .nav-link {
        font-size: 1rem; 
    }

    .offcanvas-footer .social-icon {
        font-size: 1.2rem; 
    }
}

/* ======================== */
/* Responsive Styles */
/* ======================== */
@media (max-width: 991.98px) {
    .navbar-custom .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .navbar-custom .search {
        margin-top: 1rem;
        max-width: 100%;
    }

    .offcanvas-body {
        padding-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-custom {
        padding: 0.5rem 1rem;
    }

    .navbar-custom .nav-link {
        font-size: 0.9rem;
    }

    .navbar-custom .search button {
        padding: 0.4rem;
    }

    .offcanvas-body .nav-link {
        font-size: 1rem;
        padding: 0.6rem;
    }
}

/* ======================== */
/* Animations */
/* ======================== */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ======================== */
/* Desktop-Only Adjustments */
/* ======================== */
@media (min-width: 992px) {
    .navbar-custom {
        background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 0.8));
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(255, 215, 0, 0.5);
    }

    .navbar-custom .navbar-nav {
        margin-left: auto;
    }

    .navbar-custom .nav-link {
        padding: 0.7rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
}

/*end navbar*/
/* خلفية قسم الخدمات مع تأثير الدوائر */
/* CSS مع التحسينات */
  /* Reset CSS */


:root {
    --primary-gold: #FFD700;
    --dark-blue: #002B5C;
    --glass-white: rgba(255, 255, 255, 0.1);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
}

.services-section {
    background: #002B5C;
    padding: 4rem 1rem;
    min-height: 100vh;
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 43, 92, 0.9), rgba(255, 223, 186, 0.8)),
                url('https://source.unsplash.com/1600x900/?abstract,technology') no-repeat center center/cover;
    z-index: 0;
}

.section-header {
    margin: 0 auto 3rem;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #fff;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    font-family: 'Tajawal', Arial, sans-serif;
}

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

.section-subtitle {
    font-size: 1.2rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    -ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.service-card {
    perspective: 1200px;
    -webkit-perspective: 1200px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.07);
    -webkit-backface-visibility: hidden;
}

.card-inner {
    position: relative;
    background: rgba(0, 43, 92, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #002B5C;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    -webkit-transition: transform 0.3s ease-in-out;
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.8rem;
    background: var(--gold-gradient);
    color: var(--dark-blue) !important;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-btn .btn-icon {
    margin-right: 0.5rem;
    transition: margin 0.3s ease;
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }

    .card-body {
        padding: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 180px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .service-btn {
        width: 100%;
        justify-content: center;
    }
}

@supports not (backdrop-filter: blur(8px)) {
    .card-inner {
        background: rgba(0, 43, 92, 0.95);
    }
}

/* Fallback for old browsers */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .services-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr 1fr;
    }

    .service-card {
        -ms-grid-column: 1;
        margin: 10px;
    }
}


 /* ======================== Footer Section ======================== */
.footer {
    background-color:   rgb(5, 61, 97);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    direction: rtl;
}

.footer img {
    width: 120px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block;
    margin-left: -20px;
}

.footer img:hover {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .footer img {
        width: 100px;
        margin-left: -15px;
    }
}

@media (max-width: 480px) {
    .footer img {
        width: 90px;
        margin-left: -10px;
    }
}

.footer .info img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
    .footer .info img {
        margin-left: -1000px;
    }
}

.footer h5 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #D4AF37; 
    text-align: center;
}

.footer p,
.footer a {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1rem;
    text-decoration: none;
    text-align: center;
}

.footer p:hover,
.footer a:hover {
    color: #D4AF37;
}

.footer .social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-right: 0;
}

@media (max-width: 768px) {
    .footer .social-icons {
        gap: 10px;
    }

    .footer .social-icons a {
        font-size: 1.2rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .footer .social-icons {
        gap: 8px;
    }

    .footer .social-icons a {
        font-size: 1.1rem;
        padding: 6px;
    }
}

.footer .social-icons a {
    color: #fff;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer .social-icons a:hover {
    color: #D4AF37; /* اللون الذهبي */
    transform: scale(1.1);
    background-color: rgba(212, 175, 55, 0.2); 
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.footer .col {
    flex: 1 1 300px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer .info img {
        width: 100px;
        height: 100px;
    }

    .footer h5 {
        font-size: 1.3rem;
    }

    .footer p,
    .footer a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 15px;
    }

    .footer h5 {
        font-size: 1.2rem;
    }

    .footer p,
    .footer a {
        font-size: 0.8rem;
    }

    .footer .social-icons a {
        font-size: 1.1rem;
    }
}
.contact ul {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0;
}

.contact ul li {
    margin: 0 5px; 
}

.contact ul a i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;  
    height: 40px;
    border-radius: 50%;
    color: white;
}
/* ======================== Breaking News Section ======================== */
.breaking-news {
    font-size: 1.2rem;
    font-weight: 800;
    color: #141414;
    border: 2px solid #D4AF37; 
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    background: #002B5C; 
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B); font-weight: bold;
}
.custom-gradient {
    background: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B);
    color: #002B5C; 
    font-weight: bold;
    padding: 20px; 
    border-radius: 10px; 
    text-align: center; 
}


.contact .btn {
    background: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B);
    color: #002B5C; 
    font-weight: bold;
    text-align: center; 
    
}
.contact .btn :hover {
    color: #D4AF37; 
    transform: scale(1.1);
    background-color: rgba(212, 175, 55, 0.2); 
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7); 
}
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

/* للصفحات الإنجليزية */
html[lang="en"] body {
  direction: ltr;
  text-align: left;
}

html[lang="en"] .footer,
html[lang="en"] .footer .row {
  direction: ltr;
  text-align: left;
}