/* =================================== */
/* 1. Design Tokens (CSS Variables)
/* =================================== */

:root {
  --color-primary-dark: #20335b;
  --color-primary-medium: #3b4a6b;
  --color-accent-blue: #00a9e2;
  --color-light-gray: #f8f9fa;
  --color-text-body: #555;
  --color-text-light: #a0aec0;
  --color-white: #ffffff;
  /* New colors from the blog design */
  --color-blog-bg: #1f3660;
  --color-blog-title: #82c8e3;
  --color-blog-text: #cdd5e2;
  /* Font Family Change */

  --border-radius-sm: 0.5rem; /* 8px */
  --border-radius-md: 1rem; /* 16px */
  --border-radius-lg: 20px; /* New radius for blog card */
  --box-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* =================================== */
/* 2. Global & Helper Styles
  /* =================================== */
@font-face {
  font-family: "Jannah";
  src: url("../fonts/alfont_com_Janna-LT-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Jannah";
  src: url("../fonts/alfont_com_Janna-LT-Regular.ttf") format("truetype");
  font-style: normal;
}
main {
  overflow-x: hidden;
}
section {
  overflow-x: hidden;
}
body {
  font-family: "Jannah";
  background-color: var(--color-white);
  color: var(--color-text-body);
  text-align: left;
  overflow-x: hidden;
  max-width: 100vw;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* =================================== */
/* 3. Component Styles: Header
  /* =================================== */
.header .navbar {
  border-bottom: 1px solid #dee2e6;
}

.navbar-brand img {
  max-width: 100px;
}

.navbar .nav-link {
  color: var(--color-primary-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
  color: var(--color-accent-blue);
}


.navbar .nav-link.active {
    color: var(--color-primary-dark);
}
.navbar .nav-link.active span{
  border-bottom: 4px solid var(--color-primary-dark);
  border-radius: 10px;
  padding: 4px 10px;
  width: fit-content;
}
.navbar .dropdown-toggle::after {
  margin-left: 0.255em; /* Adjust for RTL */
  margin-left: 0;
}

.btn-brand-primary {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: 30px;
  padding: 16px 42px;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.btn-brand-primary:hover {
  background-color: var(--color-primary-medium);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* =================================== */
/* 4. Component Styles: Hero
  /* =================================== */
.hero {
  position: relative;

  z-index: 1;
}
.blogs {
  background-image: url("../blogs.jpg");
  background-size: cover;
  background-position: center;
}
.container-hero {
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767.98px) {
  .container-hero {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(32, 51, 91, 0.7);
  z-index: -1;
}

.hero__title {
  font-size: 50px;
  font-weight: 700;
  color: var(--color-white);
  max-width: 670px;
  margin: 0 auto;
  line-height: 1.2;
}
.hero__subtitle {
  font-size: 30px;
  color: var(--color-white);
  opacity: 0.9;
  font-weight: 700;
  max-width: 690px;
  margin: 0 auto;
}
.hero__image {
  width: 300px;
  height: 400px;
  align-self: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 40%;
  z-index: 10;
}
@media (max-width: 767.98px) {
  .hero__title {
    font-size: 32px;
    margin-top:25% ;
  }
  .hero__subtitle {
    font-size: 28px;
  }
  .hero__image {
    width: 200px;
    height: 200px;
  }
}

/* =================================== */
/* 5. Component Styles: Blog Grid
  /* =================================== */
.blog-card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-strong);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 386px;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-card__image-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.blog-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card .card-img-top {
  aspect-ratio: 4 / 3; /* Adjusted ratio to better match the new design */
  object-fit: cover;
}

.blog-card__date-badge {
  position: absolute;
  top: 1rem;
  left: 0.5rem;
  background-color: rgba(107, 201, 227, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.6rem;
  text-align: center;
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.1;
  width: 75px;
}

.blog-card__date-badge span:first-child {
  font-size: 1.8rem;
  display: block;
}

.blog-card__date-badge span:last-child {
  font-size: 0.6rem;
  font-weight: 400;
}

/* This is a leftover style from the old design, can be removed if not used */
.blog-card__feature-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-card__body {
  background: linear-gradient(180deg, rgba(31, 54, 96, 0) 0%, #1f3660 100%);
  padding: 1.75rem;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.blog-card .card-title {
  color: var(--color-blog-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;

  margin-bottom: 0.75rem; /* Space between title and new paragraph */
}

/* NOTE: Add a <p> tag to your HTML card body for the description */
.blog-card__body p {
  color: var(--color-blog-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;

  text-align: center;
}
.feature-card__icon img{
    width: 150px;
}

/* =================================== */
/* 6. Component Styles: Footer
  /* =================================== */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.footer__logo {width: 250px;}

.footer__text {
  color: #cdd5e2;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}

.footer__social-icon {
  display: inline-block;
  width: 26px;
  height: 26px;

  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer__social-icon:hover {
  background-color: var(--color-accent-blue);
  transform: translateY(-3px);
}

.footer__title {
  color: var(--color-white);
  font-weight: 700;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer__contact-list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer__contact-list a,
.footer__contact-list p {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0;
}
.footer__contact-list small {
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.footer__contact-list a:hover {
  text-decoration: underline;
  color: var(--color-accent-blue);
}

.footer__hr {
  border-top: 1px solid var(--color-primary-medium);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.footer__copyright p {
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
}

.footer__title span{
  color: #fff !important;
}
.footer__title,
.footer-contact__item-header {
  color: #6bc9e3;
}
.footer-contact__item-header {
  color: #6bc9e3;
  font-size: 16px;
  font-weight: 700;
}
.footer-contact__item-text {
  color: #6bc9e3;
  font-size: 16px;
  font-weight: 400;
}
.footer-contact__link {
  color: white;
  text-decoration: none;
}
.footer-contact__map-btn {
  font-size: 10px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 50px;
  background-color: #ffffff88;
  color: white;
  text-decoration: none;
}

.footer-contact__separator {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.footer__social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__social-icons .footer__social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer__social-icons .footer__social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer__social-icons .footer__social-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer__social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__social-icons .footer__social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer__social-icons .footer__social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer__social-icons .footer__social-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Mobile-First Footer Design */

@media (max-width: 991.98px) {
  .footer {
    text-align: center;
  }

  .footer .row > * {
    margin-bottom: 2rem;
  }

  .footer__social-icons {
    justify-content: center;
  }

  .footer-contact__item-header {
    justify-content: center;
  }
}
.btn-primary {
  background-color: #1f3660;
  border-color: #1f3660;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(31, 54, 96, 0.3);
  display: inline-block;
  text-decoration: none;
  min-width: 220px;
  font-family: inherit;
  line-height: 1.4;
  margin-top: 10px;
}

.btn-primary:hover {
  background-color: #152a4d;
  border-color: #152a4d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(31, 54, 96, 0.4);
}

.btn-primary:focus {
  background-color: #152a4d;
  border-color: #152a4d;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(31, 54, 96, 0.25);
}
.footer-contact__social-icons{
  flex-wrap: wrap !important;
}

@media (max-width: 767.98px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }
  .footer-contact__social-icons{
    justify-content: center;
  }
  .flex-wrap {
    flex-wrap: wrap !important;
  }
  .footer__title {
    font-size: 20px;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .footer-contact__row {
    display: block !important; 
   
  }

  .footer-contact__item {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .footer-contact__item-header {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .footer-contact__item-header img {
    width: 24px;
    height: 24px;
  }

  .footer-contact__link,
  .footer-contact__text {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 14px;
  }

  .footer__text {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .footer__copyright p {
    font-size: 12px;
    text-align: center;
  }

  .footer__social-icons {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer__social-icons .footer__social-icon {
    width: 28px;
    height: 28px;
  }

  .footer__social-icons .footer__social-icon img {
    width: 16px;
    height: 16px;
  }

  .footer-contact__map-btn {
    font-size: 11px;
    padding: 6px 12px;
    margin-top: 0.5rem;
  }

  .footer__logo {
    margin: 0 auto 1.5rem;
    display: block;
    max-width: 120px;
  }
}
.footer-contact__row{
  display: flex; align-items: start; gap: 2rem;
}
@media (max-width: 575.98px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }
  .footer-contact{
    text-align: center;
  }

  .footer__title {
    font-size: 18px;
    margin-bottom: 1rem;
  }

  .footer-contact__item {
    margin-bottom: 1.5rem;
  }

  .footer-contact__item-header {
    font-size: 13px;
  }

  .footer-contact__link,
  .footer-contact__text {
    font-size: 13px;
  }

  .footer__text {
    font-size: 13px;
  }

  .footer__copyright p {
    font-size: 11px;
  }

  .footer__social-icons {
    gap: 0.75rem;
  }

  .footer__social-icons .footer__social-icon {
    width: 26px;
    height: 26px;
  }

  .footer__social-icons .footer__social-icon img {
    width: 14px;
    height: 14px;
  }
}

/* =================================== */
/* Footer Links & App Downloads Styles
/* =================================== */
.footer-links {
  text-align: left;
}

.footer-links__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.footer-link:hover {
  color: #cccccc;
  text-decoration: none;
}

/* App Downloads Section */
.app-downloads {
  text-align: left;
}

.app-downloads__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.app-downloads__buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.app-download-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.app-download-link:hover {
  transform: translateY(-2px);
}

.app-download-link img {
  height: 40px;
  width: auto;
}

/* Responsive Design for Footer Section */
@media (max-width: 991.98px) {
  .footer-links,
  .app-downloads {
    text-align: center;
  }

  .footer-links__title,
  .app-downloads__title {
    text-align: center;
  }

  .footer-links__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .app-downloads__buttons {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .footer-links__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-link {
    font-size: 15px;
    padding: 0.4rem 0;
  }

  .app-downloads__title {
    font-size: 18px;
  }

  .app-download-link img {
    height: 35px;
  }
}

@media (max-width: 575.98px) {
  .footer-links__title,
  .app-downloads__title {
    font-size: 18px;
  }

  .footer-link {
    font-size: 14px;
  }

  .app-download-link img {
    height: 30px;
  }
}
nav.navbar {
  direction:ltr !important;
  padding: 0 !important;
}
.slider{
  padding: 0 !important;
}
.hero__content h1,.hero__content p{
  position: relative;
  z-index: 5 !important;
}
.container-hero {
  position:relative ;
}
.container-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 47, 90, 0.623);
  z-index: 1;
}