body {
  font-family: "Poppins" !important;
  background-color: white !important;
}

::-webkit-scrollbar {
  display: none;
}

/*=============================
  Padding for X-Axis
===============================*/
.x-layout {
  padding-inline: 30px; /* Default padding for small screens */
}

@media (min-width: 576px) {
  /* Medium screens (576px and above) */
  .x-layout {
    padding-inline: 50px; /* Adjusted padding for medium screens */
  }
}

@media (min-width: 1200px) {
  /* Extra-large screens (1200px and above) */
  .x-layout {
    padding-inline: 130px; /* Adjusted padding for extra-large screens */
  }
}

.m-top {
  padding-top: 100px;
}
/*=============================
  h2 Heading Section CSS Start
===============================*/
.heading2 {
  font-size: 35px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .heading2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .heading2 {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  .heading2 {
    font-size: 20px;
  }
}

/*=============================
  h2 Heading Section CSS End
===============================*/
/*=============================
  Header Section CSS Start
===============================*/
.header {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #e9ecf9, white);
  padding-block: 15px;
  z-index: 999;
}

#menu-menu-1 {
  display: flex;
  align-items: center;
}

nav {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-block: auto;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  font-size: 20px;
}

nav a {
  color: black;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out;
}

nav a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px; /* Adjust the height of the border */
  bottom: -10px;
  left: 0;
  background-color: #d32c2c;
  transition: width 0.3s ease-in-out;
}

nav a:hover {
  color: #d32c2c;
}

nav a:hover::before {
  width: 100%;
}

nav ul li.logo a::before {
  display: none; /* Hide border for logo */
}

.nav-menu-sm li {
  list-style: none;
  margin-top: 5px;
}

.nav-menu-sm a {
  color: black;
  text-decoration: none;
}

/* #menu-item-60 a::before {
  content: none !important;
  display: none !important;
}
#menu-item-60 a:hover {
  color: white !important;
} */
/* Hide the last ul and show the menu icon on smaller screens */
@media (max-width: 1420px) {
  nav ul {
    gap: 20px;
  }
}

@media (max-width: 1279px) {
  nav ul.nav-menu {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    cursor: pointer;
    font-size: 20pt;
  }

  .nav-menu-sm {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu-sm.open {
    display: flex;
  }
}

/* On large screens, hide the small screen menu */
@media (min-width: 1280px) {
  .toggle-button {
    display: none;
  }

  .nav-menu-sm {
    display: none;
  }
}

/*Active Page */
.current-menu-item a {
  color: #d32c2c;
  font-weight: 600;
}

.current-menu-parent a {
  color: #d32c2c;
  font-weight: 400;
}

.current-menu-item a::before {
  width: 100%; /* Animate the border to full width for active page */
}

/*=============================
  Header Section CSS End
===============================*/

/*=============================
 Dropdown Section CSS Start
===============================*/
.menu-item-has-children {
  position: relative;
  max-height: 30px;
}

.menu-item-has-children > a {
  display: flex; /* Use flex to align items properly */
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease-in-out;
  text-decoration: none; /* Ensure no underline by default */
  padding-bottom: 5px; /* Ensure padding to align with border */
}

.menu-item-has-children > a::after {
  content: "\f078"; 
  font-family: "FontAwesome";
  font-size: 15px;
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block; 
  line-height: 1; 
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f8f9fa; /* Background color for dropdown */
  border-radius: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.longer-height .sub-menu{
  max-height: 50vh;
  overflow-y: auto;
}

.sub-menu a {
  color: black;
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.sub-menu a:hover {
  color: #d32c2c; /* Change text color on hover */
}

.sub-menu a::before {
  display: none; /* Remove border-bottom effect */
}

/* Show the submenu on parent hover */
.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* Rotate the icon when submenu is open */
.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Active page styling */
.current-menu-parent > a,
.current-menu-ancestor > a,
.current-menu-item a {
  color: #d32c2c;
  font-weight: 600;
}

/* Add border to parent if any submenu item is active */
.current-menu-parent > a::before {
  width: 100%; /* Show full width border */
}

/* Nested Submenus */
.sub-menu .menu-item-has-children > a::after {
  content: "\f105"; /* Right arrow */
}

.sub-menu .sub-menu-have-menu {
  width: 100%;
}

.sub-menu .sub-menu-have-menu a {
  display: flex;
}

.sub-menu .sub-menu {
  left: 101%;
  top: 0;
}

/*=============================
 Dropdown Section CSS End
===============================*/

/*=============================
 Button Icon CSS Start
===============================*/
.btn-with-icon {
  background-color: #d32c2c;
  color: white;
  padding: 10px 20px; /* Add more padding to accommodate the icon */
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* Adjust the font size as needed */
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
  max-width: 300px;
}

.btn-with-icon .wp-block-button__link {
  background-color: #d32c2c !important;
}

.btn-with-icon a {
  text-decoration: none;
  color: white; /* Ensure the link text color matches the button */
  display: inline-flex;
  align-items: center;
}

.btn-with-icon a::after {
  content: "";
  background-image: url("../images/RightArrow.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 29px;
  height: 26px;
  margin-left: 12px;
  transition: transform 0.3s ease-in-out;
}

/* Optional: Add hover effect */
.btn-with-icon:hover {
  background-color: darkred !important;
}

.btn-with-icon:hover .wp-block-button__link {
  background-color: darkred !important;
}

.btn-with-icon a:hover::after {
  transform: translateX(5px);
}

/*=============================
 Button Icon CSS End
===============================*/
/*=============================
 Popup CSS Start
===============================*/
.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  z-index: 1000; /* Sit on top */
  width: 80%;
  max-width: 600px; /* Adjust as needed */
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s; /* Fade in animation */
}

/* Popup content */
.popup-content {
  padding: 20px;
  display: flex;
  gap: 10px;
  /* width: 600px; */
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Animation for popup */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Show the popup */
.popup.show {
  display: block;
}

/* Hidden class */
.hidden {
  display: none;
}
/*=============================
 Popup CSS End
===============================*/