/* =========================================
   Modern Button Style for OJS Default Theme
   ให้เข้ากับ NCPD2026 HTML Theme
========================================= */

.cmp_button,
.cmp_form .buttons button,
.page_lost_password .buttons button,
.page_search .submit button,
.block_make_submission a {

    display: inline-block;
    padding: 0.72rem 1.4rem;

    background: linear-gradient(135deg, #274c77, #3f72af);

    border: none;
    border-radius: 12px;

    box-shadow:
        0 4px 14px rgba(39, 76, 119, 0.18);

    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #ffffff !important;
    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;

    cursor: pointer;
}

/* Hover */

.cmp_button:hover,
.cmp_form .buttons button:hover,
.page_lost_password .buttons button:hover,
.page_search .submit button:hover,
.block_make_submission a:hover {

    background: linear-gradient(135deg, #315d91, #4b84c4);

    box-shadow:
        0 8px 22px rgba(39, 76, 119, 0.25);

    transform: translateY(-1px);

    color: #ffffff !important;
    text-decoration: none;
}

/* Active */

.cmp_button:active,
.cmp_form .buttons button:active,
.page_lost_password .buttons button:active,
.page_search .submit button:active,
.block_make_submission a:active {

    transform: translateY(0);
    box-shadow:
        0 3px 10px rgba(39, 76, 119, 0.18);
}

/* Mobile */

@media (max-width: 768px) {

    .cmp_button,
    .cmp_form .buttons button,
    .page_lost_password .buttons button,
    .page_search .submit button,
    .block_make_submission a {

        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.94rem;
    }
}