@font-face {
  font-family: "caros-light";
  src: url(../fonts/caros/Caros-Light.otf) format("truetype");
}
@font-face {
  font-family: "caros-bold";
  src: url(../fonts/caros/Caros-Bold.otf) format("truetype");
}
:root {
  --heading-font: "caros-bold";
  --heading-font-weight: bolder;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  max-width: 100%; /* optional, keep content constrained */
}

body {
  overflow-x: hidden;
  overflow-y: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "caros-light";
}
.slider_content {
  text-align: left !important;
  align-items: flex-start !important;
  padding-left: 50px !important;
}
.slider-content-wrap p {
  text-align: left !important;
}
@media (max-width: 1200px) {
  .slider_content {
    text-align: left !important;
    align-items: flex-start !important;
    padding-left: 50px !important;
    /*width: 100%;*/
  }
  .slider-content-wrap p {
    text-align: left !important;
    padding-left: 0;
  }
}
@media (max-width: 500px) {
  .slider_content {
    padding-left: 20px !important;
  }
}

.feature-title {
  margin-bottom: 0;
}
.card-container {
  height: 210px;
  /*overflow-y: auto;*/
}
/*@media (max-width: 1366px) {*/
/*    .card-container {*/
        /*height: auto;*/
/*        min-height: 340px !important;*/
/*    }*/
/*}*/
@media (max-width: 1199.98px) {
    .card-container {
        /*height: auto;*/
        min-height: 240px !important;
    }
}
/* .card_body {
  overflow-y: auto;
  overscroll-behavior-y: contain;
} */
.res-mega-menu {
  width: 200px !important;
}
.swiper-slide {
  height: 220px;
  width: 615px;
}
@media (max-width: 1366px) {
    .swiper-slide {
    width: 420px;
}
}
@media (max-width: 1220px) {
    .swiper-slide {
    width: 370px;
}
}
@media (max-width: 1024px) {
    .swiper-slide {
    width: 300px;
}
}
@media (max-width: 870px) {
    .swiper-slide {
    width: 250px;
}
.swiper-pagination{
   bottom: -5px !important;
}
}
.swiper{
    direction: ltr;
}
.features-slider{
    direction: ltr;
    width:100%;
}
.feature-title {
  line-height: 1;
  margin-top: 1rem;
}
.feature-text {
  line-height: 1;
  margin-top: 1rem;
}
@media (max-width: 767.98px) {
  .card-container {
    height: auto !important;
  }
}
@media (max-width: 575.98px) {
  .card-container {
    height: auto !important;
  }
}

/* [dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] span,
[dir="rtl"] a {
  text-align: start !important;
}
[dir="rtl"] label {
  text-align: start !important;
  right: 10px;
}
[dir="rtl"] button {
  padding-right: 0 !important;
} */
/* [dir="rtl"] .desktop-arrow svg {
  transform: scaleX(-1) !important;
} */

a {
  text-decoration: none !important;
}

header {
  position: fixed; /* Fixed header as in screenshot */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white; /* Transparent background for the header container */
  /* border: 1px solid black; */
}

.navbar-container {
  background-color: white;
  /* border-radius: 50px; */
  /* height: 70px; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 97%;
  margin-top: 20px;
  padding: 0;
  /* border: 1px solid; */
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529; /* Dark text for logo */
  margin-right: 30px;
  padding: 0; /* Remove default padding */
}
.navbar-brand img {
  width: 130px;
}
.navbar-brand span {
  color: #ff4d4d; /* Red color for 'ia' in Fotopia */
}

.navbar-nav .nav-link {
  font-size: 1rem;
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  color: black;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}
.navbar-nav .nav-link:hover {
  color: #212529; /* Darker grey on hover */
}

/* Hide Bootstrap's default caret */
.navbar-nav .nav-link.dropdown-toggle::after {
  display: none;
}

/* Dropdown Menu Styling for desktop */
@media (min-width: 992px) {
  .navbar-nav .nav-item {
    position: relative;
    padding-bottom: 20px; /* Make space for the caret/icon */
  }

  .navbar-nav .nav-item:not(:last-child) {
    margin-right: 2rem;
  }

  .header-col-3 {
    display: flex;
    align-items: center;
    /* gap: 20px; */
  }

  /* The image icon that swaps with the caret */
  .nav-item .dropdown-icon {
    position: absolute;
    bottom: 19px;
    left: 40%;
    /* transform: translateX(-50%); */
    width: 16px;
    /* height: 16px; */
    transition: opacity 0.3s ease;
    z-index: 1001; /* Ensure it's on top of other elements */
  }

  /* The caret pseudo-element that swaps with the image */
  .nav-item.has-mega-menu::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom: 8px solid #ff4d4d; /* Matches mega-menu background */
    z-index: 1001;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
  }

  /* On hover, swap the two elements */
  .nav-item.has-mega-menu:hover .dropdown-icon {
    opacity: 0; /* Hide the image */
  }

  .nav-item.has-mega-menu:hover::after {
    opacity: 1; /* Show the caret */
  }

  /* Mega Menu Styling */
  .mega-menu {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 900px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-top: none; /* Remove top border for seamless connection */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    box-sizing: border-box;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    border-radius: 30px;
  }

  /* Show mega menu on hover */
  .nav-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
  }

  .mega-menu .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .mega-menu .col.featured {
    background-color: var(--box-light-gray);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .mega-menu .col.featured-large {
    flex: 1.2;
  }

  .mega-menu .featured .box-ai-logo {
    background-color: #fff;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
  }

  .mega-menu .featured h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--box-dark-blue);
  }

  .mega-menu .featured p {
    font-size: 14px;
    color: var(--gray-text);
    margin: 0;
  }
  .mega-menu .featured img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
  }
  .mega-menu .featured a {
    color: var(--box-blue);
    font-weight: 600;
    margin-top: 10px;
  }

  .mega-menu h3 {
    font-size: 14px;
    font-family: var(--heading-font);
    font-weight: var(--heading-font-weight);
    color: black;
    text-transform: uppercase;
    margin: 0 0 10px 0;
  }

  .mega-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mega-menu ul li a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    font-size: 15px;
    transition: color 0.2s;
    text-decoration: none !important;
  }

  .mega-menu ul li a:hover {
    color: #e54166;
  }

  .mega-menu ul li a.has-icon {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mega-menu ul li a.has-icon img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .mega-menu ul li a .description {
    font-size: 12px;
    color: var(--gray-text);
    display: block;
    line-height: 1.3;
  }
  .pro-li {
    padding: 1rem 20px 1rem;
    /* border: 1px solid black; */
    align-items: center;
  }
  .pro-li:hover {
    background-color: transparent;
    transition: background-color 120ms ease;
  }
  .pro-li span {
    margin-right: 10px;
  }
  .products-wrap ul li {
    background-color: transparent;
    transition: background-color 120ms ease;
    border-radius: 30px;
  }

  .products-wrap ul li:hover {
    background-color: #f5f6f8;
  }
  .sol-wrap ul li {
    background-color: transparent;
    transition: background-color 120ms ease;
    border-radius: 30px;
  }

  .sol-wrap ul li:hover {
    background-color: #f5f6f8;
  }
  .sol-li {
    padding: 10px;
  }
  .res-wrap ul li {
    background-color: transparent;
    transition: background-color 120ms ease;
    border-radius: 30px;
  }

  .res-wrap ul li:hover {
    background-color: #f5f6f8;
  }
  .res-li {
    padding: 10px;
  }
}
@media (max-width: 1200px) {
  .navbar-nav .nav-item:not(:last-child) {
    margin-right: 0rem !important;
  }
}

/* Search Icon */
.search-icon {
  font-size: 1.7rem;
  color: #495057;
  cursor: pointer;
  transition: color 0.3s ease;
}
.search-icon:hover {
  color: #212529;
}
/* === Fullscreen Modal Background (translucent) === */
.search-modal-content {
  background-color: rgba(33, 37, 41, 0.8); /* Semi-transparent dark */
  border: none;
  border-radius: 0;
  padding: 2rem;
  backdrop-filter: blur(4px); /* Optional: slight blur behind modal */
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s ease;
}

.modal.show .search-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Search input styles */
.search-input {
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Close Button Animation */
.animated-close {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.animated-close:hover {
  transform: rotate(90deg) scale(1.2);
  opacity: 0.8;
}

/* Adjust heading */
.search-modal-content h1 {
  font-size: 2.5rem;
  color: #fff;
}
/* Make Bootstrap close button white and visible */
.search-modal-content .btn-close {
  filter: invert(1) brightness(200%);
  opacity: 1;
  width: 1.5rem;
  height: 1.5rem;
  background-size: 1.5rem;
}

/* Animate close button on hover */
.search-modal-content .btn-close:hover {
  transform: rotate(90deg) scale(1.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}
.modal.show .search-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* .btn-request-demo {
  background: linear-gradient(
    90deg,
    rgba(241, 88, 82, 1) 0%,
    rgba(229, 65, 102, 1) 100%
  );
 
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px; 
  font-weight: 600;
  font-size: 1rem;
  border: none;
}
.btn-request-demo:hover {
  border: none;
} */
.btn-request-demo {
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(241, 88, 82, 1) 0%,
    rgba(229, 65, 102, 1) 100%
  );
  color: white;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.5s ease;
}

.btn-request-demo:hover {
  letter-spacing: 3px;
  background: linear-gradient(
    90deg,
    rgba(241, 88, 82, 1) 0%,
    rgba(229, 65, 102, 1) 100%
  );

  color: hsl(0, 0%, 100%);
  box-shadow: rgb(229, 65, 102) 0px 7px 29px 0px;
}

.btn-request-demo:active {
  letter-spacing: 3px;
  background: linear-gradient(
    90deg,
    rgba(241, 88, 82, 1) 0%,
    rgba(229, 65, 102, 1) 100%
  );

  color: hsl(0, 0%, 100%);
  box-shadow: rgb(229, 65, 102) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

/* Request a login button */
.btn-request-login {
  background-color: white;
  /* border-color: rgba(229, 65, 102, 1); */
  color: black;
  padding: 10px 55px;
  border-radius: 50px; /* Highly rounded */
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid black;
}
.btn-request-login:hover {
  /* border: none; */
}
.login {
  text-decoration: none;
  color: black;
  font-weight: 600;
  position: relative;
}
.login::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background-color: black;
}
.signup {
  text-decoration: none;
  color: #e54166;
  font-weight: 600;
}
.header-col-3 {
  /* gap: 20px; */
}
@media (max-width: 1200px) {
  .btn-request-demo {
    padding: 12px 15px;
    font-size: 0.7rem;
  }
}
@media (max-width: 991.98px) {
  /* Tablet and smaller */
  .navbar-container {
    height: auto; /* Allow height to adjust for stacked content */
    padding: 15px 20px;
    width: 100%;
  }
  .navbar {
    justify-content: space-between;
  }
  .navbar-collapse {
    background-color: #e5e5e5; /* Background for collapsed menu */
    border-radius: 0.5rem;
    margin-top: 10px; /* Space below toggler */
    padding: 10px 0;
  }
  .navbar-nav {
    align-items: flex-start; /* Align nav items to left */
    margin-left: 0 !important; /* Override mx-auto for mobile */
    margin-right: 0 !important; /* Override mx-auto for mobile */
  }
  .navbar-nav .nav-item {
    width: 100%; /* Full width for stacked nav items */
  }
  .navbar-nav .nav-link {
    padding: 10px 20px; /* More padding for mobile links */
  }
  .search-icon {
    margin-left: 20px; /* Keep consistent margin */
    margin-right: 0;
  }
  .btn-request-demo {
    width: calc(100% - 40px); /* Full width minus padding */
    margin: 0px 20px 0; /* Centered with vertical margin */
  }
  .lang-atr {
    /* Target the search/button group */
    display: flex;
    margin-left: auto !important;
    justify-content: center; /* Center buttons on mobile */
    /* width: 100%; */
    /* padding: 0 20px */
    justify-content: center;
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    align-items: center;
  }
  /* Hide the icon and caret on mobile */
  .dropdown-icon,
  .nav-item.has-mega-menu::after {
    display: none;
  }

  /* On mobile, use Bootstrap's standard dropdown-menu which is display: block */
  .mega-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .navbar-nav .nav-item.has-mega-menu .mega-menu {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
    flex-direction: column;
    gap: 0;
  }

  /* This will need a bit of JavaScript for mobile to toggle visibility */
  .navbar-nav .nav-item.has-mega-menu .mega-menu.show {
    display: flex !important;
    flex-direction: row;
    /* gap: 50px; */

    opacity: 1 !important;
    visibility: visible !important;
  }

  .mega-menu .col {
    padding: 10px 5px;
  }
  .mega-menu .col h3 {
    margin-top: 10px;
    color: black;
    font-weight: var(--heading-font-weight);
    font-family: var(--heading-font);
  }
  /* .mega-menu .col ul li a {
    padding-left: 20px;
  } */
  .mega-menu .featured {
    display: none; /* Hide featured columns on mobile for simplicity */
  }
  .pro-li {
    padding-bottom: 10px;
  }
  .pro-li a {
    color: black;
  }
  .pro-li span {
    display: none;
  }
  .sol-wrap ul {
    padding-left: 0;
  }
  .sol-li {
    padding-bottom: 10px;
  }
  .sol-li img {
    display: none;
  }
  .sol-li {
    list-style: none;
  }
  .sol-li a {
    color: black;
    padding-left: 0;
  }
  .res-li {
    list-style: none;
  }
  .res-li a {
    color: black;
    padding-left: 0;
  }
  .res-wrap ul {
    padding-left: 0;
  }
  .res-li {
    padding-bottom: 10px;
  }
}

@media (max-width: 767.98px) {
  /* Mobile */
  .navbar-brand {
    font-size: 1.5rem;
  }
  .navbar-toggler {
    border: none;
    padding: 0;
  }
  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
  }
  .navbar {
    justify-content: space-between !important;
  }
}
@media (max-width: 530px) {
  .btn-request-demo {
    display: none;
  }
}

.navbar-nav .nav-link.active {
  text-decoration: underline !important;
  text-underline-offset: 2px;
  color: #e54166 !important;
  text-decoration-thickness: 3px !important;
  z-index: 1;
  text-decoration-color: #e54166 !important; /* Optional: highlight color */
}

/* Hide the original GTranslate widget dropdown and branding */
.gtranslate_wrapper .goog-te-combo,
.gtranslate_wrapper .skiptranslate,
.gtranslate_wrapper .VIpgJd-ZVi9od-l4eHX-hSRGPd,
.gtranslate_wrapper iframe,
#google_translate_element2 {
  display: none !important;
}

/* Hide both AR and EN buttons initially */
.gtranslate_wrapper .glink {
  /* display: none;  */
  /* background-color: #007bff; */
  color: black;
  /* padding: 8px 16px; */
  margin: 0 5px;
  border: none;
  border-radius: 6px;
  font-weight: var(--heading-font-weight);
  font-size: var(--heading-font);
  text-decoration: none;
  cursor: pointer;
}

/* Hide Google Translate top-left popup */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.skiptranslate,
.goog-tooltip,
.goog-te-spinner-pos {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  z-index: -9999 !important;
}
/* .gtranslate_wrapper {
  margin-right: -30px;
} */
a.glink.gt-current-lang {
  display: none !important;
}

/* default direction */
[dir="rtl"] .navbar-expand-lg .navbar-nav {
  margin-left: 0 !important;
  gap: 30px;
}
[dir="rtl"] .header-col-3 {
  margin-right: auto !important;
  margin-left: 0 !important;
}
.navbar-collapse {
  justify-content: center;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
}
button:focus:not(:focus-visible) {
  outline: none !important;
}

.lang-btn span {
  position: relative;
  top: 2px;
  color: black;
  font-weight: var(--heading-font-weight);
  font-size: var(--heading-font);
}
