html, body {
  margin: 0;
  padding: 0;
  background: #f8f4ee; /* same as #header background */
}

body {
    color: #241c15;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 5000;
    background: #f8f4ee;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: visible;
}

.mp-main {
    min-height: 1px;
    width: 100%;
    padding-top: 70px;
}

.mp-page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}

.mp-btn--primary {
    background: linear-gradient(135deg, #f26522, #ff7a3d);
    color: #fff;
    box-shadow: 0 8px 20px rgba(242,101,34,.25);
}

    .mp-btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(242,101,34,.35);
    }

#header .full_data {
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-part {
    flex: 0 0 auto;
}

.logo-part img {
    max-height: 56px;
    width: auto;
}

.mp-nav-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.navbar.navbar-default {
    background: transparent;
    border: 0;
    margin: 0;
    min-height: auto;
    width: 100%;
}

.navbar-default .navbar-collapse {
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.navbar-default .navbar-brand {
    display: none;
}

.navbar-default .navbar-nav {
    float: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar-default .navbar-nav > li {
    position: relative;
}

.navbar-default .navbar-nav > li > a {
    color: #241c15 !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 14px 18px;
    background: transparent;
    border: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li.open > a,
.navbar-default .navbar-nav > li.open > a:hover,
.navbar-default .navbar-nav > li.open > a:focus {
    color: #d96f1b !important;
    background: transparent !important;
    outline: none;
}

.mp-caret {
    display: inline-block;
    margin-left: 7px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #241c15;
    vertical-align: middle;
    transition: transform .18s ease, border-top-color .18s ease;
}

.navbar-default .navbar-nav > li.open > a .mp-caret,
.navbar-default .navbar-nav > li > a:hover .mp-caret {
    border-top-color: #d96f1b;
}

.navbar-default .navbar-nav > li.open > a .mp-caret {
    transform: rotate(180deg);
}

.navbar-default .dropdown-menu {
    min-width: 260px;
    list-style: none;
    margin: 4px 0 0;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #edd9c8;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(36, 28, 21, .08);
    z-index: 3500;
}

.navbar-default .dropdown-menu > li > a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #241c15;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > li > a:focus {
    background: #fff5ea;
    color: #d96f1b;
    outline: none;
}

.mp-actions {
    flex: 0 0 auto;
    min-width: 180px;
    text-align: right;
}

#navLogin,
#LinkButtonDashboard {
    background: #ef953f !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    text-decoration: none;
    box-shadow: none !important;
}

#navLogin:hover,
#LinkButtonDashboard:hover {
    opacity: .92;
    text-decoration: none;
}

.back-header,
.head-login {
    display: none;
}

.main-orang-blog {
    margin: 0 auto 0 !important;
}


.auto-style5 {
    position: relative;
    min-height: 1px;
    float: left;
    width: 8.33333333%;
    color: #003399;
    padding-left: 15px;
    padding-right: 15px;
}

.mp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.mp-modal-box {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    position: relative;
    padding: 28px 28px 24px;
}

.mp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.mp-modal-close span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.mp-modal-close span:before,
.mp-modal-close span:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #2b3d59;
    transform: translate(-50%, -50%);
}

.mp-modal-close span:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mp-modal-close span:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mp-modal-close:hover span:before,
.mp-modal-close:hover span:after {
    background: #f26522;
}

.mp-contact,
.mp-contact-success {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 4px 4px;
    color: #243b5a;
    font-family: inherit;
}

.mp-contact-title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: #1b3155;
}

.mp-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.mp-form-row {
    display: flex;
    flex-direction: column;
}

.mp-form-row--full {
    grid-column: 1 / -1;
}

.mp-form-row label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #516784;
}

.mp-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7e0ee;
    border-radius: 14px;
    background: #fff;
    color: #203656;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mp-input:focus {
    outline: none;
    border-color: #2b5ce6;
    box-shadow: 0 0 0 4px rgba(43, 92, 230, .12);
}

.mp-input--textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.mp-contact-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.mp-contact-actions .rw-btn,
.mp-contact-actions input[type="submit"],
.mp-contact-actions input[type="button"],
.mp-contact-actions button {
    min-width: 150px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
}

.mp-contact-success {
    text-align: center;
    padding: 24px 8px 8px;
}

.mp-contact-success h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #1b3155;
}

.mp-contact-success p {
    margin: 0;
    font-size: 16px;
    color: #5a6f8d;
    line-height: 1.6;
}

@media (max-width: 991px) {
    #header .full_data {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mp-nav-wrap,
    .mp-actions {
        width: 100%;
    }

    .navbar-default .navbar-brand {
        display: inline-block;
        color: #241c15 !important;
        font-weight: 700;
    }

    .navbar-default .navbar-toggle {
        border-color: #d8c4b3;
    }

    .navbar-default .navbar-nav {
        display: block;
    }

    .navbar-default .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border-radius: 10px;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .mp-modal-box {
        padding: 22px 18px 18px;
    }

    .mp-contact-grid {
        grid-template-columns: 1fr;
    }

    .mp-contact-actions .rw-btn,
    .mp-contact-actions input[type="submit"],
    .mp-contact-actions input[type="button"],
    .mp-contact-actions button {
        width: 100%;
    }
}

/* Safe modal styling: raise z-index above fixed header and improve appearance
   without changing Bootstrap display or event behavior. */
.modal {
    z-index: 6000; /* above header (5000) */
}

.modal-backdrop {
    z-index: 5990;
    background-color: rgba(0,0,0,0.45);
}

.modal-dialog {
    max-width: 420px;
    margin: 30px auto;
}

.modal-content {
    border-radius: 10px;
    border: 1px solid #e6edf0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    background: #fff;
}

/* Scoped login modal styles */
#myModal .modal-body {
    padding: 22px 24px;
}

#myModal .brand {
    text-align: center;
    margin-bottom: 8px;
}
#myModal .brand img { max-height: 40px; }

#myModal .modal-title { text-align: center; font-size: 18px; font-weight: 700; color: #21323a; margin: 6px 0 6px; }
#myModal .modal-subtitle { text-align: center; color: #4b6367; font-size: 14px; margin-bottom: 14px; }

#myModal .form-group { margin-bottom: 12px; }
#myModal label { display: block; margin-bottom: 6px; color: #35484b; font-weight: 600; }

#myModal input[type="text"],
#myModal input[type="password"],
#myModal .mp-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe9ea;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

#myModal .btn-login {
    display: block;
    width: 100%;
    background: #007c80; /* teal */
    color: #fff;
    border: 0;
    padding: 12px 14px;
    margin-top: 12px;
    border-radius: 6px;
    font-weight: 700;
}

#myModal .links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
#myModal .links a { color: #007c80; text-decoration: none; font-weight: 600; }
#myModal .links a:hover { text-decoration: underline; }

#myModal .note { text-align: center; color: #7a8c8e; font-size: 13px; margin-top: 14px; }

@media (max-width: 480px) {
    .modal-dialog { max-width: 92%; margin: 80px auto; }
}
.modal {
    z-index: 6000; /* header is 5000 */
}

.modal-backdrop {
    z-index: 5990;
    background-color: rgba(0,0,0,0.45);
}

.modal-dialog {
    max-width: 760px;
    margin: 30px auto; /* keeps default Bootstrap behaviour on small screens */
}

.modal-content {
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* On larger screens try to vertically center the dialog without altering
   Bootstrap's core display rules. This uses margin-top to approximate centering. */
@media (min-width: 768px) {
    .modal .modal-dialog {
        margin-top: 100px;
        margin-bottom: 40px;
    }
}

/* Ensure modal sits below header on very small screens */
@media (max-width: 480px) {
    .modal .modal-dialog { margin-top: 70px; }
}

/* Enhanced login modal styling for a cleaner look */
#myModal .modal-content {
    border-radius: 12px;
    overflow: visible;
}
#myModal .modal-header {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
}
#myModal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
#myModal .modal-header .close {
    background: transparent;
    border: 0;
    color: #999;
    font-size: 20px;
    opacity: 0.9;
}
#myModal .modal-body {
    padding: 18px;
    background: #fff;
}
#myModal label {
    display: inline-block;
    width: 110px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
#myModal input[type="text"],
#myModal input[type="password"],
#myModal .mp-input {
    width: 240px;
    max-width: calc(100% - 120px);
    padding: 8px 10px;
    border: 1px solid #d7e0ee;
    border-radius: 6px;
    background: #fff;
}
#myModal .login-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
#myModal .login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
#myModal .btn-login,
#myModal .login-btn {
    background: #ef953f;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 700;
}
#myModal .remember {
    display: flex;
    align-items: center;
    gap: 8px;
}
#myModal .forgot-link {
    color: #1e88e5;
    text-decoration: none;
}
#myModal .forgot-link:hover { text-decoration: underline; }
#myModal .signup-links a { color: #ef953f; font-weight: 700; text-decoration: none; }
#myModal .signup-links a:hover { text-decoration: underline; }

/* Tidy up small footer note */
#myModal .modal-body .note {
    color: #666;
    font-size: 13px;
    margin-top: 12px;
}
.mp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 29, 53, .55);
    z-index: 9999;
    padding: 24px;
}

.mp-modal-box {
    position: relative;
    width: min(960px, 100%);
    margin: 40px auto 0;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
    padding: 28px;
}

.mp-modal-box--login {
    width: min(760px, 100%);
}

.mp-modal-open {
    overflow: hidden;
}

.mp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f3f6fb;
    cursor: pointer;
}

    .mp-modal-close span {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
    }

        .mp-modal-close span:before,
        .mp-modal-close span:after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 2px;
            background: #2b3d59;
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .mp-modal-close span:after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }





