:root {
    --pub-primary: #2563eb;
    --pub-primary-dark: #0f2f55;
    --pub-primary-soft: #eff6ff;
    --pub-border: #dbe5f0;
    --pub-text: #102a43;
    --pub-muted: #627d98;
    --pub-surface: #ffffff;
    --pub-background: #f4f7fb;
    --pub-danger: #d94a5a;
    --pub-shadow: 0 16px 42px rgba(15, 47, 85, .10);
}

body.publication-editor #wrapper > .content {
    background: var(--pub-background);
}

body.publication-editor #wrapper > .content > section {
    min-height: 70vh;
    padding: 48px 0 76px !important;
}

body.publication-editor .small-container {
    max-width: 980px;
}

body.publication-editor .section-title,
body.publication-editor .dashboard-title {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px;
    padding: 30px 34px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f2f55 0%, #2563eb 72%, #60a5fa 100%);
    box-shadow: 0 14px 34px rgba(37, 99, 235, .22);
    color: #fff;
    text-align: left;
}

body.publication-editor .section-title::after,
body.publication-editor .dashboard-title::after {
    position: absolute;
    top: -65px;
    right: -35px;
    width: 190px;
    height: 190px;
    border: 30px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: '';
}

body.publication-editor .section-title h2,
body.publication-editor .dashboard-title h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -.5px;
}

body.publication-editor .section-title p,
body.publication-editor .section-title .section-subtitle {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: 15px;
    line-height: 1.65;
}

body.publication-editor .section-title .section-separator {
    display: none;
}

body.publication-editor .small-container > form,
body.publication-editor .col-md-9 > form,
body.publication-editor .mc-card-body > form,
body.publication-editor form.block_box {
    padding: 30px !important;
    border: 1px solid var(--pub-border);
    border-radius: 18px !important;
    background: var(--pub-surface);
    box-shadow: var(--pub-shadow);
}

body.publication-editor .mc-card {
    border: 1px solid var(--pub-border);
    border-radius: 18px;
    box-shadow: var(--pub-shadow);
}

body.publication-editor .mc-card-body > form {
    padding: 0 !important;
    border: 0;
    box-shadow: none;
}

body.publication-editor label,
body.publication-editor .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--pub-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}

body.publication-editor .form-control,
body.publication-editor .form-select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cbd8e6;
    border-radius: 10px;
    background-color: #fbfdff;
    color: var(--pub-text);
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.publication-editor textarea.form-control {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

body.publication-editor .form-control:focus,
body.publication-editor .form-select:focus {
    border-color: var(--pub-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    outline: none;
}

body.publication-editor input[type='file'].form-control,
body.publication-editor input[type='file'] {
    min-height: 48px;
    padding: 8px;
    border: 1px dashed #93c5fd;
    border-radius: 10px;
    background: var(--pub-primary-soft);
}

body.publication-editor input[type='file']::file-selector-button {
    margin-right: 12px;
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    background: #dbeafe;
    color: var(--pub-primary-dark);
    font-weight: 700;
    cursor: pointer;
}

body.publication-editor .form-text,
body.publication-editor .text-muted {
    color: var(--pub-muted) !important;
    font-size: 12px;
    line-height: 1.5;
}

body.publication-editor .form-check {
    padding: 14px 16px 14px 42px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

body.publication-editor .form-check-input:checked {
    border-color: var(--pub-primary);
    background-color: var(--pub-primary);
}

body.publication-editor .alert {
    margin-bottom: 20px;
    padding: 15px 18px;
    border: 0;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a5f;
}

body.publication-editor .alert-warning {
    border-left-color: #f3b529;
    background: #fff9e8;
    color: #72510a;
}

body.publication-editor .alert-danger {
    border-left-color: var(--pub-danger);
    background: #fff1f2;
    color: #9f3441;
}

body.publication-editor .form-section {
    margin: 30px 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--pub-border);
    color: var(--pub-primary-dark);
    font-size: 18px;
    font-weight: 800;
}

body.publication-editor .btn-primary,
body.publication-editor .color2-bg,
body.publication-editor .btn-success {
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.publication-editor .btn-primary:hover,
body.publication-editor .color2-bg:hover,
body.publication-editor .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 24px rgba(37, 99, 235, .28);
}

body.publication-editor .img-thumbnail {
    border: 3px solid #fff;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(15, 47, 85, .16);
}

body.publication-editor .mc-panel-nav {
    padding: 12px;
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 47, 85, .07);
}

body.publication-hub #wrapper > .content > section {
    min-height: 70vh;
    padding: 48px 0 76px !important;
}

body.publication-hub #wrapper > .content > section > .container {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

body.publication-hub .section-title {
    float: none;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

body.publication-hub .section-title + .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.publication-hub .section-title + .row::before,
body.publication-hub .section-title + .row::after {
    display: none !important;
    content: none !important;
}

body.publication-hub .section-title + .row > div {
    display: flex;
    float: none !important;
    position: relative;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    min-height: 178px;
    margin: 0 !important;
    padding: 25px;
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 47, 85, .08);
    box-sizing: border-box;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.publication-hub .section-title + .row > div:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 36px rgba(37, 99, 235, .14);
}

body.publication-hub .section-title + .row h3 {
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.25;
}

body.publication-hub .section-title + .row h3 a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pub-primary-dark);
    font-size: 19px;
    font-weight: 800;
}

body.publication-hub .section-title + .row i {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 11px;
    background: #dbeafe;
    color: var(--pub-primary);
    place-items: center;
}

body.publication-hub .section-title + .row p {
    flex: 1;
    margin: 0;
    color: var(--pub-muted);
    line-height: 1.6;
}

body.publication-hub .section-title + .row hr {
    display: none;
}

@media (max-width: 991px) {
    body.publication-hub .section-title + .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.publication-editor #wrapper > .content > section,
    body.publication-hub #wrapper > .content > section {
        padding: 28px 0 52px !important;
    }

    body.publication-editor .section-title,
    body.publication-editor .dashboard-title,
    body.publication-editor .small-container > form,
    body.publication-editor .col-md-9 > form,
    body.publication-editor form.block_box {
        padding: 22px !important;
        border-radius: 14px !important;
    }

    body.publication-editor .mc-card-body > form {
        padding: 0 !important;
    }

    body.publication-hub .section-title + .row {
        grid-template-columns: 1fr;
    }
}
