/* ============================================================
   PORTFOLIO - Category Blocks with Carousel Sliders
   ============================================================ */

/* Page Hero with Background Image */
.page-hero-bg {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url('https://discountled.us/wp-content/uploads/2026/07/Medical-Center.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  width: 100%;
}

.page-hero-bg .breadcrumb {
  justify-content: center;
  margin-bottom: 24px;
}

.page-hero-bg .breadcrumb a,
.page-hero-bg .breadcrumb span {
  color: white;
  opacity: 0.9;
}

.page-hero-bg .section-tag {
  text-align: center;
  background: #ff6b00;
  color: white;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 4px;
  margin: 0 auto 24px;
  font-weight: 600;
  font-size: 12px;
}

.page-hero-bg h1 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 48px;
  margin-bottom: 16px;
}

.page-hero-bg p {
  color: white;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .page-hero-bg {
    min-height: 350px;
    background-attachment: scroll;
  }

  .page-hero-bg h1 {
    font-size: 32px;
  }

  .page-hero-bg p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-hero-bg {
    min-height: 280px;
    background-attachment: scroll;
  }

  .page-hero-bg h1 {
    font-size: 24px;
  }

  .page-hero-bg p {
    font-size: 14px;
  }
}

/* ===== Content Sections ===== */
.pp-content-section {
  display: block;
}

/* ===== Main Content Area ===== */
.pp-main {
  padding-top: 60px;
}

/* ===== Category Block ===== */
.category-block {
  padding: 80px 0;
  border-bottom: 1px solid #f0f0f0;
  scroll-margin-top: 100px;
}

.category-block:last-of-type {
  border-bottom: none;
}

.category-block h2 {
  font-size: 32px;
  font-weight: 700;
  color: #080808;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-block > .container > p {
  font-size: 16px;
  color: #666;
  margin: 0 0 48px 0;
  line-height: 1.6;
}

/* Empty State */
.pp-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 1.1rem;
}

/* ===== Carousel Container ===== */
.carousel-wrapper {
  width: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  margin-bottom: 32px;
}

/* Carousel Track - holds all slides in a row */
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

/* Individual Slide */
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide Overlay with Text */
.carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  padding: 40px;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  color: white;
}

.carousel-slide-content {
  width: 100%;
}

.carousel-slide-category {
  display: inline-block;
  background: #ff6b00;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.carousel-slide-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
  color: white;
}

.carousel-slide-content p {
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
  color: white;
}

.carousel-slide-content p i {
  color: #ff6b00;
  margin-right: 6px;
}

/* ===== Navigation Arrows ===== */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080808;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: #ff6b00;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* ===== Thumbnails Row ===== */
.carousel-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
  align-items: center;
}

.carousel-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
  background: #ff6b00;
  border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #e55a00;
}

/* Thumbnail Button */
.carousel-thumbnail {
  flex: 0 0 100px;
  height: 100px;
  border: 3px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-thumbnail:hover {
  border-color: #ff6b00;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.carousel-thumbnail.active {
  border-color: #ff6b00;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

/* ===== Animations ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-block.reveal-up {
  animation: slideInUp 0.6s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-block {
    padding: 50px 0;
  }

  .category-block h2 {
    font-size: 24px;
  }

  .category-block > .container > p {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-prev {
    left: 12px;
  }

  .carousel-next {
    right: 12px;
  }

  .carousel-thumbnail {
    flex: 0 0 80px;
    height: 80px;
  }

  .carousel-slide-overlay {
    padding: 28px;
    min-height: 120px;
  }

  .carousel-slide-content h3 {
    font-size: 22px;
  }

  .carousel-slide-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .category-block {
    padding: 40px 0;
  }

  .category-block h2 {
    font-size: 20px;
  }

  .category-block > .container > p {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .carousel-slide {
    aspect-ratio: 1 / 1.2;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .carousel-thumbnail {
    flex: 0 0 70px;
    height: 70px;
  }

  .carousel-thumbnails {
    gap: 8px;
  }

  .carousel-slide-overlay {
    padding: 20px;
    min-height: 100px;
  }

  .carousel-slide-category {
    font-size: 10px;
    padding: 4px 10px;
  }

  .carousel-slide-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .carousel-slide-content p {
    font-size: 12px;
  }
}

/* ===== Stats Section ===== */
.pp-stats-section {
  background: #f9f9f9;
  padding: 60px 0;
}

.pp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}

.pp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pp-stat .counter {
  font-size: 48px;
  font-weight: 700;
  color: #ff6b00;
  line-height: 1;
  margin-bottom: 8px;
}

.pp-stat-plus {
  font-size: 24px;
  color: #ff6b00;
  font-weight: 700;
}

.pp-stat p {
  font-size: 14px;
  color: #666;
  margin: 12px 0 0 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pp-stats {
    gap: 30px;
  }

  .pp-stat .counter {
    font-size: 36px;
  }

  .pp-stat-plus {
    font-size: 18px;
  }
}

/* ===== CTA Section ===== */
.pp-cta {
  text-align: center;
}

.quote-cta-banner {
  background: linear-gradient(135deg, #080808 0%, #1a1a1a 100%);
  color: white;
  padding: 60px 40px;
}

.quote-cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.quote-cta-banner p {
  font-size: 16px;
  margin: 0 0 32px 0;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .quote-cta-banner {
    padding: 40px 20px;
  }

  .quote-cta-banner h2 {
    font-size: 24px;
  }

  .quote-cta-banner p {
    font-size: 14px;
  }
}
