
body {
    background-color: #151a26;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #151a26;
}

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

.blog-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 122, 26, 0.45);
}

.blog-card .card-img-wrap {
    aspect-ratio: 16 / 10;
    background: #0e1219;
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.blog-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.banner-overlay {
    background: linear-gradient(90deg, rgba(21, 26, 38, 0.95) 0%, rgba(21, 26, 38, 0.7) 50%, rgba(21, 26, 38, 0.2) 100%);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.fade-up:nth-child(1) {
    animation-delay: 0.05s;
}

.fade-up:nth-child(2) {
    animation-delay: 0.15s;
}

.fade-up:nth-child(3) {
    animation-delay: 0.25s;
}

.fade-up:nth-child(4) {
    animation-delay: 0.35s;
}

.tag-pill {
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.25);
    color: #FF7A1A;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.read-more-btn {
    color: #FF7A1A;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.read-more-btn svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
    stroke: none;
    stroke-width: 0;
}

.blog-card .blog-meta-icon {
    width: 12px !important;
    height: 10px !important;
    fill: currentColor !important;
    stroke: none !important;
    stroke-width: 0 !important;
    flex-shrink: 0;
}

.read-more-btn:hover {
    gap: 8px;
}

#blog-grid {
    display: none;
}

#blog-grid.is-visible {
    display: grid;
}

#blog-skeleton.is-hidden {
    display: none !important;
}

#tab-list-content {
    display: none;
}

#tab-list-content.is-visible {
    display: block;
}

#tab-skeleton.is-hidden {
    display: none !important;
}

.tab-bar .tab-btn {
    text-decoration: none;
    display: inline-block;
}

/* Skeleton pulse */
.skeleton {
    background: linear-gradient(90deg, #1a2035 25%, #1f2942 50%, #1a2035 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 4px;
    background: #111620;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 5px;
}

.tab-btn {
    padding: 7px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #d1d5db;
}

.tab-btn.active {
    background: #FF7A1A;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 122, 26, 0.3);
}

/* Pagination */
#pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111620;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.page-btn:hover:not(:disabled) {
    border-color: rgba(255, 122, 26, 0.4);
    color: #FF7A1A;
}

.page-btn.active {
    background: #FF7A1A;
    border-color: #FF7A1A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.25);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn.page-ellipsis {
    cursor: default;
    border-color: rgba(255, 255, 255, 0.08);
    background: #111620;
    color: #6b7280;
}

.page-btn.page-ellipsis:hover {
    border-color: rgba(255, 255, 255, 0.08);
    color: #6b7280;
}

.page-btn.page-btn-placeholder {
    visibility: hidden;
    pointer-events: none;
    border-color: transparent;
    background: transparent;
}

/* Card fade-in on tab/page switch */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-enter {
    animation: cardIn 0.35s ease forwards;
}
