/**
 * JKUAT Innovation Club - News & Articles Page Styles
 * Properly scoped to prevent conflicts
 */

/* =========================
   Reset & Base Styles
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.news-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6;
    color: #ffffff !important;
    background: #0f172a url('/pages/shared/assets/images/backgrounds/tech-meeting-flatlay.jpg') center/cover fixed !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* padding-top handled by body inline style in HTML */
}

.news-page::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.5) !important;
    z-index: -1 !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

/* =========================
   Container & Layout
   ========================= */
.news-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .news-page .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .news-page .container {
        padding: 0 2rem;
    }
}

/* =========================
   Main Content
   ========================= */
.news-page .news-main {
    padding: 2rem 0 4rem;
}

/* =========================
   Page Header
   ========================= */
.news-page .news-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.news-page .header-content {
    position: relative;
    z-index: 2;
}

.news-page .header-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    gap: 0.75rem;
}

.news-page .header-badge i {
    color: #10b981;
    font-size: 1.125rem;
}

.news-page .header-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin: 2rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-page .header-title .line-1,
.news-page .header-title .line-2 {
    display: block;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.news-page .header-title .line-1 { 
    animation-delay: 0.2s; 
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-page .header-title .line-2 { 
    animation-delay: 0.4s; 
    color: white;
}

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

.news-page .header-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =========================
   Filters & Search
   ========================= */
.news-page .news-filters {
    margin-bottom: 3rem;
}

.news-page .filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.news-page .filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-page .filter-tab {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.news-page .filter-tab:hover,
.news-page .filter-tab.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.news-page .filter-tab i {
    font-size: 0.875rem;
}

.news-page .search-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.news-page .search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.news-page .search-box i {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.news-page .search-box input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: white;
    font-size: 0.875rem;
    width: 300px;
    transition: all 0.3s ease;
}

.news-page .search-box input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.news-page .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.news-page .search-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.news-page .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

/* =========================
   Pinned Announcements
   ========================= */
.news-page .pinned-announcements {
    margin-bottom: 4rem;
}

.news-page .section-header {
    margin-bottom: 2rem;
}

.news-page .section-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-page .section-header h2 i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.news-page .pinned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* =========================
   Content Header
   ========================= */
.news-page .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-page .content-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-page .sort-options select {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-page .sort-options select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.news-page .sort-options select option {
    background: #1e293b;
    color: white;
}

/* =========================
   News Grid
   ========================= */
.news-page .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* =========================
   News Cards
   ========================= */
.news-page .news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-page .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.news-page .news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.news-page .news-card.pinned {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.news-page .news-card.pinned:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 48px rgba(245, 158, 11, 0.1);
}

.news-page .news-card.announcement {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.news-page .news-card.announcement:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.news-page .card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-page .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-page .news-card:hover .card-image {
    transform: scale(1.05);
}

.news-page .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-page .news-card:hover .card-overlay {
    opacity: 1;
}

.news-page .card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.news-page .type-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-page .type-badge.announcement {
    background: rgba(239, 68, 68, 0.9);
}

.news-page .type-badge.news {
    background: rgba(59, 130, 246, 0.9);
}

.news-page .type-badge.article {
    background: rgba(16, 185, 129, 0.9);
}

.news-page .type-badge.event {
    background: rgba(245, 158, 11, 0.9);
}

.news-page .priority-badge {
    background: rgba(245, 158, 11, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-page .priority-badge.high {
    background: rgba(239, 68, 68, 0.9);
}

.news-page .priority-badge.urgent {
    background: rgba(220, 38, 127, 0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.news-page .card-content {
    padding: 1.5rem;
}

.news-page .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-page .card-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-page .card-author {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-weight: 500;
}

.news-page .card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.news-page .card-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.news-page .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.news-page .card-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.news-page .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-page .card-stats {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

.news-page .card-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-page .card-actions {
    display: flex;
    gap: 0.5rem;
}

.news-page .card-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-page .card-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.news-page .card-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.news-page .card-btn.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* =========================
   Loading & Empty States
   ========================= */
.news-page .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.news-page .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.news-page .loading-state p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.news-page .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.news-page .empty-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.news-page .empty-state h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-page .empty-state p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================
   Load More
   ========================= */
.news-page .load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.news-page .load-more-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.news-page .load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 768px) {
    .news-page {
        padding-top: 120px;
    }
    
    .news-page .news-main {
        padding: 1rem 0 3rem;
    }
    
    .news-page .header-title {
        font-size: 2.5rem;
    }
    
    .news-page .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .news-page .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .news-page .search-container {
        justify-content: center;
    }
    
    .news-page .search-box input {
        width: 250px;
    }
    
    .news-page .news-grid,
    .news-page .pinned-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-page .content-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .news-page .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-page .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .news-page .card-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-page .container {
        padding: 0 0.75rem;
    }
    
    .news-page .header-title {
        font-size: 2rem;
    }
    
    .news-page .header-description {
        font-size: 1rem;
    }
    
    .news-page .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .news-page .search-box input {
        width: 200px;
    }
    
    .news-page .card-content {
        padding: 1rem;
    }
    
    .news-page .card-title {
        font-size: 1.125rem;
    }
    
    .news-page .card-badges {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* =========================
   Footer Styles
   ========================= */
.news-page .footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    color: white;
}

.news-page .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-page .footer-section h3 {
    color: #10b981;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.news-page .footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-page .footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.news-page .footer-section a:hover {
    color: #10b981;
    transform: translateX(5px);
}

.news-page .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.news-page .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    transform: none;
    padding: 0;
}

.news-page .social-links a:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: translateY(-2px);
}

.news-page .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.news-page .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.news-page .footer-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-page .footer-top:hover {
    color: #10b981;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .news-page .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .news-page .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .news-page .social-links {
        justify-content: center;
    }
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

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

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

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

.modal-meta i {
    color: #0066cc;
}

.modal-body {
    padding: 20px 40px 40px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

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

.modal-tags {
    padding: 0 40px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tags .tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-tags {
        padding-left: 20px;
        padding-right: 20px;
    }

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

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

