/* =========================================
   MEKANISME PAGE — Additional Styles
   ========================================= */

/* --- PAGE HERO --- */
.page-hero {
  position: relative;
  background: var(--slate-900);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(10,20,15,.88) 0%, rgba(22,163,74,.18) 100%),
    url('https://images.pexels.com/photos/11246275/pexels-photo-11246275.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center 30%;
  opacity: .55;
}
.page-hero-inner {
  position: relative;
  max-width: 700px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i.fa-chevron-right { font-size: .6rem; }
.breadcrumb span { color: rgba(255,255,255,.85); }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  max-width: 580px;
}

/* --- FLOWCHART SECTION --- */
.flowchart-section {
  background: var(--slate-50);
  padding: clamp(50px, 7vw, 80px) 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, white);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: .75rem;
  line-height: 1.25;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}
.section-header { margin-bottom: 2.5rem; }

/* --- FLOWCHART WRAP --- */
.flowchart-wrap {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.flowchart-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-md);
}

/* --- LEGEND --- */
.legend-wrap {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.legend-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-500);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--slate-100);
}
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--slate-700);
}
.legend-box {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-diamond {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-oval {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* --- INFO CARDS BELOW FLOWCHART --- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.info-card-mk {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.info-card-mk:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.ic-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c, var(--primary)) 12%, white);
  color: var(--c, var(--primary));
  display: grid; place-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.info-card-mk h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: .4rem;
}
.info-card-mk p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .flowchart-wrap { padding: 1rem; }
  .legend-items { gap: .5rem 1rem; }
}
@media (max-width: 480px) {
  .legend-items { flex-direction: column; gap: .5rem; }
}
