:root {
    --primary: #0c2146;
    --primary-dark: #0a58ca;
    --primary-light: #e7f1ff;
    --accent: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
    --banner-overlay: rgba(13, 110, 253, 0.85);
}

body {
    font-family: 'El Messiri', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.7;
    padding-top: 0;
    line-height: 1.8;
    /* padding-top: 300px; /* Adjust depending on the height of the header + navbar */
}

/* Header Banner */
.banner-header img {
    background-size: cover;
    background-position: center center;
    max-height: 300px;
     object-fit: cover;
}



.fixed-height-img {
  height: 800px;
  width: 100%;
  object-fit: contain;
  object-position: top;
  background-color: #f8f9fa;
}

.stretch-img {
  object-fit: fill; /* تمدد الصورة بالطول والعرض */
}

/* Navigation */
/*.main-navbar {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}
*/

.main-navbar {
   /* background: #888383;*/
   /* background: #343434 ;*/
 /* background: linear-gradient(to right, #888888, #343434);*/
background:  #343434;
    /*background: linear-gradient(to right, #ffbf00, #666666); */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    font-weight: bold !important;
}

.nav-link{
   /* color: rgba(255, 255, 255, 0.9) !important;*/
   color: black !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.15rem;
    border-radius: 50px;
    transition: all 0.3s ease;
   background:#0da7be;
    
}

.nav-link:hover, .nav-link.active  {
  /*  background-color: rgba(255, 255, 255, 0.15);*/
   /*background: linear-gradient(to right, #ffbf00, rgba(255, 255, 0, 0.3)); */
    background:#C0C0C0;
    /*color: white !important;*/
    color:#212529 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-left: 0.5rem;
}

/* Main Content */
.main-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-top: 15px;
    min-height: 400px;
}



/* Footer */
.main-footer {
    color: rgba(255, 255, 255, 0.85);
    /* background: linear-gradient(to right, #ffbf00, #666666); /* تدرج من رمادي غامق إلى أصفر ذهبي فاتح */
   /*background: #888383;*/
   /*background: #343434 ;*/
  /* background: linear-gradient(to right, #888888, #343434);*/
   background:  #343434;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-title {
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color:  #ffc107;
    border-radius: 3px;
}
.section-title.no-after::after {
  display: none !important;
}
.footer-links li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ffbf00;
    padding-right: 5px;
}

.copyright {
    border-top: 1px solid white;
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 1.7rem;
    }
    .banner-subtitle {
        font-size: 1rem;
    }
    .btn-warning {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


.border-blue {
    border: 2px solid var(--primary) !important;
}

.btn-primary {
    background: var(--primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-warning {
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.info-card {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.navbar-toggler {
    border-color: #fff;
}



.section-title {
    font-weight: 700;
    color: hwb(240 21% 77% / 0.76);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    
}



.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 3px;
    border-radius: 3px;
    border-bottom: 3px solid #ffc107;

    
}
        
    ul.custom-list {
    list-style: none; /* إزالة الدوائر الأصلية */
    padding-right: 20px;
}

ul.custom-list li {
    position: relative;
    padding-right: 30px; /* مساحة للدائرة */
    margin-bottom: 10px;
}

ul.custom-list li::before {
    content: '●'; /* دائرة */
    position: absolute;
    right: 0;
    color: rgb(19, 19, 18);
    font-size: 1.0rem; /* حجم كبير للدائرة */
    line-height: 1;
}
    
        table.table thead th {
            /*background-color: #ffd760fb;*/
            background:#C0C0C0;
            color: #2e2a2a;
            font-weight: bold;
            text-align: center;
        }
        table.table td, table.table th {
            vertical-align: middle;
            text-align: center;
        }


        .main-container a {
    display: block;
   
    color: #666666;
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-weight: bold;
    text-align: right;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-container a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
   /* background: linear-gradient(to right, #666666, #ffbf00); /* reverse direction */
   background:#C0C0C0;
   color:#212529 !important;
    /*color:white;*/
}


.capbox {
    background-color: #eee;
    border-right: 12px solid #eee;
    display: inline-block;
    padding: 8px 40px 8px 8px;
    width: 100%; /* make the container stretch full width */
    max-width: 400px; /* max width for better layout */
}

.capbox-inner {
    font: bold 14px arial, sans-serif; /* increased font size */
    color: #333333; /* dark gray text */
    background-color: #cccccc; /* light gray background instead of blue */
    margin: 5px auto 0 auto;
    padding: 10px;
    border-radius: 4px;
    width: 100%; /* stretch full width inside capbox */
    box-sizing: border-box;
}

#CaptchaDiv {
    font: bold 20px verdana, arial, sans-serif; /* bigger font */
    font-style: italic;
    color: #333333; /* dark gray text */
    background-color: #cccccc; /* light gray background */
    padding: 8px;
    border-radius: 4px;
    width: 100%; /* stretch full width */
    box-sizing: border-box;
}

#CaptchaInput {
    margin: 5px 0;
    width: 100%; /* stretch input width */
    max-width: 400px;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 1rem;
}

button[name="btnsearchx"],[name="btnregisterr"]{
    background-color: #198754 ;  /* Bootstrap success green */
    color: white;
    border-color: #198754;
}

button[name="btnsearchx"],[name="btnregisterr"]:hover {
    background-color: #6fc19a; /* Darker green on hover */
    color: white;
    border-color: #157347;
}


.customgreen-btn-reverse{
    background-color: #198754 ;  /* Bootstrap success green */
    color: white;
    border-color: #198754;
}

.customgreen-btn-reverse {
    background-color: #6fc19a; /* Darker green on hover */
    color: white;
    border-color: #157347;
}

.custom-btn-reverse {
    background-color: #0d6efd;  /* Bootstrap primary */
    color: white;
    border-color: #0d6efd;
}

.custom-btn-reverse:hover {
    background-color: white;
    color: #0d6efd;
    border-color: #0d6efd;
}
.custom-btn-warning-reverse {
    background-color: #ffc107;  /* Bootstrap warning */
    color: black;               /* Best contrast */
    border-color: #ffc107;
}

.custom-btn-warning-reverse:hover {
    background-color: #fff9c4;
    color: black;
    border-color: #ffc107;
}

.btn-outline-danger.reverse-hover {
    background-color: #dc3545; /* Bootstrap danger color */
    color: white;
    border: 1px solid #dc3545;
    transition: all 0.3s ease;
}

.btn-outline-danger.reverse-hover:hover {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.error-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1); /* Light red background for error */
    border: 1px solid #f5c2c7; /* Border matching the background */
    color: #842029; /* Dark red text for better readability */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.error-content {
    font-size: 1.4rem;
    line-height: 1.5;
}

@media print {
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl;
    background: white;
  font-size: 15px;
  line-height: 1.4;

  }

  .no-print {
    display: none !important;
  }

  .container, .main-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }

  .card-header {
    background-color: #ccc !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .d-flex.justify-content-center.mb-4,
  button,
  .print-button,
  nav,
  footer {
    display: none !important;
  }

  .col-md-6, .col-md-4 {
    width: 50% !important;
    float: right;
  }

  .col-md-4 {
    width: 33.3333% !important;
  }

  i {
    font-size: 1.1rem !important;
  }

  * {
    box-shadow: none !important;
  }
 
}


.sticky-note {
    background-color: #fff8b3;
    border: 1px solid #f0e68c;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    transform: rotate(-1deg);
    max-width: 800px;
    font-family: 'El Messiri', sans-serif;
    transition: transform 0.3s ease;
}
.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
}
.sticky-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

/********************************************************************************** */
.custom-text {
    font-size: 1.1rem;
}

.custom-title {
    font-size: 1.3rem;
    background-color: #e9ecef;
    padding: 10px 15px;
    border-right: 5px solid #0d6efd;
    margin-bottom: 10px;
    border-radius: 4px;
}

.custom-listt li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
}

.custom-listt li::before {
    content: "✔️";
    position: absolute;
    right: 0;
    color: green;
}

.alert-warning.custom-listt li::before {
    content: "⚠️";
    color: #856404;
}


    .accordion-button {
      font-weight: bold;
    }

.custom-header {
  background-color: #e67e22 !important;
  color: white !important;
}
.custom-header th {
  background-color: #e67e22 !important;
  color: white !important;
}