
/* SECTION */
.blog-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.blog-header h2 {
  font-size: 1.5rem;
  flex: 1 1 auto;
  color: #a5121a;
}

.blog-header h2 span {
  font-weight: 700;
}

/* DROPDOWN & CONTROLS */
.blog-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  position: relative;
}

.custom-dropdown {
  position: relative;
  width: 220px;
  user-select: none;
}

.dropdown-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #a5121a;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(159, 139, 139, 0.05);
}

.dropdown-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #141414;
  border: 1px solid #a5121a;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 100;
}

.custom-dropdown.open .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-options div {
  padding: 10px 16px;
  font-weight: 500;
  color: #ccc;
  cursor: pointer;
}

.dropdown-options div:hover {
  background: #a1a1a1;
}

/* BUTTONS */
.view-all {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #a5121a;
  border-radius: 8px;
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
}

.view-all:hover {
  background: #a5121a;
  color: #ccc;
}

/* BLOG POSTS */
.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 600px) {
  .blog-posts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* OFFER CARD */
.offer-card {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  opacity: 0;
  display: none;
}

.offer-card.visible {
  display: block;
  opacity: 1;
}

.offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.blog-header h2 {
  font-size: 24px;
  flex: 1 1 auto;
  color: #a5121a;
}


/* CARD OVERLAY */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  z-index: 1;
}

.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-bottom {
  margin-bottom: 20px;
}

/* TAGS & DATE */
.offer-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.offer-tag.OFFERS {
  background: #a5121a;
  color: #ccc;
}

.offer-tag.ADVICES {
  background: #050505;
  color: #ccc;
}

.offer-tag.NEWS {
   background: #ccc;
  color: #050505;
}

.offer-date {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

/* CARD TITLE & LINK */
.offer-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ccc;
}

.explore-link {
  color: #a5121a;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .blog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .blog-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .custom-dropdown {
    width: 100%;
  }

  .view-all.mobile-only {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }

  .view-all.desktop-only {
    display: none;
  }
}

@media (min-width: 601px) {
  .view-all.mobile-only {
    display: none;
  }

  .view-all.desktop-only {
    display: inline-block;
  }
}
