body{
    background-color: #fff;
}
#breadcrumbs{
    margin: 24px 0px;
    display: inline-block;
}
#breadcrumbs a{text-decoration: none; color: #dc4828;}
main h1{font-size: 28px; margin:0px 0px 30px 0px;}

.loops {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2em;
    grid-auto-rows: 1fr;
}
main p{margin-bottom: 18px;}
main li{margin-bottom: 10px;}
main h2, main h3, main h4, main h5{
    margin-bottom: 20px;
}
main ul, main ol{
    padding-left: 18px;
    margin-bottom: 18px;
}
.pro-title h2{margin-bottom: 0px;}
.pzt{margin-top: 45px;}

.pagination{margin-top: 30px;}
.pagination span, .pagination a{
    padding: 5px 8px; 
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    background-color:#11161e;
}
.pagination span{background-color: #dc4828;}

/* ── Single Post Layout ─────────────────────────────── */
.single-main {
    padding-top: 48px;
    padding-bottom: 64px;
}
.singler {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-gap: 32px;
    align-items: start;
}
.single-article {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.single-article .wp-block-image,
.single-article figure {
    margin-bottom: 28px;
}
.single-article .wp-block-image img,
.single-article figure img {
    border-radius: 4px;
    border: 1px solid #e8e8e8 !important;
    width: 100%;
    height: auto;
}

/* Tek basina eklenen gorseller (Gallery DISINDA) her zaman tam genislik */
.single-article > .wp-block-image,
.single-article > figure.wp-block-image,
.single-article > figure:not(.wp-block-gallery),
.single-article > p > .wp-block-image,
.single-article > .wp-block-image.size-thumbnail,
.single-article > .wp-block-image.size-medium,
.single-article > .wp-block-image.is-resized {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    text-align: left !important;
}
.single-article > .wp-block-image img,
.single-article > figure:not(.wp-block-gallery) img,
.single-article > p > .wp-block-image img,
.single-article > p > img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
}
/* Gallery iceriklerinde TUM bu kurallar gecerli degil — gallery normal kalir */
.single-article .wp-block-gallery,
.single-article .wp-block-gallery * {
    /* gallery default davranisi korunur */
}
.single-article h2 {
    font-size: 20px;
    font-weight: 700;
    color: #11161e;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.single-article h3 {
    font-size: 17px;
    font-weight: 600;
    color: #11161e;
    margin-top: 22px;
    margin-bottom: 10px;
}
.single-article ul li {
    position: relative;
    padding-left: 6px;
    color: #333;
    line-height: 1.75;
}
.single-article ul li::marker {
    color: #dc4828;
}
.wp-block-button__link{
    background-color: #dc4828 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
}
.wp-block-button__link:hover{
    background-color: #11161e !important;
}
.sidebar-wrap{
    border: 1px solid #e6e6e6;
    margin-top: 0;
    height: fit-content;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.sidebar-nr{
    margin-top: 25px;
}
.side-title{
    font-size: 16px;
    background-color: #11161e;
    font-weight: 600;
    color: #fff;
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
}
.sidebar ul{list-style: none; padding-left: 0px; margin-bottom: 0px;}
.sidebar li{margin-bottom: 0px;}
.sidebar a{text-decoration: none; font-size: 15px; color: #11161e; display: flex; padding:10px 20px; border-bottom: 1px solid #e6e6e6;}
.sidebar a:hover{color: #dc4828;}

.sidebar input, .sidebar textarea{
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background-color: transparent;
    border:1px solid #e6e6e6
}
.side-form{
    padding: 20px 10px;
}
.wpcf7-submit{
    cursor: pointer;
    background: #11161e !important;
    border-radius: 4px;
    color: #fff;
    width: 90px !important;
}
.singler img:first-child{
    border: 1px solid #e6e6e6;
 
}
.wp-block-table thead{text-align: left;    border-bottom: 3px solid #dc4828 !important;}
.wp-block-table td, .wp-block-table th{border: 1px solid #e6e6e6 !important;}

/* Gutenberg Columns fix */
.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    align-items: center !important;
}

.wp-block-column {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}
.wp-block-button__link{
	min-width: 42px !important;
    display: inline-block;
    text-align: center;
}
/* Mobilde alt alta geçsin */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-wrap: wrap !important;
    }
    .wp-block-column {
        flex-basis: 100% !important;
    }
}



/* ══════════════════════════════════════════════════════════════
   GALLERY — Gutenberg wp-block-gallery + classic [gallery]
   ══════════════════════════════════════════════════════════════ */

/* Gutenberg gallery grid override */
.single-article .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin: 32px 0 !important;
    padding: 0 !important;
}
.single-article .wp-block-gallery figure.wp-block-image {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border: 1px solid #e6e6e6;
    box-sizing: border-box;
    padding: 10px;
}
.single-article .wp-block-gallery figure.wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    border-radius: 0 !important;
    display: block;
    transition: transform 0.4s ease;
}
.single-article .wp-block-gallery figure.wp-block-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.single-article .wp-block-gallery figure.wp-block-image a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17,22,30,0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/32px no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.single-article .wp-block-gallery figure.wp-block-image a:hover::after { opacity: 1; }
.single-article .wp-block-gallery figure.wp-block-image a:hover img { transform: scale(1.06); }

/* Gallery header badge */
.gallery-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 5px 12px 5px 10px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
}
.gallery-header-badge svg {
    flex-shrink: 0;
    color: #dc4828;
}

/* Classic [gallery] shortcode */
.single-article .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin: 32px 0 !important;
}
.single-article .gallery-item {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 5px;
    background: #f8f8f8;
    aspect-ratio: 4 / 3;
    border: 1px solid #e6e6e6;
    box-sizing: border-box;
    padding: 10px;
}
.single-article .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.single-article .gallery-item a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17,22,30,0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/32px no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.single-article .gallery-item a:hover::after { opacity: 1; }
.single-article .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    display: block;
    transition: transform 0.4s ease;
}
.single-article .gallery-item a:hover img { transform: scale(1.06); }

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════ */
body.lb-noscroll { overflow: hidden; }

#apex-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
#apex-lb.is-open {
    opacity: 1;
    pointer-events: all;
}
.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,13,18,0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lb-stage {
    position: relative;
    z-index: 2;
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-img {
    max-width: 88vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.22s ease;
    display: block;
}
.lb-img.is-loaded { opacity: 1; }

.lb-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}
.lb-loader.is-visible { display: flex; }
.lb-loader span {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #dc4828;
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-caption {
    margin-top: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}
.lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    z-index: 3;
    font-family: sans-serif;
}
.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: #dc4828; }

.lb-close {
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    font-size: 18px;
}
.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 34px;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 600px) {
    .single-article .wp-block-gallery,
    .single-article .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media only screen and (max-width: 900px) {
    .singler {
        grid-template-columns: 1fr;
    }
    .single-main {
        padding-top: 28px;
        padding-bottom: 40px;
    }
    .single-article {
        padding: 24px 20px;
    }
}

/* ====================================================================
   PAGE TEMPLATE DEFAULT — düz metin sayfaları (Privacy / Cookie / FAQ)
   Hero ile içerik arasında nefes + ortalanmış okuma alanı
   ==================================================================== */
body.page-template-default main.container > section > article {
    max-width: 920px;
    margin: 0 auto;
    padding: 64px 24px 80px;
    line-height: 1.75;
    font-size: 16px;
    color: #333;
}
body.page-template-default main.container > section > article p { margin: 0 0 18px; }
body.page-template-default main.container > section > article ul,
body.page-template-default main.container > section > article ol { margin: 0 0 22px 22px; }
body.page-template-default main.container > section > article li { margin-bottom: 8px; }
body.page-template-default main.container > section > article h1,
body.page-template-default main.container > section > article h2,
body.page-template-default main.container > section > article h3 { margin: 32px 0 14px; color: #11161e; }
body.page-template-default main.container > section > article a { color: #dc4828; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.page-template-default main.container > section > article a:hover { color: #b13921; }
body.page-template-default main.container > section > article strong { color: #11161e; }

@media only screen and (max-width: 768px) {
    body.page-template-default main.container > section > article {
        padding: 36px 18px 56px;
        font-size: 15px;
    }
}


/* ====================================================================
   SEARCH RESULTS — yeni grid tasarımı
   ==================================================================== */
.search-hero {
    background: linear-gradient(180deg, #11161e 0%, #1a212c 100%);
    color: #fff;
    padding: 56px 20px 48px;
    border-top: 4px solid #dc4828;
}
.search-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.search-hero__breadcrumb {
    margin-bottom: 14px;
    font-size: 13px;
    opacity: 0.75;
}
.search-hero__breadcrumb a { color: #dc4828; text-decoration: none; }
.search-hero__breadcrumb a:hover { text-decoration: underline; }
.search-hero__title {
    font-size: 30px;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    color: #fff;
}
.search-hero__count {
    color: #dc4828;
    margin-right: 6px;
}
.search-hero__query {
    color: #ffd166;
    font-style: italic;
    margin-left: 4px;
}

.search-results-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
    margin-bottom: 48px;
}

.search-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}
.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(17, 22, 30, 0.10);
    border-color: #dc4828;
}
.search-card__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.search-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.search-card:hover .search-card__img { transform: scale(1.04); }
.search-card__body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.search-card__type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #dc4828;
    margin-bottom: 6px;
}
.search-card__title {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #11161e;
    font-weight: 700;
}
.search-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 14px;
    flex: 1;
}
.search-card__cta {
    font-size: 13px;
    font-weight: 700;
    color: #dc4828;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.search-card__cta .i-saga {
    transition: transform .2s ease;
}
.search-card:hover .search-card__cta .i-saga {
    transform: translateX(3px);
}

.search-results-pagination {
    display: flex;
    justify-content: center;
}

/* Empty state */
.search-no-results {
    text-align: center;
    padding: 80px 20px 100px;
    max-width: 600px;
    margin: 0 auto;
}
.search-no-results__icon {
    font-size: 56px;
    margin-bottom: 18px;
    opacity: 0.4;
}
.search-no-results__title {
    font-size: 24px;
    color: #11161e;
    margin: 0 0 14px;
    font-weight: 700;
}
.search-no-results__text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px;
}
.search-no-results__form {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
}
.search-no-results__input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.search-no-results__input:focus {
    border-color: #dc4828;
}
.search-no-results__submit {
    background: #dc4828;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.search-no-results__submit:hover {
    background: #b13921;
}

@media only screen and (max-width: 768px) {
    .search-hero { padding: 40px 18px 36px; }
    .search-hero__title { font-size: 22px; }
    .search-results-wrap { padding: 32px 16px 60px; }
    .search-results-grid { gap: 18px; }
    .search-no-results__form { flex-direction: column; }
}
