/* ── FILTER TABS ── */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 80px;
}

.filter-btn {
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    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;
}

:lang(my) .filter-btn {
	 font-family: 'Instrument Sans', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--color-white);
}

.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--color-white);
}

/* ── PARENT CATEGORY TABS ── */
.category-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--color-200);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cat-tab-btn {
    font-weight: 500;
    font-size: 20px;
    padding: 12px 4px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-400);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cat-tab-btn:hover {
    color: var(--primary);
}

.cat-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

:lang(my) .cat-tab-btn {
    font-family: 'Instrument Sans', sans-serif;
}

@media (max-width: 560px) {
    .category-tabs {
        gap: 20px;
    }
    .cat-tab-btn {
        font-size: 15px;
    }
}

/* ── 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(-3px);
    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;
    padding: 16px 16px 0;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
    transition: transform 0.45s ease;
}

.activity-card:hover .card-image-wrap img {
    transform: scale(1.02);
}

.card-body {
    padding: 16px;
}

.card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 5;      
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p:not(:last-child) {
    margin-bottom: 16px;
}

.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;
}

:lang(my) .card-title {
    font-size: 24px;
}

.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: 10;
    -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;
}

.article-content ul {
    list-style-type: disc;
    padding-left: 36px;
    margin-bottom: 16px;
}

.article-content li,
.article-content td {
    color: var(--color-500);
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -1.5%;
    margin-bottom: 8px;
}

:lang(my) .article-content li,
:lang(my) .article-content td {
    font-size: 16px;
    line-height: 2.0;
}


.article-content li:last-child {
    margin-bottom: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 1rem;
    text-align: left;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.article-content thead {
    background-color: var(--primary);
    color: #ffffff;
}

.article-content thead td {
    padding: 14px 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.article-content thead td strong {
    color: #ffffff;
}

.article-content tbody tr {
    border-bottom: 1px solid var(--primary);
    transition: background-color 0.2s ease;
}

.article-content tbody tr:nth-child(even) {
    background-color: var(--primary-light);
}

.article-content tbody tr:hover {
    background-color: var(--primary-light);
}

.article-content tbody td {
    padding: 14px 18px;
    vertical-align: middle;
}

/* ── 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);
    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;
    }
}

css
/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-block: 32px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background-color: #f2f2f2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Load More wrapper */
.gallery-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-block: 24px 48px;
}

/* Load More button */
.gallery-load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    background-color: transparent;
    border: 2px solid var(--primary);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-load-more-btn:hover {
    background-color: var(--primary);
    color: #fff;
}

.gallery-load-more-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.gallery-load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading spinner state */
.gallery-load-more-btn.is-loading {
    color: transparent;
}

.gallery-load-more-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: gallery-spin 0.7s linear infinite;
}

.gallery-load-more-btn.is-loading:hover::after {
    border-color: #fff;
    border-top-color: transparent;
}

@keyframes gallery-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 20, 0.9);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    animation: lightbox-fade 0.25s ease;
}

@keyframes lightbox-fade {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-counter {
    margin-top: 14px;
    font-size: 14px;
    color: var(--color-white, #fff);
    letter-spacing: 0.04em;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white, #fff);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white, #fff);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@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: 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;
    }

    .article-content table {
        font-size: 0.9rem;
    }

    .article-content table {
        display: block; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        white-space: nowrap;
    }
}


@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .article-title {
        font-size: 20px;
    }

    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        padding: 0 12px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 70vh;
    }

    .lightbox-close {
        top: max(12px, env(safe-area-inset-top, 12px));
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.55);
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.55);
    }

    .lightbox-nav.prev {
        left: 8px;
    }

    .lightbox-nav.next {
        right: 8px;
    }

    .lightbox-counter {
        margin-top: 10px;
        font-size: 13px;
    }
}