* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
body {
    background: #0c0c0f url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%231a1a1a" width="100" height="100"/><path fill="%23121218" d="M0,0 L100,100 M100,0 L0,100"/></svg>');
    color: #e0e0e0;
    line-height: 1.6;
}
header {
    background: linear-gradient(to bottom, #2c1a1a 0%, #1a1010 100%);
    border-bottom: 2px solid #d35400;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: linear-gradient(to right, #d35400, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(211, 84, 0, 0.3);
    margin-left: 10px;
}

/* This ensures the link inherits the gradient properly */
.logo h1 a {
    color: inherit;
    text-decoration: none;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
}

.logo-icon {
    font-size: 2.5rem;
    color: #d35400;
    text-shadow: 0 0 10px rgba(211, 84, 0, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #f39c12;
    background: rgba(211, 84, 0, 0.2);
}

.auth-buttons {
    display: flex;
}

.btn {
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(to right, #d35400, #f39c12);
    color: #fff;
    border: 1px solid #d35400;
}

.btn-register {
    background: linear-gradient(to right, #d35400, #f39c12);
    color: #fff;
    border: 1px solid #d35400;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* News Index Styles */
.news-header {
    background: linear-gradient(135deg, #2c1a1a 0%, #1a1010 100%);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 3px solid #d35400;
    margin-bottom: 40px;
}

.news-header h1 {
    color: #f39c12;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.news-header h1 i {
    margin-right: 15px;
    color: #d35400;
}

.news-header p {
    color: #cccccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.news-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    grid-template-areas:
        "main sidebar"
        "pager sidebar";
    grid-auto-rows: auto;
    gap: 40px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Assign areas */
#news-grid { grid-area: main; }
#news-pagination { grid-area: pager; }
.news-sidebar { grid-area: sidebar; }


.news-article {
    background: linear-gradient(145deg, #1e1818 0%, #181414 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.news-article:hover {
    transform: translateY(-3px);
    border-color: #d35400;
    box-shadow: 0 10px 30px rgba(211, 84, 0, 0.2);
}

.news-article.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2c1a1a 0%, #241818 100%);
    border: 2px solid #d35400;
}

.article-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d35400, #f39c12);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-date, .article-author, .article-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.9rem;
}

.article-date i, .article-author i, .article-category i {
    color: #d35400;
    font-size: 0.8rem;
}

.article-content h2 {
    margin-bottom: 15px;
}

.article-content h2 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: #f39c12;
}

.article-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ffb347;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Sidebar Styles */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: linear-gradient(145deg, #1e1818 0%, #181414 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
}

.sidebar-widget h3 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h3 i {
    color: #d35400;
}

.hot-topics {
    list-style: none;
}

.hot-topics li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.hot-topics li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-topics a {
    color: #cccccc;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.hot-topics a:hover {
    color: #f39c12;
}

.comment-count {
    background: #d35400;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-date {
    background: linear-gradient(135deg, #d35400, #e67e22);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    font-weight: 700;
    font-size: 1.1rem;
}

.event-info h4 {
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 1rem;
}

.event-info p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.archive-select {
    width: 100%;
    padding: 12px;
    background: #1a1010;
    border: 1px solid #333;
    border-radius: 6px;
    color: #cccccc;
    font-size: 1rem;
}

.archive-select:focus {
    outline: none;
    border-color: #d35400;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    padding: 0 20px;
}

.page-btn {
    padding: 12px 20px;
    background: linear-gradient(145deg, #1e1818 0%, #181414 100%);
    border: 1px solid #333;
    border-radius: 6px;
    color: #cccccc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover {
    background: linear-gradient(135deg, #d35400, #e67e22);
    color: white;
    border-color: #d35400;
}

.page-btn.active {
    background: linear-gradient(135deg, #d35400, #e67e22);
    color: white;
    border-color: #d35400;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    background: linear-gradient(145deg, #1e1818 0%, #181414 100%);
    color: #cccccc;
    border-color: #333;
}

@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2.2rem;
    }
    
    .news-header p {
        font-size: 1.1rem;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-content h2 a {
        font-size: 1.5rem;
    }
    
    .news-pagination {
        flex-wrap: wrap;
    }
    
    .page-btn {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 40px 0 30px;
    }
    
    .news-header h1 {
        font-size: 1.8rem;
    }
    
    .news-article {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* --- Responsive: stack on smaller screens --- */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar"
            "pager";
        gap: 30px;
    }
    .news-sidebar { position: static; } /* disable sticky on narrow screens */
}

/* (Optional tighter stack on phones) */
@media (max-width: 768px) {
    /* keep your existing typography tweaks */
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #1a1010 0%, #0c0c0f 100%);
    padding: 40px 0;
    border-top: 2px solid #d35400;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f39c12;
}

.copyright {
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}