/* ── FILTER TABS ── */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 80px;
}

.filter-btn {
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-300);
    background: transparent;
    color: var(--color-400);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

/* ── GRID ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── CARD ── */
.activity-card {
    display: block;
    text-decoration: none;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0px 16px 32px -12px #585C5F1A;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(18px);
    animation: cardIn 0.4s ease forwards;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(10, 13, 20, 0.10);
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-200);
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.activity-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-body {
    padding: 18px 20px 22px;
}

.card-date {
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    color: var(--color-400);
    line-height: 20px;
    letter-spacing: -0.6%;
    margin-bottom: 10px;
}

.card-title {
     font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;
    color: var(--color-900);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    color: var(--color-500);
    letter-spacing: -1.5%;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── SKELETON LOADER ── */
.skeleton {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.skel-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, var(--color-200) 25%, #ebedf0 50%, var(--color-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skel-body {
    padding: 18px 20px 22px;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--color-200) 25%, #ebedf0 50%, var(--color-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skel-line.short {
    width: 40%;
}

.skel-line.med {
    width: 75%;
}

.skel-line.full {
    width: 100%;
}

.skel-line.title {
    height: 18px;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── EMPTY STATE ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: var(--color-500);
    font-size: 15px;
}

.empty-state svg {
    display: block;
    margin: 0 auto 16px;
    opacity: .35;
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pg-btn {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 10px;
    border: 1.5px solid var(--color-200);
    background: var(--bg-white);
    color: var(--color-500);
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pg-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pg-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--color-white);
    font-weight: 700;
}

.pg-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pg-btn.arrow {
    font-size: 18px;
    color: var(--color-500);
}

.pg-ellipsis {
    font-size: 14px;
    color: var(--color-500);
    padding: 0 4px;
    user-select: none;
}

/* ──── Detail ──── */

/* ── BREADCRUMB ── */
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-500);
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .breadcrumb a {
    color: var(--color-500);
    text-decoration: none;
    transition: color 0.15s;
  }

  .breadcrumb a:hover { color: var(--primary); }

  .breadcrumb-sep {
    color: var(--color-300);
    font-size: 12px;
  }

  .breadcrumb span:last-child {
    color: var(--color-500);
    font-weight: 500;
  }

  /* ── ARTICLE HEADER ── */
  .article-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 600;
    color: var(--color-500);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }

  .article-date {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-400);
    margin-bottom: 24px;
  }

  /* ── HERO IMAGE ── */
  .hero-image-wrap {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 60px;
    aspect-ratio: 16 / 7;
  }

  .hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ── CONTENT BODY ── */
  .article-content {
    max-width: 760px;
    margin: 0 auto 48px;
  }

  .article-content p {
    color: var(--color-500);
    margin-bottom: 16px;
  }

  .article-content p:last-child { margin-bottom: 0; }

  /* ── PHOTO GALLERY ── */
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  .gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-200);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    position: relative;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
  }

  .gallery-item:hover img { transform: scale(1.04); }

  .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,13,20,0);
    transition: background 0.25s ease;
  }

  .gallery-item:hover::after {
    background: rgba(10,13,20,0.08);
  }

  @keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 767px) {
    .gallery { gap: 12px; }
    .lightbox-nav.prev { left: -12px; }
    .lightbox-nav.next { right: -12px; }
    .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
  }

  @media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    .hero-image-wrap { aspect-ratio: 4 / 3; border-radius: 12px; }
    .article-title { font-size: 20px; }
  }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 26px;
    }
    
    .filter-row {
        margin-bottom: 48px;
    }

    .filter-btn {
        font-size: 14px;
        padding: 7px 16px;
    }
}