/* Blog Detail Page Styles */
.blog-detay-page{
 overflow: visible; 
}
/* Container and Layout */
.atlastek-blog-section {
    padding: 60px 0;
    background: #fff;
}

.atlastek-blog-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.bd-blog-detail-wrapper {
    width: 100%;
}

/* Meta Information */
.bd-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.bd-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #666;
}

.bd-meta-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}
.toc-h3{
    padding-left: 15px;
}
.toc-h4{
    padding-left: 25px;
}
.bd-blog-body ul {
    
    list-style-type: disc;
    padding-left: 30px;
}
.bd-blog-body ol {
    
    list-style-type: decimal;
    padding-left: 30px;
}

.bd-calendar-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
}

.bd-pencil-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>');
}

/* Hero Section */
.bd-blog-hero {
    position: relative;
    width: 100%;
    height: 630px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.bd-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.bd-hero-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px;
    height: 60px;
}

.bd-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bd-hero-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Content Area Layout */
.bd-blog-content-area {
    display: grid;
    grid-template-columns: 70% 25%;
    gap: 40px;
    /* Ensure sticky positioning works properly */
}
.recent-post-sticky {
    position: sticky;
    top: 140px;
    align-self: flex-start;
    overflow-y: auto;
    height: 750px;
    padding-right: 12px; /* Scroll ile içerik arasında boşluk */
    box-sizing: content-box; 
}

.recent-post-sticky::-webkit-scrollbar {
    width: 5px; /* Scroll çubuğu genişliği */
}

.recent-post-sticky::-webkit-scrollbar-track {
    background: #f1f1f1; /* Scroll arka plan rengi */
    border-radius: 10px;
}

.recent-post-sticky::-webkit-scrollbar-thumb {
    background: #888888b0; /* Scroll çubuğu rengi */
    border-radius: 10px;
}

.recent-post-sticky::-webkit-scrollbar-thumb:hover {
    background: #555; /* Hover durumundaki scroll çubuğu rengi */
}
    
/* Main Content */
.bd-blog-main-content {
    width: 100%;
}

.bd-blog-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

/* Table of Contents */
.bd-table-of-contents {
    width: 50%;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.bd-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f1f3f4;
    border-bottom: 1px solid #e9ecef;
}

.bd-toc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.bd-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.bd-toc-toggle:hover {
    background-color: #e9ecef;
}

.bd-toggle-icon {
    display: block;
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.bd-toggle-icon::before,
.bd-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: all 0.3s ease;
}

.bd-toggle-icon::before {
    width: 16px;
    height: 2px;
    top: 7px;
    left: 0;
}

.bd-toggle-icon::after {
    width: 2px;
    height: 16px;
    top: 0;
    left: 7px;
}

.bd-table-of-contents.collapsed .bd-toggle-icon::after {
    transform: rotate(90deg);
}

.bd-toc-content {
    padding: 20px 25px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
        overflow-y: scroll;
}

.bd-table-of-contents.collapsed .bd-toc-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.bd-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bd-toc-list li {
    margin-bottom: 12px;
}

.bd-toc-list li:last-child {
    margin-bottom: 0;
}

.bd-toc-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    padding: 0px 0;
    transition: color 0.3s ease;
    position: relative;
}

.bd-toc-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #02617e;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.bd-toc-list a:hover {
    color: #02617e;
}

.bd-toc-list .h3-item {
    margin-left: 20px;
}

.bd-toc-list .h3-item a::before {
    width: 4px;
    height: 4px;
    background-color: #6c757d;
}

/* Blog Body Content */
.bd-blog-body {
    line-height: 1.7;
    color: #333;
}

.bd-blog-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 20px 0;
    padding-top: 20px;
}

.bd-blog-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.bd-blog-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #555;
    margin: 30px 0 15px 0;
}

.bd-blog-body p {
    margin-bottom: 20px;
    font-size: 18px;
}

.bd-blog-body ol {
    margin: 20px 0;
    padding-left: 20px;
}

.bd-blog-body ol li {
    margin-bottom: 10px;
    font-size: 16px;
}

.bd-blog-body strong {
    font-weight: 600;
    color: #02617e
}

/* Recent Posts Sidebar */
.bd-recent-posts-sidebar {
    height: 100%;
    position: sticky;
    top: 140px;
}

.bd-recent-posts-box {
    background: #f8f9fa;
    width: 100%;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    z-index: 10;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.bd-recent-posts-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.bd-recent-posts-title::before {
    content: '*';
    color: #02617e;
    margin-right: 5px;
}

.bd-recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bd-recent-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.bd-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bd-post-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bd-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-post-info {
    flex: 1;
    min-width: 0;
}

.bd-post-date {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bd-post-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bd-blog-content-area {
        grid-template-columns: 70% 25%;
        gap: 30px;
    }
    
    .bd-hero-title {
        font-size: 32px;
    }
    
    .bd-blog-title {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .bd-blog-content-area {
        grid-template-columns: 100%;
        gap: 30px;
    }

    .recent-post-sticky {
        position: relative;
        top: 0;
        align-self: auto;
        overflow-y: visible;
        height: auto;
        padding-right: 0;
        box-sizing: border-box;
    } 
    
    .bd-recent-posts-box {
        position: static !important;
        order: -1;
        top: auto !important;
        width: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .bd-blog-body p {
        font-size: 14px !important;
    }
    
    .bd-blog-body h2 {
        font-size: 18px !important;
    }

    .bd-blog-meta {
        font-size: 14px !important;
        flex-direction: row !important;
    }

    .pbmit-date-texts .label {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .bd-table-of-contents {
        width: 100%;
        background: #f8f9fa;
        border-radius: 12px;
        margin-bottom: 40px;
        overflow: hidden;
        border: 1px solid #e9ecef;
    }

  

    .atlastek-blog-section {
        padding: 40px 0;
    }
    
    .atlastek-blog-container {
        padding: 0 15px;
    }
    
    .bd-blog-hero {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .bd-hero-overlay {
        padding: 30px 20px;
    }
    
    .bd-hero-logo {
        width: 100px;
        height: 50px;
        top: 15px;
        left: 15px;
    }
    
    .bd-hero-title {
        font-size: 24px;
    }
    
    .bd-blog-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .bd-toc-header {
        padding: 15px 20px;
    }
    
    .bd-toc-content {
        padding: 15px 20px;
    }
    
    .bd-toc-header h3 {
        font-size: 16px;
    }
    
    .bd-blog-body h2 {
        font-size: 20px;
        margin: 30px 0 15px 0;
    }
    
    .bd-blog-body h3 {
        font-size: 18px;
        margin: 25px 0 12px 0;
    }
    
    .bd-recent-posts-box {
        padding: 20px;
    }
    
    .bd-recent-post-item {
        gap: 12px;
    }
    
    .bd-post-thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .bd-blog-hero {
        height: 250px;
    }
    
    .bd-hero-overlay {
        padding: 20px 15px;
    }
    
    .bd-hero-title {
        font-size: 20px;
    }
    
    .bd-blog-title {
        font-size: 20px;
    }
    
    .bd-toc-header {
        padding: 12px 15px;
    }
    
    .bd-toc-content {
        padding: 12px 15px;
    }
    
    .bd-recent-posts-box {
        padding: 15px;
    }
    
    .bd-recent-post-item {
        gap: 10px;
    }
    
    .bd-post-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .bd-post-title {
        font-size: 13px;
    }
}

/* Mobile-specific table of contents behavior */
@media (max-width: 768px) {
    .bd-table-of-contents {
        margin-bottom: 30px;
    }
    
    .bd-table-of-contents:not(.mobile-expanded) .bd-toc-content {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .bd-table-of-contents.mobile-expanded .bd-toc-content {
        max-height: 500px;
        opacity: 1;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

.pbmit-meta-date {
     display: flex;
        align-items: center;
        margin-left: 12px;
}

.pbmit-meta-date img{
    margin-right: 10px;
    width: 40px;
    height: 40px;
}

.pbmit-date-texts {
    display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.3;
}

.pbmit-date-texts .label {
    font-weight: 600;
    font-size: 17px;
    color: #555;
    margin: 0;
    padding: 0;
}

.swiper-slide .atlastek-blog-image-container {
height: 247px;
}

.swiper-slide .atlastek-blog-action-button {
    bottom: 0px;
    right: 0px;
}


.bd-blog-content-area .other-blogs-section {

    background: transparent !important; 
}
