/* ============================================
   Blog Detail Module - Complete Stylesheet
   ============================================ */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Container and Layout */
.special-blog-section {
    padding: 60px 0;
    background: #fff;
}

.special-blog-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.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;
}

.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;
}

.pbmit-date-texts .updated {
    font-size: 15px;
    color: #666;
}

/* Hero Section */
.bd-blog-hero {
    position: relative;
    width: 100%;
    height: 630px;
    margin-bottom: 40px;
    overflow: hidden;
}

.bd-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Kesik Efekti (Yönetim Kurulu kartları gibi) */
.bd-blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    height: 37%;
    width: 12%;
    transform: translateX(50%) translateY(50%) rotate(30deg);
    background-color: #fff; /* Section arka plan rengi ile aynı */
}

/* Icon Styles - Font Awesome kullanılıyor */

/* Content Area Layout */
.bd-blog-content-area {
    display: grid;
    grid-template-columns: 70% 25%;
    gap: 40px;
}

.recent-post-sticky {
    position: sticky;
    top: 140px;
    align-self: flex-start;
    overflow-y: auto;
    height: 750px;
    padding-right: 12px;
    box-sizing: content-box;
}

.recent-post-sticky::-webkit-scrollbar {
    width: 5px;
}

.recent-post-sticky::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.recent-post-sticky::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.7);
    border-radius: 10px;
}

.recent-post-sticky::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 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;
}

.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: #fac25a;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.bd-toc-list a:hover {
    color: #fac25a;
}

.bd-toc-list .h3-item {
    margin-left: 20px;
}

.bd-toc-list .h3-item a::before {
    width: 4px;
    height: 4px;
    background-color: #6c757d;
}

.bd-toc-list .h4-item {
    margin-left: 40px;
}

.bd-toc-list .h4-item a::before {
    width: 3px;
    height: 3px;
    background-color: #adb5bd;
}

.bd-toc-list .h5-item {
    margin-left: 60px;
}

.bd-toc-list .h5-item a::before {
    width: 3px;
    height: 3px;
    background-color: #ced4da;
}

/* 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 h4 {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin: 25px 0 12px 0;
}

.bd-blog-body h5 {
    font-size: 16px;
    font-weight: 600;
    color: #777;
    margin: 20px 0 10px 0;
}

.bd-blog-body p {
    margin-bottom: 20px;
    font-size: 18px;
}

.bd-blog-body ol,
.bd-blog-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.bd-blog-body ol li,
.bd-blog-body ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.bd-blog-body strong {
    font-weight: 600;
    color: #fac25a;
}

/* Blog Body Image Gallery */
.bd-blog-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.bd-blog-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1.35;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
}

.bd-blog-gallery-item:hover {
    transform: translateY(-2px);
}

.bd-blog-gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    height: 37%;
    width: 12%;
    transform: translateX(50%) translateY(50%) rotate(30deg);
    background-color: #fff;
}

.bd-blog-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bd-blog-gallery-item:hover .bd-blog-gallery-image {
    transform: scale(1.05);
}

/* Video Cover Overlay */
.bd-blog-gallery-video {
    position: relative;
}

@media (max-width: 768px) {
    .bd-blog-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bd-blog-gallery-play-button {
        width: 60px;
        height: 60px;
    }
    
    .bd-blog-gallery-play-icon {
        font-size: 16px;
    }
}

/* 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: #fac25a;
    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;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.bd-recent-post-item:hover {
    opacity: 0.8;
}

.bd-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bd-recent-post-item article {
    display: contents;
}

.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;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Other Blogs Section */
.other-blogs-section {
    margin-top: 60px;
    padding: 0;
    background: #fff;
}

.other-blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.other-blogs-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
}

.other-blogs-title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background-color: #fac25a;
    border-radius: 2px;
}

.other-blogs-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.other-blogs-prev,
.other-blogs-next {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    outline: none;
    padding: 0;
}

.other-blogs-prev:disabled,
.other-blogs-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.other-blogs-nav-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.other-blogs-nav-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.2);
    stroke-dasharray: 251.3;
    stroke-dashoffset: 0;
}

.other-blogs-nav-circle {
    fill: none;
    stroke: rgba(44, 51, 57, 0.7);
    stroke-dasharray: 251.3;
    stroke-dashoffset: 251.3;
    transition: stroke-dashoffset 0.5s ease;
}

.other-blogs-prev:hover:not(:disabled) .other-blogs-nav-circle,
.other-blogs-next:hover:not(:disabled) .other-blogs-nav-circle {
    stroke-dashoffset: 0;
}

.other-blogs-nav-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: rgba(250, 194, 90, 0.7);
    transition: color 0.5s ease;
    z-index: 1;
}

.other-blogs-prev:hover:not(:disabled) .other-blogs-nav-icon,
.other-blogs-next:hover:not(:disabled) .other-blogs-nav-icon {
    color: rgb(250, 194, 90);
}

.other-blogs-prev:disabled .other-blogs-nav-icon,
.other-blogs-next:disabled .other-blogs-nav-icon {
    color: rgba(0, 0, 0, 0.3);
}

.other-blogs-swiper {
    width: 100%;
    overflow: hidden;
}

.other-blogs-swiper .swiper-wrapper {
    align-items: stretch;
}

.other-blogs-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Blog Cards - Other Blogs Section */
.other-blog-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.other-blog-image-wrapper {
    position: relative;
    aspect-ratio: 807 / 496;
    overflow: hidden;
}

.other-blog-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    height: 30%;
    width: 10%;
    transform: translate(50%, 50%) rotate(30deg);
    background-color: white;
}

.other-blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 1024px) {
    .other-blog-card:hover .other-blog-image {
        transform: scale(1.05);
    }
}

.other-blog-date-box {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: rgb(250, 194, 90);
    width: 70px;
    height: 70px;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: white;
    box-sizing: border-box;
}

.other-blog-date-day {
    font-size: 20px;
    font-weight: 500;
    line-height: 126%;
}

.other-blog-date-month {
    line-height: 187%;
    letter-spacing: -0.64px;
    font-size: 12px;
}

.other-blog-title {
    font-weight: 600;
    line-height: 150%;
    letter-spacing: -1.28px;
    font-size: 22px;
    margin: 0;
    color: inherit;
}

@media (min-width: 1024px) {
    .other-blog-title {
        max-width: 566px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .other-blog-date-box {
        top: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    
    .other-blog-date-day {
        font-size: 18px;
    }
    
    .other-blog-date-month {
        font-size: 11px;
    }
    
    .other-blog-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .other-blog-date-box {
        top: 8px;
        right: 8px;
        width: 50px;
        height: 50px;
    }
    
    .other-blog-date-day {
        font-size: 14px;
    }
    
    .other-blog-date-month {
        font-size: 10px;
    }
    
    .other-blog-title {
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bd-blog-content-area {
        grid-template-columns: 70% 25%;
        gap: 30px;
    }
    
    
    .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;
    }

    .special-blog-section {
        padding: 40px 0;
    }
    
    .special-blog-container {
        padding: 0 20px;
    }
    
    .bd-blog-hero {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .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-blog-body h4 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }
    
    .bd-blog-body h5 {
        font-size: 14px;
        margin: 15px 0 8px 0;
    }
    
    .bd-recent-posts-box {
        padding: 20px;
    }
    
    .bd-recent-post-item {
        gap: 12px;
    }
    
    .bd-post-thumbnail {
        width: 50px;
        height: 50px;
    }

    .other-blogs-section {
        margin-top: 40px;
    }

    .other-blogs-header {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .other-blogs-title {
        font-size: 24px;
        align-self: flex-start;
    }

    .other-blogs-title::before {
        height: 30px;
        width: 3px;
        left: -12px;
    }

    .other-blogs-nav {
        align-self: flex-end;
        gap: 12px;
    }

    .other-blogs-prev,
    .other-blogs-next {
        width: 40px;
        height: 40px;
    }
    
    .other-blogs-nav-icon {
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .bd-blog-hero {
        height: 250px;
    }
    
    .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;
    }

    .other-blogs-header {
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .other-blogs-title {
        font-size: 20px;
    }

    .other-blogs-title::before {
        height: 25px;
        left: -10px;
    }

    .other-blogs-prev,
    .other-blogs-next {
        width: 35px;
        height: 35px;
    }
    
    .other-blogs-nav-icon {
        font-size: 12px;
    }

}

/* 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;
    }
}


.bd-blog-content-area .other-blogs-section {
    background: transparent !important;
}


