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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s;
}

a:hover {
    color: #003d82;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: bold;
    color: #d32f2f;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #d32f2f;
}

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

.btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #b71c1c;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #d32f2f;
    color: #d32f2f;
}

.btn-outline:hover {
    background-color: #d32f2f;
    color: white;
}

/* Featured Video Section */
.featured-video {
    margin: 30px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}

.video-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-container h3 {
    font-size: 1.5rem;
    padding: 20px 20px 10px;
    color: #333;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

.video-placeholder {
    background-color: #e9ecef;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.video-container p {
    padding: 10px 20px;
    color: #555;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

.article-meta span {
    margin-right: 15px;
}

/* Advertisement Banner */
.ad-banner {
    margin: 30px 0;
    text-align: center;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ad-placeholder {
    background-color: #e9ecef;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
}

.ad-placeholder h3 {
    margin-bottom: 10px;
    color: #495057;
}

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

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

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

.news-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.news-image.placeholder {
    background-color: #dee2e6;
}

.news-content {
    padding: 15px;
}

.news-category {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #d32f2f;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
}

.no-articles, .error-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

/* Categories Section */
.categories-section {
    margin: 40px 0;
}

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

.category-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.category-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.category-card p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu ul {
        margin: 15px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.auth-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

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

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

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

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

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

.form-group small {
    color: #6c757d;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

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

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

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

/* Article Page */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.article-full {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.2rem;
    margin: 10px 0;
    color: #333;
}

.article-category {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.article-image {
    margin-bottom: 20px;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-video {
    margin-bottom: 20px;
}

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

.article-content p {
    margin-bottom: 15px;
}

.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Dashboard */
.dashboard-container {
    padding: 30px 0;
}

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

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 10px;
}

.stat-card p {
    color: #6c757d;
}

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

.articles-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    margin-bottom: 10px;
    color: #333;
}

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

.btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

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

/* Category Page */
.category-container {
    padding: 30px 0;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.category-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.no-articles {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}
/* Admin Tables */
.admin-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

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

.admin-table .actions {
    display: flex;
    gap: 8px;
}

/* Admin Form Sections */
.admin-form-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-form-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
}

.admin-list-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-list-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Inline Forms */
.inline-form {
    display: inline;
}

/* Danger Button */
.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .admin-table .actions {
        flex-direction: column;
    }
}
/* Admin Filters */
.admin-filters {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-filters h2 {
    margin-bottom: 15px;
    color: #333;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-draft {
    background-color: #6c757d;
    color: white;
}

.status-pending {
    background-color: #fd7e14;
    color: white;
}

.status-published {
    background-color: #28a745;
    color: white;
}

.status-rejected {
    background-color: #dc3545;
    color: white;
}

/* Featured Badge */
.badge {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 5px;
}

.badge-featured {
    background-color: #ffc107;
    color: #212529;
}

/* Status Select */
.status-select {
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Rejection Row */
.rejection-row {
    background-color: #f8d7da;
}

.rejection-row td {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #721c24;
}

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

/* Responsive Admin Tables */
@media (max-width: 992px) {
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    .actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* Small screens */
@media (max-width: 576px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}
/* Navigation Dropdown Menu */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #d32f2f;
}

.article-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 10px;
}

.divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 5px 0;
}

/* Mobile responsiveness for dropdown */
@media (max-width: 768px) {
    .nav-menu .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: 1px solid #e9ecef;
        margin-top: 5px;
    }
    
    /* JavaScript will be needed to toggle the mobile dropdown */
}
/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 8px;
    font-size: 1.2rem;
}

/* Categories List */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    padding: 5px 0;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #d32f2f;
}

.categories-list .count {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Ad Slots */
.ad-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ad-slot {
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.ad-slot:hover {
    transform: translateY(-2px);
}

.ad-slot img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 15px;
}

.ad-placeholder-content {
    max-width: 80%;
}

.ad-placeholder span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.ad-placeholder p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Wide Ad within Article */
.article-wide-ad {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.article-wide-ad h3 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-wide-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar-widget {
        padding: 15px;
    }
    
    .ad-placeholder {
        height: 120px;
    }
    
    .article-wide-ad {
        margin: 20px 0;
        padding: 15px;
    }
}
/* Article Layout - Three Columns */
.article-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    padding: 30px 0;
}

.article-main {
    max-width: 100%;
}

.article-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
}

/* Left Sidebar Specific Styles */
.left-sidebar {
    border-right: 1px solid #e9ecef;
    padding-right: 20px;
}

/* Right Sidebar Specific Styles */
.right-sidebar {
    border-left: 1px solid #e9ecef;
    padding-left: 20px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 8px;
    font-size: 1.2rem;
}

/* Categories List */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    padding: 5px 0;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #d32f2f;
}

.categories-list .count {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Ad Slots */
.ad-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ad-slot {
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.ad-slot:hover {
    transform: translateY(-2px);
}

.ad-slot img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 15px;
}

.ad-placeholder-content {
    max-width: 80%;
}

.ad-placeholder span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.ad-placeholder p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Wide Ad within Article */
.article-wide-ad {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.article-wide-ad h3 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-wide-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 200px 1fr 200px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        position: static;
        order: 3;
    }
    
    .left-sidebar, .right-sidebar {
        border: none;
        padding: 0;
    }
    
    .article-main {
        order: 2;
    }
    
    /* Create two columns for sidebars on tablet */
    .article-container > .article-layout > .article-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .ad-slots {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .article-container > .article-layout > .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
    
    .ad-slots {
        grid-template-columns: 1fr;
    }
    
    .ad-placeholder {
        height: 120px;
    }
    
    .article-wide-ad {
        margin: 20px 0;
        padding: 15px;
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-image {
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-content {
    padding: 20px;
}

.category-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.article-count {
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-description {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Admin styles */
.current-image {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.current-image p {
    margin: 0 0 5px 0;
    font-weight: bold;
}

.no-image {
    color: #999;
    font-style: italic;
}

.admin-table img {
    border-radius: 4px;
    border: 1px solid #ddd;
}