/* Halaman inner BI-SINAU */
.page-main {
    min-height: 50vh;
}

.page-hero {
    background: linear-gradient(135deg, #eef6fc 0%, #dceefb 55%, #f8fbfe 100%);
    padding: 40px 0 48px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.08);
}

.page-hero-inner {
    max-width: 720px;
}

.page-hero .section-label {
    margin-bottom: 8px;
}

.page-hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 12px;
    line-height: 1.25;
}

.page-hero-lead {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.page-section {
    padding: 48px 0 64px;
}

.page-section--alt {
    background: #f8fbfe;
}

/* Repository */
.repo-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.repo-search-wrap {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.repo-search-wrap i {
    color: #2563eb;
}

.repo-search-wrap input {
    border: none;
    outline: none;
    width: 100%;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--text);
}

.repo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.repo-filter {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: #fff;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.repo-filter.is-active,
.repo-filter:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.3);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.material-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.material-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.material-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.material-type--modul {
    background: #eff6ff;
    color: #1d4ed8;
}

.material-type--panduan {
    background: #f0fdf4;
    color: #15803d;
}

.material-type--video {
    background: #faf5ff;
    color: #7c3aed;
}

.material-type--ebook {
    background: #fff7ed;
    color: #c2410c;
}

.material-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.35;
}

.material-card p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
}

.material-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.material-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.material-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

.material-card-actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.78rem;
}

.repo-empty {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}

.repo-empty.is-visible {
    display: block;
}

/* Permohonan */
.permohonan-intro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.permohonan-choice {
    display: block;
    padding: 24px 22px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    font-family: inherit;
    width: 100%;
}

.permohonan-choice:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.permohonan-choice.is-selected {
    border-color: #2563eb;
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.permohonan-choice-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.permohonan-choice--green .permohonan-choice-icon {
    background: #dcfce7;
    color: #16a34a;
}

.permohonan-choice--purple .permohonan-choice-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.permohonan-choice strong {
    display: block;
    font-size: 1rem;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.permohonan-choice span {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.form-panel {
    display: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 28px 32px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.form-panel.is-visible {
    display: block;
}

.form-panel-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a8a;
}

.form-panel-desc {
    margin: 0 0 24px;
    font-size: 0.88rem;
    color: #64748b;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--text);
    background: #fafcff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.form-success {
    display: none;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-success.is-visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Kontak */
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.contact-card-icon i {
    font-weight: 900;
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e3a8a;
}

.contact-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
}

.contact-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(12, 45, 82, 0.12);
    min-height: 320px;
}

.contact-visual img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center 30%;
}

.contact-note {
    margin-top: 32px;
    padding: 20px 22px;
    background: linear-gradient(90deg, #eff6ff, #f0fdf4);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.65;
}

.contact-note strong {
    color: #1e3a8a;
}

.page-hero-lead a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-note a {
    color: #2563eb;
    font-weight: 700;
}

@media (max-width: 992px) {
    .permohonan-intro,
    .contact-hero-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group--full {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}
