﻿/* ============================================================ OFFERS PAGE - FULL CUSTOM CSS ============================================================ */

* {
  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/blog/fix-hero-images.webp) 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;
}

.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: 62px;
  font-weight: 600;
}

.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 ===== */
.offers-layout {
  display: flex;
  gap: 30px;
}

.offers-main {
  flex: 1;
  min-width: 0;
}

.offers-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* ===== RED BANNER ===== */
.offers-banner {
  background: #e74c3c;
  color: white;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 2px;
}

.offers-banner p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.offers-banner p:first-child {
  font-weight: 600;
  margin-bottom: 5px;
}

/* ===== OFFER ITEM ===== */
.offer-item {
  background: white;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
  padding: 20px;
}

.offer-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.offer-title-group h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.offer-title-group h2 a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.offer-title-group h2 a:hover {
  color: #e74c3c;
}

.offer-meta {
  font-size: 1rem;
  color: #000000;
}

.offer-meta .offer-zip {
  color: #e74c3c;
  margin-left: 5px;
}

.offer-icon {
  width: 32px;
  height: 32px;
  background: #e74c3c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.offer-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.offer-item-image {
  margin-bottom: 15px;
  overflow: hidden;
}

.offer-item-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.offer-item-image a:hover img {
  transform: scale(1.02);
}

.offer-item-desc p {
  font-size: 1.1rem;
  color: #000000;
  margin: 0 0 10px;
  line-height: 1.5;
}

.read-more-link {
  color: #e74c3c;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s;
}

.read-more-link:hover {
  color: #c0392b;
}

.no-offers {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* ===== SIDEBAR ===== */
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
}

.tab-btn.active {
  color: #e74c3c;
  border-bottom-color: #e74c3c;
}

.tab-btn:hover {
  color: #e74c3c;
}

.sidebar-content {
  margin-bottom: 15px;
}

.sidebar-content.hidden {
  display: none;
}

.sidebar-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-thumb {
  width: 60px;
  height: 45px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-info {
  flex: 1;
  min-width: 0;
}

.sidebar-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;
}

.sidebar-info a:hover {
  color: #e74c3c;
}

.sidebar-info span {
  font-size: 0.75rem;
  color: #000000;
}

.more-stories {
  display: block;
  text-align: center;
  padding: 12px;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.more-stories:hover {
  color: #e74c3c;
}

/* ===== SIDEBAR TAGS ===== */
.sidebar-tags {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 15px;
}

.sidebar-tags h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #333;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags-cloud a {
  font-size: 0.8rem;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.6;
  transition: color 0.2s;
}

.tags-cloud a:hover {
  color: #e74c3c;
}

/* ============================================================ RESPONSIVE ============================================================ */

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 3.5rem;
    padding: 0 20px;
  }

  .breadcrumb {
    right: 20px;
    bottom: 15px;
  }

  .offers-layout {
    flex-direction: column;
  }

  .offers-sidebar {
    width: 100%;
  }

  .offer-title-group h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .hero-banner {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .breadcrumb {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 10px;
  }

  .container {
    padding: 20px 15px;
  }

  .offer-item {
    padding: 15px;
  }

  .offer-item-header {
    flex-direction: column;
    gap: 10px;
  }

  .offer-icon {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 220px;
  }

  .hero-welcome {
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .offers-banner p {
    font-size: 0.85rem;
  }

  .offer-title-group h2 {
    font-size: 1rem;
  }

  .sidebar-tabs {
    justify-content: center;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
