﻿
    /* Blog Detail Styles */
    .blog-detail-header {
        background-color: var(--primary);
        padding: 120px 0 80px;
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
    }

    .blog-detail-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDIpIj48L3JlY3Q+PHBhdGggZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA4KSIgZD0iTTAgMGg1djVIMHoiPjwvcGF0aD48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjcGF0dGVybikiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiPjwvcmVjdD48L3N2Zz4=');
        opacity: 0.3;
        z-index: 0;
    }

    .blog-detail-header .container {
        position: relative;
        z-index: 1;
    }

    .blog-detail-title {
        color: white;
        font-size: 2.8rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .blog-detail-meta {
        display: flex;
        align-items: center;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.8);
    }

    .blog-detail-meta-item {
        display: flex;
        align-items: center;
        margin-right: 25px;
    }

    .blog-detail-meta-item i {
        color: var(--accent);
        margin-right: 8px;
    }

    .blog-detail-meta-item .category {
        display: inline-block;
        padding: 4px 15px;
        background-color: var(--accent);
        color: white;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .blog-detail-image {
        width: 100%;
        height: 500px;
        object-fit: cover;
        border-radius: 16px;
        margin-top: -50px;
        margin-bottom: 30px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    }

    .blog-detail-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: var(--dark);
        margin-bottom: 40px;
    }

    .blog-detail-content h2 {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 20px;
        color: var(--dark);
    }

    .blog-detail-content h3 {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 15px;
        color: var(--dark);
    }

    .blog-detail-content p {
        margin-bottom: 20px;
    }

    .blog-detail-content ul, .blog-detail-content ol {
        margin-bottom: 20px;
        padding-left: 20px;
    }

    .blog-detail-content li {
        margin-bottom: 10px;
    }

    .blog-detail-content img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 30px 0;
    }

    .blog-detail-content .quote {
        background-color: var(--light);
        border-left: 4px solid var(--primary);
        padding: 20px;
        font-style: italic;
        margin: 30px 0;
        border-radius: 0 10px 10px 0;
    }

    .blog-detail-content .quote p {
        margin-bottom: 0;
        font-size: 1.1rem;
        color: var(--dark);
    }

    .blog-detail-content .quote cite {
        display: block;
        font-size: 0.9rem;
        margin-top: 10px;
        font-weight: 600;
        color: var(--primary);
        font-style: normal;
    }

    .blog-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
    }

    .blog-tag {
        display: inline-block;
        padding: 6px 15px;
        background-color: var(--light);
        color: var(--dark);
        border-radius: 50px;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .blog-tag:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

    .blog-share {
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        padding-bottom: 40px;
        border-bottom: 1px solid var(--gray-light);
    }

    .blog-share-title {
        font-weight: 600;
        margin-right: 15px;
        margin-bottom: 0;
    }

    .blog-share-links {
        display: flex;
        gap: 10px;
    }

    .blog-share-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--light);
        color: var(--dark);
        transition: all 0.3s ease;
    }

    .blog-share-link:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

    .blog-author {
        display: flex;
        align-items: flex-start;
        background-color: var(--light);
        border-radius: 16px;
        padding: 30px;
        margin-bottom: 40px;
    }

    .blog-author-image {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-right: 20px;
    }

    .blog-author-name {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .blog-author-bio {
        color: var(--gray);
        margin-bottom: 15px;
    }

    .blog-author-social {
        display: flex;
        gap: 10px;
    }

    .blog-author-social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: white;
        color: var(--primary);
        transition: all 0.3s ease;
    }

    .blog-author-social-link:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

    .blog-comments {
        margin-bottom: 40px;
    }

    .blog-comments-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 30px;
        position: relative;
        padding-bottom: 15px;
    }

    .blog-comments-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 1.5px;
    }

    .blog-comment {
        display: flex;
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid var(--gray-light);
    }

    .blog-comment:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .blog-comment-image {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .blog-comment-content {
        flex: 1;
    }

    .blog-comment-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .blog-comment-name {
        font-weight: 600;
        margin-bottom: 0;
    }

    .blog-comment-date {
        font-size: 0.9rem;
        color: var(--gray);
    }

    .blog-comment-text {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .blog-comment-reply {
        font-weight: 600;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .blog-comment-reply i {
        margin-right: 5px;
    }

    .blog-comment-reply:hover {
        color: var(--primary-dark);
    }

    .blog-comment-form {
        background-color: var(--light);
        border-radius: 16px;
        padding: 30px;
    }

    .blog-comment-form-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 30px;
        position: relative;
        padding-bottom: 15px;
    }

    .blog-comment-form-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 1.5px;
    }

    .blog-comment-form .form-control {
        border: none;
        background-color: white;
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .blog-comment-form .form-control:focus {
        box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.2);
    }

    .blog-comment-form textarea.form-control {
        min-height: 150px;
    }

    .blog-comment-form .btn-primary-custom {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .related-posts {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .related-posts-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 30px;
        position: relative;
        padding-bottom: 15px;
    }

    .related-posts-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 1.5px;
    }

    /* Sidebar Styles (Same as blog index) */
    .sidebar-section {
        background-color: white;
        border-radius: 16px;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--gray-light);
        margin-bottom: 30px;
    }

    .sidebar-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 15px;
        color: var(--dark);
    }

    .sidebar-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 1.5px;
    }

    .search-form {
        display: flex;
        margin-bottom: 15px;
    }

    .search-input {
        flex: 1;
        border: 1px solid var(--gray-light);
        border-radius: 8px 0 0 8px;
        padding: 12px 20px;
        font-size: 1rem;
        color: var(--dark);
        outline: none;
        transition: all 0.3s ease;
    }

    .search-input:focus {
        border-color: var(--primary);
    }

    .search-btn {
        background-color: var(--primary);
        color: white;
        border: none;
        border-radius: 0 8px 8px 0;
        padding: 0 20px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-btn:hover {
        background-color: var(--primary-dark);
    }

    .category-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-light);
        transition: all 0.3s ease;
    }

    .category-item:last-child {
        border-bottom: none;
    }

    .category-item:hover {
        padding-left: 5px;
    }

    .category-link {
        color: var(--dark);
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
    }

    .category-link i {
        color: var(--primary);
        margin-right: 10px;
        font-size: 0.8rem;
    }

    .category-link:hover {
        color: var(--primary);
    }

    .category-count {
        background-color: var(--light);
        color: var(--primary);
        font-size: 0.8rem;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 50px;
    }

    .popular-post {
        display: flex;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--gray-light);
    }

    .popular-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .popular-post-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .popular-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .popular-post-content {
        flex: 1;
    }

    .popular-post-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .popular-post-title a {
        color: var(--dark);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .popular-post-title a:hover {
        color: var(--primary);
    }

    .popular-post-meta {
        font-size: 0.8rem;
        color: var(--gray);
    }

    .popular-post-meta i {
        color: var(--primary);
        margin-right: 5px;
    }

    .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .tag {
        display: inline-block;
        padding: 6px 15px;
        background-color: var(--light);
        color: var(--dark);
        border-radius: 50px;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .tag:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

    .newsletter-section {
        background-color: var(--primary);
        color: white;
        border-radius: 16px;
        padding: 40px;
        position: relative;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .newsletter-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDIpIj48L3JlY3Q+PHBhdGggZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA4KSIgZD0iTTAgMGg1djVIMHoiPjwvcGF0aD48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjcGF0dGVybikiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiPjwvcmVjdD48L3N2Zz4=');
        opacity: 0.1;
        z-index: 0;
    }

    .newsletter-content {
        position: relative;
        z-index: 1;
    }

    .newsletter-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .newsletter-text {
        opacity: 0.9;
        margin-bottom: 25px;
    }

    .newsletter-form {
        display: flex;
    }

    .newsletter-input {
        flex: 1;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        padding: 12px 20px;
        border-radius: 8px 0 0 8px;
        outline: none;
    }

    .newsletter-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .newsletter-btn {
        background: var(--accent);
        color: white;
        border: none;
        padding: 0 25px;
        border-radius: 0 8px 8px 0;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .newsletter-btn:hover {
        background: var(--accent-dark);
    }

    @media (max-width: 992px) {
        .blog-detail-title {
            font-size: 2.3rem;
        }

        .blog-detail-image {
            height: 400px;
        }
    }

    @media (max-width: 768px) {
        .blog-detail-header {
            padding: 80px 0 60px;
        }

        .blog-detail-title {
            font-size: 1.8rem;
        }

        .blog-detail-image {
            height: 300px;
            margin-top: -30px;
        }

        .blog-detail-content {
            font-size: 1rem;
        }

        .blog-author {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .blog-author-image {
            margin-right: 0;
            margin-bottom: 15px;
        }

        .blog-author-social {
            justify-content: center;
        }
    }

    @media (max-width: 576px) {
        .blog-detail-header {
            padding: 60px 0 40px;
        }

        .blog-detail-title {
            font-size: 1.5rem;
        }

        .blog-detail-image {
            height: 250px;
            margin-top: -20px;
        }

        .blog-detail-meta {
            flex-wrap: wrap;
        }

        .blog-detail-meta-item {
            margin-bottom: 10px;
        }

        .blog-comment {
            flex-direction: column;
        }

        .blog-comment-image {
            margin-right: 0;
            margin-bottom: 15px;
        }
    }
