/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu a i {
    font-size: 1.1rem;
}

.user-greeting {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.user-greeting i {
    font-size: 1.3rem;
}

.btn-login, .btn-signup {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.btn-login:hover, .btn-signup:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.5);
}

.btn-logout:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-small {
    padding: 5px 15px;
    font-size: 0.9rem;
}

.btn.active {
    background-color: #e74c3c;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters h2 {
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.country-filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.description {
    color: #555;
    margin-bottom: 15px;
}

.news-actions {
    display: flex;
    gap: 10px;
}

.no-news {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Advertisement Cards */
.ad-card {
    border: 2px solid #f39c12;
    background: linear-gradient(to bottom, #fff 0%, #fffef8 100%);
}

.ad-badge {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ad-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.ad-content h3 a:hover {
    color: #f39c12;
}

.ad-card:hover {
    border-color: #e67e22;
    transform: translateY(-5px);
}

/* Article Full View */
.article-full {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-full h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #555;
}

.content-text {
    margin-bottom: 30px;
}

.read-original {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.article-actions {
    margin-top: 30px;
}

/* Forms */
.auth-form {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form h2 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard */
.dashboard {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard h2 {
    margin-bottom: 30px;
}

.dashboard h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-top: 0;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

/* History */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.history-item h4 {
    margin-bottom: 10px;
}

.history-item h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.history-item h4 a:hover {
    color: #3498db;
}

/* Admin Styles */
.admin-info {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-info p {
    margin-bottom: 10px;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 20px;
}

.admin-form {
    max-width: 600px;
}

.api-config {
    margin-bottom: 30px;
}

.api-config h3 {
    margin-bottom: 15px;
}

.help-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* AI Chat Styles */
.ai-chat-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.ai-chat-section h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.ai-chat-description {
    color: #666;
    margin-bottom: 20px;
}

.ai-chat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    position: relative;
}

.user-message {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.ai-message {
    background: #f1f8e9;
    border-left: 4px solid #8bc34a;
}

.chat-time {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 5px;
}

.ai-chat-form {
    margin-top: 15px;
}

.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input-group textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.chat-input-group button {
    align-self: flex-end;
    min-width: 100px;
}

.ai-loading {
    text-align: center;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    margin-top: 10px;
}

.ai-chat-login {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #ddd;
}

.ai-chat-login a {
    color: #3498db;
    font-weight: bold;
}

/* Dashboard Sections */
.dashboard-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.dashboard-section h3 {
    margin-bottom: 20px;
}

/* Dashboard Advertisement */
.dashboard-ad {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-ad-link {
    display: flex;
    gap: 20px;
    align-items: center;
    color: white;
    text-decoration: none;
}

.dashboard-ad-link img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.dashboard-ad-content {
    flex: 1;
}

.dashboard-ad-content h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dashboard-ad-content p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.dashboard-ad .ad-badge {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    margin-bottom: 10px;
}

/* Investigation List */
.investigation-list {
    display: grid;
    gap: 15px;
}

.investigation-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.investigation-item h4 {
    margin-bottom: 10px;
}

.investigation-item h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.investigation-item h4 a:hover {
    color: #9b59b6;
}

.inv-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Notes List */
.notes-list {
    display: grid;
    gap: 15px;
}

.note-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.note-item h4 {
    margin-bottom: 15px;
}

.note-item h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.note-item h4 a:hover {
    color: #3498db;
}

.note-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.note-question {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.note-answer {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.note-date {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

/* Signup Popup */
.signup-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.signup-popup {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.signup-popup h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.signup-popup p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.signup-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.popup-close:hover {
    color: #333;
}

/* Investigations Styles */
.investigations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.investigation-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.investigation-card h3 {
    margin-bottom: 10px;
}

.investigation-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.investigation-card h3 a:hover {
    color: #9b59b6;
}

.inv-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #666;
}

.inv-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.investigation-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.add-note-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.investigation-items {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.inv-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.inv-item-article h5 {
    margin-bottom: 8px;
}

.inv-item-article h5 a {
    color: #2c3e50;
    text-decoration: none;
}

.inv-item-article h5 a:hover {
    color: #3498db;
}

.inv-item-note p {
    margin-bottom: 8px;
    color: #555;
}

.inv-item-date {
    font-size: 0.8rem;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination .btn {
    min-width: 40px;
}

.pagination .btn.active {
    background: #e74c3c;
}

.pagination-dots {
    padding: 0 5px;
    color: #999;
}

.pagination-info {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.pagination-info p {
    margin: 0;
}

/* Responsive for Dashboard Ad */
@media (max-width: 768px) {
    .dashboard-ad-link {
        flex-direction: column;
    }
    
    .dashboard-ad-link img {
        width: 100%;
        height: 200px;
    }
}

/* Social Sharing Buttons */
.social-share {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.social-share h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn svg {
    flex-shrink: 0;
}

.facebook-share {
    background: #1877f2;
}

.facebook-share:hover {
    background: #166fe5;
}

.twitter-share {
    background: #1da1f2;
}

.twitter-share:hover {
    background: #1a8cd8;
}

.linkedin-share {
    background: #0077b5;
}

.linkedin-share:hover {
    background: #006399;
}

.email-share {
    background: #ea4335;
}

.email-share:hover {
    background: #d93025;
}

.copy-link {
    background: #6c757d;
}

.copy-link:hover {
    background: #5a6268;
}

.copy-link-message {
    margin-top: 10px;
    padding: 8px 12px;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Comments Section */
.comments-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.comments-section h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #2c3e50;
}

.comment-form-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-form-container h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.comment-login {
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-login p {
    margin: 0;
    font-size: 1rem;
}

.comment-login a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.comment-login a:hover {
    text-decoration: underline;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment.reply {
    margin-left: 40px;
    margin-top: 10px;
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
}

.comment-body p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.comment-edited {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.comment-edited small {
    color: #999;
    font-style: italic;
}

.comment-replies {
    margin-top: 15px;
}

.no-comments {
    padding: 40px;
    text-align: center;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive adjustments for social sharing and comments */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Create Article Form */
.create-article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.create-article-page h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.article-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-input {
    display: none;
}

.file-name {
    color: #666;
    font-size: 0.9rem;
}

.image-preview,
.video-preview {
    margin-top: 15px;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-preview video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-item {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-gallery-item:hover {
    background: #e74c3c;
}

.upload-progress {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress p {
    margin: 0;
    text-align: center;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Article Video and Gallery */
.article-video {
    margin: 30px 0;
}

.article-video h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-video video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-gallery {
    margin: 30px 0;
}

.article-gallery h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-photo {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.05);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* ========================================
   2025 MODERN DESIGN ENHANCEMENTS
   ======================================== */

/* Modern Font Import */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-base);
    z-index: -1;
}

.nav-menu li a:hover::before {
    left: 0;
}

.nav-menu li a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Modern Social Share Buttons */
.social-share {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-share h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-share h3 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-btn:hover::before {
    width: 300px;
    height: 300px;
}

.share-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.share-btn span {
    position: relative;
    z-index: 1;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.share-btn:active {
    transform: translateY(-2px);
}

/* Individual Share Button Colors */
.facebook-share {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.facebook-share:hover {
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

.twitter-share {
    background: linear-gradient(135deg, #1DA1F2 0%, #0c85d0 100%);
}

.twitter-share:hover {
    box-shadow: 0 8px 24px rgba(29, 161, 242, 0.4);
}

.linkedin-share {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.linkedin-share:hover {
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.4);
}

.whatsapp-share {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.whatsapp-share:hover {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.email-share {
    background: linear-gradient(135deg, #EA4335 0%, #c1351d 100%);
}

.email-share:hover {
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.4);
}

.copy-link {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.copy-link:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Copy Link Message */
.copy-link-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    animation: slideInUp 0.3s ease-out;
}

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

/* Modern Card Design */
.news-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-card img {
    transition: var(--transition-slow);
}

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

/* Modern Article Layout */
.article-full {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
}

.article-full h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.article-meta span::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.article-meta .source::before {
    content: '\f1ea'; /* newspaper icon */
}

.article-meta .date::before {
    content: '\f017'; /* clock icon */
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modern Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.95);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Modern Comments Section */
.comments-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.comments-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

.comments-section h2 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment {
    background: rgba(248, 250, 252, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
    background-image: linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)),
                      var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition-base);
}

.comment:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-full {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .article-full h1 {
        font-size: 1.75rem;
    }
    
    .social-share {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .share-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.article-full,
.social-share,
.comments-section {
    animation: fadeIn 0.6s ease-out;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modern Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.alert::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-success::before {
    content: '\f058'; /* check-circle */
}

.alert-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-error::before {
    content: '\f06a'; /* exclamation-circle */
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.alert-warning::before {
    content: '\f071'; /* exclamation-triangle */
}

/* Modern Dashboard Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

