/*
 */

:root {
    --main-color: #3f51b5;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    line-height: 1.15;
    font-size: 14px;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--bs-body-font-family);
    font-size: 14px;
    color: #6a6a6a;
    background: #f5f5f5;
}

h1,
h3,
p {
    margin: 0;
}

a {
    color: #222;
}

a:hover {
    color: var(--main-color);
}

/* Bootstrap 5 .container — genislik ekran boyutuna gore (rize ile ayni oranlar) */
.container {
    --bs-gutter-x: 1.5rem;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Tema: #header */
#header {
    background: var(--main-color);
    padding: 32px 0;
    text-align: center;
    color: #fff;
}

.logo {
    max-width: 100%;
}

/* Tema: .site-title (+ WP’de baslik link icinde — rize ile ayni) */
.site-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    color: #fff;
    font-family: var(--bs-body-font-family);
    font-weight: 400;
}

.site-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: inherit;
    line-height: inherit;
}

/* Tema: .site-description */
.site-description {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    font-family: var(--bs-body-font-family);
}

#primary.site-main {
    margin: 40px 0;
}

/* Bootstrap 5 .row — col kutulari esit satir yuksekligi icin flex sutun */
#primary .archive-grid,
#primary .container > .row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

#primary .archive-grid > [class*="col-"],
#primary .container > .row > [class*="col-"],
#primary .container > .row > .col {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
    min-width: 0;
}

#primary .archive-grid > .col-12,
#primary .container > .row > .col-12 {
    flex: 0 0 auto;
}

/* row-cols-* + .col (Bootstrap 5 — ornek index yapisina uygun) */
#primary .container > .row.row-cols-1 > .col {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    #primary .archive-grid > .col-md-6,
    #primary .container > .row > .col-md-6,
    #primary .container > .row.row-cols-md-2 > .col {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    #primary .archive-grid > .col-lg-4,
    #primary .container > .row > .col-lg-4,
    #primary .container > .row.row-cols-lg-3 > .col {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

/* Tema: .post-item — sutun yuksekligini doldur, kartlar ayni boy */
#primary .post-item {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background: #fff;
    margin-bottom: 20px;
}

/* Tema: .post-item-content { padding: 18px 24px; } */
.post-item-content {
    padding: 18px 24px;
    text-align: left;
}

.post-item .entry-header {
    text-align: left;
}

/* Tema: .post-item .entry-title */
.post-item .entry-title {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 400;
    color: #222;
    line-height: 1.25;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-item .entry-title a {
    color: inherit;
    text-decoration: none;
}

/*
 * Tema: #footer + .footer-info p
 * Uyari metni, ust bant .site-description (13px/300/1.8) ve .footer-bottom-list li a (13px) ile ayni olcekte.
 */
#footer {
    border-top: 2px solid #eee;
    background: var(--main-color);
    color: #fff;
    font-family: var(--bs-body-font-family);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
}

.footer-top {
    padding: 32px 0;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

.footer-info {
    text-align: center;
}

/* Tema: .footer-info p yalnizca margin:0 — punto #footer miras 13px */
.footer-info p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    overflow-wrap: anywhere;
}

.text-center {
    text-align: center;
}
