/* ═══════════════════════════════════════════════════════════ */
/*  DOKUMEN PEDOMAN FAKULTAS FARMASI UNMAS — STYLES           */
/*  Matches Tracer Study & Kadu Theme Visual Identity         */
/* ═══════════════════════════════════════════════════════════ */

:root {
    --ped-pr: #005e4f;
    --ped-pr-dark: #004a3e;
    --ped-pr-light: rgba(0, 94, 79, 0.08);
    --ped-sd: #ef991f;
    --ped-sd-light: rgba(239, 153, 31, 0.12);
    --ped-red: #e11d48;
    --ped-red-light: rgba(225, 29, 72, 0.1);
    --ped-h: #1e293b;
    --ped-p: #64748b;
    --ped-bg: #f8f9fa;
    --ped-card: #ffffff;
    --ped-border: #e2e8f0;
    --ped-radius: 14px;
    --ped-radius-lg: 20px;
    --ped-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --ped-shadow-hover: 0 16px 36px rgba(0, 94, 79, 0.12);
    --ped-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.unmas-pedoman-wrapper * {
    box-sizing: border-box;
}

.unmas-pedoman-wrapper {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ped-h);
    background: var(--ped-bg);
}

/* ── Hide Theme Breadcrumb & Archive Header on Pedoman Page ── */
body.post-type-archive-pedoman .breadcrumb-area,
body.page-id-4344 .breadcrumb-area,
body:has(#unmas-pedoman-app) .breadcrumb-area {
    display: none !important;
}

/* ═════════════════════════════════ */
/*  HERO BANNER                     */
/* ═════════════════════════════════ */
.unmas-pedoman-hero {
    position: relative;
    background-color: var(--ped-pr);
    padding: 290px 0 90px;
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

.unmas-pedoman-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.unmas-pedoman-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.unmas-pedoman-hero-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.unmas-pedoman-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ped-sd);
    margin-bottom: 16px;
}

.unmas-pedoman-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px;
}

.unmas-pedoman-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin: 0 auto 24px;
}

.unmas-pedoman-stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.unmas-pedoman-stats i {
    color: var(--ped-sd);
}

.unmas-pedoman-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.unmas-pedoman-wave svg {
    width: 100%;
    height: 50px;
    display: block;
}

/* ═════════════════════════════════ */
/*  MAIN CONTENT SECTION            */
/* ═════════════════════════════════ */
.unmas-pedoman-section {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.unmas-pedoman-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Control Bar / Toolbar ── */
.unmas-pedoman-toolbar {
    background: #ffffff;
    border: 1px solid var(--ped-border);
    border-radius: var(--ped-radius);
    padding: 20px 24px;
    box-shadow: var(--ped-shadow);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Search Box */
.unmas-pedoman-search-wrap {
    flex: 1 1 320px;
    position: relative;
}

.unmas-pedoman-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.unmas-pedoman-search-input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid var(--ped-border);
    border-radius: 50px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ped-h);
    background: #f8fafc;
    transition: var(--ped-transition);
    outline: none;
}

.unmas-pedoman-search-input:focus {
    background: #ffffff;
    border-color: var(--ped-pr);
    box-shadow: 0 0 0 3px rgba(0, 94, 79, 0.12);
}

.unmas-pedoman-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    color: #64748b;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--ped-transition);
}

.unmas-pedoman-search-clear:hover {
    background: #cbd5e1;
    color: #1e293b;
}

/* View Mode Switcher */
.unmas-pedoman-view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--ped-border);
}

.unmas-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: var(--ped-transition);
}

.unmas-view-btn:hover {
    color: var(--ped-pr);
}

.unmas-view-btn.active {
    background: #ffffff;
    color: var(--ped-pr);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Category Filter Slider with Navigation Arrows */
.unmas-filter-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
}

.unmas-filter-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--ped-border);
    background: #ffffff;
    color: var(--ped-pr);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--ped-transition);
    flex-shrink: 0;
    z-index: 3;
    outline: none;
}

.unmas-filter-arrow:hover {
    background: var(--ped-pr);
    border-color: var(--ped-pr);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 94, 79, 0.25);
    transform: scale(1.05);
}

.unmas-filter-arrow:disabled,
.unmas-filter-arrow.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
    box-shadow: none;
}

.unmas-pedoman-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 8px 6px 12px;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.unmas-pedoman-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.unmas-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ped-p);
    background: #ffffff;
    border: 1.5px solid var(--ped-border);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ped-transition);
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

.unmas-filter-pill:hover {
    border-color: var(--ped-pr);
    color: var(--ped-pr);
    box-shadow: 0 4px 14px rgba(0, 94, 79, 0.15);
}

.unmas-filter-pill.active {
    background: var(--ped-pr);
    border-color: var(--ped-pr);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 94, 79, 0.25);
}

.unmas-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.07);
    padding: 0;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.unmas-filter-pill.active .unmas-pill-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* ═════════════════════════════════ */
/*  CARD VIEW (GRID)                */
/* ═════════════════════════════════ */
.unmas-pedoman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.unmas-pedoman-card {
    background: var(--ped-card);
    border: 1px solid var(--ped-border);
    border-radius: var(--ped-radius-lg);
    overflow: hidden;
    box-shadow: var(--ped-shadow);
    transition: var(--ped-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.unmas-pedoman-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ped-shadow-hover);
    border-color: rgba(0, 94, 79, 0.2);
}

/* Card Cover */
.unmas-card-cover-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.unmas-pedoman-card:hover .unmas-card-cover-img {
    transform: scale(1.05);
}

/* Rich Default Book Cover (when no image) */
.unmas-card-default-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00362e 0%, #005e4f 55%, #027a67 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #ffffff;
}

.unmas-card-default-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20z' fill='%23fff'/%3E%3C/svg%3E");
}

.unmas-default-cover-emblem {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--ped-sd);
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.unmas-default-cover-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ped-sd);
    margin-bottom: 4px;
}

.unmas-default-cover-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Floating Badges */
.unmas-card-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--ped-sd);
    color: #1e293b;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.unmas-card-year-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--ped-sd);
    color: #1e293b;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Card Body */
.unmas-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.unmas-card-doc-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ped-pr);
    background: var(--ped-pr-light);
    padding: 3px 10px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 10px;
}

.unmas-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ped-h);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.unmas-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ped-p);
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.unmas-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ped-border);
    margin-bottom: 18px;
    font-size: 12.5px;
    color: #64748b;
}

.unmas-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.unmas-card-meta-item i {
    color: #94a3b8;
}

.unmas-card-meta-pdf {
    color: var(--ped-red);
    font-weight: 700;
}

/* Card Actions (View & Download) */
.unmas-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.unmas-btn-view,
.unmas-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ped-transition);
}

.unmas-btn-view {
    background: transparent;
    color: var(--ped-pr);
    border: 1.5px solid var(--ped-pr);
}

.unmas-btn-view:hover {
    background: var(--ped-pr-light);
    color: var(--ped-pr-dark);
    border-color: var(--ped-pr-dark);
}

.unmas-btn-download {
    background: var(--ped-pr);
    color: #ffffff;
    border: 1.5px solid var(--ped-pr);
    box-shadow: 0 2px 6px rgba(0, 94, 79, 0.2);
}

.unmas-btn-download:hover {
    background: var(--ped-pr-dark);
    border-color: var(--ped-pr-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 94, 79, 0.3);
}

/* ═════════════════════════════════ */
/*  LIST VIEW                       */
/* ═════════════════════════════════ */
.unmas-pedoman-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.unmas-pedoman-list-item {
    background: var(--ped-card);
    border: 1px solid var(--ped-border);
    border-radius: var(--ped-radius);
    padding: 20px 24px;
    box-shadow: var(--ped-shadow);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--ped-transition);
}

.unmas-pedoman-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--ped-shadow-hover);
    border-color: rgba(0, 94, 79, 0.25);
}

.unmas-list-thumb {
    width: 80px;
    height: 104px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ped-pr);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.unmas-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unmas-list-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00362e, #005e4f);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 8px;
}

.unmas-list-thumb-placeholder i {
    font-size: 22px;
    color: var(--ped-sd);
    margin-bottom: 4px;
}

.unmas-list-thumb-placeholder span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.unmas-list-content {
    flex: 1;
    min-width: 0;
}

.unmas-list-top-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.unmas-list-cat-pill {
    background: var(--ped-pr-light);
    color: var(--ped-pr);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

.unmas-list-year-pill {
    background: var(--ped-sd-light);
    color: #b45309;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.unmas-list-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ped-h);
    margin: 0 0 6px;
    line-height: 1.35;
}

.unmas-list-desc {
    font-size: 13.5px;
    color: var(--ped-p);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unmas-list-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
}

.unmas-list-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 140px;
}

/* ═════════════════════════════════ */
/*  EMPTY STATE                     */
/* ═════════════════════════════════ */
.unmas-pedoman-empty {
    background: #ffffff;
    border: 1px dashed var(--ped-border);
    border-radius: var(--ped-radius);
    padding: 60px 20px;
    text-align: center;
    margin: 20px 0 40px;
}

.unmas-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.unmas-pedoman-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ped-h);
    margin: 0 0 8px;
}

.unmas-pedoman-empty p {
    font-size: 14px;
    color: var(--ped-p);
    margin: 0 0 20px;
}

.unmas-btn-reset {
    background: var(--ped-pr);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ped-transition);
}

.unmas-btn-reset:hover {
    background: var(--ped-pr-dark);
}

/* ═════════════════════════════════ */
/*  PAGINATION                      */
/* ═════════════════════════════════ */
.unmas-pedoman-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.unmas-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--ped-border);
    color: var(--ped-h);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ped-transition);
}

.unmas-page-btn:hover {
    border-color: var(--ped-pr);
    color: var(--ped-pr);
    background: var(--ped-pr-light);
}

.unmas-page-btn.active {
    background: var(--ped-pr);
    border-color: var(--ped-pr);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 94, 79, 0.25);
}

.unmas-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
    color: #94a3b8;
    font-size: 14px;
}

/* ═════════════════════════════════ */
/*  PDF VIEWER MODAL                */
/* ═════════════════════════════════ */
.unmas-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unmas-pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.unmas-pdf-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    height: 88vh;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: unmasModalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes unmasModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.unmas-pdf-modal-header {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.unmas-pdf-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.unmas-pdf-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ped-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.unmas-pdf-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.unmas-pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.unmas-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ped-transition);
}

.unmas-modal-btn-download {
    background: var(--ped-pr);
    color: #ffffff;
    border: 1px solid var(--ped-pr);
}

.unmas-modal-btn-download:hover {
    background: var(--ped-pr-dark);
}

.unmas-modal-btn-newtab {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.unmas-modal-btn-newtab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.unmas-modal-btn-close {
    background: transparent;
    color: #94a3b8;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--ped-transition);
}

.unmas-modal-btn-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.unmas-pdf-modal-body {
    flex: 1;
    position: relative;
    background: #525659;
}

.unmas-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.unmas-pdf-loading {
    position: absolute;
    inset: 0;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    z-index: 1;
}

.unmas-pdf-spinner {
    font-size: 28px;
    color: var(--ped-sd);
}

/* ═════════════════════════════════ */
/*  RESPONSIVE                      */
/* ═════════════════════════════════ */
@media (max-width: 991px) {
    .unmas-pedoman-hero {
        padding: 200px 0 70px;
    }
    .unmas-pedoman-title {
        font-size: 36px;
    }
    .unmas-pedoman-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .unmas-pedoman-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .unmas-list-actions {
        width: 100%;
        flex-direction: row;
    }
    .unmas-list-actions a,
    .unmas-list-actions button {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .unmas-pedoman-hero {
        padding: 170px 0 60px;
    }
    .unmas-pedoman-title {
        font-size: 28px;
    }
    .unmas-pedoman-subtitle {
        font-size: 15px;
    }
    .unmas-pedoman-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .unmas-pedoman-grid {
        grid-template-columns: 1fr;
    }
    .unmas-pdf-modal {
        padding: 10px;
    }
    .unmas-pdf-modal-dialog {
        height: 94vh;
    }
    .unmas-modal-btn-newtab span {
        display: none;
    }
}
