/* ============================================================ OFFER DETAIL PAGE ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  height: 320px;
  background: url(/images/carpet-cleaning-main.jpg) center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
}

.hero-welcome {
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.breadcrumb {
  position: absolute;
  right: 40px;
  bottom: 20px;
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: 0.6;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ===== LAYOUT ===== */
.detail-layout {
  display: flex;
  gap: 30px;
}

.detail-main {
  flex: 1;
  min-width: 0;
}

.detail-sidebar {
  width: 340px;
  flex-shrink: 0;
}

/* ===== DETAIL IMAGE ===== */
.detail-image {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 15px;
  margin-bottom: 15px;
}

.detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== DETAIL DESCRIPTION ===== */
.detail-desc {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 15px;
}

.detail-desc p {
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

/* ===== VIEWS COUNT ===== */
.detail-views {
  margin-bottom: 20px;
}

.detail-views span {
  display: inline-block;
  background: white;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== ABOUT SECTION ===== */
.detail-about {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 30px;
  margin-bottom: 20px;
}

.detail-about h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 15px;
}

.detail-about p {
  font-size: 1rem;
  color: #000000;
  line-height: 1.7;
  margin: 0 0 12px;
}

.detail-about p:last-of-type {
  margin-bottom: 15px;
}

.call-link {
  display: inline-block;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.call-link:hover {
  color: #e74c3c;
}

/* ===== ACTION BOX ===== */
.detail-action-box {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 30px;
  min-height: 80px;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 25px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 15px;
  text-align: center;
}

/* Company Card */
.company-card p {
  font-size: 1rem;
  color: #000000;
  line-height: 1.7;
  margin: 0 0 12px;
}

.company-card p:last-child {
  margin-bottom: 0;
}

/* Similar Offers */
.similar-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.similar-item:last-child {
  border-bottom: none;
}

.similar-thumb {
  width: 60px;
  height: 45px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}

.similar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.similar-info {
  flex: 1;
  min-width: 0;
}

.similar-info a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 3px;
  line-height: 1.3;
}

.similar-info a:hover {
  color: #e74c3c;
}

.similar-info span {
  font-size: 0.75rem;
  color: #999;
}

.more-stories {
  display: block;
  text-align: center;
  padding: 12px 0 0;
  color: #000000;
  font-size: 1.0rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
  transition: color 0.2s;
}

.more-stories:hover {
  color: #e74c3c;
}

/* ============================================================ RESPONSIVE ============================================================ */

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    right: 20px;
    bottom: 15px;
  }

  .detail-layout {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-banner {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 10px;
  }

  .container {
    padding: 20px 15px;
  }

  .detail-about {
    padding: 20px;
  }

  .detail-action-box {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 220px;
  }

  .hero-welcome {
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .detail-image {
    padding: 10px;
  }

  .detail-desc {
    padding: 15px;
  }

  .detail-about {
    padding: 15px;
  }

  .detail-about h2 {
    font-size: 1rem;
  }

  .sidebar-card {
    padding: 20px;
  }
}
