/*
Theme Name: Marathon Key Pro
Theme URI: https://marathonkeyconstructionllc.sbs/
Author: Marathon Key Construction
Description: Tema corporativo ligero para Marathon Key Construction L.L.C.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: marathon-key-pro
*/


/* MARATHON CLIENT PORTAL */

.mk-client-form {
    width: min(100% - 32px, 480px);
    margin: 60px auto;
    padding: 36px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 35, 65, .12);
}

.mk-client-form h2 {
    color: #063b60;
    margin-bottom: 8px;
}

.mk-client-form p {
    color: #657586;
}

.mk-client-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

.mk-client-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d5e0e8;
    border-radius: 9px;
    font-size: 15px;
    background: #fff;
    color: #18364b;
}

.mk-client-form input:focus {
    outline: none;
    border-color: #008ec4;
    box-shadow: 0 0 0 3px rgba(0,142,196,.12);
}

.mk-client-form button {
    padding: 15px;
    background: linear-gradient(135deg,#007fb4,#06466e);
    color: white;
    border: none;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.mk-client-form button:hover {
    filter: brightness(1.1);
}

.mk-client-form .mk-success {
    color: #137548;
}

.mk-client-form .mk-error {
    color: #b42318;
}

@media(max-width:600px) {
    .mk-client-form {
        margin: 30px auto;
        padding: 24px;
    }
}


/* MARATHON CLIENT ACCOUNT */

.mk-account {
    max-width: 650px;
}

.mk-account-details {
    background: #f2f8fc;
    border: 1px solid #dce9f2;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.mk-account-details p {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid #dce9f2;
}

.mk-account-details p:last-child {
    border-bottom: none;
}

.mk-logout {
    display: inline-block;
    padding: 13px 25px;
    background: #075078;
    color: #fff !important;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 600;
}

.mk-logout:hover {
    background: #003b60;
}


/* MARATHON CLIENT ACCESS */

.mk-auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 18px;
}

.mk-auth-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s ease;
}

.mk-auth-login {
    color: #075078;
    border: 1px solid #075078;
}

.mk-auth-login:hover {
    background: #edf7fc;
}

.mk-auth-register {
    color: #fff !important;
    background: linear-gradient(135deg,#008bc2,#06466e);
    box-shadow: 0 4px 12px rgba(0,90,140,.18);
}

.mk-auth-register:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

@media(max-width:768px) {
    .mk-auth-nav {
        flex-direction: column;
        align-items: stretch;
        margin: 15px 0 0;
        width: 100%;
    }

    .mk-auth-nav a {
        width: 100%;
        text-align: center;
        padding: 13px;
    }
}

/* Campo antispam del registro */
.mk-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* MARATHON PROJECT DASHBOARD */

.mk-project-dashboard {
    max-width: 960px;
    margin: 50px auto;
    padding: 25px;
}

.mk-project-dashboard h2 {
    color: #06466e;
}

.mk-project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.mk-project-stats > div {
    background: #f0f7fc;
    padding: 25px;
    border-radius: 14px;
}

.mk-project-stats span {
    display: block;
    color: #536b7b;
}

.mk-project-stats strong {
    display: block;
    font-size: 34px;
    color: #075078;
    margin-top: 10px;
}

.mk-new-project {
    display: inline-block;
    background: linear-gradient(135deg,#008bc2,#06466e);
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 25px;
}

.mk-project-list {
    display: grid;
    gap: 15px;
}

.mk-project-card {
    background: #fff;
    padding: 22px;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,40,80,.05);
}

.mk-project-card h3 {
    margin: 0 0 8px;
    color: #06466e;
}

.mk-project-status {
    display: inline-block;
    background: #e8f3fb;
    color: #075078;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.mk-project-card small {
    display: block;
    margin-top: 12px;
    color: #687e8e;
}

.mk-project-form select,
.mk-project-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d5e0e8;
    border-radius: 9px;
    font: inherit;
}

@media (max-width: 600px) {
    .mk-project-stats {
        grid-template-columns: 1fr;
    }
    .mk-project-dashboard {
        padding: 16px;
    }
}

/* Project Photo Upload */

.mk-photo-upload {
    margin: 24px 0;
    padding: 20px;
    background: #f0f7fc;
    border: 1px dashed #87b9d4;
    border-radius: 12px;
}

.mk-photo-upload label {
    display: block;
    font-weight: 700;
    color: #06466e;
    margin-bottom: 12px;
}

.mk-photo-upload input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.mk-photo-upload small {
    color: #536b7b;
    line-height: 1.6;
}
/* PRIVATE PROJECT PHOTO GALLERY */

.mk-project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.mk-project-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #eaf2f7;
    aspect-ratio: 1;
}

.mk-project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.mk-project-gallery a:hover img {
    transform: scale(1.06);
}

/* MARATHON PROJECT DETAILS */

.mk-project-details {
    max-width: 1050px;
    margin: 45px auto;
    padding: 30px;
    color: #18384b;
}

.mk-back-link {
    display: inline-block;
    color: #087ba9;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
}

.mk-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.mk-details-header h1 {
    color: #06466e;
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 8px;
}

.mk-details-header p {
    color: #6b8190;
    margin: 0;
}

.mk-details-status {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: #e8f3fb;
    color: #075078;
}

.mk-status-in_progress {
    background: #dff2ff;
    color: #075a9b;
}

.mk-status-completed {
    background: #e2f7ea;
    color: #197647;
}

.mk-status-cancelled {
    background: #fde9e9;
    color: #a43b3b;
}

.mk-details-section {
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: 0 5px 20px rgba(0,40,80,.04);
}

.mk-details-section h2 {
    color: #06466e;
    margin-top: 0;
    font-size: 22px;
}

.mk-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.mk-details-grid strong {
    color: #536b7b;
    font-size: 13px;
}

.mk-details-grid p {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
}

.mk-description {
    line-height: 1.8;
    white-space: normal;
}

.mk-details-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.mk-details-gallery a {
    display: block;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #edf5fa;
}

.mk-details-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.mk-details-gallery a:hover img {
    transform: scale(1.06);
}

.mk-details-footer {
    text-align: center;
    padding: 28px;
    background: #edf6fc;
    border-radius: 16px;
}

.mk-details-footer a,
.mk-view-details {
    display: inline-block;
    background: linear-gradient(135deg, #008bc2, #06466e);
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
}

.mk-view-details {
    margin-top: 16px;
}

@media (max-width: 650px) {
    .mk-project-details {
        padding: 15px;
    }

    .mk-details-header {
        flex-direction: column;
    }

    .mk-details-grid {
        grid-template-columns: 1fr;
    }

    .mk-details-section {
        padding: 20px;
    }
}


/* MARATHON PROJECT HISTORY */

.mk-history-section {
    margin-top: 24px;
}

.mk-progress-stages {
    position: relative;
    padding: 8px 0 8px 16px;
}

.mk-progress-stages::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 20px;
    left: 22px;
    width: 2px;
    background: #d4e8f3;
}

.mk-timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
}

.mk-timeline-item:last-child {
    padding-bottom: 0;
}

.mk-timeline-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 4px;
    background: #078bc0;
    border: 3px solid #e0f4fc;
    box-shadow: 0 0 0 2px #078bc0;
}

.mk-timeline-content {
    flex: 1;
}

.mk-timeline-content strong {
    display: block;
    color: #06466e;
    font-size: 16px;
}

.mk-timeline-content p {
    margin: 7px 0;
    color: #516b7c;
}

.mk-timeline-content small {
    color: #8296a3;
    font-size: 12px;
}


/* MARATHON PROJECT MESSAGES */

.mk-messages-section {
    margin-top: 24px;
}

.mk-message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 18px;
    margin: 20px 0;
    background: #f1f7fb;
    border-radius: 14px;
}

.mk-message-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 15px;
    overflow-wrap: anywhere;
}

.mk-message-other {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #dce8ef;
}

.mk-message-mine {
    align-self: flex-end;
    background: #d9effc;
    border: 1px solid #b9dff5;
}

.mk-message-bubble strong {
    display: block;
    color: #06466e;
    font-size: 13px;
}

.mk-message-bubble p {
    margin: 8px 0;
    line-height: 1.6;
}

.mk-message-bubble small {
    color: #6b8494;
    font-size: 11px;
}

.mk-messages-section textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #cbdce7;
    border-radius: 10px;
    font: inherit;
    resize: vertical;
}

.mk-send-message {
    background: linear-gradient(135deg, #008bc2, #06466e);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 13px 24px;
    font-weight: 700;
    cursor: pointer;
}

.mk-send-message:hover {
    filter: brightness(1.1);
}

.mk-message-success {
    padding: 12px;
    background: #e2f7ea;
    color: #176b40;
    border-radius: 8px;
}

.mk-message-empty {
    color: #718898;
    text-align: center;
}

@media (max-width: 600px) {
    .mk-message-bubble {
        max-width: 92%;
    }
}


/* MARATHON - UNREAD MESSAGES */

.mk-unread-notice {
    background: #eaf6ff;
    border: 1px solid #b9def4;
    border-left: 4px solid #008bc2;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
}

.mk-unread-notice strong {
    display: block;
    color: #06466e;
    font-size: 18px;
}

.mk-unread-notice p {
    margin: 8px 0;
    color: #466579;
}

.mk-unread-notice a {
    color: #007ba9;
    font-weight: 700;
    text-decoration: none;
}

.mk-unread-badge {
    display: inline-block;
    padding: 7px 12px;
    margin: 8px 0;
    background: #fff0e8;
    color: #a63b16;
    border: 1px solid #ffd2bd;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}


/* MARATHON KEY CONSTRUCTION - ESTIMATES */

.mk-estimate {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 45, 80, 0.06);
}

.mk-estimate h2 {
    color: #073e60;
    margin-bottom: 15px;
}

.mk-estimate h3 {
    margin-top: 25px;
    color: #145777;
}

.mk-estimate-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    min-width: 440px;
}

.mk-estimate-table th,
.mk-estimate-table td {
    padding: 12px;
    border-bottom: 1px solid #e4edf3;
    text-align: left;
}

.mk-estimate-table th {
    background: #edf6fb;
    color: #17435c;
}

.mk-estimate-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
    padding: 18px;
    border-radius: 12px;
    background: #073e60;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.mk-estimate-total strong {
    color: #ffffff;
    font-size: 25px;
}

.mk-estimate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.mk-estimate-actions button {
    padding: 13px 20px;
    border: 0;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mk-estimate-approve {
    background: #087e58;
    color: #ffffff;
}

.mk-estimate-decline {
    background: #b83232;
    color: #ffffff;
}

.mk-estimate-actions button:hover {
    filter: brightness(1.1);
}

@media (max-width: 600px) {
    .mk-estimate {
        padding: 15px;
    }

    .mk-estimate-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .mk-estimate-actions {
        flex-direction: column;
    }

    .mk-estimate-actions button {
        width: 100%;
    }
}

.mk-estimate-download {
    display: inline-block;
    background: #08648a;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none !important;
    margin: 10px 0 18px;
}

.mk-estimate-download:hover {
    background: #073e60;
    color: #ffffff !important;
}
.mk-estimate-download {
    display: inline-block;
    padding: 12px 20px;
    background: #08648a;
    color: #fff !important;
    border-radius: 9px;
    text-decoration: none !important;
    font-weight: 700;
    margin: 10px 0 20px;
    transition: background 0.2s ease;
}

.mk-estimate-download:hover {
    background: #073e60;
    color: #fff !important;
}

/* MARATHON CLIENT DASHBOARD */

.mk-account {
    max-width: 1100px;
}

.mk-client-dashboard {
    margin: 30px 0;
}

.mk-dashboard-heading h2 {
    color: #073e60;
    margin-bottom: 8px;
}

.mk-dashboard-heading p {
    color: #61788a;
}

.mk-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0 35px;
}

.mk-dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, #eef7fc);
    border: 1px solid #dbeaf2;
    border-radius: 16px;
    text-decoration: none !important;
    color: #073e60 !important;
    box-shadow: 0 8px 24px rgba(4, 55, 90, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mk-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(4, 55, 90, .12);
}

.mk-dashboard-icon {
    font-size: 28px;
}

.mk-dashboard-card strong {
    font-size: 19px;
}

.mk-dashboard-card span:not(.mk-dashboard-icon) {
    font-size: 15px;
}

.mk-dashboard-card small {
    color: #667f91;
}

.mk-dashboard-estimates {
    margin-top: 35px;
    scroll-margin-top: 100px;
}

.mk-dashboard-estimates h2 {
    color: #073e60;
}

.mk-dashboard-estimate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px;
    margin: 15px 0;
    border: 1px solid #dbeaf2;
    border-radius: 14px;
    background: #ffffff;
}

.mk-dashboard-estimate-info h3 {
    margin: 0 0 10px;
    color: #073e60;
}

.mk-dashboard-estimate-info p {
    margin: 7px 0;
}

.mk-estimate-status {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.mk-status-sent {
    background: #fff3d6;
    color: #8a5a00;
}

.mk-status-approved {
    background: #dff7e9;
    color: #087447;
}

.mk-status-declined {
    background: #fde7e7;
    color: #a32222;
}

.mk-dashboard-estimate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.mk-dashboard-estimate-actions a {
    display: block;
    text-align: center;
    padding: 11px 16px;
    background: #edf6fb;
    color: #075078 !important;
    text-decoration: none !important;
    border-radius: 9px;
    font-weight: 700;
}

.mk-dashboard-estimate-actions .mk-dashboard-pdf {
    background: #075078;
    color: #ffffff !important;
}

.mk-dashboard-empty {
    padding: 25px;
    background: #f2f8fc;
    border-radius: 12px;
    color: #60798b;
}

@media (max-width: 600px) {
    .mk-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .mk-dashboard-estimate-card {
        flex-direction: column;
        align-items: stretch;
    }

    .mk-dashboard-estimate-actions {
        width: 100%;
    }
}


/* BACK TO MY ACCOUNT */

.mk-back-account-wrap {
    margin: 12px 0 25px;
}

.mk-back-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    background: #edf6fb;
    border: 1px solid #c9e1ef;
    color: #075078 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.mk-back-account:hover {
    background: #dceef8;
    color: #073e60 !important;
    transform: translateX(-3px);
}

@media (max-width: 600px) {
    .mk-back-account {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* MARATHON CLIENT LOGIN - ENLACES DESTACADOS */

.mk-client-form a:not(.mk-logout):not(.button):not(.mk-back-account) {
    color: #000000 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.mk-client-form a:not(.mk-logout):not(.button):not(.mk-back-account):hover {
    color: #08648a !important;
}

/* ==========================================
   MARATHON - CLIENT PROJECT CHAT
   Premium Messenger Style
   ========================================== */

/* Main chat section */
.mk-details-section.mk-messages-section {
    background: #ffffff;
    border: 1px solid #dce8f0;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 28px rgba(7, 49, 78, .06);
    margin: 25px 0;
}

/* Heading */
.mk-messages-section > h2 {
    color: #073e60;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
}

.mk-messages-section > p {
    color: #70889b;
    font-size: 14px;
}

/* Conversation area */
.mk-messages-section .mk-message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(145deg, #eef5fa, #f8fbfd);
    border: 1px solid #dce8f0;
    border-radius: 16px;
    padding: 22px;
    margin: 20px 0;
    max-height: 480px;
    overflow-y: auto;
}

/* Message bubbles */
.mk-messages-section .mk-message-bubble {
    display: block;
    width: fit-content;
    max-width: 78%;
    box-sizing: border-box;
    padding: 14px 17px;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 12px rgba(5, 40, 70, .05);
}

/* Client's own messages */
.mk-messages-section .mk-message-mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #075b85, #087faf);
    color: #ffffff;
    border: none;
    border-radius: 16px 16px 5px 16px;
}

/* Messages from Marathon Key Construction */
.mk-messages-section .mk-message-other {
    align-self: flex-start;
    background: #ffffff;
    color: #203e52;
    border: 1px solid #dce7ef;
    border-radius: 16px 16px 16px 5px;
}

/* Sender */
.mk-messages-section .mk-message-bubble strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
    color: inherit;
}

/* Message text */
.mk-messages-section .mk-message-bubble p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.65;
    color: inherit;
}

/* Timestamp */
.mk-messages-section .mk-message-bubble small {
    display: block;
    margin-top: 9px;
    font-size: 11px;
    opacity: .75;
    text-align: right;
    color: inherit;
}

/* Empty conversation */
.mk-messages-section .mk-message-empty {
    text-align: center;
    color: #70889b;
    padding: 35px 15px;
}

/* New message label */
.mk-messages-section label {
    display: block;
    color: #073e60;
    font-size: 14px;
    font-weight: 750;
    margin: 20px 0 10px;
}

/* Message textarea */
.mk-messages-section #mk-project-message {
    display: block;
    width: 100%;
    min-height: 120px;
    background: #f8fbfe;
    border: 1px solid #cbdfea;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.mk-messages-section #mk-project-message:focus {
    border-color: #087faf;
    box-shadow: 0 0 0 3px rgba(8, 127, 175, .13);
    outline: none;
}

/* Send Message button */
.mk-messages-section .mk-send-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 22px;
    background: #075b85;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(7, 91, 133, .16);
    transition: background .2s ease,
                transform .2s ease;
}

.mk-messages-section .mk-send-message:hover {
    background: #087faf;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Conversation scrollbar */
.mk-messages-section .mk-message-list::-webkit-scrollbar {
    width: 7px;
}

.mk-messages-section .mk-message-list::-webkit-scrollbar-thumb {
    background: #b9d3e3;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 782px) {
    .mk-details-section.mk-messages-section {
        padding: 15px;
    }

    .mk-messages-section .mk-message-list {
        padding: 12px;
        max-height: 400px;
    }

    .mk-messages-section .mk-message-bubble {
        max-width: 92%;
    }

    .mk-messages-section .mk-send-message {
        width: 100%;
    }
}

/* =========================================
   MARATHON - USERNAME IN TOP NAVIGATION
   ========================================= */

.site-nav .mk-nav-username {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(8, 119, 173, 0.09);
    border: 1px solid rgba(8, 119, 173, 0.18);
    color: #075b85;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Mobile */
@media (max-width: 768px) {
    .site-nav .mk-nav-username {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        margin: 6px 0;
    }
}
/* MARATHON - PROJECT PROGRESS TRACKER */

.mk-progress-section {
    background: #ffffff;
    border: 1px solid #dce8f0;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 26px rgba(7,49,78,.06);
}

.mk-progress-section h2 {
    color: #073e60;
    font-size: 22px;
    margin: 0 0 22px;
}

.mk-progress-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.mk-progress-top small {
    display: block;
    color: #70889b;
    margin-bottom: 6px;
}

.mk-progress-top strong {
    color: #073e60;
    font-size: 17px;
}

.mk-progress-percent {
    color: #087caf;
    font-size: 32px;
    font-weight: 800;
}

.mk-progress-track {
    height: 14px;
    background: #e3edf4;
    border-radius: 30px;
    overflow: hidden;
}

.mk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#075b85,#0ca4d7);
    border-radius: inherit;
    transition: width .4s ease;
}

.mk-progress-date {
    margin-top: 20px;
    color: #38576a;
}

.mk-progress-update {
    margin-top: 22px;
    padding: 17px;
    background: #f1f7fb;
    border-left: 4px solid #087caf;
    border-radius: 10px;
}

.mk-progress-update strong {
    color: #073e60;
}

.mk-progress-update p {
    margin: 8px 0 0;
    color: #38576a;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .mk-progress-section {
        padding: 17px;
    }

    .mk-progress-percent {
        font-size: 27px;
    }
}
/* MARATHON PROJECT TIMELINE */

.mk-project-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    position: relative;
    margin: 28px 0 24px;
}

.mk-project-timeline::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: #dce8f0;
    z-index: 0;
}

.mk-progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.mk-timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0f6;
    border: 3px solid #ffffff;
    color: #71899a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.mk-progress-stage.is-reached .mk-progress-dot {
    background: linear-gradient(135deg, #075b85, #0ca4d7);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(8,124,175,.24);
}

.mk-progress-label {
    color: #71899a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.mk-timeline-stage.is-reached .mk-timeline-label {
    color: #073e60;
}

@media (max-width: 600px) {
    .mk-project-timeline {
        gap: 3px;
    }

    .mk-timeline-dot {
        width: 31px;
        height: 31px;
        font-size: 12px;
    }

    .mk-project-timeline::before {
        top: 15px;
    }

    .mk-timeline-label {
        font-size: 10px;
    }
}
/* ============================================
   MARATHON KEY CONSTRUCTION
   PREMIUM PROJECT ACTIVITY TIMELINE
============================================ */

.mk-history-section {
    margin-top: 36px;
    padding: 30px !important;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #f3f7fd 100%
    );
    border: 1px solid #e0e9f5;
    box-shadow: 0 12px 35px rgba(12, 37, 71, 0.07);
}

.mk-history-section h2 {
    color: #102b4e;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 30px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e1eaf4;
}

/* Vertical timeline */

.mk-history-section .mk-project-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 5px 0 5px 0;
}

/* Vertical connecting line */

.mk-history-section .mk-project-timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 19px;
    width: 3px;
    background: linear-gradient(
        180deg,
        #1686ed,
        #80b7ed 55%,
        #dce8f5
    );
    border-radius: 10px;
}

/* Each activity */

.mk-history-section .mk-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

/* Activity dot */

.mk-history-section .mk-timeline-dot {
    position: relative;
    z-index: 2;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #0878dc,
        #00b4f4
    );
    border: 4px solid #ffffff;
    box-shadow:
        0 0 0 2px #c8e3ff,
        0 4px 14px rgba(0, 117, 226, 0.23);
}

/* Activity card */

.mk-history-section .mk-timeline-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e1eaf4;
    border-left: 4px solid #1686ed;
    border-radius: 15px;
    padding: 20px 23px;
    box-shadow: 0 5px 20px rgba(13, 46, 82, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.mk-history-section .mk-timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(13, 46, 82, 0.12);
    border-color: #b7d8f8;
}

/* Activity title */

.mk-history-section .mk-timeline-content strong {
    display: block;
    color: #12355a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Description */

.mk-history-section .mk-timeline-content p {
    color: #52677f;
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

/* Date */

.mk-history-section .mk-timeline-content small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #66819c;
    background: #f0f6fd;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Highlight newest activity */

.mk-history-section .mk-timeline-item:first-child
.mk-timeline-content {
    border-left-color: #00a8f0;
    background: linear-gradient(
        120deg,
        #ffffff,
        #f2f9ff
    );
}

.mk-history-section .mk-timeline-item:first-child
.mk-timeline-dot {
    background: linear-gradient(
        135deg,
        #0057c8,
        #00c3ff
    );
    box-shadow:
        0 0 0 3px #c7e8ff,
        0 0 20px rgba(0, 150, 255, 0.28);
}

/* Mobile */

@media (max-width: 600px) {

    .mk-history-section {
        padding: 20px 15px !important;
        border-radius: 16px;
    }

    .mk-history-section h2 {
        font-size: 21px;
    }

    .mk-history-section .mk-project-timeline {
        gap: 16px;
    }

    .mk-history-section .mk-project-timeline::before {
        left: 14px;
    }

    .mk-history-section .mk-timeline-item {
        gap: 13px;
    }

    .mk-history-section .mk-timeline-dot {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    .mk-history-section .mk-timeline-content {
        padding: 15px 14px;
        border-radius: 12px;
    }

    .mk-history-section .mk-timeline-content strong {
        font-size: 14px;
    }

    .mk-history-section .mk-timeline-content p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-history-section .mk-timeline-content {
        transition: none;
    }
}
