/* Blog Specific Styles */
.blog-hero {
    background: linear-gradient(135deg, #8B0000 0%, #CD5C5C 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    margin-top: 60px;
}

.blog-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-hero p {
    font-size: 1.2em;
    opacity: 0.95;
}

.blog-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.blog-post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post-content {
    padding: 30px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-category {
    background: #8B0000;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
}

.blog-post h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.8em;
}

.blog-post h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: #8B0000;
}

.blog-post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #CD5C5C;
    transform: translateX(5px);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

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

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

.search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #8B0000;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    display: block;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #8B0000;
}

.recent-post-date {
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B0000;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #CD5C5C;
    transform: translateY(-3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

.pagination .current {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

/* Admin Panel */
.admin-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #8B0000;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-toggle:hover {
    background: #CD5C5C;
    transform: scale(1.1);
}

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-content {
    background: white;
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    position: relative;
}

.close-admin {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

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

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

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

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

.form-group textarea {
    resize: vertical;
}

.editor-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px 5px 0 0;
}

.editor-toolbar button {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.editor-toolbar button:hover {
    background: #8B0000;
    color: white;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #8B0000;
    color: white;
}

.btn-primary:hover {
    background: #CD5C5C;
}

.btn-secondary {
    background: #999;
    color: white;
}

.btn-secondary:hover {
    background: #777;
}

/* Single Post View */
.single-post {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.single-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.single-post h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
}

.single-post-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.1em;
}

.single-post-content h2 {
    margin: 30px 0 15px;
    color: #333;
}

.single-post-content h3 {
    margin: 25px 0 10px;
    color: #444;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.single-post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.single-post-content blockquote {
    border-left: 4px solid #8B0000;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

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

.comments-section h3 {
    margin-bottom: 30px;
    font-size: 1.5em;
}

.comment-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.comment-form h4 {
    margin-bottom: 20px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date {
    font-size: 0.9em;
    color: #999;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-hero h1 {
        font-size: 2em;
    }
    
    .admin-content {
        margin: 20px;
        padding: 20px;
    }
}