.news-detail-page {
    max-width: 900px;
    margin: 25px auto;
    padding: 24px 24px 40px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.news-list-page {
    max-width: 900px;
    margin: 25px auto;
    padding: 24px 24px 40px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.news-detail-status {
    color: #4b5563;
    font-size: 16px;
}

.news-list-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-list-title {
    margin: 0;
    color: #2f3640;
    font-size: clamp(24px, 4vw, 32px);
}

.news-list-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-list-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    text-decoration: none;
}

.news-list-card:hover {
    border-color: #ffd89c;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.news-list-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
}

.news-list-card-title {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 20px;
    line-height: 1.3;
}

.news-list-card-meta {
    margin: 0 0 6px;
    color: #f49d10;
    font-size: 14px;
    font-weight: 700;
}

.news-list-card-summary {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.news-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.news-list-page-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
}

.news-list-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.news-list-page-text {
    font-weight: 700;
    color: #1f2937;
}

@media (max-width: 700px) {
    .news-list-card {
        grid-template-columns: 1fr;
    }

    .news-list-image {
        height: 190px;
    }
}

.news-detail-date {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    font-weight: 700;
}

.news-detail-title {
    margin: 8px 0 10px;
    color: #2f3640;
    font-size: clamp(25px, 4.1vw, 33px);
    line-height: 1.16;
}

.news-detail-meta {
    margin: 0 0 18px;
    color: #2f3640;
    font-size: 16px;
    font-weight: 600;
}

.news-detail-tag {
    color: #f49d10;
    font-weight: 700;
    text-decoration: none;
}

.news-detail-tag:hover {
    color: #e68900;
}

.news-detail-image {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ececec;
}

.news-detail-content {
    margin-top: 24px;
}

.news-detail-content p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
}

.news-inline-author {
    color: #f49d10;
    font-weight: 600;
    text-decoration: none;
}

.news-inline-author:hover {
    color:#e68900;
}

.news-inline-link {
    color: #ff9800;
    font-weight: 600;
    text-decoration: none;
}

.news-inline-link:hover {
    color: #e68900;
}

.news-detail-authors {
    margin-top: 24px;
    padding: 16px;
    background-color: #f9fafb;
    border-left: 4px solid #f49d10;
    border-radius: 4px;
    font-size: 15px;
    color: #374151;
}

.news-detail-authors strong {
    color: #1f2937;
    font-weight: 600;
}

.news-detail-authors a {
    color: #f49d10;
    text-decoration: none;
    font-weight: 500;
}

.news-detail-authors a:hover {
    text-decoration: underline;
}

.news-detail-links {
    margin-top: 18px;
}

.news-share {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.news-share-label {
    color: #1f2937;
    font-size: 17px;
    font-weight: 700;
}

.news-share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-share-btn {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}   

.news-share-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.news-share-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.news-share-btn-copy {
    width: 27px;
    min-width: 27px;
    border-radius: 50%;
    padding: 0;
}

.news-detail-external-link {
    display: inline-block;
    color: #f49d10;
    text-decoration: none;
    font-weight: 700;
}

.news-detail-external-link:hover {
    text-decoration: underline;
}

.news-admin-panel {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 22px;
}

.news-admin-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.news-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-admin-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #2f3640;
}

.news-admin-form-grid input,
.news-admin-form-grid textarea {
    margin: 0;
}

    .news-admin-help {
        display: block;
        margin-top: 6px;
        color: #6b7280;
        font-size: 12px;
    }

.news-admin-form-grid textarea {
    resize: vertical;
}

.news-admin-span-2 {
    grid-column: span 2;
}

.news-admin-image-preview {
    margin-top: 8px;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.news-admin-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.news-admin-checkbox input {
    margin: 0;
    width: 18px;
    height: 18px;
}

.news-admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-edit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #fb8500 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.news-edit-btn:hover {
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.news-edit-btn:active {
    transform: translateY(0);
}

.news-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.news-modal-backdrop.is-open {
    display: flex;
}

.news-modal {
    background: white;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.news-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #2f3640;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.news-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.news-modal-body {
    padding: 0 24px 24px;
}

.news-admin-authors-section {
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.news-admin-authors-section label {
    display: block;
    font-weight: 600;
    color: #2f3640;
    margin-bottom: 10px;
}

.news-admin-authors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.news-admin-author-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.news-admin-author-item span {
    flex: 1;
    color: #374151;
    font-size: 14px;
}

.news-admin-author-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.news-admin-author-remove:hover {
    background: #fecaca;
}

.news-admin-authors-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.news-admin-authors-modal.is-open {
    display: flex;
}

.news-admin-authors-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.news-admin-authors-modal-header {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #2f3640;
}

.news-admin-authors-list-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-admin-author-option {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-admin-author-option:hover {
    background: #f3f4f6;
    border-color: #ff9800;
}

.news-admin-author-option-name {
    display: block;
    font-weight: 600;
    color: #2f3640;
    margin-bottom: 2px;
}

.news-admin-author-option-role {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.btn-secondary {
    padding: 8px 14px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.news-connections {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #e5e7eb;
}

.news-neighbor-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-neighbor-card {
    display: block;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-neighbor-card:hover {
    transform: translateY(-2px);
    border-color: #f49d10;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.news-neighbor-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.news-neighbor-headline {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.news-neighbor-summary {
    margin: 10px 0 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.news-neighbor-date {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .news-detail-page {
        padding: 20px 16px 32px;
        margin: 20px 12px;
    }

    .news-detail-title {
        font-size: clamp(26px, 7.4vw, 34px);
    }

    .news-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .news-admin-span-2 {
        grid-column: span 1;
    }

    .news-admin-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-neighbor-nav {
        grid-template-columns: 1fr;
    }

    .news-share-label {
        font-size: 25px;
    }
}
