/* ============================================================
   Footer Styles – matching DGA.Master / styleRTL.css exactly
   ============================================================ */

/* ---------- Fonts (same as DGA.Master) ---------- */
@font-face {
  font-family: 'font-Reg';
  src: url('/ai-assets/fonts/TheSans-Plain.ttf');
}

@font-face {
  font-family: 'font-Bold';
  src: url('/ai-assets/fonts/TheSans-Bold.ttf');
}

/* ---------- Footer base ---------- */
footer.bg-primary {
  background-color: #054970 !important;
  color: #fff !important;
  padding-top: 50px !important;
  padding-bottom: 20px !important;
  font-family: 'font-Reg', sans-serif !important;
  direction: rtl;
  text-align: right;
}

footer.bg-primary * {
  box-sizing: border-box;
}

footer.bg-primary .container-custom {
  width: 100%;
  padding-right: var(--bs-gutter-x, .75rem);
  padding-left: var(--bs-gutter-x, .75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  footer.bg-primary .container-custom {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  footer.bg-primary .container-custom {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  footer.bg-primary .container-custom {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  footer.bg-primary .container-custom {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  footer.bg-primary .container-custom {
    max-width: 1320px;
  }
}
@media (min-width: 1650px) {
  footer.bg-primary .container-custom {
    max-width: 1440px;
  }
}

/* ---------- Grid (scoped to footer only) ---------- */
footer.bg-primary .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -12px;
  margin-left: -12px;
}

footer.bg-primary .row::before,
footer.bg-primary .row::after {
  display: none !important;
  content: none !important;
}

footer.bg-primary .row > * {
  padding-right: 12px;
  padding-left: 12px;
}

footer.bg-primary .col-lg-3,
footer.bg-primary .col-lg-6 {
  width: 100%;
  flex-shrink: 0 !important;
}

@media (min-width: 992px) {
  footer.bg-primary .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
  footer.bg-primary .col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* ---------- Typography (scoped to footer) ---------- */
footer.bg-primary h5 {
  color: #fff !important;
  margin-top: 0 !important;
}

footer.bg-primary p,
footer.bg-primary span,
footer.bg-primary a,
footer.bg-primary div {
  color: #fff !important;
}

footer.bg-primary .fw-bold {
  font-family: 'font-Bold', sans-serif !important;
  font-weight: 400 !important;
}

footer.bg-primary .fs-20 {
  font-size: 20px !important;
}

footer.bg-primary .fs-15 {
  font-size: 15px !important;
}

footer.bg-primary .mb-0 {
  margin-bottom: 0 !important;
}

footer.bg-primary .mb-3 {
  margin-bottom: 1rem !important;
}

footer.bg-primary .mb-4 {
  margin-bottom: 1.5rem !important;
}

footer.bg-primary .text-center {
  text-align: center !important;
}

@media (min-width: 768px) {
  footer.bg-primary .mb-md-0 {
    margin-bottom: 0 !important;
  }
  footer.bg-primary .text-md-start {
    text-align: right !important; /* Start is Right in RTL */
  }
  footer.bg-primary .text-md-end {
    text-align: left !important; /* End is Left in RTL */
  }
}

/* ---------- Utility classes ---------- */
footer.bg-primary .d-flex {
  display: flex !important;
}

footer.bg-primary .align-items-center {
  align-items: center !important;
}



footer.bg-primary .text-decoration-none {
  text-decoration: none !important;
}

footer.bg-primary .opacity-10 {
  opacity: 0.1 !important;
}

footer.bg-primary a {
  color: #fff !important;
  text-decoration: none !important;
}

/* ---------- Footer logo ---------- */
footer.bg-primary .footer-logo-inverted img {
  max-width: 100%;
}

footer.bg-primary .footer-first p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1rem !important;
}

/* ---------- Social icons (NO background, NO circle – matching AI.aspx) ---------- */
footer.bg-primary .footer-first .social-footer {
  display: flex !important;
  gap: 20px;
  padding: 8px 0;
}

footer.bg-primary .footer-first .social-footer a,
footer.bg-primary .footer-first .social-footer a.social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: none !important;
}

footer.bg-primary .footer-first .social-footer a:hover,
footer.bg-primary .footer-first .social-footer a.social-icon:hover {
  background: none !important;
  background-color: transparent !important;
}

footer.bg-primary .footer-first .social-footer a svg {
  width: 18px !important;
  height: 18px !important;
}

/* ---------- Contact section ---------- */
footer.bg-primary .footer-center p {
  line-height: 2;
  margin-bottom: 20px !important;
  font-size: 15px;
}

footer.bg-primary .footer-center hr {
  border-color: rgba(255, 255, 255, 0.1) !important;
  opacity: 1 !important;
  margin: 1rem 0 !important;
  border-style: solid !important;
  border-width: 1px 0 0 0 !important;
}

footer.bg-primary .footer-center .contact-footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
}

footer.bg-primary .footer-center a {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  font-size: 15px;
  height: 30px;
}

footer.bg-primary .footer-center a svg {
  max-width: 20px;
}

/* ---------- Map section ---------- */
footer.bg-primary .footer-left {
  padding-right: 40px !important;
}

footer.bg-primary .footer-left .mapFrom iframe {
  width: 100% !important;
  height: 190px !important;
  border: 0;
}

/* ---------- Footer bottom (NO border-top – matching AI.aspx) ---------- */
footer.bg-primary .footer-bottom {
  margin-top: 30px;
  border-top: none !important;
  padding-top: 0;
}

footer.bg-primary .footer-bottom p {
  font-size: 16px;
}

/* ---------- Reverse direction for phone numbers ---------- */
footer.bg-primary .rev-dir {
  direction: ltr;
  display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  footer.bg-primary * {
    text-align: center !important;
  }
  footer.bg-primary .footer-first .social-footer {
    justify-content: center !important;
  }
  footer.bg-primary .footer-center {
    margin: 24px 0 !important;
  }
  footer.bg-primary .footer-center .fs-20 {
    margin-bottom: 12px !important;
  }
  footer.bg-primary .footer-center a {
    justify-content: center !important;
  }
  footer.bg-primary .footer-left {
    padding: 0 !important;
  }
  footer.bg-primary .footer-bottom .text-center {
    text-align: center !important;
    margin-top: 8px;
  }
  footer.bg-primary .col-lg-3,
  footer.bg-primary .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  footer.bg-primary .footer-left .mapFrom {
    padding: 0 5px;
  }
}