/* ================================================================
   ARTIKEL — Daftar Artikel & Berita
   Uses: core.css variables (--teal-*, --gray-*, --r-*, --sh-*)
   ================================================================ */

/* ---- Hero Featured ---- */

.container-artikel{
    margin-top:-60px;
}
.atk-hero {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 380px;
    background: var(--dark);
    margin-bottom: 32px;
    display: block;
    color: inherit;
}
.atk-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    opacity: 0.55;
    transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.4s;
}
.atk-hero:hover img {
    transform: scale(1.04); opacity: 0.65;
}
.atk-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,43,41,0.15) 0%, rgba(15,43,41,0.85) 100%);
    z-index: 1;
}
.atk-hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    height: 100%; padding: 40px;
}
.atk-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: var(--teal-700);
    font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 100px;
    margin-bottom: 16px; width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.atk-hero h2 {
    color: #fff; font-size: 28px; font-weight: 800;
    line-height: 1.3; margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.atk-hero .atk-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px; line-height: 1.7;
    margin-bottom: 20px; max-width: 600px;
}
.atk-hero-meta {
    display: flex; align-items: center; gap: 16px;
    color: rgba(255,255,255,0.7); font-size: 12px;
}
.atk-hero .btn-ea-primary i {
    transition: transform 0.25s;
}
.atk-hero:hover .btn-ea-primary i {
    transform: translateX(4px);
}

/* ---- Section Header + Filter (gabung jadi 1 card) ---- */
.atk-section-bar {
    background: linear-gradient(135deg, var(--teal-100) 0%, white 100%);
    border: none;
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 32px;
}
.atk-section-bar .sec-label { margin-bottom: 4px; }
.atk-section-bar .sec-title { font-size: 20px; margin-bottom: 20px; color:var(--teal-800);}
.atk-section-bar .atk-filter-row {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--teal-200);
}

.atk-cats {
    display: flex; flex-wrap: wrap;
    gap: 8px; flex: 1;
}
.atk-cat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--teal-200);
    background: white; color: var(--teal-800);
    cursor: pointer; transition: var(--ease);
    white-space: nowrap;
}
.atk-cat:hover {
    border-color: var(--teal-500);
    color: var(--teal-700);
    background: var(--teal-50);
}
.atk-cat.active {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(44,197,189,0.25);
}
.atk-search {
    position: relative; width: 260px; min-width: 200px;
}
.atk-search input {
    width: 100%; padding: 9px 16px 9px 40px;
    border: 1px solid var(--teal-200);
    border-radius: 100px; font-size: 13px;
    font-family: 'Poppins', sans-serif;
    background: white; color: var(--teal-800);
    transition: var(--ease); outline: none;
}
.atk-search input:focus {
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(44,197,189,0.08);
}
.atk-search i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--teal-600); font-size: 13px;
}

/* ---- Result Info ---- */
.atk-result-info {
    font-size: 13px; color: var(--gray-500);
    margin-bottom: 24px;
}
.atk-result-info strong { color: var(--gray-900); }
.atk-result-info a { color: var(--teal-700); font-weight: 600; }

/* ---- Article Grid ---- */
.atk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 40px;
}

/* ---- Article Card ---- */
.atk-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    display: flex; flex-direction: column;
    height: 100%;
}
.atk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: var(--teal-200);
}
.atk-card-img {
    position: relative; overflow: hidden;
    height: 200px;
}
.atk-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.atk-card:hover .atk-card-img img {
    transform: scale(1.06);
}
.atk-card-cat {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: var(--teal-700);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 100px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-transform: capitalize;
}
.atk-card-body {
    padding: 20px;
    display: flex; flex-direction: column; flex: 1;
}
.atk-card-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    color: #969696; font-size: 12px;
    margin-bottom: 10px;
}
.atk-card-title {
    font-size: 16px; font-weight: 700;
    color: var(--teal-800); line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.atk-card-desc {
    font-size: 13px; color: var(--gray-500);
    line-height: 1.7; margin-bottom: 16px; flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight:400;
}
.atk-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--teal-700); font-weight: 600;
    font-size: 13px; transition: var(--ease);
    margin-top: auto;
}
.atk-card-link:hover { color: var(--teal-500); gap: 10px; }
.atk-card-link i { transition: transform 0.25s; }
.atk-card:hover .atk-card-link i { transform: translateX(4px); }

/* ---- Empty State ---- */
.atk-empty {
    text-align: center; padding: 64px 32px;
    color: var(--gray-500);
}
.atk-empty i {
    font-size: 48px; color: var(--gray-200);
    margin-bottom: 16px;
}
.atk-empty h5 {
    font-weight: 700; color: var(--gray-900);
    margin-bottom: 8px; font-size: 18px;
}
.atk-empty p { font-size: 14px; margin-bottom: 20px; }

/* ---- Pagination ---- */
.atk-pagi {
    display: flex; align-items: center;
    justify-content: center; gap: 6px;
    margin-bottom: 48px;
}
.atk-pagi a,
.atk-pagi span {
    display: inline-flex; align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-500); background: var(--white);
    transition: var(--ease);
}
.atk-pagi a:hover {
    border-color: var(--teal-500);
    color: var(--teal-700);
    background: var(--teal-50);
}
.atk-pagi .active {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(44,197,189,0.25);
}
.atk-pagi .disabled { opacity: 0.4; pointer-events: none; }
.atk-pagi .dots {
    border: none; background: transparent;
    color: var(--gray-300); width: auto; padding: 0 4px;
}

/* ---- Breadcrumb ---- */
.atk-breadcrumb {
    display: flex; align-items: center;
    gap: 8px; font-size: 13px;
    color: var(--gray-500); margin-bottom: 24px;
    padding-top: 24px;
}
.atk-breadcrumb a { color: var(--teal-700); font-weight: 600; }
.atk-breadcrumb a:hover { text-decoration: underline; }
.atk-breadcrumb .sep { font-size: 10px; color: var(--gray-200); }

/* ---- Animations ---- */
@keyframes atkFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.atk-anim {
    animation: atkFadeUp 0.5s ease forwards;
    opacity: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
    .atk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .atk-hero { min-height: 280px; }
    .atk-hero-content { padding: 24px; }
    .atk-hero h2 { font-size: 20px; }
    .atk-hero .atk-hero-desc { font-size: 13px; }
    .atk-filter { flex-direction: column; align-items: stretch; }
    .atk-search { width: 100%; }
    .atk-search input{font-size:16px;}
    .atk-grid { grid-template-columns: 1fr; gap: 16px; }
    .atk-card-img { height: 180px; }
    .atk-card-body { padding: 16px; }
    .atk-card-title { font-size: 14px; }
    .atk-card-desc { font-size: 12px; }
    .atk-pagi a, .atk-pagi span { width: 36px; height: 36px; font-size: 12px; }
    .atk-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .atk-cats::-webkit-scrollbar { display: none; }
}