.activity-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    overflow-y: auto;
}

[data-theme="dark"] .activity-modal-overlay {
    background: rgba(0, 0, 0, 0.92);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.activity-modal {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.4s ease forwards;
    position: relative;
}

[data-theme="dark"] .activity-modal {
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes modalSlideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

[data-theme="dark"] .modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

[data-theme="dark"] .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-newspaper-header {
    background: linear-gradient(135deg, #0d5e38ff 0%, #0d5e38ff 100%);
    color: white;
    padding: 40px 30px 30px;
    border-bottom: 4px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .modal-newspaper-header {
    background: linear-gradient(135deg, #0a4a2c 0%, #0a4a2c 100%);
    border-bottom: 4px solid #d97706;
}

.modal-newspaper-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" opacity="0.05" fill="white">📰</text></svg>');
    background-size: 200px;
    opacity: 0.1;
}

.modal-newspaper-masthead {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.modal-newspaper-logo {
    font-family: 'Georgia', serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 5px;
}

[data-theme="dark"] .modal-newspaper-logo {
    color: #fbbf24;
}

.modal-newspaper-tagline {
    font-size: 11px;
    color: #cbd5e1;
    font-style: italic;
    letter-spacing: 1px;
}

[data-theme="dark"] .modal-newspaper-tagline {
    color: #94a3b8;
}

.modal-newspaper-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    margin: 15px 0;
}

[data-theme="dark"] .modal-newspaper-divider {
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

.modal-header-title {
    font-family: 'Georgia', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 15px 0;
    text-align: center;
}

.modal-header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #cbd5e1;
}

[data-theme="dark"] .modal-header-meta {
    color: #94a3b8;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-meta-item i {
    color: #f59e0b;
}

[data-theme="dark"] .modal-meta-item i {
    color: #fbbf24;
}

.modal-category-badge {
    background: #f59e0b;
    color: #0d5e38ff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .modal-category-badge {
    background: #d97706;
    color: #f0fdf4;
}

.modal-body {
    padding: 0;
}

.modal-feature-media {
    width: 100%;
    position: relative;
    background: #f1f5f9;
}

[data-theme="dark"] .modal-feature-media {
    background: #0f172a;
}

.modal-feature-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-article-content {
    padding: 40px 50px;
    background: white;
}

[data-theme="dark"] .modal-article-content {
    background: #1a1a1a;
}

.modal-article-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #0d5e38ff;
    font-weight: 500;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid #f59e0b;
    font-family: 'Georgia', serif;
    font-style: italic;
}

[data-theme="dark"] .modal-article-lead {
    color: #86efac;
    border-left: 4px solid #fbbf24;
}

.modal-article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #0d5e38ff;
    font-family: 'Georgia', serif;
    text-align: justify;
    column-count: 1;
    column-gap: 40px;
}

[data-theme="dark"] .modal-article-body {
    color: #d1d5db;
}

.modal-article-body p {
    margin-bottom: 20px;
}

.modal-article-body p:first-letter {
    font-size: 3em;
    line-height: 0.8;
    float: left;
    margin: 8px 8px 0 0;
    color: #f59e0b;
    font-weight: 700;
}

[data-theme="dark"] .modal-article-body p:first-letter {
    color: #fbbf24;
}

.modal-footer {
    padding: 30px 50px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .modal-footer {
    background: #0f0f0f;
    border-top: 1px solid #374151;
}

.modal-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
}

[data-theme="dark"] .modal-footer-info {
    color: #9ca3af;
}

.modal-share-buttons {
    display: flex;
    gap: 10px;
}

.modal-share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

[data-theme="dark"] .modal-share-btn {
    border: 1px solid #4b5563;
    background: #262626;
    color: #9ca3af;
}

.modal-share-btn:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
    transform: translateY(-2px);
}

[data-theme="dark"] .modal-share-btn:hover {
    background: #d97706;
    border-color: #d97706;
}

@media (max-width: 768px) {
    .activity-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .activity-modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .modal-newspaper-header {
        padding: 30px 20px 20px;
    }

    .modal-header-title {
        font-size: 24px;
    }

    .modal-article-content {
        padding: 30px 20px;
    }

    .modal-article-lead {
        font-size: 17px;
        padding-left: 15px;
    }

    .modal-article-body {
        font-size: 16px;
        column-count: 1;
    }

    .modal-footer {
        padding: 20px;
    }

    .modal-footer-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .modal-header-title {
        font-size: 20px;
    }

    .modal-article-lead {
        font-size: 16px;
    }

    .modal-article-body {
        font-size: 15px;
    }

    .modal-header-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.activity-modal::-webkit-scrollbar {
    width: 8px;
}

.activity-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="dark"] .activity-modal::-webkit-scrollbar-track {
    background: #0f172a;
}

.activity-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

[data-theme="dark"] .activity-modal::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.activity-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[data-theme="dark"] .activity-modal::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.modal-content-fade-in {
    animation: contentFadeIn 0.5s ease forwards;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-link-primary {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 0;
}

[data-theme="dark"] .btn-link-primary {
    color: #818cf8;
}

.btn-link-primary:hover {
    color: #4f46e5;
    gap: 8px;
}

[data-theme="dark"] .btn-link-primary:hover {
    color: #a5b4fc;
}

.btn-link-primary i {
    transition: transform 0.3s ease;
}

.btn-link-primary:hover i {
    transform: translateX(3px);
}