/* ========================================
   PROFILE CONTENT
   ======================================== */
.profile-content {
    padding: 2.5rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

/* ========================================
   PROFILE OVERVIEW
   ======================================== */
.profile-overview {
    margin-bottom: 2.5rem;
}

.overview-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.overview-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e6ecf3;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d5a9c;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   PROFILE SECTIONS
   ======================================== */
.profile-sections {
    margin-bottom: 2rem;
}

.content-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    height: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a9c;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e6ecf3;
}

.section-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* ========================================
   INFO ITEMS
   ======================================== */
.info-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #2d5a9c;
    border-radius: 2px;
    flex-shrink: 0;
}

.info-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
    text-align: justify;
}

.info-text strong {
    color: #2d5a9c;
    font-weight: 600;
}

.highlight-item {
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e6ecf3;
    margin-top: 1rem;
}

.highlight-item .info-title {
    color: #2d5a9c;
}

.highlight-item .info-title::before {
    background: #2d5a9c;
    width: 4px;
    height: 24px;
}

/* ========================================
   BAKORWIL GRID
   ======================================== */
.bakorwil-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bakorwil-card {
    background: #f8fafc;
    border: 1px solid #e6ecf3;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.bakorwil-card:hover {
    background: #ffffff;
    border-color: #2d5a9c;
    box-shadow: 0 4px 12px rgba(45, 90, 156, 0.1);
    transform: translateY(-2px);
}

.bakorwil-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2d5a9c;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bakorwil-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5a9c;
    margin: 0 0 0.5rem 0;
}

.bakorwil-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   PROFILE FOOTER
   ======================================== */
.profile-footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.source-text {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991.98px) {
    .profile-content {
        padding: 2rem 0;
    }

    .overview-card {
        padding: 1.5rem;
    }

    .overview-text {
        font-size: 1rem;
    }

    .overview-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }

    /* Tambahkan jarak untuk card kedua pada tablet jika sudah stacked */
    .profile-sections .row > div:last-child .content-card {
        margin-top: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .info-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .info-title {
        font-size: 1.1rem;
    }

    .info-text {
        font-size: 0.95rem;
    }

    .bakorwil-card {
        padding: 1rem;
    }

    .bakorwil-title {
        font-size: 1rem;
    }

    .bakorwil-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .profile-content {
        padding: 1.5rem 0;
    }

    .overview-card {
        padding: 1.25rem;
    }

    .overview-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .overview-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding-top: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .content-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Tambahkan jarak lebih besar untuk card kedua (Badan Koordinasi Wilayah) pada mobile */
    .profile-sections .row > div:last-child .content-card {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .section-desc {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .info-item {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .info-title {
        font-size: 1.05rem;
    }

    .info-title::before {
        height: 18px;
    }

    .info-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .highlight-item {
        padding: 1.25rem;
    }

    .bakorwil-grid {
        gap: 0.75rem;
    }

    .bakorwil-card {
        padding: 1rem;
    }

    .bakorwil-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .bakorwil-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .bakorwil-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .profile-footer {
        padding: 1rem 0;
        margin-top: 1.5rem;
    }

    .source-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .overview-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .content-card {
        padding: 1rem;
    }

    /* Tambahkan jarak lebih besar untuk card kedua pada small mobile */
    .profile-sections .row > div:last-child .content-card {
        margin-top: 2.5rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .info-title {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .info-text {
        font-size: 0.85rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .profile-content {
        background: white;
        padding: 0;
    }

    .overview-card,
    .content-card {
        box-shadow: none;
        border: 1px solid #e6ecf3;
        page-break-inside: avoid;
    }

    .info-item {
        page-break-inside: avoid;
    }
}
