/* ===========================================
   BLOG DETAILS PAGE - PREMIUM DESIGN
   =========================================== */

/* Hero Section */
.blog-details-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(180deg, rgba(238, 230, 202, 0.95) 0%, rgba(255, 255, 255, 1) 100%) !important;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

.blog-details-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog-details-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
    filter: blur(40px);
}

.blog-details-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: #896C6C;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blog-details-shape:nth-child(2) {
    width: 250px;
    height: 250px;
    background: #E5BEB5;
    bottom: 10%;
    right: 10%;
    animation-delay: 10s;
}

.blog-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.blog-details-hero-content {
    position: relative;
    z-index: 3;
}

/* Breadcrumb */
.blog-details-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #896C6C;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: #7a5a5a;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #a0a0a0;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: #4a5568;
    font-weight: 600;
}

/* Featured Image */
.blog-details-image-wrapper {
    margin-bottom: 3rem;
}

.blog-details-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(137, 108, 108, 0.15), 0 15px 35px rgba(229, 190, 181, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.9);
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-details-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(137, 108, 108, 0.2), 0 20px 40px rgba(229, 190, 181, 0.15);
}

.blog-details-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-details-image-container:hover .blog-details-image {
    transform: scale(1.03);
}

.blog-details-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Article Header */
.blog-details-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-details-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-details-category,
.blog-details-date,
.blog-details-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(238, 230, 202, 0.8), rgba(229, 190, 181, 0.6));
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #896C6C;
    box-shadow: 0 4px 12px rgba(137, 108, 108, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.blog-details-category:hover,
.blog-details-date:hover,
.blog-details-reading-time:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(137, 108, 108, 0.15);
}

.blog-details-category i,
.blog-details-date i,
.blog-details-reading-time i {
    font-size: 0.875rem;
}

.blog-details-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #896C6C 0%, #7a5a5a 30%, #E5BEB5 70%, #d4a8a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.blog-details-excerpt {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: #4a5568;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Main Content Section */
.blog-details-main {
    padding: 80px 0;
    background: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.blog-details-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

/* Author & Share Section */
.blog-details-author-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(238, 230, 202, 0.6), rgba(229, 190, 181, 0.4));
    border-radius: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.blog-details-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-details-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #896C6C, #7a5a5a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(137, 108, 108, 0.25);
    flex-shrink: 0;
}

.blog-details-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details-author-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.blog-details-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blog-details-author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #896C6C;
    line-height: 1.3;
}

.blog-details-author-role {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.blog-details-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-details-share-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 600;
}

.blog-details-share-buttons {
    display: flex;
    gap: 0.75rem;
}

.blog-details-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-details-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-details-share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.blog-details-share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.blog-details-share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.blog-details-share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Article Content */
.blog-details-article {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-details-content {
    color: #2d3748;
    line-height: 1.9;
    font-size: 1.125rem;
    font-weight: 400;
}

.blog-details-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.blog-details-content p:last-child {
    margin-bottom: 0;
}

.blog-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 12px 32px rgba(137, 108, 108, 0.15);
    display: block;
}

.blog-details-content ul,
.blog-details-content ol {
    margin: 2rem 0;
    padding-left: 2.5rem;
    line-height: 1.9;
}

.blog-details-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-details-content h2,
.blog-details-content h3,
.blog-details-content h4 {
    color: #896C6C;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.blog-details-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(137, 108, 108, 0.2);
    padding-bottom: 0.75rem;
}

.blog-details-content h3 {
    font-size: 1.625rem;
}

.blog-details-content h4 {
    font-size: 1.375rem;
}

.blog-details-content strong {
    color: #896C6C;
    font-weight: 700;
}

.blog-details-content a {
    color: #896C6C;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-details-content a:hover {
    color: #7a5a5a;
}

.blog-details-content blockquote {
    border-left: 4px solid #896C6C;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
    background: rgba(238, 230, 202, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.blog-details-content code {
    background: rgba(137, 108, 108, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-details-content pre {
    background: rgba(137, 108, 108, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-details-content pre code {
    background: transparent;
    padding: 0;
}

/* Article Footer */
.blog-details-footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(137, 108, 108, 0.1);
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.blog-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.blog-details-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(238, 230, 202, 0.8), rgba(229, 190, 181, 0.6));
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #896C6C;
    border: 1px solid rgba(137, 108, 108, 0.2);
    transition: all 0.3s ease;
}

.blog-details-tag:hover {
    background: linear-gradient(135deg, #896C6C, #7a5a5a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 108, 108, 0.2);
}

.blog-details-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(137, 108, 108, 0.1);
}

.blog-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.blog-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.blog-details-btn:hover::before {
    left: 100%;
}

.blog-details-btn-primary {
    background: linear-gradient(135deg, #896C6C, #7a5a5a);
    color: white;
    box-shadow: 0 8px 24px rgba(137, 108, 108, 0.3);
    border: 2px solid transparent;
}

.blog-details-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(137, 108, 108, 0.4);
}

.blog-details-btn-secondary {
    border: 2px solid #896C6C;
    color: #896C6C;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.blog-details-btn-secondary:hover {
    background: #896C6C;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(137, 108, 108, 0.3);
}

.blog-details-btn i {
    font-size: 1.1em;
}

/* Sidebar */
.blog-details-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-details-toc {
    background: linear-gradient(135deg, rgba(238, 230, 202, 0.9), rgba(229, 190, 181, 0.7));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(137, 108, 108, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.blog-details-sidebar-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #896C6C;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-details-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-details-toc-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid transparent;
}

.blog-details-toc-nav a:hover {
    background: rgba(255, 255, 255, 0.5);
    border-left-color: #896C6C;
    color: #896C6C;
    padding-left: 1.25rem;
}

.blog-details-toc-nav a.active {
    background: rgba(255, 255, 255, 0.6);
    border-left-color: #896C6C;
    color: #896C6C;
    font-weight: 600;
}

.blog-details-sidebar-card {
    background: linear-gradient(135deg, rgba(238, 230, 202, 0.9), rgba(229, 190, 181, 0.7));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(137, 108, 108, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-details-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(137, 108, 108, 0.18);
}

.blog-details-sidebar-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #896C6C, #7a5a5a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(137, 108, 108, 0.25);
}

.blog-details-sidebar-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.blog-details-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #896C6C, #7a5a5a);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(137, 108, 108, 0.3);
    width: 100%;
}

.blog-details-sidebar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(137, 108, 108, 0.4);
}

/* Related Posts Section */
.blog-details-related {
    padding: 100px 0 80px;
    margin-top: 100px;
    background: linear-gradient(180deg, rgba(238, 230, 202, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
    border-top: 1px solid rgba(137, 108, 108, 0.1);
}

.blog-details-related-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-details-related-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #896C6C;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-details-related-subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.blog-details-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-details-related-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(137, 108, 108, 0.1);
    border: 1px solid rgba(137, 108, 108, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    visibility: visible;
    opacity: 1;
}

.blog-details-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(137, 108, 108, 0.18) !important;
    border-color: rgba(137, 108, 108, 0.2) !important;
}

.blog-details-related-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-details-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-details-related-card:hover .blog-details-related-image img {
    transform: scale(1.05);
}

.blog-details-related-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #896C6C;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-details-related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-details-related-card-title a:hover {
    color: #7a5a5a !important;
}

.blog-details-related-card-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-details-related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #896C6C;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-details-related-card-link:hover {
    color: #7a5a5a !important;
    gap: 0.75rem;
}

.blog-details-related-card-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.blog-details-related-card-link:hover i {
    transform: translateX(5px);
}

.blog-details-related-placeholder {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.blog-details-related-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-details-layout {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }
    
    .blog-details-container {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .blog-details-hero {
        padding: 120px 0 60px;
    }
    
    .blog-details-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .blog-details-sidebar {
        position: static;
    }
    
    .blog-details-image {
        height: 400px;
    }
    
    .blog-details-main {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .blog-details-hero {
        padding: 100px 0 50px;
    }
    
    .blog-details-container {
        padding: 0 20px;
    }
    
    .blog-details-image {
        height: 300px;
    }
    
    .blog-details-header {
        margin-bottom: 3rem;
    }
    
    .blog-details-meta-top {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blog-details-author-share {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .blog-details-share {
        width: 100%;
        justify-content: space-between;
    }
    
    .blog-details-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .blog-details-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-details-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-details-content h4 {
        font-size: 1.25rem;
    }
    
    .blog-details-actions {
        flex-direction: column;
    }
    
    .blog-details-btn {
        width: 100%;
        min-width: auto;
    }
    
    .blog-details-footer {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .blog-details-actions {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .blog-details-main {
        padding: 50px 0;
    }
    
    .blog-details-related {
        padding: 60px 0 !important;
        margin-top: 80px !important;
    }
    
    .blog-details-related-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .blog-details-hero {
        padding: 80px 0 40px;
    }
    
    .blog-details-container {
        padding: 0 15px;
    }
    
    .blog-details-breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-details-image {
        height: 250px;
    }
    
    .blog-details-header {
        margin-bottom: 2rem;
    }
    
    .blog-details-meta-top {
        gap: 0.5rem;
    }
    
    .blog-details-category,
    .blog-details-date,
    .blog-details-reading-time {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .blog-details-author-share {
        padding: 1.25rem;
    }
    
    .blog-details-author-avatar {
        width: 56px;
        height: 56px;
    }
    
    .blog-details-author-icon {
        font-size: 1.5rem;
    }
    
    .blog-details-share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .blog-details-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    .blog-details-tags {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .blog-details-tag {
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .blog-details-actions {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .blog-details-footer {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }
    
    .blog-details-sidebar-card {
        padding: 2rem 1.5rem;
    }
    
    .blog-details-sidebar-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .blog-details-related {
        padding: 50px 0 !important;
        margin-top: 70px !important;
    }
    
    .blog-details-related-card {
        padding: 1.5rem !important;
    }
}

