@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f5f8f6;
    color: #333;
}


/* ================================
   CONTAINER
================================ */

.page-container {
    width: 90%;
    max-width: 900px;
    margin: 30px auto 45px;
}


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

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-header h1 {
    font-size: 23px;
    color: #123c2d;
    font-weight: 700;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 13px;

    background: #e8f5ec;
    color: #087443;

    border-radius: 7px;
    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition: .2s;
}

.btn-dashboard:hover {
    background: #087443;
    color: white;
}


/* ================================
   FORM
================================ */

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* ================================
   CARD SECTION
================================ */

.profile-section {
    background: #ffffff;

    padding: 19px 21px;

    border-radius: 12px;

    border: 1px solid #e2ece6;

    box-shadow: 0 5px 16px rgba(25, 60, 45, .07);

    transition: .2s;
}

.profile-section:hover {
    border-color: #cbded3;
}


/* ================================
   JUDUL SECTION
================================ */

.profile-section h2 {
    position: relative;

    padding-left: 10px;
    margin-bottom: 5px;

    font-size: 15px;
    color: #123c2d;
    font-weight: 700;
}

.profile-section h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 2px;

    width: 4px;
    height: 16px;

    background: #ffd54f;

    border-radius: 3px;
}

.section-description {
    color: #718078;
    font-size: 10px;
    margin-bottom: 11px;
}


/* ================================
   TEXTAREA
================================ */

.form-textarea {
    width: 100%;

    padding: 10px 11px;

    border: 1px solid #d8e5dd;

    border-radius: 7px;

    background: #fff;

    color: #333;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    line-height: 1.7;

    outline: none;

    resize: vertical;

    transition: .2s;
}

.form-textarea:focus {
    border-color: #087443;

    box-shadow: 0 0 0 2px rgba(8, 116, 67, .08);
}


/* Ukuran textarea */

.sejarah-textarea {
    min-height: 120px;
}

.visi-textarea {
    min-height: 85px;
}

.misi-textarea {
    min-height: 120px;
}


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

.format-tools {
    margin-top: 8px;
}

.btn-format {
    border: none;

    padding: 7px 10px;

    background: #e8f5ec;

    color: #087443;

    border-radius: 6px;

    font-family: "DM Sans", sans-serif;

    font-size: 9px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.btn-format:hover {
    background: #087443;
    color: #fff;
}


/* ================================
   UPLOAD BOX
================================ */

.upload-box {
    padding: 14px;

    background: #f5f8f6;

    border: 1px dashed #b9d2c4;

    border-radius: 8px;

    text-align: center;
}

.upload-box input[type="file"] {
    width: 100%;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    color: #718078;
}

.upload-box input[type="file"]::file-selector-button {
    border: none;

    padding: 7px 11px;

    margin-right: 8px;

    background: #087443;
    color: #fff;

    border-radius: 6px;

    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    cursor: pointer;
}


/* ================================
   INFO UPLOAD
================================ */

.upload-info {
    display: flex;
    gap: 25px;

    margin-top: 8px;

    color: #718078;

    font-size: 9px;
}


/* ================================
   IMAGE PREVIEW
================================ */

.image-preview {
    margin-top: 12px;

    padding: 10px;

    background: #f5f8f6;

    border: 1px solid #e2ece6;

    border-radius: 8px;

    text-align: center;
}

.image-preview img {
    display: block;

    width: 100%;

    max-height: 280px;

    object-fit: contain;

    border-radius: 6px;
}

.preview-placeholder {
    padding: 30px 10px;

    color: #8a9791;

    font-size: 10px;
}


/* ================================
   SIMPAN
================================ */

.form-submit {
    display: flex;

    justify-content: flex-end;

    margin-top: 2px;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 9px 16px;

    border: none;

    background: #087443;
    color: #fff;

    border-radius: 7px;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.btn-save:hover {
    background: #123c2d;
    transform: translateY(-1px);
}


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

@media (max-width: 700px) {

    .page-container {
        width: 94%;
        margin-top: 22px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .profile-section {
        padding: 16px;
    }

    .upload-info {
        flex-direction: column;
        gap: 4px;
    }
}


@media (max-width: 480px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .page-header h1 {
        font-size: 18px;
    }

    .btn-dashboard {
        font-size: 10px;
    }

    .profile-section h2 {
        font-size: 13px;
    }

    .form-submit {
        width: 100%;
    }

    .btn-save {
        width: 100%;
    }
}