﻿/* UI fixes and responsive overrides */
.header-navigation,
.header-navigation-2 {
  z-index: 1000;
}

/* Force nav menu visibility on desktop */
.header-navigation .navbar,
.header-navigation-2 .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-navigation .navbar-collapse,
.header-navigation-2 .navbar-collapse {
  display: flex !important;
  flex-basis: auto;
  align-items: center;
  justify-content: flex-end;
  visibility: visible;
  opacity: 1;
}

.header-navigation .navbar-nav,
.header-navigation-2 .navbar-nav {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

.header-navigation .nav-link,
.header-navigation-2 .nav-link {
  opacity: 1 !important;
  visibility: visible !important;
}

/* About/Resources/Privacy header background video */
.aboutus-header {
  overflow: hidden;
}

.aboutus-header .particels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(159, 42, 82, 0.12), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(115, 39, 219, 0.12), transparent 50%),
    #ffffff;
  z-index: 0;
}

.aboutus-header .particels + .main-section .aboutus-main h2,
.aboutus-header .particels + .main-section .aboutus-main p {
  color: #0e1228;
}

.aboutus-header .about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.aboutus-header .about-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aboutus-header .main-section {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
}

@media (max-width: 991.98px) {
  .aboutus-main h2,
  .aboutus-main p {
    margin-left: 0;
    text-align: center;
  }

  .aboutus-main h2 {
    max-width: 100%;
  }

  .vector-aboutus,
  .vector-contactus {
    max-width: 90%;
  }
}

/* Values/ghost heading alignment */
.about-common-heading h4 {
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 991.98px) {
  .about-common-heading h4 {
    font-size: 48px;
    top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .about-common-heading h4 {
    font-size: 36px;
  }
}

/* Products cards alignment */
.products .email-secure,
.products .dlp-secure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.products .secure {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.products .icon-image img,
.products .icon-image-2 img {
  left: 50% !important;
  top: 26% !important;
  transform: translate(-50%, -50%);
}

.products .product-text,
.products .product-text-2 {
  left: 50% !important;
  top: 46% !important;
  transform: translate(-50%, -50%);
  max-width: 320px;
  text-align: center;
}

.products .product-text p,
.products .product-text-2 p {
  text-align: center;
}

/* Products section alignment (match Blazor layout) */
.products .products-content .row {
  align-items: center;
  justify-content: center;
}

.products .email-secure,
.products .dlp-secure {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products .secure {
  width: 520px;
  height: auto;
}

.products .icon-image img,
.products .icon-image-2 img {
  top: 30% !important;
}

.products .product-text,
.products .product-text-2 {
  top: 56% !important;
  max-width: 280px;
  width: 280px;
}

@media (max-width: 1199.98px) {
  .products .email-secure,
  .products .dlp-secure {
    min-height: 480px;
  }

  .products .secure {
    width: 480px;
  }

  .products .product-text,
  .products .product-text-2 {
    max-width: 250px;
    width: 250px;
    top: 58% !important;
  }
}

@media (max-width: 991.98px) {
  .products .email-secure,
  .products .dlp-secure {
    min-height: 440px;
  }

  .products .secure {
    width: 440px;
  }
}


@media (max-width: 991.98px) {
  .products {
    padding-bottom: 3rem;
  }

  .products-content h3 {
    font-size: 36px;
  }

  .products .product-text,
  .products .product-text-2 {
    max-width: 260px;
  }
}

@media (max-width: 575.98px) {
  .products {
    display: block;
  }

  .products .product-text,
  .products .product-text-2 {
    top: 52% !important;
    max-width: 230px;
  }
}

/* Blog card images */
.creative-section .blog-content img {
  max-width: 100%;
  height: auto;
}

/* ATTP layout: restore inline image behavior (Tailwind preflight makes img block) */
.management img,
.management .manage-line-1,
.management .manage-line-2 {
  display: inline-block !important;
  vertical-align: middle;
  width: auto;
  height: auto;
}

/* Blog detail pages */
.blog-section {
  padding-top: 6rem;
}

.blog-section .blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-section .blog-header h1 {
  margin: 0;
}

.blog-section .blog-header p {
  margin: 0;
  font-weight: 600;
  color: #6a6a6a;
}

.blog-section ul {
  padding-left: 0;
  margin-left: 0;
}

.blog-section ul li {
  padding-left: 2rem;
}

.blog-section ul li::before {
  left: 0;
  top: 0.35rem;
}

@media (max-width: 575.98px) {
  .blog-section {
    padding-top: 5rem;
  }

  .blog-section .blog-header {
    align-items: flex-start;
  }
}

/* Ensure nav text is visible on non-home pages */
.header-navigation-2.force-active .navbar-light .navbar-nav .nav-link {
  color: #0e1228 !important;
}

.header-navigation-2.force-active .navbar-light .navbar-nav .nav-link.active,
.header-navigation-2.force-active .navbar-light .navbar-nav .active > .nav-link {
  color: #f20261 !important;
}

/* Ensure nav text is visible on home page */
.header-navigation .navbar-light .navbar-nav .nav-link,
.header-navigation .navbar-light .navbar-nav .nav-link:focus,
.header-navigation .navbar-light .navbar-nav .nav-link:hover {
  color: #0e1228 !important;
  opacity: 1 !important;
}

.header-navigation .navbar-light .navbar-nav .nav-link.active,
.header-navigation .navbar-light .navbar-nav .active > .nav-link {
  color: #f20261 !important;
}

/* Header layout match (white bar + right-aligned menu) */
.header-navigation {
  background: #fff;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 8%);
}

.header-navigation .bg-light {
  background-color: transparent !important;
}

.header-navigation .navbar {
  padding: 0.75rem 1.5rem;
}

.header-navigation .bg-light .navbar-collapse {
  justify-content: flex-end;
}

.header-navigation .nav-item {
  padding-right: 28px;
}

@media (max-width: 991.98px) {
  .header-navigation .nav-item {
    padding-right: 16px;
  }
}

@media (max-width: 767.98px) {
  .header-navigation .navbar {
    padding: 0.5rem 1rem;
  }
  .header-navigation .nav-item {
    padding-right: 0;
  }

  .header-navigation .navbar-collapse,
  .header-navigation-2 .navbar-collapse {
    display: none !important;
    width: 100%;
  }

  .header-navigation .navbar-collapse.show,
  .header-navigation-2 .navbar-collapse.show {
    display: block !important;
  }

  .header-navigation .navbar-nav,
  .header-navigation-2 .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}
