/* =========================================================
   GLOBAL
   ========================================================= */

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffffff;
    color: #5c6b66;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.artikel-navbar {
    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e5ece8;
    box-shadow: 0 4px 20px rgba(15, 43, 35, 0.05);
}

.artikel-navbar .container {
    min-height: 78px;
}

.artikel-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.artikel-logo img {
    width: 46px;
    height: 46px;

    object-fit: contain;
}

.artikel-logo-text {
    color: #0f2b23;

    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.artikel-nav-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 10px 16px;

    border-radius: 10px;

    color: #0d9668;
    text-decoration: none;
    font-weight: 700;

    transition: all 0.25s ease;
}

.artikel-nav-home:hover {
    background: #e8f5ef;
    color: #0a7a55;
}


/* =========================================================
   CONTENT
   ========================================================= */

.artikel-detail-section { 
    padding: 110px 0 100px; 
}

.artikel-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 30px;

    color: #0d9668;
    text-decoration: none;
    font-weight: 700;

    transition: all 0.25s ease;
}

.artikel-back:hover {
    color: #0a7a55;
    transform: translateX(-3px);
}


/* =========================================================
   LAYOUT
   ========================================================= */

.artikel-detail-layout {
    display: grid;

    grid-template-columns: 250px minmax(0, 1fr);

    gap: 48px;

    align-items: start;
}


/* =========================================================
   GURU / SIDEBAR KIRI
   ========================================================= */

.artikel-guru-card {
    position: sticky;
    top: 105px;
}

.artikel-guru-photo {
    width: 100%;

    aspect-ratio: 0.82;

    object-fit: cover;

    display: block;

    border-radius: 28px;

    background: #eef5f1;

    border: 1px solid #dfe9e4;

    box-shadow: 0 12px 30px rgba(15, 43, 35, 0.08);
}

.artikel-guru-placeholder {
    width: 100%;

    aspect-ratio: 0.82;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background: #eef5f1;
    color: #0d9668;

    border: 1px solid #dfe9e4;

    box-shadow: 0 12px 30px rgba(15, 43, 35, 0.08);
}

.artikel-guru-placeholder i {
    font-size: 70px;
}

.artikel-guru-name {
    margin-top: 12px;

    padding: 15px 16px;

    background: #ffffff;

    border: 1px solid #e2ebe6;

    border-radius: 14px;

    color: #0f2b23;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;

    text-align: center;

    box-shadow: 0 8px 20px rgba(15, 43, 35, 0.05);
}

/* =========================================================
   TOMBOL BIOGRAFI
========================================================= */

.artikel-biografi-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 44px;

    margin-top: 10px;
    padding: 10px 14px;

    box-sizing: border-box;

    border: 1px solid #d5ebe1;
    border-radius: 12px;

    background: #e8f5ef;

    color: #0d9668;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.25s ease;
}

.artikel-biografi-btn span {
    flex: 0 1 auto;
}

.artikel-biografi-btn i {
    margin-left: 8px;

    font-size: 16px;

    transition: transform 0.25s ease;
}

.artikel-biografi-btn:hover {
    background: #0d9668;
    border-color: #0d9668;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(13, 150, 104, 0.16);
}

.artikel-biografi-btn:hover i {
    transform: translateX(4px);
}

/* =========================================================
   ARTIKEL KANAN
   ========================================================= */

.artikel-detail-title {
    margin: 0 0 16px;

    color: #0f2b23;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.2;

    font-weight: 800;
}

.artikel-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;

    color: #7d8a85;

    font-size: 13px;
}

.artikel-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.artikel-detail-meta .dot {
    color: #b6c1bd;
}


/* =========================================================
   ISI ARTIKEL
   ========================================================= */

.artikel-detail-content {
    color: #5c6b66;

    font-size: 16px;

    line-height: 1.95;
}

.artikel-detail-content p {
    margin: 0 0 18px;

    color: #5c6b66;
}

.artikel-detail-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;

    color: #0f2b23;

    font-size: 28px;

    line-height: 1.3;

    font-weight: 800;
}

.artikel-detail-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    color: #0f2b23;

    font-size: 22px;

    line-height: 1.35;

    font-weight: 800;
}

.artikel-detail-content ul,
.artikel-detail-content ol {
    margin: 0 0 20px;

    padding-left: 25px;
}

.artikel-detail-content li {
    margin-bottom: 8px;
}

.artikel-detail-content a {
    color: #0d9668;
    font-weight: 700;
}

.artikel-detail-content blockquote {
    margin: 25px 0;

    padding: 18px 22px;

    border-left: 4px solid #0d9668;

    background: #e8f5ef;

    color: #46615a;

    border-radius: 0 12px 12px 0;
}

.artikel-detail-content img {
    max-width: 100%;

    height: auto;

    display: block;

    margin: 25px auto;

    border-radius: 14px;
}

.artikel-detail-content table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;
}

.artikel-detail-content th,
.artikel-detail-content td {
    padding: 10px 12px;

    border: 1px solid #dfe8e3;

    vertical-align: top;
}

.artikel-detail-content th {
    background: #e8f5ef;

    color: #0f2b23;

    font-weight: 700;
}


/* =========================================================
   LINK KARYA ILMIAH & PDF
   ========================================================= */

.artikel-resource-wrapper {
    display: flex;
    flex-direction: column;

    gap: 16px;

    margin-top: 38px;
}

.artikel-resource-card {
    width: 100%;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e2ebe6;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(15, 43, 35, 0.05);

    box-sizing: border-box;
}

.artikel-resource-title {
    margin: 0 0 14px;

    color: #0f2b23;

    font-size: 17px;

    font-weight: 800;
}


/* =========================================================
   KARYA ILMIAH - 2 KOLOM
   ========================================================= */

.artikel-karya-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/* =========================================================
   PDF - 2 KOLOM
   ========================================================= */

.artikel-pdf-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/* =========================================================
   TOMBOL RESOURCE
   ========================================================= */

.artikel-resource-button {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 13px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

    box-sizing: border-box;
}


/* =========================================================
   ICON
   ========================================================= */

.artikel-resource-button i:first-child {
    font-size: 18px;

    flex-shrink: 0;
}

.artikel-resource-button i:last-child {
    font-size: 16px;

    flex-shrink: 0;
}


/* =========================================================
   JUDUL / NAMA FILE
   ========================================================= */

.artikel-resource-button span {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   LINK KARYA ILMIAH
   ========================================================= */

.artikel-resource-link {
    background: #e8f5ef;

    color: #0d9668;

    border: 1px solid #d5ebe1;
}

.artikel-resource-link:hover {
    background: #0d9668;

    color: #ffffff;

    border-color: #0d9668;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(13, 150, 104, 0.18);
}


/* =========================================================
   PDF
   ========================================================= */

.artikel-resource-pdf {
    background: #0d9668;

    color: #ffffff;

    border: 1px solid #0d9668;
}

.artikel-resource-pdf:hover {
    background: #0a7a55;

    color: #ffffff;

    border-color: #0a7a55;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(13, 150, 104, 0.22);
}


/* =========================================================
   SHARE
   ========================================================= */

.artikel-share {
    margin-top: 50px;

    padding-top: 25px;

    border-top: 1px solid #e5ece8;
}

.artikel-share-title {
    margin-bottom: 12px;

    color: #0f2b23;

    font-size: 15px;

    font-weight: 700;
}

.artikel-share-buttons {
    display: flex;

    gap: 10px;
}

.artikel-share-buttons a {
    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #e8f5ef;

    color: #0d9668;

    text-decoration: none;

    transition: all 0.25s ease;
}

.artikel-share-buttons a:hover {
    background: #0d9668;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 900px) {

    .artikel-detail-layout {
        grid-template-columns:
            210px minmax(0, 1fr);

        gap: 28px;
    }

}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* NAVBAR */

    .artikel-navbar .container {
        min-height: 70px;
    }

    .artikel-logo img {
        width: 40px;
        height: 40px;
    }

    .artikel-logo-text {
        font-size: 14px;
    }


    /* CONTENT */

    .artikel-detail-section {
        padding: 42px 0 70px;
    }


    /* LAYOUT */

    .artikel-detail-layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* GURU */

    .artikel-guru-card {
        position: static;

        max-width: 230px;

        margin: 0 auto;
    }


    /* JUDUL */

    .artikel-detail-title {
        font-size: 32px;
    }


    /* ISI */

    .artikel-detail-content {
        font-size: 15px;

        line-height: 1.85;
    }


    /* RESOURCE */

    .artikel-resource-card {
        padding: 16px;

        border-radius: 15px;
    }


    .artikel-resource-button {
        min-height: 46px;

        padding: 9px 11px;

        font-size: 12px;
    }


    .artikel-resource-button i:first-child {
        font-size: 17px;
    }


    .artikel-resource-button i:last-child {
        font-size: 15px;
    }


    /* MOBILE = SATU KOLOM */

    .artikel-karya-list,
    .artikel-pdf-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .artikel-navbar .container {
        padding-left: 16px;

        padding-right: 16px;
    }


    .artikel-logo {
        gap: 9px;
    }


    .artikel-logo-text {
        font-size: 13px;
    }


    .artikel-nav-home {
        padding: 9px 12px;

        font-size: 13px;
    }


    .artikel-detail-section {
        padding-top: 35px;
    }


    .artikel-detail-title {
        font-size: 28px;
    }


    .artikel-detail-meta {
        font-size: 13px;
    }


    .artikel-share-buttons a {
        width: 40px;

        height: 40px;
    }

}

/* =========================================================
   TOMBOL KEMBALI - MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .artikel-back {
        width: 100%;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        min-height: 46px;

        padding: 11px 16px;

        margin-bottom: 24px;

        border: 1px solid #d9e9e2;
        border-radius: 12px;

        background: #ffffff;

        box-shadow: 0 5px 15px rgba(15, 43, 35, 0.06);

        font-size: 13px;
        line-height: 1.3;

        box-sizing: border-box;
    }

    .artikel-back i {
        flex-shrink: 0;
        font-size: 14px;
    }

    .artikel-back:hover,
    .artikel-back:focus {
        background: #e8f5ef;
        color: #0a7a55;

        transform: none;
    }
}


@media (max-width: 480px) {

    .artikel-back {
        min-height: 44px;

        margin-bottom: 20px;

        padding: 10px 14px;

        font-size: 12.5px;

        border-radius: 11px;
    }
}

/* =========================================================
   HALAMAN BIOGRAFI GURU
========================================================= */

.artikel-biografi-section {
    min-height: 100vh;
    padding: 110px 0 70px;
    background: #f7faf8;
}


/* =========================================================
   KEMBALI
========================================================= */

.artikel-biografi-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 35px;

    color: #198754;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
    transition: all 0.25s ease;
}

.artikel-biografi-back i {
    font-size: 19px;
    transition: transform 0.25s ease;
}

.artikel-biografi-back:hover {
    color: #146c43;
}

.artikel-biografi-back:hover i {
    transform: translateX(-4px);
}


/* =========================================================
   LAYOUT
========================================================= */

.artikel-biografi-layout {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 55px;

    padding: 42px 45px;

    background: #ffffff;

    border: 1px solid #e5eee9;
    border-radius: 28px;

    box-shadow: 0 18px 50px rgba(16, 56, 43, 0.07);
}


/* =========================================================
   TEKS BIOGRAFI
========================================================= */

.artikel-biografi-content {
    min-width: 0;
}

.artikel-biografi-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #198754;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.artikel-biografi-content h1 {
    margin: 0;

    color: #12372c;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
}

.artikel-biografi-divider {
    width: 55px;
    height: 4px;

    margin: 18px 0 25px;

    border-radius: 20px;

    background: #198754;
}

.artikel-biografi-text {
    color: #586b63;

    font-size: 16px;
    line-height: 1.95;
    white-space: normal;
}


/* =========================================================
   FOTO KANAN ATAS
========================================================= */

.artikel-biografi-photo-wrapper {
    align-self: start;

    display: flex;
    justify-content: flex-end;
}

.artikel-biografi-photo {
    width: 190px;
    height: 230px;

    display: block;

    border-radius: 20px;

    object-fit: cover;

    border: 5px solid #ffffff;

    box-shadow:
        0 12px 30px rgba(16, 56, 43, 0.14);
}

.artikel-biografi-placeholder {
    width: 190px;
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #edf6f1;
    color: #198754;

    font-size: 60px;
}


/* =========================================================
   BIOGRAFI KOSONG
========================================================= */

.artikel-biografi-empty {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 16px 18px;

    border-radius: 14px;

    background: #edf6f1;

    color: #62736c;

    font-size: 14px;
}

.artikel-biografi-empty i {
    color: #198754;
    font-size: 18px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .artikel-biografi-section {
        padding: 95px 16px 45px;
    }

    /* KEMBALI */
    .artikel-biografi-back {
        margin-bottom: 28px;
        font-size: 13px;
    }


    /* LAYOUT MOBILE */
    .artikel-biografi-layout {
        display: flex;
        flex-direction: column;

        gap: 24px;

        padding: 25px 20px 30px;

        border-radius: 22px;
    }


    /* FOTO DI TENGAH */
    .artikel-biografi-photo-wrapper {
        order: 1;

        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .artikel-biografi-photo,
    .artikel-biografi-placeholder {
        width: 125px;
        height: 155px;

        border-radius: 18px;
    }


    /* TEKS DI BAWAH FOTO */
    .artikel-biografi-content {
        order: 2;

        text-align: left;
    }

    .artikel-biografi-label {
        margin-bottom: 9px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .artikel-biografi-content h1 {
        font-size: 27px;
        line-height: 1.25;
    }

    .artikel-biografi-divider {
        width: 45px;
        height: 3px;

        margin: 15px 0 20px;
    }

    .artikel-biografi-text {
        font-size: 14px;
        line-height: 1.85;
    }

    .artikel-biografi-empty {
        font-size: 13px;
    }

}

/* =========================================================
   ARTIKEL GURU DI HALAMAN BIOGRAFI
========================================================= */

.biografi-artikel-section {
    margin-top: 48px;
    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}


/* =========================================================
   HEADER
========================================================= */

.biografi-artikel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}

.biografi-artikel-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #198754;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.biografi-artikel-heading h2 {
    margin: 0 0 7px;

    color: #12372c;

    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
}

.biografi-artikel-heading p {
    margin: 0;

    color: #6a7973;

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   JUMLAH ARTIKEL
========================================================= */

.biografi-artikel-count {
    flex: 0 0 auto;

    padding: 8px 12px;

    border-radius: 999px;

    background: #e8f5ef;
    color: #198754;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   GRID
========================================================= */

.biografi-artikel-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   CARD
========================================================= */

.biografi-artikel-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e6eee9;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 26px rgba(16, 56, 43, 0.06);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.biografi-artikel-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 34px rgba(16, 56, 43, 0.10);
}


/* =========================================================
   FOTO
========================================================= */

.biografi-artikel-image {
    display: block;

    height: 190px;

    overflow: hidden;

    background: #edf6f1;
}

.biografi-artikel-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.biografi-artikel-card:hover
.biografi-artikel-image img {
    transform: scale(1.05);
}

.biografi-artikel-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #198754;

    font-size: 48px;
}


/* =========================================================
   BODY
========================================================= */

.biografi-artikel-body {
    display: flex;
    flex: 1;

    flex-direction: column;

    padding: 20px;
}


/* =========================================================
   META
========================================================= */

.biografi-artikel-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;

    color: #8a9691;

    font-size: 11px;
    font-weight: 600;
}

.biografi-artikel-meta span {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}

.biografi-artikel-meta i {
    color: #198754;
}


/* =========================================================
   JUDUL
========================================================= */

.biografi-artikel-body h3 {
    margin: 0 0 10px;
}

.biografi-artikel-body h3 a {
    display: -webkit-box;

    overflow: hidden;

    color: #12372c;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 800;

    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.biografi-artikel-body h3 a:hover {
    color: #198754;
}


/* =========================================================
   EXCERPT
========================================================= */

.biografi-artikel-body p {
    display: -webkit-box;

    overflow: hidden;

    margin: 0 0 16px;

    color: #64746d;

    font-size: 12.5px;
    line-height: 1.8;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   LINK
========================================================= */

.biografi-artikel-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: auto;

    color: #198754;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.biografi-artikel-link i {
    transition: transform 0.25s ease;
}

.biografi-artikel-link:hover {
    color: #146c43;
}

.biografi-artikel-link:hover i {
    transform: translateX(4px);
}


/* =========================================================
   EMPTY
========================================================= */

.biografi-artikel-empty {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px 20px;

    border-radius: 16px;

    background: #edf6f1;

    color: #62736c;

    font-size: 13px;
}

.biografi-artikel-empty > i {
    color: #198754;

    font-size: 22px;
}

.biografi-artikel-empty div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.biografi-artikel-empty strong {
    color: #12372c;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .biografi-artikel-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE 
========================================================= */

@media (max-width: 767.98px) {

    .biografi-artikel-section {
        margin-top: 30px;
        padding: 22px 18px;
        border-radius: 22px;
        overflow: hidden;
    }

    .biografi-artikel-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .biografi-artikel-heading h2 {
        font-size: 22px;
    }

    .biografi-artikel-heading p {
        font-size: 12px;
    }

    /* CARD MENJADI HORIZONTAL */
    .biografi-artikel-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 10px;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    /* Hilangkan scrollbar Firefox */
    .biografi-artikel-grid::-webkit-scrollbar {
        display: none;
    }

    /* CARD TIDAK BOLEH MENGECIL */
    .biografi-artikel-card {
        flex: 0 0 82%;
        width: 82%;

        scroll-snap-align: start;
    }

    .biografi-artikel-image {
        height: 205px;
    }

}