/* ===============================
   PROFIL PAGE
================================= */

/* title */
.profil-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #3d105f;
    margin-top: 10px;
}

.profil-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #5e1992, #efa735);
}

/* subtitle */
.profil-subtitle {
    color: #6c757d;
    margin-top: 10px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* logo */
.profil-logo {
    max-height: 100px;
}

/* ===============================
   CARD DESKRIPSI
================================= */

.profil-card {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(61, 16, 95, 0.08);
    overflow: hidden;
}

.profil-card-header {
    padding: 18px 28px;
    background: linear-gradient(90deg, #5e1992, #8e3cac);
}

.profil-card-header h4 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.profil-card-body {
    padding: 28px;
}

/* ===============================
   CKEDITOR CONTENT
================================= */

.profil-desc {
    line-height: 1.9;
    color: #444;
    font-size: 0.96rem;
    max-width: 750px;
    margin: 0 auto;
}

.profil-desc p {
    margin-bottom: 14px;
}

.profil-desc h1,
.profil-desc h2,
.profil-desc h3 {
    color: #3d105f;
    margin-top: 20px;
    font-weight: 700;
}

.profil-desc ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.profil-desc li {
    margin-bottom: 6px;
}

.profil-desc strong {
    color: #5e1992;
}

.profil-desc hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.profil-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}

/* ===============================
   GALLERY
================================= */

.profil-gallery:hover img {
    transform: scale(1.05);
}

/* ===============================
   BUTTON
================================= */

.btn-profil {
    padding: 10px 24px;
    border-radius: 10px;
    background: #efa735;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.btn-profil:hover {
    background: #ffbc54;
}

.btn-profil.disabled {
    background: #ccc;
    pointer-events: none;
}

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

@media (min-width: 992px) {
    .profil-title {
        font-size: 1.9rem;
    }

    .profil-desc {
        font-size: 0.95rem;
    }
}

/* ===============================
   GALLERY FINAL
================================= */

/* hover zoom */
.profil-gallery:hover img {
    transform: scale(1.08);
}

.row.g-4 {
    max-width: 1100px;
    margin: 0 auto;
}

.profil-section-title {
    font-weight: 700;
    color: #3d105f;
    position: relative;
    display: inline-block;
}

@media (max-width: 576px) {
    .profil-gallery img {
        height: 180px;
    }
}

/* ===============================
   GALLERY DINAS STYLE
================================= */

.profil-gallery {
    border-radius: 14px;
    overflow: hidden;
    background: #f4f4f4;
}

/* image */
.profil-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: 0.25s ease;
}

/* hover halus (tidak terlalu mencolok) */
.profil-gallery:hover img {
    transform: scale(1.03);
}

/* ===============================
   SECTION TITLE
================================= */

.profil-section-title {
    font-weight: 700;
    color: #3d105f;
    font-size: 1.3rem;
}

.profil-section-sub {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 6px;
}

/* ===============================
   HEADER GALLERY
================================= */

.profil-gallery-header {
    max-width: 600px;
    margin: 0 auto;
}

/* title */
.profil-section-title {
    font-weight: 700;
    color: #3d105f;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

/* garis bawah */
.profil-section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #5e1992, #efa735);
}

/* subtitle */
.profil-section-sub {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.6;
}

/* ===============================
   PDF SECTION
================================= */

.profil-pdf {
    margin-top: -10px;
}

/* tombol */
.btn-profil {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;

    background: #5e1992;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;

    transition: 0.25s ease;
}

/* hover */
.btn-profil:hover {
    background: #7a2db8;
}

/* disabled */
.btn-profil.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

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

/* tablet */
@media (max-width: 992px) {
    .profil-title {
        font-size: 1.8rem;
    }

    .profil-card-body {
        padding: 22px;
    }

    .profil-gallery img {
        height: 200px;
    }
}

/* mobile */
@media (max-width: 576px) {
    .profil-title {
        font-size: 1.5rem;
    }

    .profil-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .profil-card-body {
        padding: 18px;
    }

    .profil-desc {
        font-size: 0.9rem;
    }

    .profil-gallery img {
        height: 170px;
    }

    .btn-profil {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ===============================
   EMPTY STATE
================================= */

.profil-empty,
.profil-gallery-empty,
.profil-doc-empty {
    background: #fff;
    border: 1px dashed #d8cbe6;
    border-radius: 18px;
    padding: 35px 25px;
    max-width: 650px;
    margin: 0 auto;
}

.profil-empty-icon,
.profil-gallery-empty i,
.profil-doc-empty i {
    font-size: 3rem;
    color: #7a2db8;
    margin-bottom: 15px;
    display: block;
}

.profil-empty h5,
.profil-gallery-empty h5 {
    color: #3d105f;
    font-weight: 700;
    margin-bottom: 10px;
}

.profil-empty p,
.profil-gallery-empty p,
.profil-doc-empty span {
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* dokumen kosong */
.profil-doc-empty {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: #faf7fd;
}

.profil-doc-empty i {
    font-size: 1.4rem;
    margin: 0;
}

/* gallery kosong */
.profil-gallery-empty {
    padding: 60px 25px;
}

/* ===============================
   MOBILE RESPONSIVE IMPROVEMENT
================================= */

@media (max-width: 576px) {
    /* container */
    .profil-card {
        border-radius: 16px;
    }

    /* title */
    .profil-title {
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .profil-subtitle {
        font-size: 0.88rem;
        line-height: 1.7;
        padding: 0 12px;
    }

    /* card */
    .profil-card-body {
        padding: 16px;
    }

    /* description */
    .profil-desc {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    /* empty state */
    .profil-empty,
    .profil-gallery-empty,
    .profil-doc-empty {
        border-radius: 14px;
        padding: 24px 18px;
    }

    .profil-empty-icon,
    .profil-gallery-empty i {
        font-size: 2.3rem;
        margin-bottom: 12px;
    }

    .profil-empty h5,
    .profil-gallery-empty h5 {
        font-size: 1rem;
    }

    .profil-empty p,
    .profil-gallery-empty p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    /* document info */
    .profil-doc-empty {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
        padding: 18px;
    }

    .profil-doc-empty i {
        font-size: 1.8rem;
    }

    .profil-doc-empty span {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* gallery */
    .profil-gallery {
        border-radius: 12px;
    }

    .profil-gallery img {
        height: 160px;
    }

    /* section title */
    .profil-section-title {
        font-size: 1.1rem;
    }

    .profil-section-sub {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    /* button */
    .btn-profil {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* ===============================
   MOBILE DOUBLE CARD FIX
================================= */

@media (max-width: 576px) {
    /* outer wrapper */
    .profil-wrapper,
    .profil-card-wrapper,
    .card-wrapper {
        padding: 14px;
        border-radius: 24px;
        background: #f1f1f4;
    }

    /* inner card */
    .profil-card,
    .content-card,
    .card-profil {
        border-radius: 20px;

        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04),
            0 2px 6px rgba(0, 0, 0, 0.03);

        overflow: hidden;
    }

    /* header ungu */
    .profil-card-header,
    .card-header-custom {
        padding: 14px 18px;
        border-radius: 18px 18px 0 0;
    }

    /* body */
    .profil-card-body,
    .card-body {
        padding: 22px 16px;
    }
}
/* OUTER */
.profil-wrapper {
    background: #f1f1f4;

    padding: 16px;

    border-radius: 28px;

    max-width: 1100px;

    margin: 0 auto 50px;
}

/* INNER */
.profil-card {
    background: #fff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
}
@media (max-width: 576px) {
    .profil-wrapper {
        padding: 10px;
        border-radius: 22px;
        margin-bottom: 35px;
    }

    .profil-card {
        border-radius: 18px;
    }

    .profil-card-body {
        padding: 22px 16px;
    }
}
