/* =============================================
   HOME PAGE CUSTOM STYLES
   ============================================= */

/* --- Navigation Logo --- */
.site_logo {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* --- Slider Section --- */
.slider-heading {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.slider-subtext {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- About / Pengenalan Section --- */
.about-content {
  padding-top: 10px;
}

.section-heading {
  position: relative;
  padding-bottom: 12px;
}

.section-heading .heading-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #D6E84A;
  border-radius: 2px;
}

.justified-text {
  text-align: justify;
  line-height: 1.8;
}

.justified-text.mb-sm {
  margin-bottom: 15px;
}

.justified-text.mb-lg {
  margin-bottom: 30px;
}

.justified-text.mb-xl {
  margin-bottom: 40px;
}

/* --- Keperluan Kajian Image --- */
.centered-figure {
  text-align: center;
}

.centered-figure img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- Global & Nasional Section --- */
.section-grey-bg {
  background-color: #F5F6F7;
}

.info-card {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  min-height: 100%;
  border: 1px solid #E5E7EB;
}

.info-card-header {
  text-align: center;
  margin-bottom: 25px;
}

.info-card-header img {
  max-width: 200px;
  height: auto;
  opacity: 0.85;
  margin-bottom: 15px;
}

.highlight-heading {
  display: inline-block;
  background: #D6E84A;
  padding: 8px 25px;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2B2B2B;
}

.info-card-body {
  text-align: justify;
  line-height: 1.8;
}

.info-card-body h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card-body p {
  margin-bottom: 20px;
}

.info-card-body p:last-child {
  margin-bottom: 0;
}

/* --- Kawasan Kajian Section --- */
.kajian-figure {
  text-align: center;
  margin-bottom: 30px;
}

.kajian-figure img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.kajian-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: #777;
  font-style: italic;
}

/* --- Data Table --- */
.data-table-wrapper {
  margin-top: 20px;
}

.data-table {
  text-align: center;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
  width: 80%;
  max-width: 800px;
}

.data-table thead {
  background: #2B2B2B;
  color: #fff;
}

.data-table thead th {
  text-align: center;
  padding: 10px;
}

.data-table td {
  padding: 10px;
}

.data-table tfoot {
  background: #D6E84A;
  font-weight: 700;
  color: #2B2B2B;
}

/* --- Penemuan Utama Kajian Styles --- */

/* Section margin-top for sub-headings */
.section-mt {
  margin-top: 30px;
}

/* Stat Boxes - Quality Statistics */
.stat-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid transparent;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-box.stat-green {
  border-top-color: #45684E;
}

.stat-box.stat-yellow {
  border-top-color: #F0AD4E;
}

.stat-box.stat-red {
  border-top-color: #D9534F;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #333;
  margin-bottom: 0;
  line-height: 1.1;
}

.stat-label {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.stat-percentage {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-green .stat-percentage {
  color: #45684E;
}

.stat-yellow .stat-percentage {
  color: #F0AD4E;
}

.stat-red .stat-percentage {
  color: #D9534F;
}

.stat-title {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Kriteria Icons */
.kriteria-icon-box {
  padding: 20px 10px;
}

.kriteria-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f4e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 2px solid #45684E;
  transition: background 0.3s ease, transform 0.3s ease;
}

.kriteria-icon:hover {
  background: #45684E;
  transform: scale(1.05);
}

.kriteria-icon:hover i {
  color: #fff !important;
}

.kriteria-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

/* 5-column layout helper */
.col-md-15-custom {
  width: 20%;
  float: left;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 991px) {
  .col-md-15-custom {
    width: 33.33%;
  }
}

@media (max-width: 575px) {
  .col-md-15-custom {
    width: 50%;
  }
}

/* Jenis Produk Bar Chart */
.jenis-produk-list {
  padding: 0;
}

.jenis-produk-item {
  margin-bottom: 18px;
}

.jenis-produk-bar-wrapper {
  position: relative;
}

.jenis-produk-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.jenis-produk-bar {
  background: #e9ecef;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  width: calc(100% - 55px);
  vertical-align: middle;
}

.jenis-produk-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.jenis-produk-pct {
  display: inline-block;
  width: 50px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  vertical-align: middle;
}

/* Isu dan Masalah List */
.isu-masalah-list {
  padding: 0;
}

.isu-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 20px 25px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2196F3;
  transition: box-shadow 0.3s ease;
}

.isu-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.isu-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  margin-top: 6px;
  margin-right: 15px;
}

.isu-bullet.bg-blue {
  background: #2196F3;
}

.isu-bullet.bg-black {
  background: #333;
}

.isu-content {
  flex: 1;
}

.isu-title {
  font-weight: 700;
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  text-decoration: underline;
}

.isu-content p {
  margin-bottom: 0;
}

/* Card color variants */
.card-border-green {
  border-left: 4px solid #45684E;
}

.card-border-orange {
  border-left: 4px solid #FF9800;
}

.card-border-blue {
  border-left: 4px solid #2196F3;
}

.card-border-purple {
  border-left: 4px solid #9C27B0;
}

.card-border-cyan {
  border-left: 4px solid #00BCD4;
}

.card-border-pink {
  border-left: 4px solid #E91E63;
}

.card-border-brown {
  border-left: 4px solid #795548;
}

.text-green { color: #45684E; }
.text-orange { color: #FF9800; }
.text-blue { color: #2196F3; }
.text-purple { color: #9C27B0; }
.text-cyan { color: #00BCD4; }
.text-pink { color: #E91E63; }
.text-brown { color: #795548; }

.badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-right: 10px;
}

.bg-green {
  background: #45684E;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

/* --- Produk Kategori Cards (4.0 Section) --- */
.produk-kategori-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.produk-kategori-card:hover {
  transform: translateY(-5px);
}

.produk-kategori-img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.produk-kategori-img:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.produk-kategori-label {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* --- Kualiti Circles (Pie Chart Style) --- */
.kualiti-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
}

.kualiti-circle.kualiti-tinggi {
  background: conic-gradient(#45684E 0% 10%, #d4e8d7 10% 100%);
}

.kualiti-circle.kualiti-sederhana {
  background: conic-gradient(#8B7D3C 0% 68%, #e8e4d0 68% 100%);
}

.kualiti-circle.kualiti-rendah {
  background: conic-gradient(#555 0% 21%, #ddd 21% 100%);
}

.kualiti-circle-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

.kualiti-pct {
  font-size: 26px;
  font-weight: 800;
  color: #333;
}

.kualiti-label {
  font-weight: 700;
  font-size: 16px;
  margin-top: 5px;
}

/* --- Region Cards (SPU, SPT, SPS) --- */
.region-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.region-header {
  padding: 20px 15px;
  text-align: center;
  color: #fff;
  position: relative;
}

.region-header.region-spu {
  background: linear-gradient(135deg, #2d5a34, #45684E);
}

.region-header.region-spt {
  background: linear-gradient(135deg, #a8b52a, #c8d83a);
  color: #333;
}

.region-header.region-sps {
  background: linear-gradient(135deg, #6b8f41, #8ab356);
}

.region-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: inherit !important;
}

.region-code {
  font-size: 28px;
  font-weight: 800;
  opacity: 0.3;
  position: absolute;
  bottom: 5px;
  right: 15px;
}

.region-body {
  padding: 20px 15px;
}

.region-total {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.region-count {
  font-size: 32px;
  font-weight: 800;
  color: #333;
  display: block;
  line-height: 1.1;
}

.region-produk {
  font-size: 12px;
  color: #777;
  display: block;
}

.region-pct-main {
  font-size: 20px;
  font-weight: 700;
  color: #45684E;
  display: block;
  margin-top: 5px;
}

.region-breakdown {
  padding: 0;
}

.region-bar-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.region-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  width: 100px;
  min-width: 100px;
}

.region-bar-track {
  flex: 1;
  height: 16px;
  background: #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 8px;
}

.region-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
  min-width: 3px;
}

.region-bar-fill.bg-tinggi {
  background: #45684E;
}

.region-bar-fill.bg-sederhana {
  background: #D6E84A;
}

.region-bar-fill.bg-rendah {
  background: #D9534F;
}

.region-bar-pct {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  width: 35px;
  min-width: 35px;
  text-align: right;
}
