/* ==========================================================================
   Portal Verifikasi Nomor Ijazah - gaya tampilan
   Ukuran & warna mengikuti situs referensi PISN Kemdiktisaintek
   ========================================================================== */

:root {
    --blue: #4e73df;
    --blue-dark: #1C3B61;
    --blue-input: #1D7CBF;
    --orange: #fd7e14;
    --yellow: #f6c23e;
    --green: #28a745;
    --red: #dc3545;
    --dark: #212529;
    --gray: #555555;
    --line: #dddddd;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    background: #ffffff;
    padding-top: 86px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ======================= HEADER ======================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 3px solid var(--orange);
    height: 86px;
    display: flex;
    align-items: center;
}

.site-header .header-inner {
    width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img { height: 50px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; color: #000; }
.brand-text strong { font-size: 16px; font-weight: 800; }
.brand-text span { font-size: 14px; }

.btn-login {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 5.6px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 400;
    display: inline-block;
    transition: background .2s;
}
.btn-login:hover { background: #3f5fc9; }

/* ======================= HERO ======================= */
.hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-text { flex: 1 1 50%; }

.hero h1 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
}

.hero p {
    margin: 0;
    text-align: justify;
    line-height: 1.5;
}

.hero-illustration { flex: 1 1 50%; display: flex; justify-content: flex-end; }
.hero-illustration img { width: 100%; max-width: 534px; }

.socials { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    transition: transform .3s;
}
.social-button:hover { transform: scale(1.08); }
.social-button svg { width: 30px; height: 30px; }
.social-facebook { color: var(--blue); }
.social-twitter { color: #1DA1F2; }
.social-instagram { color: #F77737; }

/* ======================= BLOK VERIFIKASI ======================= */
.verify-section {
    background: var(--blue-dark);
    color: #ffffff;
    padding: 16px 0;
    margin: 40px 0 48px;
}

.verify-section h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    margin: 16px 0;
}

.verify-grid {
    display: flex;
    flex-direction: row-reverse;
    gap: 16px;
    margin-top: 24px;
}

.verify-text { flex: 1 1 0; }
.verify-form-wrap { flex: 1 1 0; }

.verify-text p {
    margin: 0 0 24px;
    text-align: justify;
    line-height: 1.5;
    word-break: break-word;
}
.verify-text ol { margin: 8px 0 0; padding-left: 20px; text-align: justify; }
.verify-text li { margin-bottom: 6px; }

/* ---------- dropdown ---------- */
.field { margin-bottom: 16px; }

.field select,
.field input[type="text"] {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 16px;
    padding: 0 14px;
    outline: none;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.field select:focus,
.field input[type="text"]:focus { border-color: var(--blue-input); }

.field select.placeholder { color: #6b7280; }
.field select option { color: #333333; }

.search-row { display: flex; gap: 8px; margin: 0 0 16px; }
.search-row .type-select { flex: 0 0 34%; }
.search-row .keyword { flex: 1 1 auto; }

.search-row .keyword input {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: 2px solid var(--blue-input);
    box-shadow: 4px 6px 4px 0 rgba(27, 115, 232, .25);
    padding: 0 16px;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    outline: none;
}

/* ---------- captcha ---------- */
.captcha-block { margin: 16px 0; }

.captcha-image-box {
    background: #ffffff;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.captcha-image-box canvas { width: 100%; height: 74px; display: block; }

.captcha-input-row { display: flex; align-items: center; }

.captcha-input-row input {
    flex: 1 1 auto;
    height: 44px;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    outline: none;
}

.btn-refresh {
    height: 44px;
    width: 52px;
    border: none;
    background: var(--blue);
    color: #fff;
    border-radius: 0 6px 6px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-refresh svg { width: 20px; height: 20px; }

/* ---------- tombol cari ---------- */
.btn-cari {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 5.6px;
    background: var(--yellow);
    color: #212529;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s;
}
.btn-cari:hover { background: #e0af32; }
.btn-cari svg { width: 16px; height: 16px; }

.form-note { font-size: 13px; margin: 10px 0 0; opacity: .85; }

/* ======================= BERITA ======================= */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin: 0 0 8px;
}

.news-wrap { margin: 0 auto 60px; }

.news-list {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.news-item {
    flex: 1 1 0;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    background: #f4f6fa;
    cursor: zoom-in;
    transition: transform .25s;
}
.news-item:hover { transform: translateY(-4px); }
.news-item img { width: 100%; height: 100%; object-fit: cover; }

/* ======================= FAQ ======================= */
.faq-wrap { margin: 0 auto 56px; }

.faq-sub {
    text-align: center;
    color: #666666;
    font-size: 15px;
    margin: 0 0 24px;
}

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
    width: 100%;
    background: #ffffff;
    border: none;
    text-align: left;
    padding: 16px 20px;
    font-size: 16px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
}

.faq-question svg { width: 16px; height: 16px; flex: 0 0 auto; color: #666; transition: transform .25s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 15px;
    color: #444444;
    line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer ol { margin: 0 0 10px; padding-left: 20px; }

.btn-view-all {
    display: block;
    width: 50%;
    margin: 32px auto 0;
    padding: 10px 16px;
    text-align: center;
    font-weight: 700;
    color: var(--blue);
    border: 3px solid var(--blue);
    border-radius: 6px;
    transition: all .3s;
}
.btn-view-all:hover { background: var(--blue); color: #fff; }

/* ======================= FOOTER ======================= */
.site-footer {
    background: #262626;
    color: #ffffff;
    border-top: 3px solid #ff9900;
    padding: 24px 0 16px;
    font-size: 15px;
}

.footer-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.footer-col { flex: 1 1 0; }
.footer-col h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #ffffff;
    line-height: 1.35;
}
.footer-col p { margin: 0; color: #f1f1f1; line-height: 1.6; }

.lapor-img { width: 220px; border-radius: 6px; }

.map-box {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #3a3a3a;
}
.map-box iframe { width: 100%; height: 100%; border: 0; }

.footer-bottom {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: 13px;
    color: #cfcfcf;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom a { color: #ffd08a; }

/* ======================= MODAL DATA (isi modal dibuat via SweetAlert) ======= */
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.data-table tr { border-bottom: 1px solid #e5e7eb; }
.data-table tr:last-child { border-bottom: none; }
.data-table th {
    font-weight: 700;
    color: #444444;
    padding: 12px 10px 12px 0;
    vertical-align: top;
    width: 38%;
    font-size: 15px;
}
.data-table td { padding: 12px 0; color: #333333; vertical-align: middle; }

.pill {
    display: inline-block;
    min-width: 90px;
    text-align: center;
    padding: 4px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.pill-green { background: var(--green); }
.pill-yellow { background: var(--yellow); color: #212529; }
.pill-red { background: var(--red); }

.swal-wide { width: 620px !important; }
.swal-footer { text-align: center !important; }

/* ======================= MOBILE ======================= */
@media (max-width: 991px) {
    .brand-text { display: none; }
    .hero { flex-direction: column-reverse; padding-top: 8px; }
    .hero-illustration { justify-content: center; }
    .hero-illustration img { max-width: 320px; }
    .verify-grid { flex-direction: column; }
    .verify-text p { text-align: left; }
    .news-list { flex-direction: column; }
    .news-item { height: 220px; }
    .footer-grid { flex-direction: column; }
    .btn-view-all { width: 100%; }
}

@media (max-width: 767px) {
    body { padding-top: 74px; }
    .site-header { height: 74px; }
    .brand img { height: 40px; }
    .btn-login { padding: 7px 18px; font-size: 15px; }

    .hero h1 { font-size: 22px; }
    .hero p { font-size: 15px; }
    .socials { gap: 20px; margin-top: 28px; }
    .social-button svg { width: 24px; height: 24px; }
    .social-button { font-size: 14px; }

    .verify-section h2 { font-size: 20px; }
    .verify-text p { font-size: 14px; }
    .search-row { flex-wrap: wrap; }
    .search-row .type-select { flex: 1 1 100%; }
    .field select, .field input[type="text"], .search-row .keyword input { height: 44px; font-size: 15px; }
    .field select { font-size: 14px; }

    .section-title { font-size: 22px; }
    .news-item { height: 190px; }
    .faq-question { font-size: 15px; padding: 14px 16px; }
    .swal-wide { width: 92% !important; }
    .data-table th { width: 42%; font-size: 13px; }
    .data-table td { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 6px 10px 0; }
}

/* ======================= PENYESUAIAN MODAL (library SweetAlert v1) ======= */
.sweet-alert {
    font-family: 'Nunito', Arial, sans-serif !important;
    border-radius: 6px !important;
    padding: 28px 24px 20px !important;
    border: 6px solid #ffffff !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25) !important;
}
.sweet-alert.swal-wide { width: 660px !important; }
.sweet-alert h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #666666 !important;
    margin: 18px 0 4px !important;
}
.sweet-alert .sa-icon.sa-success { margin-top: 8px; }
.sweet-alert .sa-icon.sa-success::before,
.sweet-alert .sa-icon.sa-success::after { content: '' !important; }
.sweet-alert p { text-align: left; }
.sweet-alert .swal-x {
    position: absolute; top: 2px; right: 10px;
    background: none; border: none; padding: 0 4px;
    font-size: 28px; line-height: 1; color: #c7c7c7; cursor: pointer;
}
.sweet-alert .swal-x:hover { color: #888; }
.sweet-alert button.confirm {
    background-color: #4e73df !important;
    border-radius: 5px !important;
    font-family: 'Nunito', Arial, sans-serif !important;
    font-size: 15px !important;
    padding: 9px 26px !important;
    box-shadow: none !important;
}

/* ======================= MODAL DATA TIDAK DITEMUKAN ======================= */
.tdk-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, .55);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.tdk-overlay.show { display: flex; }

.tdk-card {
    background: #fff; border-radius: 6px; border: 6px solid #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    width: 100%; max-width: 660px;
    padding: 26px 26px 18px;
    position: relative;
    text-align: center;
    animation: tdk-muncul .22s ease-out;
}
@keyframes tdk-muncul { from { transform: scale(.94); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.tdk-x {
    position: absolute; top: 4px; right: 12px;
    background: none; border: none; font-size: 28px; line-height: 1;
    color: #c7c7c7; cursor: pointer;
}
.tdk-x:hover { color: #888; }

.tdk-ikon {
    width: 76px; height: 76px; margin: 6px auto 0;
    border-radius: 50%; border: 3px solid #ffe0b2;
    display: flex; align-items: center; justify-content: center;
    color: #fd7e14;
}
.tdk-ikon svg { width: 40px; height: 40px; }

.tdk-card h3 {
    font-size: 22px; font-weight: 700; color: #666666;
    margin: 16px 0 10px;
}
.tdk-card p {
    font-size: 15px; line-height: 1.65; color: #444444;
    margin: 0 0 18px; text-align: center;
}
.tdk-card .nomor {
    display: inline-block;
    background: #f3f4f6; border-radius: 6px; padding: 3px 10px;
    font-weight: 700; color: #1C3B61;
}

.tdk-aksi { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.tdk-btn {
    border: none; border-radius: 5px; padding: 10px 22px;
    font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    background: #4e73df; color: #fff;
    transition: background .2s;
}
.tdk-btn:hover { background: #3f5fc9; }
.tdk-btn.abu { background: #e5e7eb; color: #374151; }
.tdk-btn.abu:hover { background: #d6d9de; }

@media (max-width: 767px) {
    .sweet-alert.swal-wide { width: 94% !important; }
    .sweet-alert { padding: 22px 16px 16px !important; }
    .sweet-alert h2 { font-size: 19px !important; }
    .tdk-card h3 { font-size: 19px; }
    .tdk-card p { font-size: 14px; }
    .tdk-btn { padding: 9px 16px; font-size: 14px; }
}

/* ================= PENGALIHAN OTOMATIS KE SITUS RESMI ================= */
.tdk-alih { text-align: center; }
.tdk-spin {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border: 4px solid #e3e9f2;
    border-top-color: #4e73df;
    border-radius: 50%;
    animation: tdk-putar .9s linear infinite;
}
@keyframes tdk-putar { to { transform: rotate(360deg); } }
.tdk-kecil { font-size: 13px !important; color: #8a90a0 !important; margin-top: 14px !important; }
.tdk-kecil a { color: #4e73df; text-decoration: underline; }
