html, body {
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
    padding: 0;
}

.blog-view-section {
    padding: 120px 20px 80px;
    background: var(--bg-color, #0a0a0a);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.blog-header-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    color: var(--text-color, #ffffff);
    line-height: 1.8;
}

.blog-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.blog-meta-divider {
    color: rgba(255, 255, 255, 0.2);
}

.blog-author {
    color: #fff;
    font-weight: 600;
}

.blog-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 50px;
    margin-bottom: 20px;
    color: #fff;
}

.blog-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.blog-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-content li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    list-style: none;
}

.blog-content li::before {
    content: '→';
    position: absolute;
    left: -25px;
    color: #fff;
}

.blog-source {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-back-btn {
    color: #910D17 !important;
    text-decoration: none !important;
}

.blog-source a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
}

.blog-source a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .blog-view-section {
        padding: 100px 15px 60px;
    }
    
    .blog-header-image {
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .blog-title {
        margin-bottom: 30px;
    }
    
    .blog-content p,
    .blog-content li {
        font-size: 1.3rem;
    }
    .social-icons-card{
display: none;
    }
}

/* Sidebar Layout */
.blog-view-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.blog-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-main-content {
    min-width: 0;
}

/* Sidebar Styling */
.blog-sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    padding: 4px;
}

.blog-sidebar-sticky::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Sidebar Cards */
.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid #910D17;
    padding-left: 12px;
}

/* Author Card Mini */
.author-mini-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-mini-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.author-mini-info {
    flex-grow: 1;
}

.author-mini-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
    letter-spacing: 0.5px;
}

.author-mini-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* Form Card */
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


 .sidebar-form input, .sidebar-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
    border-color: #910D17;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(145, 13, 23, 0.2);
}

.sidebar-form textarea {
    resize: none;
}

.sidebar-form-submit {
    background: #910D17;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-form-submit:hover {
    background: #a8101b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(145, 13, 23, 0.4);
}

/* Relative Posts Card */
.relative-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.relative-post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

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

.relative-post-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

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

.relative-post-info {
    flex-grow: 1;
    min-width: 0;
}

.relative-post-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relative-post-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Social Icons Card */
.sidebar-socials {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-icon-btn.instagram:hover { background: #e1306c; border-color: #e1306c; }
.social-icon-btn.x-twitter:hover { background: #000; border-color: #333; }
.social-icon-btn.youtube:hover { background: #ff0000; border-color: #ff0000; }

/* Responsive Adjustments */
.sidebar-card,
.sidebar-card * {
    box-sizing: border-box;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .blog-layout-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .blog-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
        align-self: stretch;
    }
}

@media (max-width: 576px) {
    .sidebar-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar-card {
        padding: 20px 16px;
    }
    
    .author-mini-card {
        text-align: left;
        align-items: left;
        gap: 12px;
    }
}

