/* Regulasi Hub Styling */
.reg-hero {
    text-align: center;
}
.reg-hero h1 {
    margin: 0 0 14px;
}
.reg-hero p {
    opacity: 0.9;
    max-width: 720px;
    margin: 0 auto 28px;
}
.reg-stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.reg-stat-box {
    background: color-mix(in srgb, var(--surface) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
    border-radius: 12px;
    padding: 12px 24px;
    min-width: 140px;
}
.reg-stat-box strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--warning-border);
}
.reg-stat-box span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Search bar */
.reg-search-form {
    background: var(--surface);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--black) 18%, transparent);
}
.reg-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 1rem;
    color: var(--slate-800);
    background: transparent;
}
.reg-search-form button {
    background: var(--orange, var(--accent));
    color: var(--surface);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.reg-search-form button:hover {
    background: var(--accent);
}

/* Filter Section */
.reg-filter-bar {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: 18px 0;
}
.reg-filter-group {
    margin-bottom: 10px;
}
.reg-filter-group:last-child {
    margin-bottom: 0;
}
.reg-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.reg-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.reg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.reg-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.reg-chip.active {
    background: var(--brand);
    color: var(--surface);
    border-color: var(--brand);
    font-weight: 600;
}

/* Regulation Cards Grid */
.reg-main-content {
    padding: 44px 0 60px;
}
.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.reg-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reg-card:hover {
    transform: translateY(-3px);
}
.reg-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reg-badge-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}
.badge-uu { background: var(--success-soft); color: var(--success-dark); }
.badge-pp { background: var(--slate-200); color: var(--info-dark); }
.badge-permenaker { background: var(--warning-bg); color: var(--accent-dark); }
.badge-kepmenaker { background: var(--accent-light); color: var(--accent-dark); }
.badge-esdm { background: var(--warning-bg); color: var(--warning-dark); }
.badge-lhk { background: var(--success-soft); color: var(--brand-mid); }
.badge-iso { background: var(--slate-200); color: var(--accent-dark); }

.reg-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
}
.reg-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.reg-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 8px;
    line-height: 1.35;
}
.reg-card-tentang {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 12px;
    line-height: 1.4;
}
.reg-card-summary {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.reg-card-footer {
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reg-cat-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-500);
    background: var(--slate-100);
    padding: 3px 8px;
    border-radius: 4px;
}
.reg-link-btn {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.reg-link-btn:hover {
    color: var(--orange, var(--accent));
    text-decoration: underline;
}

/* Featured Training Hub Section */
.featured-pelatihan-section {
    background: var(--slate-100);
    padding: 56px 0 64px;
    border-top: 1px solid var(--slate-200);
}
.featured-section-title {
    text-align: center;
    margin-bottom: 36px;
}
.featured-section-title h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 8px;
}
.featured-section-title p {
    font-size: 1rem;
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto;
}
.featured-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.ft-card {
    display: flex;
    flex-direction: column;
}
.ft-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    align-self: flex-start;
}
.ft-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 8px;
    line-height: 1.35;
}
.ft-desc {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}
.ft-btn {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s;
}
