* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: #0a0a0a;
    color: #ffffff;
    padding-top: 80px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 900px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.support-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    background: rgba(80, 72, 229, 0.1);
    border: 1px solid rgba(80, 72, 229, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.75rem;
}

.hand-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.support-banner a {
    color: #5048E5;
    text-decoration: none;
    font-weight: 600;
}

.support-banner a:hover {
    text-decoration: underline;
}

.blogs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    padding: 1rem;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-right: 2.5rem;
    background: #111111;
    border: 1px solid #151515;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #5048E5;
}

.search-wrapper button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.8rem;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-item {
    display: block;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.category-item.active {
    background: #5048E5;
    color: #ffffff;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-blog {
    display: flex;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    overflow: hidden;
}

.featured-blog .blog-image {
    width: 50%;
    height: 200px;
    flex-shrink: 0;
}

.blog-image {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    width: 100%;
    height: 100%;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
}

.featured-blog .blog-info {
    width: 50%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.blog-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-info h2 a {
    color: #ffffff;
    text-decoration: none;
}

.blog-info h2 a:hover {
    color: #5048E5;
}

.blog-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-info h3 a {
    color: #ffffff;
    text-decoration: none;
}

.blog-info h3 a:hover {
    color: #5048E5;
}

.blog-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author .name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.author .date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.author div {
    display: flex;
    flex-direction: column;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #5048E5;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.5rem;
}

.secondary-blogs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.blog-card {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card .blog-image {
    height: 120px;
}

.blog-card .blog-info {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card .blog-info p {
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #0d0d0d;
    border: 1px solid #151515;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #5048E5;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0d0d0d;
    border: 1px solid #151515;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.page-num:hover {
    background: rgba(80, 72, 229, 0.2);
}

.page-num.active {
    background: #5048E5;
}

.no-blogs {
    text-align: center;
    padding: 3rem 2rem;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
}

.no-blogs i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-blogs h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.no-blogs p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Single Blog Post */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: #5048E5;
}

.blog-category {
    display: inline-block;
    background: rgba(80, 72, 229, 0.2);
    color: #5048E5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.blog-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.moderator-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.current-image {
    margin-bottom: 1rem;
}

.current-image p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.blog-single .blog-image {
    height: 300px;
    margin-bottom: 2rem;
}

.blog-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #ffffff;
    margin: 1.5rem 0 0.75rem 0;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-content a {
    color: #5048E5;
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .blogs-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .featured-blog {
        flex-direction: column;
    }
    
    .featured-blog .blog-image {
        width: 100%;
        height: 180px;
    }
    
    .featured-blog .blog-info {
        width: 100%;
        min-height: auto;
    }
    
    .secondary-blogs {
        grid-template-columns: 1fr;
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Blog Form Styles */

.blog-form-container {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.blog-form-container h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.blog-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.form-group label {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.01em;
}


.form-group input,
.form-group textarea,
.form-group select {
    background: #181818;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 0.5rem 0.7rem;
    color: #fff;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: border 0.2s;
    position: relative;
    box-shadow: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #fff;
    background: #111;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #444;
}

/* Special styling for TinyMCE container */
.form-group:has(.tinymce-editor) {
    margin: 1rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.form-help {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.1rem;
    font-style: normal;
    display: block;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: none;
}

.btn-primary {
    background: #222;
    color: #fff;
    padding: 0.4rem 1rem;
    border: 1px solid #222;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #181818;
    border-color: #444;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 0.4rem 1rem;
    border: 1px solid #222;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

.btn-secondary:hover {
    background: #181818;
    border-color: #444;
    color: #fff;
}

/* File input styling */
.form-group input[type="file"] {
    padding: 0.4rem 0.7rem;
    border: 1px dashed #222;
    border-radius: 5px;
    background: #181818;
    cursor: pointer;
    text-align: left;
    font-size: 0.8rem;
    color: #fff;
}

.form-group input[type="file"]:hover {
    border-color: #444;
    background: #222;
}

/* Select dropdown styling */
.form-group select {
    cursor: pointer;
    appearance: none;
    background: #181818;
    color: #fff;
    border: 1px solid #222;
    border-radius: 5px;
    padding-right: 1.2rem;
}

/* Alert Styles */
.alert {
    padding: 0.7rem 1rem;
    border-radius: 5px;
    margin: 0.7rem auto 1rem;
    max-width: 400px;
    background: #181818;
    border: 1px solid #222;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alert li {
    margin: 0.15rem 0;
}

/* TinyMCE Editor Styling */
.tox-tinymce {
    border-radius: 5px !important;
    border: 1px solid #222 !important;
}

.tox-tinymce:focus-within {
    border-color: #fff !important;
    box-shadow: none !important;
}

/* Header button styling for consistency */
.header .btn-primary {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-form-container {
        padding: 0.7rem 0.5rem;
        margin: 0.5rem;
    }
    .blog-form-container h2 {
        font-size: 1rem;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}