/*
Theme Name: Promise V3
Theme URI: https://nestinfotechnologies.com
Author URI: Nest Info Technologies
Description: Wholesale Dealers
Version: 3.0
Text Domain: promise
*/

/****************************
    Header
*****************************/
.header-transparent {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-black {
  background-color: var(--bs-black);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: absolute;
}

.logo img {
  width: auto;
  height: 80px;
  margin-right: 35px;
}

@media (max-width: 480px) {
  .logo img {
    height: 70px;
    margin-right: 40px;
  }
}

header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: transparent;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

header.sticky-header.sticky-active {
  background-color: var(--bs-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Other sticky sections */
.sticky-section-active {
  background-color: var(--bs-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding-top: 15px;
  transition: all 0.3s ease;
}

/* Optional padding animation for inner elements */
.sticky-padding,
.sticky-padding-top {
  padding-top: 20px !important;
  transition: padding 0.3s ease;
}

/****************************
    Front Page
*****************************/
.hero-banner {
  position: relative;
  margin-top: -130px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 33%);
  color: var(--bs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-slider img {
  height: 80px;
  object-fit: contain;
  margin: auto;
  transition: transform 0.3s ease;
}

.logo-slider img:hover {
  transform: scale(1.05);
}

.swiper-slide {
  border: 1px solid var(--bs-light);
  border-radius: 10px;
  background-color: var(--bs-white);
}

.product-slider-section {
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 30%, #000000 80%);
}

.event-banner {
  background-image: url("img/empowering-innovation-together.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  padding: 60px 0;
}

/****************************
    Footer
*****************************/
.newsletter-section {
  background-color: var(--bs-black);
  border-top: 1px solid var(--bs-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.newsletter-section .btn {
  font-size: 0.9rem;
  border: 2px solid var(--bs-white);
  transition: background 0.3s ease;
  margin-left: 25px;
}

.newsletter-section .btn:hover {
  background-color: var(--bs-white);
  color: var(--bs-black);
}

.newsletter-section .btn .arrow-up {
  position: relative;
  top: -2px;
}

.footer-nav a,
.footer-nav p {
  font-size: 0.9rem;
}

.footer-nav .btn {
  padding: 0.275rem 0rem;
  color: var(--bs-white);
}

.footer-nav .btn:hover {
  color: var(--bs-primary);
}

.footer-nav .btn-link span,
.footer-nav .btn-link {
  text-align: left !important;
}

/****************************
    About Us
*****************************/
.aboutus-retreat {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 70px;
}

.retreat-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.retreat-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 15px;
}

@media (max-width: 992px) {
  .aboutus-retreat {
    margin-top: 100px;
  }
}
@media (max-width: 768px) {
  .aboutus-retreat {
    margin-top: 170px;
  }
}
@media (max-width: 576px) {
  .retreat-content {
    top: 20%;
  }
}
.aboutus-badge-outline {
  border: 1px solid #e0e0e0;
  color: #333;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.aboutus-ourstory {
  padding: 80px 0;
}
/* team image - full width on mobile, container gap on large screens */
@media (max-width: 576px) {
  .team-img.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .team-img .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* mission and vision*/
.aboutus-card-wrapper {
  position: relative;
  padding: 20px 20px 60px 20px;
  margin-bottom: 30px;
  overflow: hidden; 
}

.aboutus-blue-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90%;
  height: 75%;
  background-color: #0d6efd;
  border-radius: 30px;
  z-index: 1;
}

.aboutus-content-layer {
  position: relative;
  background: #ffffff;
  padding: 50px 40px;
  z-index: 2;
  border-radius: 20px 80px 30px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.aboutus-card-wrapper h2.aboutus-card-title {
  font-weight: 700 !important;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.aboutus-card-text {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: justify;
}

.aboutus-icon {
  position: absolute;
  bottom: 20px;
  left: 25px;
  width: 65px;
  height: 65px;
  z-index: 5;
}
.aboutus-section-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* responsive design */
@media (max-width: 992px) {
  .aboutus-content-layer {
    padding: 40px 30px;
  }
  .aboutus-title {
    font-size: 2rem;
  }
  .aboutus-icon {
    width: 55px;
    height: 55px;
    left: 20px;
  }
}

@media (max-width: 768px) {
  .aboutus-card-wrapper {
    padding: 15px 15px 50px 15px;
  }

  .aboutus-blue-layer {
    width: 100%;
    height: 70%;
    border-radius: 25px;
  }

  .aboutus-content-layer {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .aboutus-title {
    font-size: 1.6rem;
  }

  .aboutus-text {
    font-size: 0.95rem;
  }

  .aboutus-icon {
    position: static;
    display: block;
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .aboutus-title {
    font-size: 1.4rem;
  }

  .aboutus-text {
    font-size: 0.9rem;
  }
}
/* Expertise  */
.about-expertise-section {
  background-color: #010b1d;
  color: #ffffff;
}

.about-expertise-title {
  color: #007bff;
  font-weight: 700;
  text-transform: capitalize;
}

.about-expertise-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e0e0e0;
  margin: 0 auto;
}

.about-expertise-card {
  border: 2px solid #1a3a5a;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.about-expertise-card:hover {
  border-color: #007bff;
  transform: translateY(-8px);
}

.about-expertise-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.about-expertise-section .card-img-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  padding: 25px;
  border-radius: 18px;
}

.about-expertise-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* WHAT SETS US APART? */

.about-feature-card {
  border: 2px solid #007bff;
  border-radius: 20px;
  padding: 60px 20px 30px 20px;
  height: 100%;
  position: relative;
  background: #fff;
  transition: all 0.3s ease;
}

/*  Icon Circle */
.about-icon-wrapper {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border: 2px solid #007bff;
  border-radius: 50%;
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  z-index: 5;
}

.about-icon-img {
  width: 80%;
  height: auto;
  display: block;
}

.about-card-body {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0;
}
/****************************
    Breadcrumb
*****************************/
.breadcrumb-section {
  border-bottom: 1px solid var(--bs-dark);
  position: fixed;
  top: 100px;
  z-index: 30;
}

@media (max-width: 767px) {
  .breadcrumb-section {
    top: 117px;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 8px;
  color: var(--bs-secondary);
}

.breadcrumb-item a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--bs-secondary);
}

/****************************
    Product Category
*****************************/
.performance-section {
  background: url("img/bg-product-category.jpg") center center / cover no-repeat;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 50px;
  padding: 130px 0px 80px 0px;
}

.performance-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

.performance-section h2 {
  max-width: 700px;
  margin: 0 auto;
}

.performance-section .card {
  background-color: #fff;
  border-radius: 12px;
}

.performance-section .arrow-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
}

/****************************
    brand-category
*****************************/
#stickySection {
  position: fixed;
  transition: top 0.3s ease;
  z-index: 30;
  top: 156px;
}

.brand-category-title {
  background: url("img/bg-product-category.jpg") center center / cover no-repeat;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 285px 0px 80px 0px;
}

.brand-category-title.sticky-padding {
  padding: 180px 0px 80px 0px;
}

.brand-category-title .partnership-logo {
  border: 1px solid var(--bs-light);
  border-radius: 2px;
  background-color: var(--bs-white);
}

.brand-category-title img {
  height: 60px;
  object-fit: contain;
  margin: auto;
  transition: transform 0.3s ease;
}

.subcategory-section .read-more-link {
  position: relative;
  padding-left: 1rem;
  border: 2px solid var(--bs-black);
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 10px;
  color: var(--bs-black);
}

.subcategory-section .hover-icon {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 45px;
  overflow: hidden;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  padding-top: 7px;
}

.subcategory-section .hover-icon i {
  position: relative;
  z-index: 1;
  color: var(--bs-black);
  line-height: 32px;
  text-align: center;
  width: 100%;
  height: 100%;
  transition: color 0.3s ease;
}

.subcategory-section .hover-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  background-color: var(--bs-black);
  transition: width 0.4s ease;
  z-index: 0;
}

.subcategory-section .read-more-link:hover .hover-icon::before {
  width: 100%;
  left: 0;
  right: auto;
}

.subcategory-section .read-more-link:hover .hover-icon i {
  color: #fff;
}

.subcategory-section .card img {
  height: 250px;
  object-fit: contain;
}

.subcategory-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: all 0.3s ease;
  padding-top: 30px;
  /*background-color: var(--bs-grey);*/
  background: url("img/bg-brand-category-product.jpg") center center / cover
    no-repeat;
  border: 1px solid var(--bs-secondary);
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.2);
}

.subcategory-product-card img {
  transition: transform 0.35s ease;
  padding-bottom: 70px;
}

.subcategory-product-card:hover img {
  transform: scale(1.05);
}

.subcategory-product-desc {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}

.subcategory-product-card:hover .subcategory-product-desc {
  bottom: 0;
}

.subcategory-product-title {
  position: absolute;
  bottom: 0px;
  font-weight: 600;
  color: var(--bs-black);
  z-index: 5;
  background-color: var(--bs-white);
  padding: 10px;
}

.subcategory-product-card:hover .subcategory-product-title {
  opacity: 0;
}

.subcategory-product-desc a,
.subcategory-product-desc button {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}

.subcategory-product-desc {
  z-index: 5;
  pointer-events: none;
}

.subcategory-product-desc .d-flex {
  pointer-events: auto;
  z-index: 30;
}

@media (min-width: 992px) {
  .w-lg-35 {
    width: 35% !important;
  }

  .w-lg-65 {
    width: 65% !important;
  }
}

/****************************
    Product Brand
*****************************/
.product-brand-section {
  background: url("img/bg_product_category.jpg") center center / cover no-repeat;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 130px 0px 80px 0px;
}

.product-brand-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

.product-brand-section h2 {
  max-width: 700px;
  margin: 0 auto;
}

.product-brand-section .card {
  background-color: #fff;
  border-radius: 12px;
}

.product-brand-section .arrow-top-right {
  position: absolute;
  top: 10px;
  right: 15px;
}

/*============================================== 
    Popup 
===============================================*/
.popup-container {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  transition: all 0.3s ease-in-out;
  transform: scale(1.3);
  background-color: rgba(21, 17, 17, 0.61);
  border: 1px solid #000;
  height: 100vh;
  z-index: 1000;
  align-items: center;
}

.popup-container.show {
  display: block;
}

.close {
  color: var(--bs-primary);
  float: right;
  font-weight: 700;
  background: none;
  text-decoration: none;
  cursor: pointer;
  width: 25px;
  height: 25px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  padding: 0;
  border: 0;
  margin: auto;
  font-size: x-large;
}

.popup-container a.close:hover {
  color: var(--bs-dark);
}

.popup-container p {
  font-size: 0.8rem;
  line-height: 20px;
  margin-bottom: 0rem;
}

.shortcode-content {
  width: 100%;
}

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

.popup-container:target {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.popup-container h3 {
  margin: 10px;
}

/*============================================== 
    Contact Us 
===============================================*/
.banner-contact {
  background-image: url("img/bg-contact.gif");
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.banner-contact .container {
  position: relative;
  z-index: 10;
}

.contact-section img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  border-radius: 5px;
}

/*============================================== 
    Certificate
===============================================*/
.navbar-btn {
  background-color: #0083e2;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease-out;
  z-index: 1;
}

.navbar-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: white;
  z-index: -1;
  transition: width 0.4s ease-out;
}

.navbar-btn:hover::before {
  width: 100%;
}

.navbar-btn:hover {
  color: #0083e2;
}

/****************************
    Scrollbar
*****************************/
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--bs-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: var(--bs-light);
}
