/* Modern Blog Detail Page Styles */

/* Breadcrumb Enhancement */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 30px 0;
    border-bottom: 1px solid rgba(14, 15, 59, 0.08);
    margin-top: 100px; /* Add margin to prevent overlap with fixed header */
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item {
    color: #64748b;
}

.breadcrumb-item.active {
    color: #0E0F3B;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #cbd5e1;
    margin: 0 8px;
}

.breadcrumb-item a {
    color: #F7931E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content-main>ol>li{
    list-style: decimal;
}

.blog-content-main>ul>li{
    list-style: circle;
}

.breadcrumb-item a:hover {
    color: #0E0F3B;
}

/* Blog Detail Header */
.blog-detail-header {
    padding: 0px 0 30px;
    background: white;
}

.blog-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0E0F3B;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 25px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.blog-detail-meta span:hover {
    color: #F7931E;
}

.blog-detail-meta i {
    color: #F7931E;
    font-size: 16px;
}

/* Featured Image */
.blog-featured-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 15, 59, 0.1);
    position: relative;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

/* Blog Content */
.blog-detail-content {
    background: white;
    padding: 40px 0;
}

.blog-content-main {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.blog-content-main h2,
.blog-content-main h3,
.blog-content-main h4 {
    color: #0E0F3B;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.blog-content-main h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #F7931E;
    padding-bottom: 10px;
    display: inline-block;
}

.blog-content-main h3 {
    font-size: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.blog-content-main h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #F7931E 0%, #ff8c42 100%);
    border-radius: 2px;
}

.blog-content-main h4 {
    font-size: 1.3rem;
    color: #F7931E;
}

.blog-content-main p {
    margin-bottom: 20px;
    text-align: justify;
}

.blog-content-main ul,
.blog-content-main ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.blog-content-main li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-content-main blockquote {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #F7931E;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #0E0F3B;
    box-shadow: 0 4px 15px rgba(14, 15, 59, 0.05);
}

/* Tags Section */
.blog-tags {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(14, 15, 59, 0.08);
}

.blog-tags h5 {
    color: #0E0F3B;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.tag-item {
    display: inline-block;
    background: linear-gradient(135deg, #F7931E 0%, #ff8c42 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 5px 8px 5px 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
}

.tag-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4);
    color: white;
}

/* Share Buttons */
.share-buttons {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(14, 15, 59, 0.08);
    text-align: center;
}

.share-buttons h5 {
    color: #0E0F3B;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 8px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #3b5998 0%, #4c70ba 100%);
}

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

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #4fce5d 100%);
}

/* Author Bio */
.author-bio {
    background: linear-gradient(135deg, #0E0F3B 0%, #1a1b59 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.author-bio::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.1) 0%, rgba(247, 147, 30, 0.05) 100%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #F7931E;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.author-details h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.author-details p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(14, 15, 59, 0.08);
    box-shadow: 0 4px 15px rgba(14, 15, 59, 0.05);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 15, 59, 0.1);
}

.sidebar-widget h5 {
    color: #0E0F3B;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.sidebar-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #F7931E 0%, #ff8c42 100%);
    border-radius: 2px;
}

/* Search Widget */
.search-widget .input-group {
    display: flex;
    align-items: stretch;
}

.search-widget .form-control {
    border: 2px solid rgba(14, 15, 59, 0.1);
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-right: none;
    height: 48px;
}

.search-widget .form-control:focus {
    border-color: #0E0F3B;
    box-shadow: 0 0 0 0.2rem rgba(14, 15, 59, 0.25);
    border-right: none;
}

.search-widget .btn {
    background: linear-gradient(135deg, #0E0F3B 0%, #1a1b59 100%);
    border: 2px solid #0E0F3B;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 12px 20px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 15, 59, 0.3);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
}

.search-widget .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 15, 59, 0.4);
    background: linear-gradient(135deg, #1a1b59 0%, #2a2b69 100%);
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(14, 15, 59, 0.08);
    transition: all 0.3s ease;
}

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

.recent-post:hover {
    transform: translateX(5px);
}

.recent-post-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
}

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

.recent-post:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-content h6 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.recent-post-content h6 a {
    color: #0E0F3B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover {
    color: #F7931E;
}

.recent-post-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.categories-list li a:hover {
    background: linear-gradient(135deg, #F7931E 0%, #ff8c42 100%);
    color: white;
    transform: translateX(5px);
}

.categories-list li a span {
    background: rgba(14, 15, 59, 0.1);
    color: #0E0F3B;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.categories-list li a:hover span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Newsletter Widget */
.newsletter-widget .form-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.newsletter-widget input[type="email"] {
    border: 2px solid rgba(14, 15, 59, 0.1);
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-right: none;
    height: 48px;
    flex: 1;
    outline: none;
}

.newsletter-widget input[type="email"]:focus {
    border-color: #0E0F3B;
    box-shadow: 0 0 0 0.2rem rgba(14, 15, 59, 0.25);
    border-right: none;
}

.newsletter-widget button[type="submit"] {
    background: linear-gradient(135deg, #0E0F3B 0%, #1a1b59 100%);
    border: 2px solid #0E0F3B;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 12px 20px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 15, 59, 0.3);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
    cursor: pointer;
    font-size: 14px;
}

.newsletter-widget button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 15, 59, 0.4);
    background: linear-gradient(135deg, #1a1b59 0%, #2a2b69 100%);
}

/* Newsletter Widget Responsive */
@media (max-width: 768px) {
    .newsletter-widget .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-widget input[type="email"] {
        border-radius: 25px;
        border: 2px solid rgba(14, 15, 59, 0.1);
        width: 100%;
        margin-bottom: 0;
    }
    
    .newsletter-widget button[type="submit"] {
        border-radius: 25px;
        border: 2px solid #0E0F3B;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-widget {
        padding: 0 10px;
    }
    
    .newsletter-widget input[type="email"],
    .newsletter-widget button[type="submit"] {
        height: 44px;
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Related Posts Section */
.related-posts {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid rgba(14, 15, 59, 0.08);
}

/* Responsive Design */
@media (max-width: 992px) {
    .breadcrumb-section {
        margin-top: 80px; /* Reduce margin for tablet */
        padding: 25px 0;
    }
    
    .blog-detail-header h1 {
        font-size: 2.2rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .sidebar-widget {
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        margin-top: 70px; /* Further reduce margin for mobile */
        padding: 20px 0;
    }
    
    .blog-detail-header {
        padding: 30px 0 20px;
    }
    
    .blog-detail-header h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .blog-detail-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-featured-image {
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    .blog-detail-content {
        padding: 30px 0;
    }
    
    .blog-content-main {
        font-size: 15px;
    }
    
    .blog-content-main h2 {
        font-size: 1.5rem;
    }
    
    .blog-content-main h3 {
        font-size: 1.3rem;
    }
    
    .blog-tags,
    .share-buttons,
    .author-bio {
        padding: 20px;
        margin: 30px 0;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .recent-post-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .blog-detail-header h1 {
        font-size: 1.6rem;
    }
    
    .blog-content-main {
        font-size: 14px;
    }
    
    .blog-content-main h2 {
        font-size: 1.3rem;
    }
    
    .blog-content-main h3 {
        font-size: 1.2rem;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
        margin: 0 5px;
    }
}