/**
 * Style for "Latest News & Events" Section (#matlab)
 * Theme: barekatfood.ir
 * Luxury Persian Culinary Catering Aesthetic
 */

#matlab.bk-news-section {
  padding: 60px 0 70px;
  position: relative;
  direction: rtl;
}

/* Section Header */
.bk-news-heading {
  text-align: center;
  margin-bottom: 44px;
}

.bk-news-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #c9932b;
  background: rgba(201, 147, 43, 0.08);
  border: 1px solid rgba(201, 147, 43, 0.25);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.bk-news-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.bk-news-divider {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, rgba(201, 147, 43, 0.1) 0%, #c9932b 50%, rgba(201, 147, 43, 0.1) 100%);
  border-radius: 3px;
  margin: 16px auto 0;
  position: relative;
}

.bk-news-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: #990707;
  border: 1px solid #c9932b;
  border-radius: 1px;
}

/* News Grid */
.bk-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* News Card */
.bk-news-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #ece4d8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
  position: relative;
}

.bk-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(153, 7, 7, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  border-color: rgba(201, 147, 43, 0.45);
}

/* Thumbnail Area */
.bk-news-thumb-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f7f4ee;
  display: block;
}

.bk-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bk-news-card:hover .bk-news-thumb {
  transform: scale(1.06);
}

/* Date Badge */
.bk-news-date-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #3a3a3a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(201, 147, 43, 0.25);
  pointer-events: none;
}

.bk-news-date-badge svg {
  width: 13px;
  height: 13px;
  color: #990707;
  flex-shrink: 0;
}

/* Card Content */
.bk-news-content {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bk-news-item-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 10px;
}

.bk-news-item-title a {
  color: #1c1c1c;
  text-decoration: none;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bk-news-card:hover .bk-news-item-title a {
  color: #990707;
}

.bk-news-item-excerpt {
  font-size: 13.5px;
  color: #666666;
  line-height: 1.7;
  margin: 0 0 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.bk-news-card-footer {
  border-top: 1px solid #f3ece2;
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bk-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #990707;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
}

.bk-news-readmore svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bk-news-card:hover .bk-news-readmore {
  color: #b80c0c;
}

.bk-news-card:hover .bk-news-readmore svg {
  transform: translateX(-5px);
}

/* CTA Button Section */
.bk-news-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

.bk-news-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #990707 0%, #7d0505 100%);
  color: #ffffff !important;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  border: 1px solid rgba(201, 147, 43, 0.4);
  box-shadow: 0 8px 24px rgba(153, 7, 7, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.bk-news-all-btn svg.icon-book {
  width: 18px;
  height: 18px;
  color: #f8c24e;
  flex-shrink: 0;
}

.bk-news-all-btn svg.icon-arrow {
  width: 16px;
  height: 16px;
  color: #ffffff;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.bk-news-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(153, 7, 7, 0.36), 0 0 0 3px rgba(201, 147, 43, 0.25);
  background: linear-gradient(135deg, #ad0a0a 0%, #8c0606 100%);
  color: #ffffff !important;
}

.bk-news-all-btn:hover svg.icon-arrow {
  transform: translateX(-4px);
}

.bk-news-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888888;
  font-size: 15px;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  #matlab.bk-news-section {
    padding: 50px 0 60px;
  }

  .bk-news-title {
    font-size: 27px;
  }

  .bk-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .bk-news-card:nth-child(3) {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .bk-news-cta-wrap {
    margin-top: 38px;
  }
}

@media (max-width: 640px) {
  #matlab.bk-news-section {
    padding: 40px 0 50px;
  }

  .bk-news-heading {
    margin-bottom: 30px;
  }

  .bk-news-title {
    font-size: 23px;
  }

  .bk-news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bk-news-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  .bk-news-content {
    padding: 18px 20px 16px;
  }

  .bk-news-item-title {
    font-size: 16px;
  }

  .bk-news-all-btn {
    width: 100%;
    max-width: 320px;
    padding: 13px 24px;
    font-size: 14.5px;
  }
}
