
/* Regular 400 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Medium 500 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* Semibold 600 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Bold 700 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

.beritaRekomendasi-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.beritaRekomendasi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
   flex-wrap: wrap;
}

.beritaRekomendasi-title-wrap {
  display: inline-block;
  margin-bottom: 20px;
  position: relative;
}

.beritaRekomendasi-title {
 font-size: 20px;
  font-weight: 400;
  position: relative;
  font-family: 'SF Pro Rounded', sans-serif;
  color: #000;
}


.beritaRekomendasi-title-line {
  height: 3px;
  width: 100%;
  margin-top: 5px;
  background: linear-gradient(to right, #046049 20%, #ccc 20%);
  margin-bottom: 30px;
}

.beritaRekomendasi-link {
  font-size: 13.75px;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 500;
}

.beritaRekomendasi-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.beritaRekomendasi-scroll::-webkit-scrollbar {
  height: 6px;
}
.beritaRekomendasi-scroll::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}

.beritaRekomendasi-card {
  flex: 0 0 auto;
  width: 220px;
  height: 270px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
}

.beritaRekomendasi-label {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 9.52px;
  background-color: #555;
  color: white;
  padding: 4px 10px;
  border-radius: 0px;
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 500;
}

.label-budaya { background-color: #DE7746; }
.label-lifestyle { background-color: #045759; }
.label-pendidikan { background-color:#EEA83B; }
.label-event { background-color: #622357; }

.beritaRekomendasi-overlay {
 position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 95%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.beritaRekomendasi-overlay h3 {
  font-size: 13px;
  font-family: 'Literata', serif;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.5;
}

.beritaRekomendasi-meta {
  font-size: 9.49px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.beritaRekomendasi-meta span {
  display: flex;
  align-items: center;
  gap: 5px; /* jarak icon ke teks */
}

.beritaRekomendasi-meta img.icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}


/* ==================== RESPONSIVE ==================== */

/* Tablet (<= 992px) */
@media (max-width: 992px) {
.beritaRekomendasi-container {
  padding: 0 10px;
}


  .beritaRekomendasi-card {
    width: 180px;
    height: 230px;
  }

  .beritaRekomendasi-overlay h3 {
    font-size: 12px;
  }

  .beritaRekomendasi-title {
    font-size: 18px;
  }

  .beritaRekomendasi-scroll {
    gap: 5px;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
.beritaRekomendasi-container {
  padding: 0 10px;
  margin:20px;
}

  .beritaRekomendasi-card {
    width: 160px;
    height: 200px;
  }

  .beritaRekomendasi-label {
    font-size: 8px;
    padding: 3px 8px;
  }

  .beritaRekomendasi-overlay h3 {
    font-size: 11px;
  }

  .beritaRekomendasi-meta {
    font-size: 8px;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .beritaRekomendasi-container {
    padding: 0 10px;
  }

  .beritaRekomendasi-card {
    width: 130px;
    height: 170px;
  }

  .beritaRekomendasi-overlay {
    padding: 10px;
  }

  .beritaRekomendasi-overlay h3 {
    font-size: 10px;
  }
  
  .beritaRekomendasi-meta {
  gap: 4px;
}

  
  .beritaRekomendasi-meta span {
    gap: 1px;
}

  .beritaRekomendasi-meta .kom {
    display: none !important;
}
  
  .beritaRekomendasi-meta img.icon {
    width: 12px;
    height: 12px;
  }

  .beritaRekomendasi-title {
    font-size: 16px;
  }

  .beritaRekomendasi-link {
    font-size: 12px;
  }
}