/* ============================================
   STANDAR PELAYANAN PUBLIK (YANBLIK) PAGE
   Modern Medical Green Theme
   ============================================ */

:root {
    --primary-color: #047857;
    --primary-dark: #065f46;
    --primary-light: #10b981;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.yanblik-hero {
    position: relative;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    min-height: 400px;
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 95, 70, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.hero-icon i {
    font-size: 3rem;
    color: #ffffff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
    color: #ffffff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave path {
    fill: var(--bg-light);
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.yanblik-content {
    padding: 3rem 0 5rem;
    background: var(--bg-light);
}

/* ============================================
   SERVICE CARDS GRID
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.2);
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: #ffffff;
}

.service-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-docs {
    margin-bottom: 1.5rem;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(4, 120, 87, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.docs-badge i {
    font-size: 1rem;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link i {
    transition: var(--transition);
}

/* ============================================
   INFO BOX
   ============================================ */

.yanblik-info-box {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.2);
}

.info-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.info-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-content p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   DETAIL PAGE
   ============================================ */

.yanblik-detail {
    animation: fadeIn 0.8s ease-out;
}

.detail-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.breadcrumb-custom a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-custom a:hover {
    color: var(--primary-color);
}

.breadcrumb-custom span {
    color: var(--text-light);
}

.detail-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.2);
}

.detail-icon i {
    font-size: 3rem;
    color: #ffffff;
}

.detail-title-content {
    flex-grow: 1;
}

.detail-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   DETAIL SECTIONS
   ============================================ */

.detail-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.detail-section:hover {
    box-shadow: var(--shadow-xl);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.section-content {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul, .section-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.section-content li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   DOCUMENT CARDS
   ============================================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.document-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.document-card:hover {
    border-color: var(--primary-color);
    background: rgba(4, 120, 87, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.doc-year {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.doc-link {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.doc-link:hover {
    background: var(--primary-dark);
    gap: 0.75rem;
}

/* ============================================
   RELATED SERVICES
   ============================================ */

.related-services {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
}

.related-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-header i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.related-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.related-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 8px rgba(4, 120, 87, 0.2);
}

.related-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.related-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.related-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.related-card a:hover {
    gap: 0.75rem;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991.98px) {
    .yanblik-hero {
        min-height: 350px;
        padding: 3rem 0 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .detail-title {
        font-size: 2rem;
    }

    .yanblik-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .yanblik-hero {
        min-height: 300px;
        padding: 2.5rem 0 4rem;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .hero-icon i {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        padding: 2rem;
    }

    .detail-title-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-icon {
        width: 80px;
        height: 80px;
    }

    .detail-icon i {
        font-size: 2.5rem;
    }

    .detail-title {
        font-size: 1.75rem;
    }

    .detail-section {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .document-card {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        width: 70px;
        height: 70px;
    }

    .info-icon i {
        font-size: 2rem;
    }

    .yanblik-info-box {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
