/* =====================================
   Custom Page Styles
   ===================================== */

/* Preloader Transition */
#pre-load {
  transition: opacity 0.3s ease;
}

/* In dark mode, keep icons white */
[data-theme="dark"] .rs-feature-icon svg path,
.theme-dark .rs-feature-icon svg path {
  fill: white !important;
}

/* Banner Award Section - Fixed at Bottom */
.rs-banner-thirteen .rs-banner-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rs-banner-thirteen .rs-banner-award-wrapper {
  margin-top: auto;
}

/* Fix overflow in feature icons */
.rs-feature-five .rs-feature-icon {
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Light backgrounds for feature and category items */
.rs-feature-five .rs-feature-bg-thumb,
.rs-categories-one .rs-category-bg-thumb {
  background-color: #f2f9ff !important;
  opacity: 1;
}

.rs-feature-five .rs-feature-item:hover .rs-feature-bg-thumb,
.rs-categories-one .rs-category-item:hover .rs-category-bg-thumb {
  background-color: #e8f4fd !important;
}

/* Consistent section spacing */
.rs-feature-area.section-space {
  padding-top: 80px;
  padding-bottom: 60px;
}

.rs-categories-area.section-space,
.rs-portfolio-area.section-space,
.rs-blog-area.section-space,
.rs-about-area.section-space-bottom,
.rs-testimonial-area.section-space-bottom {
  padding-top: 0;
  padding-bottom: 80px;
}

@media only screen and (max-width: 991px) {
  .rs-feature-area.section-space {
    padding-top: 60px;
    padding-bottom: 50px;
  }

  .rs-categories-area.section-space,
  .rs-portfolio-area.section-space,
  .rs-blog-area.section-space,
  .rs-about-area.section-space-bottom,
  .rs-testimonial-area.section-space-bottom {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media only screen and (max-width: 767px) {
  .rs-feature-area.section-space {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .rs-categories-area.section-space,
  .rs-portfolio-area.section-space,
  .rs-blog-area.section-space,
  .rs-about-area.section-space-bottom,
  .rs-testimonial-area.section-space-bottom {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  /* Mobile Banner Fixes */
  .rs-banner-thirteen .rs-banner-item {
    min-height: 500px !important;
  }

  .rs-banner-thirteen .rs-banner-bg-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  .rs-banner-thirteen .rs-banner-item-wrapper {
    position: relative;
    min-height: 500px;
  }

  .rs-banner-thirteen .rs-banner-item-wrapper .container-fluid {
    position: relative;
    z-index: 2;
  }

  .rs-banner-thirteen .rs-banner-item {
    position: relative;
    z-index: 2;
  }

  /* Mobile Feature Cards - Smaller Size */
  .rs-feature-five .rs-feature-item {
    /* min-height: 200px !important; */
    height: unset;
    max-height: unset;
    min-height: unset !important;
    padding: 20px !important;
    padding-top: 50px !important;
  }

  .rs-feature-five .rs-feature-bg-thumb {
    /* height: 200px !important; */
    height: 100%;
  }

  .rs-feature-five .rs-feature-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 15px !important;
  }

  .rs-feature-five .rs-feature-icon svg {
    width: 40px !important;
    height: 40px !important;
  }

  .rs-feature-five .rs-feature-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .rs-feature-five .rs-feature-descrip p {
    font-size: 14px !important;
  }

  /* Mobile Categories - 2 columns */
  .rs-categories-one .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .rs-categories-one .rs-category-item {
    height: 180px !important;
  }

  .rs-categories-one .rs-category-content {
    padding: 15px !important;
  }

  .rs-categories-one .rs-category-title a {
    font-size: 14px !important;
  }

  /* Mobile Portfolio Layout */
  .rs-portfolio-area .rs-section-title {
    display: none !important;
  }

  .rs-portfolio-area .section-title-space {
    margin-bottom: 20px !important;
  }

  .rs-portfolio-area .rs-services-btn {
    order: 3;
    margin-top: 20px;
    text-align: center;
  }

  .rs-portfolio-area .rs-section-subtitle-wrapper {
    margin-bottom: 20px;
  }

  /* Mobile Arrow Buttons - Smaller */
  .rs-products-slider-wrapper .swiper-button-prev,
  .rs-products-slider-wrapper .swiper-button-next {
    width: 36px !important;
    height: 36px !important;
  }

  .rs-products-slider-wrapper .swiper-button-prev svg,
  .rs-products-slider-wrapper .swiper-button-next svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Mobile Testimonial Slider - Add Indicators */
  .rs-testimonial-slider-wrapper .swiper {
    padding-bottom: 40px !important;
  }

  .rs-testimonial-slider-wrapper .swiper-pagination {
    position: absolute;
    bottom: 0 !important;
    display: flex !important;
    justify-content: center;
    gap: 8px;
  }

  .rs-testimonial-slider-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
  }

  .rs-testimonial-slider-wrapper .swiper-pagination-bullet-active {
    background: var(--rs-theme-mind-green, #059862);
    width: 24px;
    border-radius: 4px;
  }

  /* Mobile About Section */
  .rs-about-fourteen .rs-section-title {
    font-size: 24px !important;
  }

  /* Mobile Blog Section */
  .rs-blog-one .rs-section-title {
    font-size: 24px !important;
  }

  /* Mobile CTA Section */
  .rs-cta-three .rs-section-title {
    font-size: 20px !important;
  }

  .rs-cta-three .rs-cta-input input {
    font-size: 14px;
    padding: 12px 15px;
  }

  /* Mobile Testimonial Title */
  .rs-testimonial-area .rs-section-title {
    font-size: 24px !important;
  }

  .rs-testimonial-area .rs-testimonial-btn {
    margin-top: 20px;
  }
}

/* Product Card Hover Effects */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.product-card .product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card .product-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 185, 129, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover .product-image-wrapper::before {
  opacity: 1;
}

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

.product-card h5 a:hover {
  color: #10b981 !important;
}
