/* ==========================================================================
   PROFIL PERPUSTAKAAN - DEDICATED STYLESHEET
   Institut Kesehatan Karsa Husada Garut
   ========================================================================== */

.profile-section {
  padding: 5rem 0;
  background-color: var(--bg-body);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}

.profile-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--primary);
  text-align: justify;
  text-justify: inter-word;
}

.profile-prose {
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.profile-prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.decree-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.decree-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.decree-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.decree-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Sidebar Info Card */
.profile-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.inst-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.inst-card-header {
  background-color: #09a89e;
  background: #09a89e;
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  border-bottom: 3px solid var(--accent-gold);
}

.inst-card-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.inst-card-body {
  padding: 1.75rem;
}

.meta-spec-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meta-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-spec-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-spec-value {
  font-size: 0.9375rem;
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}

/* Accreditation Badge Box */
.accreditation-box {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, #fffdfa 100%);
  border: 1px solid rgba(255, 184, 48, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.accreditation-grade {
  font-size: 2.25rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: -0.02em;
}

.accreditation-sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.accreditation-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Strategic Functions Grid */
.functions-section {
  padding: 4.5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.function-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}

.function-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.function-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.function-card h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.function-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .functions-grid {
    grid-template-columns: 1fr;
  }
}
