@media only screen and (min-width: 1024px) {
  .home-hero__slide-media {
    width: 42.9375rem;
    margin-top: auto;
    margin-bottom: -0.3rem;
  }
}

.accordion-item__head.isActive .icon__dropdown {
  transform: rotate(180deg);
}

.new_header p {
  font-size: 1.25rem;
}

.faq-section.--layout-1.--decorative-elems .new_header p {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

@media only screen and (max-width: 1024px) {
  .new_header p {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
  }
}

/* Cards styling update */
.popup-trigger {
  background-color: #1a5eb8;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 100px;
  background: #144CA3;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

.popup-trigger:hover {
  background-color: #144a96;
}

/* Popup styles */
.info-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.info-popup-overlay.active {
  display: flex;
}

.info-popup {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
  max-width: 58rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  border-radius: 40px;
}

/* Custom scrollbar for desktop */
.info-popup::-webkit-scrollbar {
  width: 8px;
}

.info-popup::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.info-popup::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.info-popup::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.info-popup__close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.info-popup__close:hover {
  background-color: #e0e0e0;
}

.info-popup__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  color: #12356C;
  line-height: 1.5;
}

.info-popup__table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0px 4px 26.5px 0px rgba(102, 169, 255, 0.40);
  backdrop-filter: blur(14.600000381469727px);
  margin-bottom: 2rem;
}

.info-popup__table {
  width: 100%;
  border-collapse: collapse;
  background: #f8faff;
  border-radius: 0.5rem;
  overflow: hidden;
}

.info-popup__table thead {
  background: var(--background, linear-gradient(180deg, #F3D16D 0%, #E3BC48 100%));
  background: var(--, linear-gradient(180deg, #F3D16D 0%, #E3BC48 100%));
}

.info-popup__table th {
  padding: 0.5rem;
  text-align: right;
  font-weight: 600;
  color: #12356C;
  font-size: 1rem;
  color: var(--, #12356C);
}

.info-popup__table td {
  padding: 1.5rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.975rem;
  color: #12356C;
  font-weight: 400;
}

.info-popup__table tbody tr:last-child td {
  border-bottom: none;
}

.info-popup__table tbody tr:hover {
  background-color: #f3f6ff;
}

.head_title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Alternating row colors */
.info-popup__table tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

.info-popup__table tbody tr:nth-child(even) {
  background-color: #F4F8FF;
}

.info-popup__table tbody tr:hover {
  background-color: #e8f0ff;
}

/* Mobile Responsive - Bottom Sheet Style */
@media (max-width: 768px) {
  .info-popup-overlay {
    padding: 0;
    align-items: flex-end;
    /* border-radius: 32px 32px 0px 0px; */
    /* background: #F4F8FF; */
  }

  .info-popup {
    max-width: 100%;
    width: 100%;
    height: 60vh;
    /* Fixed 60% height from bottom */
    max-height: 60vh;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    margin: 0;
    position: relative;
    animation: slideUp 0.3s ease-out;
    overflow-y: scroll;
    overflow-x: hidden;
    border-radius: 32px 32px 0px 0px;
    background: #F4F8FF;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  /* Custom scrollbar for mobile - vertical scroll */
  .info-popup {
    scrollbar-width: thin;
    scrollbar-color: #FFC107 #f1f1f1;
  }

  .info-popup::-webkit-scrollbar {
    width: 8px;
  }

  .info-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 1rem 0;
  }

  .info-popup::-webkit-scrollbar-thumb {
    background: #FFC107;
    border-radius: 10px;
    cursor: grab;
  }

  .info-popup::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
    background: #E3A200;
  }

  .info-popup__close {
    top: 1rem;
    left: auto;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    /* background: rgba(0, 0, 0, 0.4); */
    z-index: 10;
  }

  .info-popup__close svg {
    width: 100%;
    height: 100%;
  }

  .info-popup__title {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    padding-right: 3rem;
    /* Space for close button */
  }

  /* Table mobile optimization */
  .info-popup__table-wrapper {
    margin-left: -1.5rem;
    /* margin-right: -1.5rem; */
    /* padding: 0 1.5rem; */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  /* Custom horizontal scrollbar for table */
  .info-popup__table-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .info-popup__table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .info-popup__table-wrapper::-webkit-scrollbar-thumb {
    background: #144CA3;
    border-radius: 10px;
    cursor: grab;
  }

  .info-popup__table-wrapper::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
    background: #0F3670;
  }

  .info-popup__table {
    min-width: 100%;
    font-size: 0.875rem;
    background: unset;
  }

  .info-popup__table th,
  .info-popup__table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.813rem;
    white-space: nowrap;
  }

  .info-popup__table td {
    padding: 1rem 0.5rem;
  }

  /* Ensure first and last columns have proper padding */
  .info-popup__table th:first-child,
  .info-popup__table td:first-child {
    padding-right: 1rem;
  }

  .info-popup__table th:last-child,
  .info-popup__table td:last-child {
    padding-left: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .info-popup {
    height: 60vh;
    /* Keep 60% height */
  }

  .info-popup__table th,
  .info-popup__table td {
    font-size: 0.75rem;
    padding: 0.625rem 0.375rem;
  }
}

/* RTL Support */
[dir="rtl"] .info-popup__close {
  left: auto;
  right: 1.5rem;
}

@media (max-width: 768px) {
  [dir="rtl"] .info-popup__close {
    right: auto;
    left: 1rem;
  }

  [dir="rtl"] .info-popup__title {
    padding-right: 0;
    /* padding-left: 3rem; */
    margin-top: 2rem;
  }
}

/* Add these styles to your existing CSS file */

/* Custom scroll indicator for mobile tables */
.table-scroll-indicator {
  display: none;
  position: relative;
  height: 40px;
  margin-top: 1rem;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .table-scroll-indicator {
    display: block;
  }
}

.scroll-track {
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 1rem;
  height: 4px;
  background-color: #E5E7EB;
  border-radius: 2px;
  transform: translateY(-50%);
}

.scroll-thumb {
  position: absolute;
  top: 50%;
  height: 5px;
  min-width: 60px;
  background-color: #FFC107;
  border-radius: 12px;
  transform: translateY(-50%);
  transition: left 0.1s ease-out, right 0.1s ease-out;
  cursor: grab;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}

/* RTL specific styles */
[dir="rtl"] .scroll-thumb {
  left: auto;
  right: 16px;
}

.scroll-thumb:active {
  cursor: grabbing;
  background-color: #E3A200;
}

.scroll-thumb.dragging {
  transition: none;
}

/* Hide native scrollbar on mobile for table wrapper */
@media (max-width: 768px) {
  .info-popup__table-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .info-popup__table-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Bigger font size for mobile tables */
  .info-popup__table th,
  .info-popup__table td {
    font-size: 1rem !important;
    /* Increased from 0.813rem */
    padding: 1rem 0.75rem !important;
    /* More padding for better readability */
  }

  .info-popup__table td {
    padding: 1.25rem 0.75rem !important;
  }
}

/* Small mobile devices - even bigger fonts */
@media (max-width: 480px) {
  .info-popup__table th,
  .info-popup__table td {
    font-size: 1.125rem !important;
    padding: 1rem 0.5rem !important;
  }
}

/* Add arrow to submenu items that have children */
.main-menu .sub-menu .menu-item-has-children>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.5rem;
  /* Make room for arrow on the left side in RTL */
}

.main-menu .sub-menu .menu-item-has-children>a::after {
  content: "\e907";
  /* Same arrow icon */
  font-family: icomoon !important;
  transition: .3s ease;
  position: absolute;
  left: 0.5rem;
  /* Position on left for RTL */
  transform: rotate(90deg);
  /* Point left for RTL */
}

/* Third level submenu (sub-submenu) */
.main-menu .sub-menu .sub-menu {
  position: absolute;
  background: #fff;
  box-shadow: 0 4px 26.5px rgba(102, 169, 255, .4);
  backdrop-filter: blur(14.6px);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
  top: 0rem;
  /* Align with parent item */
  right: 100%;
  /* Position to the left of parent in RTL */
  margin-right: 0.5rem;
  /* Small gap between menus */
  padding: .5rem;
  border-radius: 1rem;
  min-width: 200px;
  /* Ensure minimum width */
}

/* Show sub-submenu on hover */
.main-menu .sub-menu .menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
}

/* Rotate arrow on hover for submenu items */
.main-menu .sub-menu .menu-item-has-children:hover>a::after {
  transform: rotate(-90deg) scaleY(-1);
}

/* Ensure submenu items don't wrap */
.main-menu .sub-menu a {
  white-space: nowrap;
  display: block;
  width: 100%;
}

/* Optional: Add hover background for submenu items */
.main-menu .sub-menu .menu-item-has-children:hover>a {
  background: #e5eeff;
  border-radius: 9.25rem;
}

/* For LTR languages, adjust the positioning */
html[dir="ltr"] .main-menu .sub-menu .menu-item-has-children>a {
  padding-left: 0.875rem;
  padding-right: 1.5rem;
}

html[dir="ltr"] .main-menu .sub-menu .menu-item-has-children>a::after {
  left: auto;
  right: 0.5rem;
  transform: rotate(90deg);
  /* Point right for LTR */
}

html[dir="ltr"] .main-menu .sub-menu .sub-menu {
  right: auto;
  left: 100%;
  /* Position to the right of parent in LTR */
  margin-right: 0;
  margin-left: 0.5rem;
}

html[dir="ltr"] .main-menu .sub-menu .menu-item-has-children:hover>a::after {
  transform: rotate(90deg) scaleY(-1);
}

.main-menu .sub-menu .menu-item-has-children {
  position: relative;
}

/* Mobile specific styles */
@media (max-width: 1024px) and (orientation: portrait) {
  .main-menu .sub-menu .menu-item-has-children:hover>a {
    background: unset;
    border-radius: unset;
  }

  .main-menu .sub-menu .menu-item-has-children:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .main-menu .sub-menu .sub-menu {
    position: relative;
    top: 0;
    right: auto;
    left: auto;
    margin: 0.5rem 0 0 1rem;
    display: none;
    box-shadow: unset;
    backdrop-filter: unset;
    padding: unset;
    margin-right: 2rem;
  }

  /* Remove arrow on mobile */
  .main-menu .sub-menu .menu-item-has-children>a::after {
    display: none;
  }

  /* Add plus/minus on the very left for mobile */
  .main-menu .sub-menu .menu-item-has-children>a {
    padding-left: 2rem;
    /* Make room for plus/minus on left */
    padding-right: 0;
  }

  /* Plus icon on the left */
  .main-menu .sub-menu .menu-item-has-children>a::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: #144ca3;
  }

  /* Minus icon when opened */
  .main-menu .sub-menu .menu-item-has-children.opened>a::before {
    content: '−';
    /* Unicode minus sign */
  }

  /* Show submenu only when opened class is present */
  .main-menu .sub-menu .menu-item-has-children.opened>.sub-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }

  /* Disable hover on mobile */
  .main-menu .sub-menu .menu-item-has-children:hover>.sub-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
  }
}

@media (any-hover: hover) {
  .main-menu>ul>.menu-item-has-children:hover>.sub-menu {
    overflow: unset !important;
  }
}