/* Modern Blog Detail Page - Redesigned */
* {
    box-sizing: border-box;
}

.blog-detail-section {
    background: #f8fafc;
    min-height: 100vh;
}

/* Header Section */
.blog-header {
    background: #2c5aa0;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-header::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 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span:last-child {
    color: #ffd700;
    font-weight: 600;
}

/* Header Content */
.blog-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tag {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.publish-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 30px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Author Section */
.author-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.author-details {
    text-align: left;
}

.author-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}





/* Main Content */
.blog-detail-container {
    background: white;
    margin: -60px auto 0;
    max-width: 1000px;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* Media Gallery */
.media-gallery {
    padding: 40px;
    border-bottom: 1px solid #f1f5f9;
}

.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 20px;
}

.media-slide {
    display: none;
    position: relative;
}

.media-slide.active {
    display: block;
}

.media-slide img, .media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-slide img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-slide img:hover {
    transform: scale(1.02);
}



/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.1);
}

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

.video-thumb {
    background: #667eea;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
}

.video-thumb i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Article Content */
.article-content {
    padding: 40px;
}

.article-excerpt {
    margin-bottom: 40px;
}

.article-excerpt blockquote {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: none;
    border-left: 5px solid #667eea;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    margin: 0;
    font-style: italic;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.article-excerpt p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    padding-left: 20px;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
    color: #1e293b;
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-body h1 { font-size: 2.2rem; }
.article-body h2 { font-size: 1.8rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.3rem; }

.article-body ul, .article-body ol {
    margin: 24px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body strong {
    font-weight: 700;
    color: #1e293b;
}

.article-body a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #4f46e5;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}



/* Article Actions */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Related Section */
.related-section {
    background: #f8fafc;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.related-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 25px;
}

.card-category {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* No Blog Message */
.no-blog-message {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 600px;
}

.no-blog-message h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-blog-message p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.no-blog-message .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-blog-message .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 0 60px;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .author-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .author-details {
        text-align: center;
    }
    
    .blog-detail-container {
        margin: -40px 15px 0;
        border-radius: 20px 20px 0 0;
    }
    
    .media-gallery, .article-content {
        padding: 25px 20px;
    }
    
    .media-slide img, .media-slide video {
        height: 250px;
    }
    

    
    .article-actions {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .share-section {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .related-articles {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blog-header {
        padding: 80px 0 50px;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    

    
    .blog-detail-container {
        margin: -30px 10px 0;
    }
    
    .media-gallery, .article-content {
        padding: 20px 15px;
    }
    
    .media-slide img, .media-slide video {
        height: 200px;
    }
    
    .article-excerpt p {
        font-size: 1.1rem;
        padding-left: 10px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    

    
    .btn-back span {
        display: none;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 8px;
    }
}