/* Hero Section */
.blog-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../images/blog/blog-hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.blog-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background: var(--dark-bg);
}

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

/* Blog Content Full Width */
.blog-container-no-sidebar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 12px;
    display: block;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    margin-top: 40px;
}

/* Blog Posts */
.blog-post {
    background: #23231f;
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2.5px solid #232323;
    box-shadow: 0 12px 40px rgba(255,215,0,0.13), 0 2px 8px rgba(0,0,0,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    margin-bottom: 0;
}

.blog-post:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px 0 rgba(255,215,0,0.18), 0 2px 8px rgba(0,0,0,0.22);
    border-color: #FFD700;
}

.blog-post.featured {
    grid-column: 1 / -1;
    max-width: 100%;
}

.blog-post .post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post.featured .post-image {
    height: 350px;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2.5px solid #FFD700;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    transition: transform 0.3s;
}

.blog-post:hover .post-image img {
    transform: scale(1.06) rotate(-1deg);
    filter: brightness(1.08) contrast(1.1);
}

.news-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #FFD700;
    color: #23231f;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 18px;
    border-radius: 16px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    letter-spacing: 1px;
}

.post-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 1px;
}

.post-content {
    padding: 32px 26px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 24px;
    color: #FFD700;
    font-size: 1.08rem;
    margin-bottom: 18px;
    opacity: 0.95;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.post-meta i {
    color: #FFD700;
}

.blog-post h2, .blog-post h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.blog-post h2 {
    font-size: 1.45rem;
}

.blog-post h3 {
    color: #FFD700;
    margin-bottom: 16px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    letter-spacing: 1.2px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.blog-post p {
    color: #e0e0e0;
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 1.13rem;
    flex: 1;
    word-break: break-word;
}

.read-more {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 15px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--text-light);
}

.search-form button {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-form button:hover {
    transform: translateX(5px);
}

/* Category List */
.category-list {
    list-style: none;
}

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

.category-list a {
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.recent-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.recent-post-info h4 a:hover {
    color: var(--primary-color);
}

.recent-post-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                url('../images/blog/newsletter-bg.jpg') center/cover;
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.newsletter-form button {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

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

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link.next {
    width: auto;
    padding: 0 20px;
}

.page-link.active,
.page-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 700px) {
    .blog-post .post-image {
        height: 140px;
    }
    .blog-post h3, .post-content, .post-meta {
        padding-left: 10px;
        padding-right: 10px;
    }
    .post-content {
        padding: 18px 10px 12px 10px;
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .blog-post.featured .post-image {
        height: 220px;
    }
}

/* Admin Actions Styling */
.admin-actions {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: right;
}

.add-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--primary-color), #ffd700);
    color: var(--dark-bg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-post-btn i {
    font-size: 1.1em;
}