/*
Theme Name: Technix Child
Template: technix
Version: 1.0.0
Text Domain: technix-child
*/

/* ==========================================================================
   WHITEPAPER FİLTRE SAYFASI
   ========================================================================== */

.whitepaper-page {
    padding: 70px 0;
    background: #f8fafc;
}

.whitepaper-container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.whitepaper-sidebar {
    position: sticky;
    top: 30px;
}

.whitepaper-filter-form {
    display: grid;
    gap: 20px;
}

.whitepaper-filter-box {
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 0;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.whitepaper-filter-box h3 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.15;
    color: #0b1544;
    letter-spacing: -0.02em;
}

.whitepaper-search-input {
    width: 100%;
    height: 52px;
    border: 1px solid #d9e1ec;
    border-radius: 0;
    padding: 0 18px;
    font-size: 16px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whitepaper-search-input::placeholder {
    color: #94a3b8;
}

.whitepaper-search-input:focus {
    outline: none;
    border-color: #0b1f5f;
    box-shadow: 0 0 0 2px rgba(11, 31, 95, 0.08);
    background: #ffffff;
}

.whitepaper-topic-list {
    display: grid;
    gap: 10px;
}

.whitepaper-topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e6ebf2;
    border-radius: 0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.whitepaper-topic-item:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.whitepaper-topic-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0b1f5f;
    flex: 0 0 auto;
    border-radius: 0;
}

.whitepaper-topic-item span {
    font-size: 15px;
    line-height: 1.4;
    color: #475569;
    font-weight: 600;
}

.whitepaper-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.whitepaper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    background: #0b1f5f;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: background-color 0.2s ease;
}

.whitepaper-btn:hover {
    background-color: #081647;
}

.whitepaper-reset {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
    font-weight: 700;
    color: #667085;
}

.whitepaper-content {
    min-width: 0;
}

.whitepaper-page-header {
    margin-bottom: 28px;
}

.whitepaper-page-header h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1.05;
    color: #0b1544;
    letter-spacing: -0.04em;
}

.whitepaper-result-count {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
}

.whitepaper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* ==========================================================================
   WHITEPAPER KARTLARI
   ========================================================================== */

.whitepaper-card {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 0;
    border: 1px solid #e7ecf3;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.whitepaper-card:hover {
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    border-color: #d8e1ec;
}

.whitepaper-card-image {
    display: block;
    height: 100%;
    min-height: 250px;
    background: #ffffff;
    border-right: none;
    padding: 20px;
}

.whitepaper-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.whitepaper-card-body {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.whitepaper-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.whitepaper-topic-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 0;
    background: #eef4ff;
    color: #0b1f5f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid #dce4ee;
}

.whitepaper-card-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #0b1544;
}

.whitepaper-card-title a {
    text-decoration: none;
    color: inherit;
}

.whitepaper-card-title a:hover {
    color: #0b1f5f;
}

.whitepaper-card-excerpt {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.whitepaper-card-excerpt p:last-child {
    margin-bottom: 0;
}

.whitepaper-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    text-decoration: none;
    font-weight: 700;
    color: #00c7b1;
    font-size: 15px;
}

.whitepaper-readmore:hover {
    color: #00b09c;
}

/* ==========================================================================
   SAYFALAMA
   ========================================================================== */

.whitepaper-pagination {
    margin-top: 34px;
}

.whitepaper-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.whitepaper-pagination a,
.whitepaper-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dce4ee;
    border-radius: 0;
    background: #ffffff;
    text-decoration: none;
    color: #0b1544;
    font-weight: 700;
}

.whitepaper-pagination .current {
    background: #0b1f5f;
    border-color: #0b1f5f;
    color: #ffffff;
}

.whitepaper-empty {
    padding: 28px;
    border: 1px solid #e7ecf3;
    border-radius: 0;
    background: #ffffff;
    color: #64748b;
}

/* ==========================================================================
   SINGLE WHITEPAPER - GENEL SIDEBAR KUTUSU
   ========================================================================== */

.whitepaper-single-sidebar {
    display: grid;
    gap: 24px;
    overflow: visible;
    height: auto;
}

.whitepaper-single-box {
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 0;
    padding: 24px;
}

.whitepaper-single-box h3 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.2;
    color: #0b1544;
}

.whitepaper-single-meta {
    margin-bottom: 18px;
}

.whitepaper-single-meta:last-child {
    margin-bottom: 0;
}

.whitepaper-single-meta strong {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #667085;
}

.whitepaper-single-meta div {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}

.whitepaper-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.whitepaper-single-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 0;
    background: #eef4ff;
    color: #0b1f5f;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #dce4ee;
}
.tp-post-area .custom-container-3 {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tp-post-area .custom-container-3 > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.whitepaper-single-cta {
    margin-top: 22px;
}

.whitepaper-single-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 0;
    background: #0b1f5f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.whitepaper-single-btn:hover {
    background-color: #081647;
    color: #ffffff;
}

/* ==========================================================================
   SINGLE WHITEPAPER - SOL STICKY SIDEBAR (TABLE OF CONTENTS)
   ========================================================================== */

.whitepaper-left-sidebar-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

.whitepaper-left-sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}

.whitepaper-left-sidebar-sticky::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.whitepaper-left-sidebar-sticky::-webkit-scrollbar-thumb {
    background: #c5cdd8;
    border-radius: 4px;
}

/* Eski sticky class - geriye dönük uyumluluk */
.whitepaper-sidebar-left {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px;
}

.whitepaper-sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.whitepaper-sidebar-left::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 0;
}

/* ==========================================================================
   SINGLE WHITEPAPER - SAĞ STICKY SIDEBAR (VIDEO)
   ========================================================================== */

.whitepaper-right-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.whitepaper-video-box {
    display: block;
    visibility: visible;
    opacity: 1;
}

.whitepaper-video-thumb {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.whitepaper-video-thumb img {
    width: 100%;
    display: block;
}

.whitepaper-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 112, 185, 0.9);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    transition: background 0.2s;
}

.whitepaper-video-thumb:hover .whitepaper-play-btn {
    background: rgba(0, 85, 150, 1);
}

/* ==========================================================================
   SINGLE WHITEPAPER - 3 KOLONLU LAYOUT
   ========================================================================== */

.tp-post-area .row {
    --bs-gutter-x: 1rem;
}

/* ==========================================================================
   DLUBAL STYLE DOCUMENTATION TREE MENU
   ========================================================================== */

.dlubal-nav-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dlubal-folder {
    margin-bottom: 5px;
}

.dlubal-folder-header {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
    color: #0b1544;
    font-weight: 700;
    font-size: 15px;
    background: transparent;
    border-radius: 4px;
    transition: background 0.2s;
}

.dlubal-folder-header:hover {
    background: #f1f5f9;
}

.dlubal-toggle-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform 0.2s;
}

.dlubal-folder.is-open .dlubal-toggle-arrow {
    transform: rotate(45deg);
}

.dlubal-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.dlubal-folder.is-open .dlubal-post-list {
    display: block;
}

.dlubal-post-item {
    margin: 2px 0;
}

.dlubal-post-item > a {
    display: block;
    padding: 8px 12px 8px 24px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
}

.dlubal-post-item > a:hover {
    color: #0b1f5f;
    background: #f8fafc;
}

.dlubal-post-item.current-post > a,
.dlubal-subpost-item.current-post > a {
    background: #eef2ff !important;
    color: #0b1f5f !important;
    font-weight: 700;
    border-left: 3px solid #0b1f5f;
    border-radius: 0 4px 4px 0;
}

.dlubal-subpost-list {
    list-style: none;
    padding-left: 35px;
    margin: 0;
    border-left: 1px dashed #cbd5e1;
    margin-left: 20px;
}

.dlubal-subpost-item > a {
    display: block;
    padding: 6px 10px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.dlubal-subpost-item > a:hover {
    color: #0b1f5f;
}

/* ==========================================================================
   AKORDEON FİLTRE SİSTEMİ
   ========================================================================== */

.whitepaper-filter-box.no-accordion {
    padding: 24px;
}

.whitepaper-filter-box.filter-accordion {
    padding: 0;
    overflow: hidden;
    margin-bottom: 15px;
}

.filter-trigger {
    width: 100%;
    padding: 18px 24px;
    background: #f8fafc;
    border: none;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #0b1544;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.filter-trigger:hover {
    background: #f1f5f9;
}

.filter-accordion.is-open .filter-trigger {
    border-bottom-color: #e7ecf3;
}

.filter-content {
    padding: 18px 24px;
    display: none;
    background: #ffffff;
}

.filter-accordion.is-open .filter-content {
    display: block;
}

.filter-trigger .arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0b1544;
    border-bottom: 2px solid #0b1544;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-bottom: 4px;
}

.filter-accordion.is-open .filter-trigger .arrow {
    transform: rotate(-135deg);
    margin-top: 6px;
    margin-bottom: 0;
}

/* ==========================================================================
   NESTED FILTER TREE
   ========================================================================== */

.filter-tree-item {
    margin-bottom: 0;
}

.topic-item-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.topic-item-wrapper .whitepaper-topic-item {
    margin-bottom: 0 !important;
    min-height: 48px;
}

.filter-tree-children {
    display: none;
}

.filter-tree-item.is-open > .filter-tree-children {
    display: block;
}

.tree-child-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    background: transparent;
    border: none;
    border-left: 1px solid #e6ebf2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.tree-child-toggle:hover {
    background: #f1f5f9;
}

.tree-child-toggle .arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0b1544;
    border-bottom: 2px solid #0b1544;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.filter-tree-item.is-open > .topic-item-wrapper > .tree-child-toggle .arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* ==========================================================================
   RELATED ITEMS
   ========================================================================== */

.whitepaper-related-list {
    display: grid;
    gap: 16px;
}

.whitepaper-related-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.whitepaper-related-thumb {
    display: block;
}

.whitepaper-related-thumb img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.whitepaper-related-content h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.whitepaper-related-content h4 a {
    text-decoration: none;
    color: #0b1544;
}

.whitepaper-related-content h4 a:hover {
    color: #0b1f5f;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
    .whitepaper-page-header h1 {
        font-size: 48px;
    }

    .whitepaper-card {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .whitepaper-container {
        grid-template-columns: 1fr;
    }

    .whitepaper-sidebar {
        position: static;
    }

    .whitepaper-page-header h1 {
        font-size: 40px;
    }

    .whitepaper-left-sidebar-sticky,
    .whitepaper-right-sidebar-sticky {
        position: static;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .whitepaper-page {
        padding: 50px 0;
    }

    .whitepaper-container {
        width: min(100% - 24px, 100%);
        gap: 28px;
    }

    .whitepaper-filter-box {
        padding: 22px;
    }

    .whitepaper-page-header h1 {
        font-size: 32px;
    }

    .whitepaper-card {
        grid-template-columns: 1fr;
    }

    .whitepaper-card-image {
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e7ecf3;
    }

    .whitepaper-card-body {
        padding: 22px;
    }
}