/* ===========================
   Kenalsekolah — pelayanan.css
   =========================== */

/* BREADCRUMB */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb-nav a:hover { color: white; }
.breadcrumb-nav span { color: rgba(255,255,255,0.5); }
.breadcrumb-nav span.active { color: white; font-weight: 600; }

/* HERO PELAYANAN */
.pel-hero { position: relative; background: #005f59; overflow: hidden; }
.pel-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #005f59 0%, #00a99d 100%);
}
.pel-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.1); }
.pel-hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.pel-hero-wave svg { width: 100%; height: 60px; display: block; }
.pel-hero-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800; color: white;
    margin-bottom: 12px; line-height: 1.2;
}
.pel-hero-desc {
    font-size: 16px; color: rgba(255,255,255,0.85);
    max-width: 560px; margin: 0 auto; line-height: 1.6;
}

/* STATS BAR */
.stats-bar { background: white; border-bottom: 1px solid #eaf5f4; }
.stats-grid {
    display: flex; align-items: center;
    padding: 20px 0;
    justify-content: center;
    flex-wrap: wrap; gap: 0;
}
.stat-item { text-align: center; padding: 10px 32px; }
.stat-num { font-size: 28px; font-weight: 800; color: #007a72; line-height: 1; }
.stat-lbl { font-size: 12px; color: #5a7a82; margin-top: 4px; font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: #eaf5f4; }

/* FILTER */
.filter-section {
    background: white; border-bottom: 1px solid #eaf5f4;
    padding: 14px 0;
    position: sticky; top: 70px; z-index: 30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-form {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
}
.search-wrap {
    margin-left: auto;
    display: flex; align-items: center;
    gap: 8px; background: #f0f8f8;
    border: 1.5px solid #d8eeec; border-radius: 10px;
    padding: 8px 14px;
    transition: border-color .2s;
}
.search-wrap:focus-within { border-color: #00a99d; }
.search-input {
    border: none; background: none;
    font-size: 13px; width: 180px;
    outline: none; color: #1a2e35;
    font-family: inherit;
}
.search-clear {
    color: #5a7a82; font-size: 20px;
    text-decoration: none; line-height: 1;
    transition: color .2s;
}
.search-clear:hover { color: #c0196e; }

/* LAYANAN SECTION */
.layanan-section { padding: 48px 0 60px; background: #f8fbfb; }

.section-label {
    display: flex; align-items: center;
    gap: 10px; font-size: 12px; font-weight: 700;
    color: #5a7a82; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 20px;
}
.section-label-icon { font-size: 16px; }
.section-label::after {
    content: ''; flex: 1;
    height: 1px; background: #d8eeec;
}

/* LAYANAN GRID */
.layanan-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}
.layanan-grid .layanan-card {
    flex: 0 1 calc(25% - 15px);
    min-width: 200px;
}
.unggulan-grid .layanan-card {
    flex: 0 1 calc(25% - 15px);
}

/* LAYANAN CARD — layout baru: gambar kotak full di atas */
.layanan-card {
    background: white;
    border-radius: 14px;
    border: 1.5px solid #eaf5f4;
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    padding: 0;
}
.layanan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,169,157,0.15);
    border-color: #00a99d;
}
.layanan-card-unggulan { border-color: #c0e8e4; }

/* Badge unggulan */
.lcard-badge-unggulan {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, #00a99d, #007a72);
    color: white; font-size: 9px; font-weight: 700;
    padding: 3px 10px; border-radius: 10px;
    z-index: 2;
}

/* Area gambar/ikon — kotak full di atas */
.lcard-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.lcard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.layanan-card:hover .lcard-img-wrap img { transform: scale(1.05); }
.lcard-img-wrap .lcard-emoji-big {
    font-size: 56px;
}
.lcard-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    border-radius: 50%; border: 2px dashed;
    animation: spin 12s linear infinite;
    opacity: .4;
}

/* Body teks di bawah gambar */
.lcard-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lcard-title {
    font-size: 14px; font-weight: 700;
    color: #1a2e35; margin-bottom: 6px; line-height: 1.3;
}
.lcard-desc {
    font-size: 12px; color: #5a7a82;
    line-height: 1.6; margin-bottom: 14px; flex: 1;
}
.lcard-btn-wrap { margin-top: auto; }
.lcard-btn {
    display: block; text-align: center;
    font-size: 12px; font-weight: 700;
    padding: 9px 16px; border-radius: 8px;
    border: 1.5px solid transparent;
    transition: opacity .2s;
    text-decoration: none;
}
.lcard-btn-primary { color: white; border-color: transparent; }
.lcard-btn:not(.lcard-btn-primary) {
    background: white;
    border-style: solid;
}
.layanan-card:hover .lcard-btn { opacity: .88; }

/* SEARCH RESULT INFO */
.search-result-info {
    font-size: 13px; color: #5a7a82;
    margin-bottom: 20px; padding: 12px 16px;
    background: #e0f5f4; border-radius: 8px;
}

/* EMPTY STATE */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: #1a2e35; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: #5a7a82; }
.empty-state a { color: #007a72; font-weight: 600; }

/* INFO SECTION */
.info-section { background: white; padding: 60px 0; }
.info-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.info-card {
    flex: 1 1 220px; background: #f8fbfb;
    border-radius: 14px; padding: 20px;
    border: 1px solid #eaf5f4;
    display: flex; align-items: flex-start; gap: 14px;
}
.info-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-card h4 { font-size: 14px; font-weight: 700; color: #1a2e35; margin-bottom: 6px; }
.info-card p { font-size: 12px; color: #5a7a82; line-height: 1.7; margin-bottom: 8px; }
.info-tag {
    display: inline-block; font-size: 10px;
    font-weight: 700; padding: 3px 10px; border-radius: 10px;
}

/* ===== HALAMAN DETAIL ===== */
.detail-hero { position: relative; overflow: hidden; }
.detail-hero-inner { display: flex; align-items: center; gap: 24px; }
.detail-hero-icon {
    width: 90px; height: 90px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; flex-shrink: 0;
}
.detail-hero-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800; color: white;
    margin-bottom: 8px; line-height: 1.2;
}
.detail-hero-desc { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.detail-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-block; padding: 11px 24px;
    border-radius: 24px; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: opacity .2s;
}
.btn-hero-primary:hover { opacity: .9; }
.btn-hero-outline {
    display: inline-block; padding: 10px 24px;
    border-radius: 24px; font-size: 14px; font-weight: 700;
    border: 2px solid rgba(255,255,255,0.7); color: white;
    text-decoration: none; transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); }

/* DETAIL LAYOUT */
.detail-layout { display: flex; gap: 24px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-sidebar { width: 280px; flex-shrink: 0; }

/* DETAIL CARDS */
.detail-card {
    background: white; border-radius: 14px;
    border: 1px solid #eaf5f4; margin-bottom: 20px; overflow: hidden;
}
.detail-card-title {
    font-size: 16px; font-weight: 700; color: #1a2e35;
    padding: 16px 20px; border-bottom: 1px solid #f0f8f8;
    border-left: 4px solid #00a99d; background: #fafffe;
}
.detail-card-body { padding: 20px; }
.detail-prose { font-size: 14px; color: #3a5560; line-height: 1.8; }
.detail-prose p { margin-bottom: 12px; }

/* DOKTER */
.dokter-list { display: flex; flex-direction: column; gap: 14px; }
.dokter-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; background: #f8fbfb;
    border-radius: 10px; border: 1px solid #eaf5f4;
}
.dokter-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: white;
    flex-shrink: 0; overflow: hidden;
}
.dokter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dokter-info h4 { font-size: 14px; font-weight: 700; color: #1a2e35; margin-bottom: 3px; }
.dokter-spesialis { font-size: 12px; color: #5a7a82; margin-bottom: 5px; }
.dokter-jadwal {
    font-size: 11px; color: #007a72;
    display: inline-flex; align-items: center; gap: 4px;
    background: #e0f5f4; padding: 3px 8px; border-radius: 6px;
}

/* FASILITAS */
.fasilitas-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.fasilitas-item {
    flex: 1 1 160px; display: flex; align-items: center;
    gap: 10px; padding: 10px 14px;
    background: #f8fbfb; border-radius: 8px;
    border: 1px solid #eaf5f4;
    font-size: 13px; color: #1a2e35; font-weight: 500;
}
.fas-check {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* FOTO */
.foto-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.foto-item { flex: 1 1 180px; border-radius: 10px; overflow: hidden; border: 1px solid #eaf5f4; }
.foto-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.foto-caption { font-size: 11px; color: #5a7a82; padding: 6px 10px; background: #f8fbfb; }

/* SIDEBAR */
.sidebar-card {
    background: white; border-radius: 14px;
    border: 1px solid #eaf5f4; padding: 18px; margin-bottom: 16px;
}
.sidebar-cta { color: white; border: none; }
.sidebar-cta h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sidebar-cta p { font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 14px; line-height: 1.5; }
.sidebar-btn-call {
    display: block; text-align: center;
    background: #f0c030; color: #1a2e35;
    font-weight: 700; font-size: 13px;
    padding: 10px; border-radius: 8px;
    text-decoration: none; margin-bottom: 8px;
}
.sidebar-btn-info {
    display: block; text-align: center;
    border: 1.5px solid rgba(255,255,255,0.5); color: white;
    font-weight: 600; font-size: 12px;
    padding: 9px; border-radius: 8px; text-decoration: none;
}
.sidebar-card-title {
    font-size: 13px; font-weight: 700; color: #1a2e35;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid #eaf5f4;
}
.jam-list { display: flex; flex-direction: column; gap: 8px; }
.jam-row {
    display: flex; justify-content: space-between;
    font-size: 12px; padding: 4px 0;
    border-bottom: 1px solid #f0f8f8;
}
.jam-row:last-child { border: none; }
.jam-row span { color: #5a7a82; }
.jam-row b { color: #1a2e35; font-weight: 700; }
.jam-row.igd b { color: #c0196e; }

.layanan-other-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #f0f8f8;
    text-decoration: none; color: #1a2e35;
    font-size: 13px; font-weight: 500; transition: color .2s;
}
.layanan-other-item:hover { color: #007a72; }
.layanan-other-item:last-of-type { border-bottom: none; }
.layanan-other-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.layanan-other-item .arrow { margin-left: auto; color: #5a7a82; font-size: 18px; }
.sidebar-all-link {
    display: block; text-align: center;
    font-size: 12px; font-weight: 700;
    color: #007a72; margin-top: 10px; text-decoration: none;
}
.sidebar-all-link:hover { text-decoration: underline; }

/* SPIN ANIMATION */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
    .detail-layout { flex-direction: column; }
    .detail-sidebar { width: 100%; }
}
@media (max-width: 720px) {
    .pel-hero-title { font-size: 26px; }
    .stats-grid { flex-wrap: wrap; }
    .stat-item { padding: 10px 16px; }
    .stat-divider { display: none; }
    .filter-section { top: 60px; }
    .search-wrap { margin-left: 0; width: 100%; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .detail-hero-inner { flex-direction: column; text-align: center; }
    .detail-hero-actions { justify-content: center; }
    .detail-hero-icon { width: 70px; height: 70px; font-size: 34px; }
    .lcard-img-wrap { height: 130px; }
}
@media (max-width: 520px) {
    .layanan-grid { grid-template-columns: 1fr 1fr; }
    .lcard-img-wrap { height: 120px; }
}