/*
Theme Name:  Kaynak Yaratma Child
Theme URI:   https://kaynakyaratma.com
Description: Twenty Twenty-Five child theme — Ubuntu local, no external fonts
Author:      Kaynak Yaratma
Template:    twentytwentyfive
Version:     2.0.0
Text Domain: ky-child
*/

/* =========================================================
   UBUNTU — LOCAL @font-face (4 ağırlık, latin subset)
   Dosyalar: assets/fonts/ubuntu/
   ========================================================= */
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/ubuntu/ubuntu-300.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/ubuntu/ubuntu-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/ubuntu/ubuntu-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/ubuntu/ubuntu-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* italic için tarayıcı sentezini aktif bırak */
* { font-synthesis: style; }

/* =========================================================
   1. GLOBAL FONT — Ubuntu everywhere
   ========================================================= */
body,
h1, h2, h3, h4, h5, h6,
p, a, li, span, div, nav,
input, textarea, button, select,
.ky-nav a, .ky-title, .ky-btn,
.ky-cnt-label, .ky-cnt-num,
.ky-feat-title, .ky-feat-item h4, .ky-feat-item p,
.ky-process-hd h2, .ky-process-hd p, .ky-pstep-txt,
.ky-hd-left h2, .ky-hd-left p,
.ky-svc h4, .ky-svc p,
.ky-cta h2, .ky-cta p, .ky-cta-btn,
.ky-footer-col h4, .ky-footer-col p,
.ky-footer-nav a, .ky-news-title, .ky-footer-bottom {
    font-family: 'Ubuntu', sans-serif !important;
}

/* =========================================================
   2. THEME LAYOUT RESET
   ========================================================= */
body { overflow-x: hidden; }

.wp-block-post-content,
.entry-content,
.wp-block-group.is-layout-flow,
main.wp-block-group {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

header.wp-block-template-part {
    padding: 0 !important;
    margin: 0 !important;
}

/* =========================================================
   3. SLIDER — TAM GENİŞLİK
   ========================================================= */
.entry-content .ky-slider,
.wp-block-post-content .ky-slider,
.ky-slider {
    margin-left:  calc(-1 * var(--wp--style--root--padding-left,  clamp(30px, 5vw, 50px))) !important;
    margin-right: calc(-1 * var(--wp--style--root--padding-right, clamp(30px, 5vw, 50px))) !important;
    width: calc(100%
        + var(--wp--style--root--padding-left,  clamp(30px, 5vw, 50px))
        + var(--wp--style--root--padding-right, clamp(30px, 5vw, 50px))
    ) !important;
    max-width: none !important;
    box-sizing: border-box;
    height: calc(100vh - 130px);
    min-height: 480px;
    overflow: hidden;
    background: #111;
    position: relative;
    display: block;
    margin-top: 0;
    padding: 0;
}
.ky-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease;
    display: flex;
    align-items: center;
}
.ky-slide.ky-on { opacity: 1; visibility: visible; }
.ky-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,12,44,.72) 0%, rgba(4,12,44,.28) 100%);
}
.ky-body-s {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 70px;
}
.ky-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.32;
    margin: 0 0 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    max-width: 680px;
}
.ky-btn {
    display: inline-block;
    background: #1c60ff;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background .2s;
}
.ky-btn:hover { background: #0049f5; }
.ky-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 62px;
    background: rgba(28,96,255,.72);
    border: none;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s;
}
.ky-arr:hover { background: #1c60ff; }
.ky-arr-l { left: 0; border-radius: 0 3px 3px 0; }
.ky-arr-r { right: 0; border-radius: 3px 0 0 3px; }
.ky-arr svg { fill: #fff; width: 22px; height: 22px; display: block; }

/* =========================================================
   4. COUNTER MODULE
   ========================================================= */
.ky-cnt-wrap {
    max-width: 1140px;
    margin: -80px auto 0;
    position: relative;
    z-index: 20;
    padding: 0 24px;
}
.ky-cnt-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
    display: flex;
    flex-wrap: wrap;
}
.ky-cnt-col {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px 20px;
    border-right: 1px solid #eef0f5;
    text-align: left;
}
.ky-cnt-col:last-child { border-right: none; }
.ky-cnt-ic { font-size: 50px; color: #1c60ff; line-height: 1; flex-shrink: 0; }
.ky-cnt-label { font-size: 15px; color: #70799f; font-weight: 400; margin: 0 0 2px; }
.ky-cnt-num { font-size: 38px; font-weight: 400; color: #1c60ff; margin: 0; line-height: 1; }
.ky-cnt-num em { font-size: 22px; font-style: normal; font-weight: 400; }

/* =========================================================
   5. FEATURE SECTION
   ========================================================= */
.ky-feat-sec {
    max-width: 1140px;
    margin: 0 auto;
    padding: 55px 24px 40px;
}
.ky-feat-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #040c2c;
    line-height: 1.35;
    margin: 0 0 40px;
    max-width: 700px;
}
.ky-feat-row { display: flex; align-items: center; gap: 0; }
.ky-feat-img { flex: 0 0 45%; max-width: 45%; }
.ky-feat-img img { width: 100%; height: auto; display: block; }
.ky-feat-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-left: 20px;
}
.ky-feat-item {
    padding: 22px 24px;
    border-left: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
}
.ky-feat-item:nth-child(3),
.ky-feat-item:nth-child(4) { border-bottom: none; }
.ky-feat-chk {
    width: 18px;
    height: 18px;
    border: 1.5px solid #b0bedb;
    border-radius: 2px;
    display: block;
    margin-bottom: 14px;
}
.ky-feat-item h4 { font-size: 1.05rem; font-weight: 700; color: #040c2c; margin: 0 0 8px; }
.ky-feat-item p  { margin: 0; color: #6b7a99; font-size: .9rem; line-height: 1.5; }

/* =========================================================
   6. PROCESS SECTION (Mavi Banner)
   ========================================================= */
.ky-process-sec {
    background: #1c60ff;
    color: #fff;
    padding: 60px 24px;
    width: 100%;
    margin: 40px 0 60px;
}
.ky-process-inner { max-width: 1140px; margin: 0 auto; }
.ky-process-hd { margin-bottom: 45px; }
.ky-process-hd h2 { color: #fff !important; font-size: 2.1rem; font-weight: 700; margin: 0 0 10px; }
.ky-process-hd p  { color: #e0e9ff; font-size: 1.05rem; margin: 0; }
.ky-process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
}
.ky-pstep { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.ky-pstep-circle-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ky-pstep-circle {
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ky-pstep-circle i { font-size: 36px; color: #fff; }
.ky-pstep-num {
    position: absolute;
    top: -2px;
    left: 0;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #1c60ff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ky-pstep-txt { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0; white-space: nowrap; }
.ky-pstep-arrow { color: #fff; font-size: 28px; margin-top: -35px; opacity: 0.9; flex-shrink: 0; }

/* =========================================================
   7. HİZMETLER GRID
   ========================================================= */
.ky-pg { max-width: 1140px; margin: 0 auto; padding: 0 24px 70px; }
.ky-hd-left { text-align: left; margin: 0 0 36px; }
.ky-hd-left h2 { font-size: 2.2rem; font-weight: 700; color: #040c2c; margin: 0 0 8px; }
.ky-hd-left p  { color: #70799f; font-size: 1rem; margin: 0; }
.ky-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}
.ky-svc {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    padding: 32px 26px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all .3s ease;
    cursor: pointer;
}
.ky-svc-ic { font-size: 2.4rem; color: #1c60ff; line-height: 1; flex-shrink: 0; transition: color .3s; }
.ky-svc h4  { font-size: 1.15rem; color: #040c2c; margin: 0 0 8px; font-weight: 700; transition: color .3s; }
.ky-svc p   { margin: 0; color: #6b7a99; font-size: .92rem; line-height: 1.5; transition: color .3s; }
.ky-svc:hover {
    background: #1c60ff !important;
    border-color: #1c60ff !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(28,96,255,0.25);
}
.ky-svc:hover .ky-svc-ic,
.ky-svc:hover h4,
.ky-svc:hover p { color: #fff !important; }

/* =========================================================
   8. CTA
   ========================================================= */
.ky-cta {
    background: linear-gradient(135deg, #040c2c 0%, #0d2060 100%);
    padding: 58px 30px;
    border-radius: 10px;
    text-align: center;
}
.ky-cta h2      { color: #fff !important; font-size: 1.9rem; margin: 0 0 12px; }
.ky-cta p       { color: #c0cfe8; margin: 0 0 24px; font-size: 1rem; }
.ky-cta-btn {
    display: inline-block;
    background: #fff;
    color: #1c60ff !important;
    padding: 12px 34px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 15px;
    transition: all .3s;
}
.ky-cta-btn:hover { background: #1c60ff; color: #fff !important; }

/* =========================================================
   9. FOOTER
   ========================================================= */
footer,
.wp-block-template-part-footer,
body > footer { margin: 0 !important; padding: 0 !important; }

.ky-footer-main {
    background-color: #1f1f25;
    color: #b0b5c0;
    padding: 50px 24px 40px;
    width: 100%;
    margin: 0;
}
.ky-footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
}
.ky-footer-col h4 { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 0 0 20px; }
.ky-footer-col p  { color: #c0c5d0; font-size: 0.95rem; line-height: 1.7; margin: 0 0 8px; }
.ky-footer-nav { list-style: none; padding: 0; margin: 0; }
.ky-footer-nav li { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 10px 0; }
.ky-footer-nav li:last-child { border-bottom: none; }
.ky-footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.ky-footer-nav a:hover { color: #1c60ff; }
.ky-footer-news { display: flex; flex-direction: column; gap: 18px; }
.ky-news-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 14px; }
.ky-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.ky-news-link { text-decoration: none !important; color: inherit; display: block; transition: all 0.2s; }
.ky-news-link:hover .ky-news-title { color: #1c60ff; }
.ky-news-link:hover .ky-news-badge { background: #0d47d9; }
.ky-news-title { color: #fff; font-size: 0.98rem; font-weight: 600; margin: 0 0 8px; text-transform: uppercase; }
.ky-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1c60ff;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}
.ky-footer-bottom {
    background-color: #19191f;
    color: #8a90a0;
    padding: 20px 24px;
    font-size: 0.92rem;
    margin: 0;
}
.ky-footer-bottom-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.ky-social-links { display: flex; align-items: center; gap: 18px; }
.ky-social-links a { color: #fff; text-decoration: none; font-size: 1.1rem; transition: color 0.2s; }
.ky-social-links a:hover { color: #1c60ff; }

/* =========================================================
   10. NAV
   ========================================================= */
.ky-nav a {
    color: #040c2c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
}
.ky-nav a:hover { color: #1c60ff; }

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .ky-slider { height: calc(100vh - 120px); min-height: 380px; }
    .ky-title  { font-size: 1.7rem; }
    .ky-body-s { padding: 0 50px; }
    .ky-cnt-wrap { margin-top: 0; }
    .ky-cnt-col { flex: 1; min-width: 240px; }
    .ky-cnt-col:last-child { border-bottom: none; }
    .ky-feat-row  { flex-direction: column; }
    .ky-feat-img  { max-width: 100%; flex: none; }
    .ky-feat-grid { grid-template-columns: 1fr; padding-left: 0; margin-top: 24px; }
    .ky-process-steps { flex-direction: column; gap: 30px; }
    .ky-pstep-arrow   { transform: rotate(90deg); margin-top: 0; }
    .ky-footer-container { grid-template-columns: 1fr; gap: 35px; }
    .ky-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   FOOTER — Siyah arkaplan, beyaz metin
   ========================================================= */
footer.wp-block-template-part,
footer.wp-block-template-part .wp-block-group {
    background-color: #000000 !important;
    color: #ffffff !important;
}
footer.wp-block-template-part a,
footer.wp-block-template-part .wp-block-navigation-item__label,
footer.wp-block-template-part .wp-block-site-title a,
footer.wp-block-template-part p {
    color: #ffffff !important;
}
