/* =====================================================
                SKEMA SERTIFIKASI
===================================================== */

.certification-section {
  padding: 120px 0;

  background: #ffffff;
}

/* ===========================================
            SECTION TITLE
=========================================== */

.section-title {
  max-width: 760px;

  margin: 0 auto 60px;
}

.section-subtitle {
  display: inline-block;

  padding: 8px 20px;

  background: #72000e;

  color: #fff;

  border-radius: 30px;

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.5px;

  margin-bottom: 18px;
}

.section-heading {
  font-size: 42px;

  font-weight: 700;

  color: #222;

  margin-bottom: 18px;
}

.section-description {
  color: #6c757d;

  font-size: 17px;

  line-height: 1.8;
}

/* ===========================================
                CARD
=========================================== */

.cert-card {
  background: #ffffff;

  border-radius: 18px;

  overflow: hidden;

  border: 1px solid #e8e8e8;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

  transition: 0.35s ease;

  height: 100%;
}

.cert-card:hover {
  transform: translateY(-10px);

  border-color: #72000e;

  box-shadow: 0 20px 45px rgba(114, 0, 14, 0.18);
}

/* ===========================================
                IMAGE
=========================================== */

.cert-image {
  height: 230px;

  overflow: hidden;

  position: relative;
}

.cert-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.45s ease;
}

.cert-card:hover .cert-image img {
  transform: scale(1.08);
}

/* Overlay saat hover */

.cert-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: rgba(114, 0, 14, 0.1);

  opacity: 0;

  transition: 0.35s;
}

.cert-card:hover .cert-image::after {
  opacity: 1;
}

/* ===========================================
                BODY
=========================================== */

.cert-body {
  padding: 28px;
}

.cert-body h4 {
  font-size: 24px;

  font-weight: 700;

  color: #222;

  margin-bottom: 15px;

  transition: 0.3s;
}

.cert-card:hover h4 {
  color: #72000e;
}

.cert-body p {
  color: #6c757d;

  line-height: 1.8;

  margin-bottom: 25px;

  font-size: 15px;
}

/* ===========================================
                LINK
=========================================== */

.cert-link {
  text-decoration: none;

  color: #72000e;

  font-weight: 600;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  transition: 0.3s;
}

.cert-link i {
  transition: 0.3s;
}

.cert-link:hover {
  color: #980012;
}

.cert-link:hover i {
  transform: translateX(6px);
}

/* ===========================================
            BUTTON SEMUA SKEMA
=========================================== */

.btn-skema {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 16px 34px;

  background: #72000e;

  color: #ffffff;

  text-decoration: none;

  border-radius: 10px;

  font-weight: 600;

  transition: 0.35s;
}

.btn-skema:hover {
  background: #980012;

  color: #fff;

  transform: translateY(-4px);

  box-shadow: 0 12px 30px rgba(114, 0, 14, 0.25);
}

.btn-skema i {
  transition: 0.35s;
}

.btn-skema:hover i {
  transform: translateX(6px);
}

/* ===========================================
            RESPONSIVE
=========================================== */

@media (max-width: 991px) {
  .certification-section {
    padding: 100px 0;
  }

  .section-heading {
    font-size: 34px;
  }

  .cert-image {
    height: 210px;
  }

  .cert-body {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .certification-section {
    padding: 80px 0;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-description {
    font-size: 15px;
  }

  .cert-image {
    height: 200px;
  }

  .btn-skema {
    width: 100%;

    justify-content: center;
  }
}

/* ==========================================================
   LSP PPPOLRI
   SKEMA SERTIFIKASI
   ========================================================== */

/* Section utama */
.skema-section {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Header section */
.skema-header {
  text-align: center;
  margin-bottom: 50px;
}

.skema-header .section-label {
  display: inline-block;
  color: #72000e;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.skema-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #252525;
  margin-bottom: 15px;
}

.skema-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #6c757d;
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================
   CARD SKEMA
   ========================================================== */

.skema-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #e4e7ea;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.skema-card:hover {
  transform: translateY(-7px);
  border-color: #72000e;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Nomor skema */
.skema-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 13px;
  font-weight: 600;
  color: #b4c0ca;
}

/* Icon */
.skema-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8e9eb;
  color: #72000e;
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 25px;
}

.skema-card:hover .skema-icon {
  background: #72000e;
  color: #ffffff;
}

/* Judul */
.skema-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #252525;
  margin-bottom: 12px;
}

/* Deskripsi */
.skema-card p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Tombol detail */
.skema-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #72000e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.skema-btn i {
  transition: transform 0.3s ease;
}

.skema-btn:hover {
  color: #4f0009;
}

.skema-btn:hover i {
  transform: translateX(5px);
}

/* ==========================================================
   GRID CARD
   ========================================================== */

.skema-grid {
  row-gap: 25px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
  .skema-section {
    padding: 65px 0;
  }

  .skema-header h1 {
    font-size: 32px;
  }

  .skema-card {
    padding: 25px;
  }
}

@media (max-width: 767px) {
  .skema-section {
    padding: 50px 0;
  }

  .skema-header {
    margin-bottom: 35px;
  }

  .skema-header h1 {
    font-size: 28px;
  }

  .skema-header p {
    font-size: 14px;
  }

  .skema-card {
    padding: 25px;
  }

  .skema-card h3 {
    font-size: 19px;
  }
}

@media (max-width: 575px) {
  .skema-header h1 {
    font-size: 25px;
  }

  .skema-icon {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .skema-card {
    border-radius: 14px;
  }
}

/* ==========================================================
   DETAIL SKEMA SERTIFIKASI
   ========================================================== */

.detail-skema-section {
  padding: 80px 0;
  background: #f8f9fa;
}

/* ==========================================================
   HEADER DETAIL SKEMA
   ========================================================== */

.detail-skema-header {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 45px;
  margin-bottom: 45px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.detail-skema-header h1 {
  margin: 0 0 25px;
  color: #72000e;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-skema-info {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}

.detail-skema-info p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.detail-skema-info strong {
  color: #252525;
}

/* ==========================================================
   BLOK SECTION
   ========================================================== */

.detail-skema-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

/* ==========================================================
   JUDUL SECTION
   ========================================================== */

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.detail-section-title i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8e9eb;
  color: #72000e;
  border-radius: 10px;
  font-size: 20px;
}

.detail-section-title h2 {
  margin: 0;
  color: #252525;
  font-size: 22px;
  font-weight: 700;
}

/* ==========================================================
   TABLE UNIT KOMPETENSI
   ========================================================== */

.detail-kompetensi-table {
  margin: 0;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

.detail-kompetensi-table thead th {
  background: #72000e;
  color: #ffffff;
  border-color: #72000e;
  padding: 15px;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
}

.detail-kompetensi-table tbody td {
  padding: 15px;
  color: #555;
  font-size: 14px;
  border-color: #e5e7eb;
  vertical-align: middle;
}

.detail-kompetensi-table tbody tr {
  transition: background 0.2s ease;
}

.detail-kompetensi-table tbody tr:hover {
  background: #faf5f6;
}

.detail-kompetensi-table tbody td:first-child {
  text-align: center;
  font-weight: 600;
  color: #72000e;
}

/* ==========================================================
   PERSYARATAN
   ========================================================== */

.persyaratan-content ol {
  margin: 0;
  padding-left: 22px;
}

.persyaratan-content li {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 8px;
  margin-bottom: 10px;
}

.persyaratan-content li:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   DOKUMEN & INFORMASI
   ========================================================== */

.dokumen-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dokumen-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dokumen-item:hover {
  border-color: #72000e;
  background: #fffafb;
}

.dokumen-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8e9eb;
  color: #72000e;
  border-radius: 10px;
  font-size: 22px;
}

.dokumen-info {
  flex: 1;
}

.dokumen-info h3 {
  margin: 0 0 5px;
  color: #252525;
  font-size: 16px;
  font-weight: 600;
}

.dokumen-info p {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.dokumen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #72000e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.dokumen-btn i {
  transition: transform 0.3s ease;
}

.dokumen-btn:hover {
  color: #4f0009;
}

.dokumen-btn:hover i {
  transform: translateX(4px);
}

/* ==========================================================
   TOMBOL KEMBALI
   ========================================================== */

.detail-back {
  text-align: center;
  margin-top: 40px;
}

.detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #72000e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.detail-back a i {
  transition: transform 0.3s ease;
}

.detail-back a:hover {
  color: #4f0009;
}

.detail-back a:hover i {
  transform: translateX(-4px);
}

/* ==========================================================
   RESPONSIVE TABLET
   ========================================================== */

@media (max-width: 991px) {
  .detail-skema-section {
    padding: 65px 0;
  }

  .detail-skema-header {
    padding: 35px;
  }

  .detail-skema-header h1 {
    font-size: 28px;
  }

  .detail-skema-block {
    padding: 30px;
  }
}

/* ==========================================================
   RESPONSIVE MOBILE
   ========================================================== */

@media (max-width: 767px) {
  .detail-skema-section {
    padding: 50px 0;
  }

  .detail-skema-header {
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 30px;
  }

  .detail-skema-header h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .detail-skema-info {
    flex-direction: column;
    gap: 8px;
  }

  .detail-skema-block {
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .detail-section-title {
    margin-bottom: 20px;
  }

  .detail-section-title h2 {
    font-size: 19px;
  }

  .detail-section-title i {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .detail-kompetensi-table thead th,
  .detail-kompetensi-table tbody td {
    padding: 12px;
    font-size: 13px;
  }

  .persyaratan-content li {
    font-size: 14px;
  }

  .dokumen-item {
    align-items: flex-start;
    padding: 15px;
  }

  .dokumen-btn {
    margin-left: auto;
  }
}

/* ==========================================================
   RESPONSIVE SMALL MOBILE
   ========================================================== */

@media (max-width: 575px) {
  .detail-skema-header h1 {
    font-size: 22px;
  }

  .detail-skema-info p {
    font-size: 14px;
  }

  .detail-skema-block {
    padding: 18px;
  }

  .detail-kompetensi-table {
    min-width: 600px;
  }

  .dokumen-item {
    flex-wrap: wrap;
  }

  .dokumen-info {
    min-width: calc(100% - 70px);
  }

  .dokumen-btn {
    margin-left: 66px;
    margin-top: 5px;
  }
}

/* ==========================================================
   SKEMA ADMIN
========================================================== */

.skema-admin-page {
  padding: 30px;
  font-family: "Poppins", sans-serif;
}

/* ==========================================================
   PAGE HEADER
========================================================== */

.skema-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.skema-page-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #72000e;
  margin-bottom: 5px;
}

.skema-page-header h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  color: #222;
}

.skema-page-header p {
  margin: 7px 0 0;
  color: #777;
  font-size: 14px;
}

/* ==========================================================
   BUTTON TAMBAH
========================================================== */

.btn-tambah-skema {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 11px 18px;

  background: #72000e;
  color: #fff;

  border-radius: 8px;

  font-size: 13px;
  font-weight: 500;

  text-decoration: none;

  transition: 0.2s ease;
}

.btn-tambah-skema:hover {
  background: #58000b;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================
   CONTENT CARD
========================================================== */

.skema-content-card {
  background: #fff;

  border-radius: 12px;

  border: 1px solid #e9e9e9;

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);

  overflow: hidden;
}

/* ==========================================================
   TOOLBAR
========================================================== */

.skema-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 20px 22px;

  border-bottom: 1px solid #eee;
}

/* ==========================================================
   TOTAL SKEMA
========================================================== */

.skema-total {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skema-total-icon {
  width: 43px;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #f8e9eb;
  color: #72000e;

  font-size: 19px;
}

.skema-total span {
  display: block;

  font-size: 12px;
  color: #888;
}

.skema-total strong {
  display: block;

  margin-top: 2px;

  font-size: 18px;
  color: #222;
}

/* ==========================================================
   SEARCH
========================================================== */

.skema-search {
  width: 280px;

  position: relative;
}

.skema-search i {
  position: absolute;

  left: 13px;
  top: 50%;

  transform: translateY(-50%);

  color: #999;
}

.skema-search input {
  width: 100%;

  padding: 10px 13px 10px 38px;

  border: 1px solid #ddd;

  border-radius: 8px;

  outline: none;

  font-size: 13px;

  font-family: "Poppins", sans-serif;
}

.skema-search input:focus {
  border-color: #72000e;
}

/* ==========================================================
   TABLE
========================================================== */

.skema-table {
  margin: 0;
}

.skema-table thead th {
  background: #f8f9fa;

  color: #555;

  font-size: 12px;

  font-weight: 600;

  padding: 15px 16px;

  border-bottom: 1px solid #e5e5e5;

  white-space: nowrap;
}

.skema-table tbody td {
  padding: 17px 16px;

  vertical-align: middle;

  color: #555;

  font-size: 13px;

  border-bottom: 1px solid #f0f0f0;
}

.skema-table tbody tr:last-child td {
  border-bottom: none;
}

.skema-table tbody tr {
  transition: 0.2s ease;
}

.skema-table tbody tr:hover {
  background: #fcfcfc;
}

/* ==========================================================
   NAMA SKEMA
========================================================== */

.skema-name {
  display: flex;
  align-items: center;
  gap: 11px;
}

.skema-mini-icon {
  width: 38px;
  height: 38px;

  min-width: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f8e9eb;

  color: #72000e;

  border-radius: 8px;
}

.skema-name strong {
  color: #333;

  font-size: 13px;

  font-weight: 600;

  line-height: 1.5;
}

/* ==========================================================
   KODE SKEMA
========================================================== */

.kode-skema {
  display: inline-block;

  padding: 5px 9px;

  background: #f4f4f4;

  border-radius: 5px;

  color: #555;

  font-size: 12px;

  font-weight: 500;
}

.kode-kosong {
  color: #aaa;

  font-size: 12px;

  font-style: italic;
}

/* ==========================================================
   ACUAN
========================================================== */

.acuan-skema {
  display: block;

  max-width: 350px;

  color: #777;

  line-height: 1.5;
}

/* ==========================================================
   STATUS
========================================================== */

.status-skema {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 5px 9px;

  border-radius: 20px;

  font-size: 11px;

  font-weight: 500;
}

.status-skema span {
  width: 6px;
  height: 6px;

  border-radius: 50%;
}

.status-skema.aktif {
  background: #eaf7ee;
  color: #218739;
}

.status-skema.aktif span {
  background: #218739;
}

.status-skema.nonaktif {
  background: #f4f4f4;
  color: #888;
}

.status-skema.nonaktif span {
  background: #999;
}

/* ==========================================================
   ACTION
========================================================== */

.skema-actions {
  display: flex;

  align-items: center;

  gap: 6px;
}

.action-btn {
  width: 33px;
  height: 33px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  text-decoration: none;

  font-size: 14px;

  transition: 0.2s ease;
}

.action-btn.detail {
  background: #eef4ff;
  color: #3d6fc5;
}

.action-btn.detail:hover {
  background: #dce8ff;
}

.action-btn.edit {
  background: #fff5df;
  color: #c88700;
}

.action-btn.edit:hover {
  background: #ffebbf;
}

.action-btn.delete {
  background: #fdecec;
  color: #d33d3d;
}

.action-btn.delete:hover {
  background: #fbd7d7;
}

/* ==========================================================
   EMPTY DATA
========================================================== */

.skema-empty {
  padding: 70px 20px !important;

  text-align: center;
}

.skema-empty i {
  font-size: 45px;

  color: #bbb;
}

.skema-empty h4 {
  margin: 15px 0 5px;

  font-size: 16px;

  color: #444;
}

.skema-empty p {
  margin-bottom: 18px;

  color: #999;

  font-size: 13px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
  .skema-page-header {
    align-items: flex-start;
  }

  .skema-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .skema-search {
    width: 100%;
  }

  .skema-table {
    min-width: 950px;
  }
}

@media (max-width: 768px) {
  .skema-admin-page {
    padding: 20px 15px;
  }

  .skema-page-header {
    flex-direction: column;
  }

  .btn-tambah-skema {
    width: 100%;
    justify-content: center;
  }
}
