/* Blog Single Page Styles */
.blog-single-banner {
    background: linear-gradient(135deg, #2f3f9f 0%, #4a5fc1 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-single-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') center/cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.blog-single-banner-content {
    position: relative;
    z-index: 2;
}

.blog-single-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    justify-content: center;
}

.blog-single-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.blog-single-banner .breadcrumb-item.active {
    color: white;
}

.blog-single-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
    content: "›";
}

.blog-single-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-single-banner .post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-single-banner .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Main Content Area */
.blog-single-content {
    padding: 60px 0;
    background: #f8fafc;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Main Content */
.blog-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7fc 0%, #e3f2fd 100%);
}

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

.blog-article-content {
    padding: 40px;
}

.blog-article-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-article-content h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-article-content p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-article-content ul,
.blog-article-content ol {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-article-content li {
    margin-bottom: 10px;
}

.blog-article-content strong {
    color: #2d3748;
    font-weight: 600;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

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

.blog-search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.blog-search-form input:focus {
    outline: none;
    border-color: #2f3f9f;
}

.blog-search-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2f3f9f 0%, #4a5fc1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 63, 159, 0.3);
}

/* Category Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #f7fafc;
    color: #2f3f9f;
    transform: translateX(5px);
}

.category-list a.active {
    background: linear-gradient(135deg, #2f3f9f 0%, #4a5fc1 100%);
    color: white;
}

.category-count {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-list a.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f7fc 0%, #e3f2fd 100%);
}

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

.recent-post-content {
    flex: 1;
}

.recent-post-content h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #2f3f9f;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #718096;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        order: -1;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .blog-single-banner {
        padding: 80px 0 50px;
    }

    .blog-single-banner h1 {
        font-size: 1.8rem;
    }

    .blog-featured-image {
        height: 300px;
    }

    .blog-article-content {
        padding: 25px;
    }

    .blog-article-content h2 {
        font-size: 1.5rem;
    }

    .blog-article-content h3 {
        font-size: 1.2rem;
    }

    .blog-single-content {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .blog-featured-image {
        height: 250px;
    }

    .blog-article-content {
        padding: 20px;
    }

    .blog-search-form {
        flex-direction: column;
    }

    .blog-search-form button {
        width: 100%;
    }
}
