/**
 * Nxtlogic - PhD Journal Publication Services (combined)
 * Used by phd-research-journal-publication-services.php
 */

:root {
    --brand: #919c23;
    --brand-600: #919c23;
    --brand-700: #919c23;
    --text: #1f2937;
    --muted: #6b7280;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --row-hover: #f3f4ff;
    --chip-bg: rgba(230, 233, 208, 1);
    --chip-border: rgba(230, 233, 208, 1);
    /* journals-page variables */
    --sub-color-brand-primary: #919c23;
    --sub-color-brand-primary-darker: #7a8420;
    --sub-color-overlay-65: rgba(0, 0, 0, 0.35);
    --sub-color-text-muted-short: #6b7280;
    --sub-color-bg-darkest-short: #1f2937;
    --sub-color-bg-lightest: #f8fafc;
    --sub-color-text-secondary-short: #374151;
}

body {
    background: linear-gradient(180deg, #f7f7ff, #fff);
}

/* ========== Hero & page sections (from journals-page) ========== */
.nxt-jrn-hero {
    position: relative;
    height: 400px;
    background-image: url('https://www.nxtlogic.com/images/nxtlogic_journal.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.nxt-jrn-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--sub-color-overlay-65);
    z-index: 1;
}

.nxt-jrn-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.nxt-jrn-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.nxt-highlight {
    color: var(--sub-color-brand-primary);
    font-weight: bold;
}

.nxt-search-console {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-top: 5px solid var(--sub-color-brand-primary);
}

.nxt-form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 15px;
}

.nxt-btn-search {
    height: 50px;
    background: var(--sub-color-brand-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    padding: 0 30px;
    transition: 0.3s;
}

.nxt-btn-search:hover {
    background: var(--sub-color-brand-primary-darker);
    cursor: pointer;
}

.nxt-btn-reset {
    color: var(--sub-color-text-muted-short);
    text-decoration: underline;
    margin-left: 15px;
    font-size: 14px;
}

.nxt-category-card {
    border: 1px solid #e5e7eb; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.08); /* Slightly lifted shadow */
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.nxt-cat-header {
    background: #1c1c1a; /* Light black / Charcoal gray */
    color: #ffffff; /* White text for clear contrast */
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nxt-cat-header i {
    color: #919c23; /* Keeps your green accent for the icon */
}
.nxt-intro-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--sub-color-text-secondary-short);
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.link-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background-color: var(--sub-color-brand-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: 0.2s;
}

.link-badge:hover {
    background-color: var(--sub-color-bg-darkest-short);
    color: #fff;
    text-decoration: none;
}

.link-badge.empty {
    background-color: #eee;
    color: #aaa;
    cursor: default;
}

.page-link {
    color: var(--sub-color-brand-primary);
}

.page-item.active .page-link {
    background-color: var(--sub-color-brand-primary);
    border-color: var(--sub-color-brand-primary);
}

/* ========== Toolbar (from journals) ========== */
.toolbar {
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(108, 92, 231, .25);
}

.toolbar h3 {
    font-weight: 700;
    letter-spacing: .2px;
}

.toolbar .form-controljor,
.toolbar .custom-select {
    border-radius: 999px !important;
    border: none;
    padding: .40rem 2.95rem;
}

.toolbar .btn-primary {
    border-radius: 999px;
    background: #fff;
    color: var(--brand-700);
    border: none;
    font-weight: 600;
}

.toolbar .btn-primary:hover {
    background: #f1efff;
    color: var(--brand-700);
}

.toolbar .btn-link {
    color: #fff;
    opacity: .9;
}

.toolbar .btn-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========== Card & table (from journals) ========== */
.card.elevated {
    border: none;
    border-radius: 0;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .08);
}

.table thead th {
    background: var(--surface-2) !important;
    color: var(--text);
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.journal-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    /* CHANGED: Background to white */
    background: #fff !important; 
    /* CHANGED: Text color to green */
    color: #919c23; 
    border-bottom: 2px solid #919c23 !important;
    border-top: 1px solid #919c23 !important;
    /* CHANGED: Removed text-shadow for a cleaner look on a white background */
    text-align: center;
    vertical-align: middle;
}

.journal-table thead th:first-child {
    border-top-left-radius: 0;
}

.journal-table thead th:last-child {
    border-top-right-radius: 0;
}

.journal-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #919c23;
    overflow: hidden;
}

.journal-table th {
    text-align: center;
    vertical-align: middle;
}

.journal-table thead th,
.journal-table tbody td {
    border-right: 1px solid #919c23 !important;
    border-left: 1px solid #919c23 !important;
    border-bottom: 1px solid #919c23 !important;
}

.journal-table tbody td {
    border-top: 1px solid #919c23 !important;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--sub-color-text-secondary-short);
}

.journal-table tbody tr:hover td {
    background: rgba(145, 156, 35, 0.08);
}
.link-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    text-decoration: none !important;
    transition: transform .08s ease;
    line-height: 1;
}

.link-chip svg {
    width: 14px;
    height: 14px;
    opacity: .9;
}

.link-chip,
.link-chip:link,
.link-chip:visited {
    color: var(--brand-700) !important;
}

.link-chip:hover {
    transform: translateY(-1px);
    background: rgba(108, 92, 231, .18);
    color: var(--brand-700) !important;
}

.link-chip:active {
    transform: translateY(0);
}

.cell-notes {
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    background: #fff;
    border-top: 1px solid #eef2ff;
}

.pagination .page-link {
    border-radius: 10px;
    border: none;
    margin: 0 2px;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background: var(--brand);
    color: #fff;
}

.category-header {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 0;
    padding: 0.75rem 1rem;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.category-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-soft {
    padding: .35rem .55rem;
    border-radius: 999px;
    font-weight: 600;
    background: #eef2ff;
    color: #3949ab;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .cell-notes {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .nxt-jrn-hero h1 {
        font-size: 1.8rem;
    }
    .nxt-search-console {
        padding: 20px;
        margin-top: 0;
    }
}
