/* Kalinga: regular + bold so font-weight: bold uses kalingab.ttf */
@font-face {
  font-family: 'Kalinga';
  src: url('../fonts/kalinga.woff2') format('woff2'),
       url('../fonts/kalinga.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Kalinga';
  src: url('../fonts/kalingab.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Hero banner full width */
.hero-banner--fullwidth {
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.hero-banner__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
}

.articles {
    padding: 60px 0;
    font-family: 'Kalinga', sans-serif;
}
.articles .container {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  /* Alodokter-style: section title */
  .section-title {
    font-size: 24px;
    font-weight: 800;
    color: #424242;
    margin-bottom: 15px;
  }

  .categories {
    display: flex;
    gap: 18px;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
  }
  
  .categories li {
    font-size: 14px;
    color: #666;
    cursor: pointer;
  }
  
  .categories li a {
    color: inherit;
    text-decoration: none;
  }
  .categories li.active a,
  .categories li a:hover {
    color: #D01C22;
    font-weight: 600;
  }
  
  /* Content grid: content-wrapper 70% + sidebar 30% on desktop; sidebar hidden on mobile */
  .content {
    display: block;
  }
  .content .content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .content .sidebar {
    display: none;
  }
  .content.content--top-artikel .sidebar--top-artikel {
    display: block;
  }
  @media (min-width: 768px) {
    .content {
      display: grid;
      grid-template-columns: 70% 30%;
      gap: 30px;
    }
    .content.content--top-artikel {
      grid-template-columns: 1fr 1fr;
    }
    .content .sidebar {
      display: block;
    }
  }
  
  /* Category pill overlay on images */
  .article-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #c9a227;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .featured__img-wrap,
  .item__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
  }
  .featured__img-wrap img,
  .item__img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Featured – Alodokter-style title & link */
  .featured img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  .featured--top .featured__img-wrap {
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
  }
  .featured--top .featured__img-wrap img {
    margin-bottom: 0;
  }
  .featured--top .featured__title { margin-bottom: 10px; }
  .featured--top .featured__excerpt { margin-bottom: 10px; }
  .featured--top .featured__link { color: #D01C22; font-weight: bold; text-decoration: none; }
  .featured--top .featured__link:hover { text-decoration: none; }
  @media (max-width: 767px) {
    .featured > a img {
      width: 100%;
      height: 100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      margin-bottom: 0;
    }
  }
  .featured h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.35;
  }
  .featured h3 a {
    color: inherit;
    text-decoration: none;
  }
 
  .featured p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
  }
  .featured a[href]:not(.featured h3 a) {
    font-size: 14px;
    font-weight: bold;
    color: #D01C22;
    text-decoration: none;
  }
  .featured a[href]:not(.featured h3 a):hover {
    text-decoration: none;
  }
  
  /* List */
  .list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 10px;
    align-items: stretch;
  }
  .item > a:first-child {
    flex: 0 0 40%;
    display: block;
    min-width: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
  }
  .item > div {
    flex: 0 0 60%;
    min-width: 0;
  }
  @media (max-width: 767px) {
    .item > a:first-child {
      flex: 0 0 20%;
    }
    .item > div {
      flex: 0 0 80%;
    }
  }
  .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }

  /* Top Artikel: sidebar list (right column) */
  .content--top-artikel .content-wrapper {
    display: block;
  }
  .sidebar--top-artikel .list--sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  @media (max-width: 767px) {
    .sidebar--top-artikel .list--sidebar {
      flex-direction: column;
    }
  }
  .item--sidebar {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .item--sidebar .item__img-wrap {
    flex: 0 0 100px;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border-radius: 6px;
  }
  .item--sidebar .item__body {
    flex: 1;
    min-width: 0;
  }
  .item--sidebar .item__body h4 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .item--sidebar .item__body .item-excerpt {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  .item--sidebar .item__body a[href]:not(.item__body h4 a) {
    font-size: 12px;
    color: #D01C22;
    font-weight: bold;
    text-decoration: none;
  }

  @media (max-width: 767px) {
    .item img {
     height: auto;
     aspect-ratio: 1/1 !important;
    }
    .item-excerpt {
        display: none;
    }
  }
  
  .item h4 {
    font-size: 19px;
    font-weight: bold;
    color: #424242;
    margin-bottom: 6px;
    line-height: 1.35;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .item h4 a {
    color: inherit;
    text-decoration: none;
  }
  
  .item .item-excerpt {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.45;
  }
  .item a[href]:not(.item h4 a) {
    font-size: 13px;
    font-weight: bold;
    color: #D01C22;
    text-decoration: none;
  }
  .item a[href]:not(.item h4 a):hover {
    text-decoration: none;
  }
  
  /* More button */
  .more {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .more .more__btn a,
  .more .more__btn--disabled {
    display: inline-block;
    background: #D01C22;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
  }
  .more .more__btn a:hover {
    background: #b0181e;
    color: #fff;
  }
  .more .more__btn--disabled {
    background: #ccc;
    color: #666;
    cursor: default;
  }
  .more .more__btn--no-prev,
  .more .more__btn--no-next {
    opacity: 0;
    pointer-events: none;
  }
  .more button {
    background: #2b7cff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
  }