:root {
  --bs-primary: #3571ca;
  /* --primary-color: #fed136; */
  --secondary-color: #231f20;
  --transition-speed: 0.3s;
  --bg-primary: var(--bs-primary);
  --bg-cool-brown: linear-gradient(to bottom, #4b2502, #2c1e16);
  --dt-dark-bg: #2a2a2a;
  --dt-dark-hover: #383838;
  --dt-dark-header: #1f1f1f;
}

/* :root {
    --bs-primary: #1abc9c;
    --bs-secondary-color: #16a085;
    --bs-tertiary-color: #95a5a6;
    --bs-emphasis-color: #2c3e50;
    --bs-body-color: #333333;
    --bs-link-color: #e67e22;
} */
@font-face {
  font-family: Noto_Kufi_Arabic;
  src: url("../fonts/Noto_Kufi_Arabic/NotoKufiArabic-VariableFont_wght.ttf");
  font-display: swap;
}

@font-face {
  font-family: Noto_Naskh_Arabic;
  src: url("../fonts/Noto_Naskh_Arabic/NotoNaskhArabic-VariableFont_wght.ttf");
  font-display: swap;
}

@font-face {
  font-family: Amiri;
  src: url("../fonts/Amiri/Amiri-Regular.ttf");
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 3.5rem;
  font-family: "Noto_Naskh_Arabic", Tahoma, Arial, sans-serif;
  background-color: rgb(var(--bs-secondary-bg-rgb));
  line-height: 1.6;
  min-height: 100vh;
  font-size: clamp(1rem, 0.8vw + 0.2rem, 1.2rem);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-weight-bold {
  font-family: "Noto_Kufi_Arabic", Tahoma, Arial, sans-serif;
  color: dodgerblue;
}
#mainNav {
  font-family: "Noto_Kufi_Arabic", Tahoma, Arial, sans-serif;
  /* background: rgba(33, 37, 41, 0.95) !important; */
  background: linear-gradient(to top, #141314, #2e1437);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#mainNav label {
  font-family: "Amiri", Tahoma, Arial, sans-serif;
  font-size: 1rem;
}
#mainNav label .barnd {
  font-family: "Noto_Kufi_Arabic", Tahoma, Arial, sans-serif;
  font-size: 0.95em;
}
#mainNav.scrolled {
  padding: 0.5rem 0;
  background: rgba(33, 37, 41, 0.98) !important;
}

#mainNav .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  /* font-size: 0.95em; */
  padding: 0.5rem 1em;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
}

#mainNav .navbar-nav .nav-link:hover {
  /* color: var(--primary-color); */
  background: rgba(255, 255, 255, 0.05);
}

#mainNav .navbar-nav .dropdown-menu {
  background: rgba(33, 37, 41, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem;
}

#mainNav .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transition: all var(--transition-speed) ease;
  font-size: 0.95em;
}

#mainNav .dropdown-item:hover {
  background: rgba(145, 67, 67, 0.05);
  /* color: var(--primary-color); */
}
#mainNav .dropdown-item.foot-link {
  color: rgb(113, 121, 122);
  pointer-events: none;
}

.foot-link {
  color: rgb(79, 126, 134);
  pointer-events: none;
}

#mainNav .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}
@media (min-width: 768px) {
  #mainNav .dropdown:hover .dropdown-menu {
    display: block;
    background: rgba(33, 37, 41, 0.98);
  }
}
#mainNav .navbar-brand img {
  height: 40px;
  transition: all var(--transition-speed) ease;
}

#mainNav.scrolled .navbar-brand img {
  height: 35px;
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

#mainNav .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(254, 209, 54, 0.25);
}

#mainNav .btn-outline-primary {
  /* border-color: var(--primary-color); */
  /* color: var(--primary-color); */
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

#mainNav .btn-outline-primary:hover {
  /* background-color: var(--primary-color); */
  color: #212529;
}

a {
  color: rgb(255, 255, 255);
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: #fed136;
  transform: translateY(-1px);
}

a:link {
  text-decoration: none;
}

a:visited {
  color: none;
}

.footer {
  background-color: var(--secondary-color);
  padding: 0.5rem 0;
  /* margin-top: auto; */
}

.footer .contact-info {
  background: rgba(0, 0, 0, 1);

  border-radius: 15px;
}

.footer .contact-info h5 {
  font-family: "Noto_Kufi_Arabic", Tahoma, Arial, sans-serif;
}

.footer .contact-info p {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-speed) ease;
}

.footer .contact-info p:hover {
  transform: translateX(-5px);
}

.footer .social-links a {
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
}

.footer .social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer .map-container {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.footer .map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.myimg {
  transition: all var(--transition-speed) ease;
}

.myimg:hover {
  filter: drop-shadow(0px 0px 8px rgba(254, 209, 54, 0.7));
  transform: scale(1.02);
}

/* Additional modern touches */
.container {
  padding: 2rem 1rem;
}

.btn {
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.card {
  border: none;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Form elements */
.form-control {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(254, 209, 54, 0.25);
  /* border-color: var(--primary-color); */
}

.foot-link {
  color: rgb(113, 121, 122);
  pointer-events: none;
}

/*  */
.article-text ul {
  list-style: none;
  padding-right: 1em;
}

.article-text ul li::before {
  content: "- ";
  padding-left: 0.3em;
}

.article-text ol li {
  padding-right: 2.5em;
}

.article-text ol {
  list-style: none;
  counter-reset: my-counter;
  padding-right: 1em;
}

.article-text ol li {
  counter-increment: my-counter;
  position: relative;
  padding-right: 2.5em;
}

.article-text ol li::before {
  content: counter(my-counter) " - ";
  position: absolute;
  right: 0;
  width: 2em;
  text-align: left;
  display: inline-block;
  padding-left: 0.3em;
}

/*  */

@keyframes fade {
  0%,
  5% {
    opacity: 0;
    transform: translateY(5px);
  }

  15%,
  85% {
    opacity: 1;
    transform: translateY(0);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.newsbar-text {
  display: none;
  text-align: start;
  transform-origin: center;
  /* font-size: 1.1rem; */
  max-width: 100%;
  line-height: 1.3;
  margin: 0;
}

.newsbar-text.active {
  display: inline-block;
  animation: fade 6s ease-in-out both;
}

.newsbar-title {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  /* font-size: 1.2rem; */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
  margin: 0;
}

.newsbar-content {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  padding: 0.5rem;
}

.newsbar {
  position: fixed;
  top: 4.6rem;
  left: 0;
  right: 0;
  z-index: 1020;
  background: var(--bs-primary);
}

/*  */
.divider-custom {
  margin: 1rem 0 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider-custom-line {
  width: 100%;
  max-width: 7rem;
  height: 0.25rem;
  /* background-color: var(--primary-color);*/
  border-radius: 1rem;
  border: none;
}
.pgtl {
  min-width: 40vw;
  text-align: center;
  padding: auto;
}

.mtbgdv {
    position: relative;
    padding: 20px;
    overflow: hidden; 
}

.mtbgdv::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/../assets/imgs/dz-bg-flag.jpg'); 
    background-size: cover; 
    background-position: center; 
    opacity: 0.2; 
    z-index: -1; 
}

.hero {
  position: relative;
  height: 90vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-top: 15px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.60); /* dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
 /* transform: translateY(30px); */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h5 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #da9502;
  margin-top: 50px;
}

.hero p {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero h5 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #da9502;
  margin-top: 50px;
}
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-title:after {
  content: "";
  position: absolute;
  bottom: -25px;
  right: 50%;
  transform: translateX(50%);
  width: 150px;
  height: 5px;
  background-color: var(--gold-color);
  animation: expandWidth 0.8s ease forwards 0.5s;
}

@media (max-width: 992px) {
  .hero { background-attachment: scroll; }
  
}


.section-title {
  position: relative;  
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background-color: #2c3e50;
}