/* ============================================================================
   Sitenin temel stilleri (eski Bootstrap 5.3.8 CSS'inin kullanılan kısmı; kütüphane yok)
   Değerler eski görünümün aynısıdır (Bootstrap değişkenleri çözüldü). 5. bölüm eski Swiper'ın yerini alan kaydırıcıdır. Sıra kaskat için önemlidir:
   bu dosya temadan (style.css) önce yüklenir, tema bunları ezer. Ayrıntı: project-docs/onyuz-kutuphanesiz.md
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1) Sıfırlama: öğe varsayılanları (editör içeriğindeki her öğe için tam tutulur)
   ---------------------------------------------------------------------------- */

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

body {
    margin: 0;
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: .25;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: calc(1.325rem + .9vw);
}

@media (min-width: 1200px) {
    h2 {
        font-size: 2rem;
    }
}

h3 {
    font-size: calc(1.3rem + .6vw);
}

@media (min-width: 1200px) {
    h3 {
        font-size: 1.75rem;
    }
}

h4 {
    font-size: calc(1.275rem + .3vw);
}

@media (min-width: 1200px) {
    h4 {
        font-size: 1.5rem;
    }
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

abbr[title] {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
    cursor: help;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
}

address {
    margin-bottom: 1rem;
    font-style: normal;
    line-height: inherit;
}

ol,
ul {
    padding-left: 2rem;
}

dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol,
ol ul,
ul ol,
ul ul {
    margin-bottom: 0;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: .5rem;
    margin-left: 0;
}

blockquote {
    margin: 0 0 1rem;
}

b,
strong {
    font-weight: bolder;
}

small {
    font-size: .875em;
}

mark {
    padding: .1875em;
    color: #212529;
    background-color: #fff3cd;
}

sub,
sup {
    position: relative;
    font-size: .75em;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -.25em;
}

sup {
    top: -.5em;
}

a {
    color: rgba(13,110,253,1);
    text-decoration: underline;
}

a:hover {
    color: rgba(10,88,202, 1);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

code,
kbd,
pre,
samp {
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    font-size: 1em;
}

pre {
    display: block;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    font-size: .875em;
}

pre code {
    font-size: inherit;
    color: inherit;
    word-break: normal;
}

code {
    font-size: .875em;
    color: #d63384;
    word-wrap: break-word;
}

a>code {
    color: inherit;
}

kbd {
    padding: .1875rem .375rem;
    font-size: .875em;
    color: #fff;
    background-color: #212529;
    border-radius: .25rem;
}

kbd kbd {
    padding: 0;
    font-size: 1em;
}

figure {
    margin: 0 0 1rem;
}

img,
svg {
    vertical-align: middle;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

caption {
    padding-top: .5rem;
    padding-bottom: .5rem;
    color: rgba(33, 37, 41, 0.75);
    text-align: left;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
select {
    text-transform: none;
}

[role=button] {
    cursor: pointer;
}

select {
    word-wrap: normal;
}

select:disabled {
    opacity: 1;
}

[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
    display: none !important;
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button;
}

[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: .5rem;
    line-height: inherit;
    font-size: calc(1.275rem + .3vw);
}

@media (min-width: 1200px) {
    legend {
        font-size: 1.5rem;
    }
}

legend+* {
    clear: left;
}

::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-year-field {
    padding: 0;
}

::-webkit-inner-spin-button {
    height: auto;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type=search]::-webkit-search-cancel-button {
    cursor: pointer;
    filter: grayscale(1);
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
    padding: 0;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

::file-selector-button {
    font: inherit;
    -webkit-appearance: button;
}

output {
    display: inline-block;
}

iframe {
    border: 0;
}

summary {
    display: list-item;
    cursor: pointer;
}

progress {
    vertical-align: baseline;
}

[hidden] {
    display: none !important;
}

/* ----------------------------------------------------------------------------
   2) Izgara: .container, .row ve bileşen sütunları (md: 768 px ve üstü)
   ---------------------------------------------------------------------------- */

.container {
    width: 100%;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .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;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * 0);
    margin-right: calc(-.5 * 1.5rem);
    margin-left: calc(-.5 * 1.5rem);
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .5);
    margin-top: 0;
}

.ref-gallery-col {
    flex: 0 0 auto;
    width: 50%;
}

@media (min-width: 768px) {
    .ref-col {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (min-width: 768px) {
    .page-aside,
    .listing-col,
    .footer-col,
    .team-image-col,
    .ref-gallery-col {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

@media (min-width: 768px) {
    .about-media-col,
    .detail-form-col {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
}

@media (min-width: 768px) {
    .contact-form-col,
    .contact-info-col,
    .form-col-half,
    .faq-list-col,
    .faq-image-col,
    .why-col,
    .reason-col {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 768px) {
    .about-text-col,
    .detail-text-col {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
}

@media (min-width: 768px) {
    .page-main,
    .team-text-col {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

@media (min-width: 768px) {
    .full-width {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ----------------------------------------------------------------------------
   3) Bileşenler: görsel, form alanı, SSS kartı, alt menü
   ---------------------------------------------------------------------------- */

.img-scale {
    max-width: 100%;
    height: auto;
}

.field-input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .field-input {
        transition: none;
    }
}

.field-input[type=file] {
    overflow: hidden;
}

.field-input[type=file]:not(:disabled):not([readonly]) {
    cursor: pointer;
}

.field-input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.field-input::-webkit-date-and-time-value {
    min-width: 85px;
    height: 1.5em;
    margin: 0;
}

.field-input::-webkit-datetime-edit {
    display: block;
    padding: 0;
}

.field-input::placeholder {
    color: rgba(33, 37, 41, 0.75);
    opacity: 1;
}

.field-input:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.field-input::-webkit-file-upload-button {
    padding: .375rem .75rem;
    margin: -.375rem -.75rem;
    -webkit-margin-end: .75rem;
    margin-inline-end: .75rem;
    color: #212529;
    background-color: #f8f9fa;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    -webkit-transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.field-input::file-selector-button {
    padding: .375rem .75rem;
    margin: -.375rem -.75rem;
    -webkit-margin-end: .75rem;
    margin-inline-end: .75rem;
    color: #212529;
    background-color: #f8f9fa;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .field-input::-webkit-file-upload-button {
        -webkit-transition: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .field-input::file-selector-button {
        transition: none;
    }
}

.field-input:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: #e9ecef;
}

.field-input:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: #e9ecef;
}

textarea.field-input {
    min-height: calc(1.5em + .75rem + calc(1px * 2));
}

.has-submenu {
    position: relative;
}

.faq-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #212529;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 0.375rem;
}

.faq-item>hr {
    margin-right: 0;
    margin-left: 0;
}

.faq-answer-body {
    flex: 1 1 auto;
    padding: 1rem 1rem;
}

.faq-question {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(33,37,41, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.175);
}

.faq-question:first-child {
    border-radius: calc(0.375rem - (1px)) calc(0.375rem - (1px)) 0 0;
}

/* ----------------------------------------------------------------------------
   4) Çekirdek şablonlarının adları (sayfalama, sayfa yolu): adları çekirdeğe aittir
   ---------------------------------------------------------------------------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0;
    margin-bottom: 1rem;
    list-style: none;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .page-link {
        transition: none;
    }
}

.page-link:hover {
    z-index: 2;
    color: #0a58ca;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    color: #0a58ca;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.active>.page-link,
.page-link.active {
    z-index: 3;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.disabled>.page-link,
.page-link.disabled {
    color: rgba(33, 37, 41, 0.75);
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item:not(:first-child) .page-link {
    margin-left: calc(-1 * 1px);
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* ----------------------------------------------------------------------------
   5) Kaydırıcı (kütüphanesiz): .slides > .slides-track > .slides-item
   Kaydırma kabı + scroll-snap; main.js Slides sınıfı konumu, okları, noktaları, sürüklemeyi,
   döngü / başa sarmayı ve otomatik geçişi yönetir. Değerler eski Swiper 12 görünümünün ölçümüdür.
   Ayrıntı: project-docs/onyuz-kutuphanesiz.md
   ---------------------------------------------------------------------------- */

/* 5.1) Kap ve ray. Kaydırma kabı .slides'tır (eski kütüphanede de overflow: hidden kaptı; aynı çizim yapısı,
   görseller aynı süzülür). Konumu main.js scrollLeft ile taşır, scroll-snap slaytı yerine oturtur. */
.slides {
    position: relative;
    z-index: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    overflow: hidden;
    list-style: none;
    touch-action: pan-y;
    scroll-snap-type: x mandatory;
    /* Konumu yalnız main.js taşır (döngüde slayt taşınınca telafi); tarayıcının kaydırma çapası karışmasın */
    overflow-anchor: none;
}

.slides-track {
    position: relative;
    z-index: 1;
    display: flex;
    /* Slayt içeriği bunu devralır (tema: *{box-sizing:inherit}); eski görünüm böyleydi */
    box-sizing: content-box;
    width: 100%;
    height: 100%;
    gap: var(--slides-gap, 0px);
    transform: translateZ(0);
}

/* 5.2) Slayt: genişlik görünen sayı ve aralıktan (main.js kesin px değerini satır içi yazar, calc yalnız ilk an için);
   boy içerik kadar (slaytlar eşit boya gerilmez) */
.slides-item {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: calc((100% - (var(--slides-per-view, 1) - 1) * var(--slides-gap, 0px)) / var(--slides-per-view, 1));
    height: 100%;
    transition-property: transform;
    scroll-snap-align: start;
}

/* Az slaytta ve iOS'ta slaytlar ayrı çizim katmanında (eski kütüphane böyle çiziyordu; görseller aynı süzülür) */
.slides-layered .slides-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slides-ios .slides-item {
    transform: translateZ(0);
}

/* 5.3) Oklar (ok çizimi main.js ekler) */
.slides-prev,
.slides-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: 0;
    color: #007aff;
    cursor: pointer;
}

.slides-prev svg,
.slides-next svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    fill: currentColor;
    pointer-events: none;
}

.slides-prev {
    left: 4px;
    right: auto;
}

.slides-prev .slides-icon {
    transform: rotate(180deg);
}

.slides-next {
    left: auto;
    right: 4px;
}

/* Kabın içindeki ve kabın kardeşi olan oklar: iki sınıflık özgüllük eski görünümün parçasıdır
   (temadaki tek sınıflık .ref-btn-prev { left: 0 } kuralını ezer) */
.slides .slides-prev,
.slides ~ .slides-prev,
.slides .slides-next,
.slides ~ .slides-next {
    top: 50%;
    margin-top: -22px;
    margin-left: 0;
}

.slides .slides-prev,
.slides ~ .slides-prev {
    left: 4px;
    right: auto;
}

.slides .slides-next,
.slides ~ .slides-next {
    left: auto;
    right: 4px;
}

/* Kaydırılacak slayt yoksa oklar ve noktalar gizlenir */
.slides-lock {
    display: none !important;
}

/* 5.4) Noktalar */
.slides-dots {
    position: absolute;
    bottom: 8px;
    top: auto;
    left: 0;
    z-index: 10;
    width: 100%;
    text-align: center;
    transform: translateZ(0);
    transition: opacity 0.3s;
}

.slides-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
}

.slides-dot:only-child {
    display: none !important;
}

.slides-dot-active {
    background: #007aff;
    opacity: 1;
}

/* 5.5) Görünen slayt sayısı ve aralık (eski kırılımlar, pencere genişliği) */
.productslider,
.testimonials-slider,
.video-slider,
.our-team-slider,
.instagram-slider {
    --slides-per-view: 1;
    --slides-gap: 20px;
}

.ref-slider {
    --slides-per-view: 2;
    --slides-gap: 20px;
}

@media (min-width: 576px) {
    .ref-slider {
        --slides-per-view: 3;
    }
}

@media (min-width: 600px) {
    .productslider,
    .testimonials-slider,
    .video-slider,
    .our-team-slider,
    .instagram-slider {
        --slides-per-view: 2;
    }
}

@media (min-width: 768px) {
    .ref-slider {
        --slides-per-view: 4;
    }
}

@media (min-width: 1024px) {
    .productslider,
    .testimonials-slider,
    .video-slider {
        --slides-per-view: 3;
        --slides-gap: 30px;
    }

    .our-team-slider,
    .instagram-slider {
        --slides-per-view: 4;
        --slides-gap: 30px;
    }

    .ref-slider {
        --slides-per-view: 5;
        --slides-gap: 30px;
    }
}
