/* Portfolio Single Template Custom Styles */

/* Hero Section */
.portfolio-hero {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blue overlay for hero (requested color #1E73BE with ~0.5 opacity) */
.portfolio-hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  background-overlay: "";
  background: #0000006b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      z-index: 99 !important;
    position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 99 !important;
  position: relative !important;
}

/* Main Content */
.portfolio-single-main {
  padding: 60px 0;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.portfolio-navigation {
  margin-bottom: 40px;
  border-radius: 15px;
  padding: 20px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.nav-archive {
  background: #1e73be;
}

.nav-archive:hover {
  box-shadow: 0 6px 25px rgba(240, 147, 251, 0.4);
}

/* Content Grid */
.portfolio-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Portfolio Sections */
.portfolio-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-section:hover {
  transform: translateY(-5px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
}

.section-title i {
  color: #667eea;
  font-size: 1.2rem;
}

/* Description */
.description-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

.spec-row {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:hover {
  background: #f8f9fa;
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.spec-label i {
  color: #667eea;
  font-size: 0.9rem;
}

.spec-value {
  flex: 1;
  text-align: right;
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Location */
.location-content {
  display: grid;
  gap: 15px;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  color: #333;
  transition: all 0.3s ease;
}

.location-item:hover {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
}

.location-item i {
  font-size: 1.2rem;
  color: #667eea;
}

.location-item strong {
  color: #333;
  margin-right: 8px;
  font-weight: 600;
}

/* Gallery */
.portfolio-carousel {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
  position: relative;
  height: 400px;
}

.carousel-item {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Place inactive slides underneath and prevent them from intercepting pointer events */
  z-index: 1;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  /* Ensure the active slide sits above inactive slides and can receive pointer events */
  z-index: 5;
  pointer-events: auto;
}

.carousel-image,
.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  margin-right: 0px !important;
  margin-left: 0px !important;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0px !important;
}

.indicator.active,
.indicator:hover {
  background: white;
  transform: scale(1.2);
}

/* Single Image */
.single-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Quick Info */
.quick-info-content {
  width: 100%;
  display: grid;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.info-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
}

.info-item i {
  color: #667eea;
  font-size: 1.2rem;
}

.info-item strong {
  color: #333;
  margin-right: 8px;
  font-weight: 600;
}

.status-badge {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.featured-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .carousel-inner {
    height: 300px;
  }
}

/* No Images Message Styles */
.no-images-message {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
  margin: 20px 0;
}

.no-images-icon {
  margin-bottom: 20px;
}

.no-images-icon i {
  font-size: 48px;
  color: #6c757d;
  opacity: 0.7;
}

.no-images-message h3 {
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.no-images-message p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
  margin: 0 auto;
}

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

  .portfolio-section {
    padding: 20px;
  }

  .carousel-inner {
    height: 250px;
  }

  .no-images-message {
    padding: 30px 15px;
  }

  .no-images-icon i {
    font-size: 36px;
  }

  .no-images-message h3 {
    font-size: 16px;
  }

  .no-images-message p {
    font-size: 13px;
  }
}
