html {
  font-size: 14px;
}
/*
 * تعريف الخطوط بشكل صحيح ليتعرف عليها المتصفح
 *
 * DINNextLTArabic
 *
 */

@font-face {
    font-family: 'DINNextLTArabic';
    src: url('/fonts/ArbFONTS-DINNextLTArabic-Regular-2.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'DINNextLTArabic';
    src: url('/fonts/ArbFONTS-DINNextLTArabic-Medium-2.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'DINNextLTArabic';
    src: url('/fonts/ArbFONTS-DINNextLTArabic-Bold-2.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'DINNextLTArabic';
    src: url('/fonts/ArbFONTS-DINNextLTArabic-Light-1.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'DINNextLTArabic';
    src: url('/fonts/ArbFONTS-DINNextLTArabic-Heavy-1.ttf') format('truetype');
    font-weight: 800; /* Heavy */
    font-style: normal;
}

@font-face {
    font-family: 'DINNextLTArabic';
    src: url('/fonts/ArbFONTS-DINNextLTArabic-Black-3.ttf') format('truetype');
    font-weight: 900; /* Black */
    font-style: normal;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'DINNextLTArabic', sans-serif;
    margin: 0;
}

main {
    flex: 1 0 auto; /* المحتوى يأخذ كل المساحة المتاحة */
}

footer {
    flex-shrink: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.navbar-nav .nav-link  {
    font-family: 'DINNextLTArabic', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
}
.navbar-brand {
    font-family: 'DINNextLTArabic';
    font-weight: 800; /* Regular */
    font-style:normal;
}
    /* لجعل النص غامق (Bold) عند النقر عليه أو المرور فوقه */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        font-weight: 700; /* لاستخدام الخط الغامق (Bold) */
    }
/* استخدام خط أثقل للعناوين الرئيسية */
.container h1 {
    font-weight: 700; /* Bold */
    color: #343a40;
    margin-bottom: 1.5rem;
}

/* استخدام خط متوسط للعناوين الفرعية داخل البطاقات */
.card-title {
    font-weight: 500; 
    font-size: 1.25rem;
    color: #212529;
}

/* استخدام خط عادي (Regular) للنصوص العادية */
.card-text {
    font-weight: 400; /* Regular */
    font-size: 0.95rem;
}

/* تطبيق الخط على الأزرار بشكل واضح */
.btn {
    font-weight: 500; /* Medium */
}

/* تحسين مظهر النصوص داخل بطاقات لوحة التحكم الخاصة بالملخص */
.card.text-white .card-title,
.card.text-white .card-text {
    font-weight: bold; /* استخدم Bold أو Heavy هنا */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* إضافة ظل خفيف للنصوص البيضاء */
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

    .table th,
    .table td {
        vertical-align: middle;
        text-align: center;
        padding: 0.75rem;
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* لون فاتح للصفوف الفردية */
}

.table-hover tbody tr:hover {
    background-color: #e9f2ff; /* تأثير hover على الصف */
}

.table th {
    background-color: #e9f2ff; /* نفس لون table-dark */
    color: rgb(0, 0, 0);
    font-weight: 700;
}

.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.7em;
    border-radius: 0.35rem;
}

.pagination .page-link {
    color: #258cfb;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: #258cfb;
    border-color: #258cfb;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}
#notificationList ul {
    list-style: none;
}


.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.main-service-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #f7f7f7;
    padding: 10px;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

/* ------------------------------------------------------------------ */
/* 2. Sub Services           */
/* ------------------------------------------------------------------ */
.sub-card {
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
    border-radius: 12px;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .sub-card img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .sub-card:hover {
        transform: scale(1.03);
        background-color: #e6f7ff;
        border-color: #a0d9ff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }


/* ------------------------------------------------------------------ */
/* Advertisements 
    /* ------------------------------------------------------------------ */
.ad-img {
    height: 450px;
    object-fit: cover;
}

.ad-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 8px 0;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 0 0 8px 8px;
}