@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins/poppins-regular.tff") format("tff"),
    url("../fonts/Poppins-Regular.ttf") format("tff"),
    url("../fonts/Poppins-Regular.ttf") format("tff"),
    url("../fonts/Poppins-Regular.ttf") format("tff"),
    url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("tff"),
    url("../fonts/Poppins-Bold.ttf") format("tff"),
    url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --header-height: 2.0rem;
  --first-color: hsl(218, 14%, 11%);
  --first-color-lighten: hsl(220, 68%, 97%);
  --title-color: hsl(0, 0%, 0%);
  --text-color: #000000;
  --body-color: hsl(0, 0%, 0%);
  --normal-font-size: 0.938rem;
  --small-font-size: 22px;
  --smaller-font-size: 0.75rem;
  --font-medium: 300;
  --font-semi-bold: 600;
  --z-tooltip: 10;
  --z-fixed: 100;
  --tp-blue-1: #0d0f68;
  --tp-blue-2: #1e5c94;
  --tp-red-1: #fff;
}

body {
  font-family: "Calibri", sans-serif;
  font-size: var(--normal-font-size);
  /* color: var(--text-color); */
  /*background-color: var(--body-color);*/
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
/* ul {
  list-style: none;
  font-family: "Poppins", sans-serif !important;
} */
a {
  text-decoration: none;
}
@keyframes headerAnimation {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}
.header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
  background-color: #EBE5D1;
  border-bottom: 4px solid #721614;
  color: #000 !important;
  z-index: var(--z-fixed);
  transition: background-color 0.5s ease;

  font-family: "Poppins", sans-serif !important;
}
.header.scroll-header {
  background-color: #fff;
  color: #000;
  animation: headerAnimation 0.5s ease;
}
.header.scroll-header > .nav__menu > .nav__link {
  color: #000;
}
.nav {
  height: var(--header-height);
  position: relative;
}
.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--title-color);
  font-weight: 15px;
  transition: color 0.3s;
}
.nav__logo i {
  font-size: 1.25rem;
}
.nav__logo:hover {
  color: var(--first-color);
}
.nav__toggle {
  position: absolute;
  right: 1rem;
  width: 32px;
  height: 32px;
}
.nav__link {
  color: #000;
}
.nav__toggle-close,
.nav__toggle-menu {
  font-size: 1.25rem;
  color: #b7332b;
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}
.nav__toggle-close {
  opacity: 0;
}

.nav-container {
  display: none;
}

@media screen and (max-width: 1118px) {
  .nav__list {
    display: none;
  }

  .sub-menu,
  .main-menu {
    margin-top: calc(var(--header-height) + 2.0rem);
    height: 100vh;
  }
  .main-menu {
    /*background: rgb(255, 255, 255) !important;*/
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
    background: #555 !important;
    display: block;
    overflow: hidden;
    z-index: 1000;
    height: 100vh;
  }

  .nav-container {
    display: none;
  }
  .nav-container {
    max-width: 400px;
    background: rgb(255, 255, 255) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    overflow: hidden;
    z-index: 1000;
    height: 100vh;
    font-family: "Poppins", serif;
  }

  .nav-container.show {
    display: block;
  }

  .nav-item {
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .nav-item:hover {
    background-color: #eeeff1;
  }

  .nav-link {
    color: #fff !important;
    text-decoration: none;
    width: 100%;
    border-bottom: 2px solid #eeeff1;
    padding-block: 1rem;
  }

  .breadcrumb-nav {
    background: #eeeff1;
    color: #0d0f68;
    font-weight: 600;
    padding: 15px 35px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .breadcrumb-nav i {
    /* Your styles here */
    color: red;
  }

  .breadcrumb-item {
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .dropdown__arrow {
    color: #fff;
    font-size: large;
    font-weight: 1200;
    /* margin-top: 3px; */
  }

  .chevron-right {
    float: right;
  }

  .main-menu,
  .sub-menu {
    position: absolute;
    width: 100%;
    background-color: #555;
    top: 0;
    left: 0;
    visibility: hidden;
    max-height: 95vh; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 20px; 
  }

  /* Ensure the main menu is initially visible */
  .main-menu {
    visibility: visible;
  }

  /* Add specific styling for the cyber security submenu which has many items */
  #cyber-security {
    overflow-y: auto;
    padding-bottom: 30px; /* Extra padding for the largest submenu */
  }

  .menu-title {
    font-weight: 500;
    color: #eee;
  }

  .nav__toggle-menu {
    opacity: 1;
  }
}

.show-icon .nav__toggle-menu {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__toggle-close {
  opacity: 1;
  transform: rotate(90deg);
}

.dropdown__content,
.dropdown__group,
.dropdown__list {
  display: grid;
}
.dropdown__container {
  display: flex;
  flex-direction: column;
  background-color: var(--first-color-lighten);
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
  z-index: 9999; /* make sure this is higher than other elements */
}
.category-products-container{
  flex:1;
}
.dropdown__group {
  padding-left: 2.5rem;
  row-gap: 0.5rem;
}
.dropdown__group:first-child {
  margin-top: 1.25rem;
}
.dropdown__group:last-child {
  margin-bottom: 1.25rem;
}
.dropdown__icon i {
  font-size: 1.25rem;
  color: var(--first-color);
}
.dropdown__title {
  font-size: var(--small-font-size);
  font-weight: 15px;
  color:  #b7332b !important;
  margin-bottom: 0;
}
.dropdown__title:hover {
  color: #b7332b !important; 
  cursor: pointer;
}
.dropdown__title-2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--tp-red-1);
}
.dropdown__title-2:hover {
  color: #000;
  cursor: pointer;
}
.dropdown__list {
  row-gap: 0.05rem;
}

/* Enhanced dropdown link hover styling */
.dropdown__link {
  font-size: var(--smaller-font-size);
  height: 40px;
  width: 100%;
  background-color: #555555;
  color:#ffffff !important;
  font-weight: 400;
  font-size: 16px;
  margin: 0 !important;
  color: var(--text-color);
  transition: all 0.3s;
  padding: 8px 15px;
  border-radius: 0px;
  position: relative;
}

.dropdown__link:hover {
  background-color: #721614 !important;
  border-left: 4px solid #B7332B;
  color: #fff;
  background-color: rgba(235, 235, 235, 0.5);
  text-decoration: none !important;
  transform: translateX(3px);
}

/* Add left border indicator for active menu item */
/* .dropdown__link {
  position: relative;
  padding-left: 12px;
  padding-top: 3px;
  padding-bottom: 3px;
} */

.dropdown__link:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background-color: var(--tp-red-1);
  transition: width 0.3s;
}

.dropdown__link:hover:before {
  width: 3px;
}

/* Add additional hover visual cue for the active link */
.list-products .dropdown__link.active-link {
  color: #fff;
  background-color: #848181;
  
}

.list-products .dropdown__link.active-link:before {
  width: 3px;
}

.nav__link {
  transition: color 0.3s ease;
}
#nav-toggle i {
  color: #b7332b;
  transition: color 0.3s ease;
}
.scroll-header .nav__link {
  color: #000;
}
.scroll-header #nav-toggle i {
  color: #000;
}

@media screen and (max-width: 300px) {
  .dropdown__group {
    padding-left: 1.5rem;
  }
}
@media screen and (min-width: 770px) {
  .nav__data {
    width: 100%;
  }
  .nav__data {
    width: 80%;
  }
}
@media screen and (min-width: 1024px) {
  .nav__data {
    width: 80%;
  }
}
@media screen and (min-width: 1118px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
    width: 100%;
    display: flex;
    justify-content: left;
    background-color: transparent !important;
  }
  .nav__link {
    color: #b7332b;
  }
  .nav__data {
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav__link {
    font-weight: 15px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
  }
  .nav__link:hover {
    background-color: var(--first-color-lighten);
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    display: flex;
    column-gap: 1.5rem;
    height: 100%;
  }
  .nav li {
    display: flex;
  }
  .nav__link {
    padding: 0;
  }
  .nav__link:hover {
    background-color: initial;
  }
  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
  }
  .dropdown__container {
    background-color: #EBEBEB !important;
    border-radius: 20px 20px 0px 0px;
    padding: 0;
    width: 100%;
    height: max-content;
    position: absolute;
    flex-direction: row;
    align-items: flex-start;
    left: 0;
    right: 0;
    top: 6.5rem;
    align-content: end;
    width: auto;
    background-color: transparent !important;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
    z-index: 9999;
  }
  #image-container {
    background-color: #fff;
    height: 100% !important;
  }
  .dropdown__content {
    grid-template-columns: repeat(4, max-content);
    column-gap: 2rem;
    max-width: 1120px;
    margin-inline: auto;
    padding-left: 1rem;
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    background-color: var(--body-color);
  }
  .dropdown__group {
    padding: 1rem 0;
    align-content: baseline;
  }
  .dropdown__group:first-child,
  .dropdown__group:last-child {
    margin: 0;
  }
  .dropdown__list {
    row-gap: 0.75rem;
  }
  .dropdown__icon i {
    font-size: 2rem;
  }
  .dropdown__title {
    font-size: var(--normal-font-size);
  }
  .dropdown__link {
    font-size: var(--small-font-size);
  }
  .dropdown__link:hover {
    color: var(--first-color);
  }
  .dropdown__item {
    cursor: pointer;
  }
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
  .dropdown__item:hover > .dropdown__container {
    justify-content: center;
    top: 3.5rem;
    opacity: 1;
    pointer-events: initial;
    cursor: initial;
    z-index: 9999;
  }
}

/* Special handling for cybersecurity products */
.content-cyber .dropdown__list {
  margin-bottom: 0;
}

.content-cyber .row {
  margin-left: -10px;
  margin-right: -10px;
}

.content-cyber .col-md-6 {
  padding-left: 10px;
  padding-right: 10px;
}

/* Ensure list items in columns have consistent height */
.content-cyber .dropdown__list li {
  margin-bottom: 5px;
}

/* Make the list-products class maintain the two-column layout */
.list-products {
  padding-left: 0;
}

/* For the cybersecurity section with many items */
.content-cyber {
  width: 550px;
  max-width: 100%;
}

/* Make sure we don't get more than 2 columns even with additional items */
@media (min-width: 768px) {
  .content-cyber .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Ensure the columns stay as two regardless of content amount */
  .content-cyber .row {
    display: flex;
    flex-wrap: wrap;
  }
}

@media screen and (min-width: 1152px) {
  .nav {
    margin-inline: auto;
  }
}
@media screen and (max-width: 1118px) {
  .nav {
    padding-inline: 1.5rem;
    padding-block: 2rem;
  }
}
@media screen and (max-width: 769px) {
  .nav__data {
    width: 100%;
  }
}
.previewProducts {
  background-image: url(../images/logo.png);
  width: 280px;
  height: 280px;
  background-size: cover;
  background-position: center;
  z-index: 10;
  transition: all 0.3s ease;
}
.previewProducts.hover-image {
  width: 180px;
  height: 180px;
}
.image-preview {
  width: 290px;
  height: 280px;
  background-size: cover;
  background-position: center;
  z-index: 10;
  transition: all 0.3s ease;
  background-image: url(../images/logo.png);
}
.image-preview.hover-image {
  width: 180px;
  height: 180px;
}
.text-preview {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  padding-inline: 10px;
}
.image-preview2 {
  width: 295px !important;
  height: 270px !important;
  background-size: cover;
  background-position: center;
  z-index: 10;
  background-image: url(../images/logo.png);
}
.image-previewtr {
  width: 300px !important;
  height: 270px !important;
  background-size: cover;
  background-position: center;
  z-index: 10;
  background-image: url(../images/logo.png);
}
.image-previewre {
  width: 300px !important;
  height: 270px !important;
  background-size: cover;
  background-position: center;
  z-index: 10;
  background-image: url(../images/logo.png);
}
.getbtn {
  padding: 1rem;
  margin-top: 1.7rem;
  max-height: 40px;
  background-color: #ffce5a !important;
}

/* Product dropdown category styles */
.product-categories {
  background-color: #EBEBEB;
  width: 300px;
  padding: 15px 0;
  border-right: 1px solid #ebebeb;
  height: 260px;
  overflow-y: auto;
}

.product-category {
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  color: #721614 !important;
  transition: background-color 0.3s;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-category:hover,
.product-category.active {
  background-color: #721614 !important;
  color: #fff !important;
  border-left: 4px solid #B7332B;
}

.product-category i {
  color: var(--tp-red-1);
  font-size: 16px;
  transition: transform 0.3s;
}

.product-category:hover i,
.product-category.active i {
  transform: translateX(3px);
  color: #fff;
}


.list-products > li {
  margin-block: 0px !important;
}
.product-dropdown-container {
  display: flex;
  width: 80%;
  background-color: #EBEBEB;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  height: 260px; /* Fixed height to match other dropdowns */
}

.product-content {
  background-color: #EBEBEB;
  display: none;
  padding: 15px;
  overflow-y: auto;
  height: 260px;
  /* background-color: red; */
}
.content-cyber {
  /* background-color: #f0f8ff !important; */
  min-width: 450px;
}
.product-content.active {
  display: block;
}

/* Adjust margins and paddings to save space */
.product-content .dropdown__group {
  margin-bottom: 10px;
}

.product-content .dropdown__title {
  margin-bottom: 5px;
}

.product-content .dropdown__list {
  row-gap: 5px;
}

/* Preview area styles */
.preview-container {
  background-color: #d8d4d4 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px 0 0 0;
  width: 270px; /* Slightly wider to prevent cutoff */
  height: 260px;
  padding: 15px 20px; /* Added horizontal padding */
  overflow: hidden; /* Prevent overflow */
}

.preview-container .previewProducts {
  width: 230px; /* Adjusted width */
  height: 180px;
  background-size: contain; /* Changed from cover to contain */
  background-repeat: no-repeat;
  background-position: center;
}

.preview-container .text-preview {
  font-size: 13px;
  margin-top: 10px;
  width: 100%; /* Ensure text stays within container */
  text-align: center;
  overflow-wrap: break-word;
}

/* Adjust previewProducts class for this specific context */
.previewProducts {
  background-image: url(../images/logo.png);
  width: 280px;
  height: 280px;
  background-size: cover;
  background-position: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.previewProducts.hover-image {
  width: 230px; /* Match the container's width */
  height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Bootstrap column adjustments for product lists */
.two-column-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.two-column-list li {
  width: 50%;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 5px;
}
