/*
Theme Name: Ehliyethane
Theme URI: https://www.ehliyethane.net/
Author: Ehliyethane
Author URI: https://www.ehliyethane.net/
Description: Ehliyethane ehliyet sınav soruları ve online test platformu için özel WordPress teması.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ehliyethane
*/
:root{
    --blue:#1769e0;
    --blue2:#0d47a1;
    --dark:#101828;
    --text:#334155;
    --muted:#64748b;
    --bg:#f5f7fb;
    --white:#fff;
    --border:#e5e7eb;
    --shadow:0 8px 28px rgba(15,23,42,.07);
    --radius:14px;
}

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

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
    line-height:1.65;
    overflow-x:hidden;
}

a{
    color:var(--blue);
    text-decoration:none;
}

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

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

.container{
    width:min(1180px,calc(100% - 32px));
    margin:auto;
}

.screen-reader-text{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}


/* =========================================================
   HEADER
========================================================= */

.site-header{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:relative;
    z-index:9999;
}

.header-inner{
    min-height:76px;
    display:flex;
    align-items:center;
    gap:28px;
    justify-content:space-between;
    position:relative;
}

.site-branding{
    display:flex;
    align-items:center;
    min-width:190px;
    flex-shrink:0;
}

.custom-logo{
    display:block;
    max-height:58px;
    max-width:260px;
    width:auto;
    height:auto;
}

.site-title{
    font-size:27px;
    font-weight:800;
    color:var(--blue);
    letter-spacing:-.5px;
    white-space:nowrap;
}

.site-description{
    display:none;
}


/* =========================================================
   ANA MENÜ
========================================================= */

.main-navigation{
    margin-left:auto;
}

.main-menu,
.main-menu ul{
    display:flex;
    align-items:center;
    gap:4px;
    margin:0;
    padding:0;
    list-style:none;
}

.main-menu li{
    margin:0;
    padding:0;
}

.main-menu a{
    display:block;
    padding:11px 13px;
    color:#1e293b;
    font-size:15px;
    font-weight:700;
    border-radius:8px;
    white-space:nowrap;
}

.main-menu a:hover,
.main-menu .current-menu-item>a{
    background:#eef5ff;
    color:var(--blue);
}


/* =========================================================
   MOBİL MENÜ BUTONU
========================================================= */

.menu-toggle{
    display:none;
    width:44px;
    height:42px;
    padding:0;
    margin:0;
    border:0;
    border-radius:9px;
    background:var(--blue);
    color:#fff;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    position:relative;
    z-index:10001;
}

.menu-toggle:hover{
    background:var(--blue2);
}

.menu-icon{
    display:block;
    line-height:1;
}


/* =========================================================
   HERO
========================================================= */

.hero{
    padding:26px 0;
}

.hero-box{
    min-height:260px;
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(135deg,#0d47a1,#1769e0 55%,#42a5f5);
    display:flex;
    align-items:center;
    position:relative;
    color:#fff;
    box-shadow:var(--shadow);
}

.hero-box:after{
    content:"";
    position:absolute;
    right:-70px;
    top:-90px;
    width:360px;
    height:360px;
    border-radius:50%;
    background:rgba(255,255,255,.09);
}

.hero-content{
    padding:40px;
    max-width:720px;
    position:relative;
    z-index:2;
}

.hero-kicker{
    font-size:14px;
    font-weight:700;
    opacity:.9;
    margin-bottom:8px;
}

.hero h1{
    font-size:clamp(28px,4vw,44px);
    line-height:1.1;
    margin:0 0 13px;
    color:#fff;
}

.hero p{
    margin:0 0 22px;
    font-size:17px;
    color:#eaf3ff;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 18px;
    border-radius:9px;
    font-weight:800;
}

.btn-primary{
    background:#fff;
    color:var(--blue);
}

.btn-outline{
    border:1px solid rgba(255,255,255,.55);
    color:#fff;
}


/* =========================================================
   GENEL SECTION
========================================================= */

.section{
    padding:14px 0 34px;
}

.section-title{
    font-size:25px;
    line-height:1.25;
    margin:0 0 18px;
    color:var(--dark);
}


/* =========================================================
   HIZLI ERİŞİM
========================================================= */

.quick-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.quick-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:20px;
    box-shadow:var(--shadow);
    transition:.2s;
}

.quick-card:hover{
    transform:translateY(-2px);
    border-color:#bfd6ff;
}

.quick-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#eef5ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    font-size:21px;
    font-weight:900;
    margin-bottom:12px;
}

.quick-card h3{
    font-size:17px;
    color:var(--dark);
    margin:0 0 5px;
}

.quick-card p{
    font-size:13px;
    color:var(--muted);
    margin:0;
}


/* =========================================================
   SINAV KONULARI
========================================================= */

.exam-topics{
    padding:70px 0;
    background:#fff;
}

.section-heading{
    margin-bottom:35px;
}

.section-heading>span{
    display:block;
    margin-bottom:10px;
    color:var(--blue);
    font-size:13px;
    font-weight:800;
    letter-spacing:.5px;
}

.section-heading h2{
    margin:0 0 12px;
    color:var(--dark);
    font-size:32px;
    line-height:1.2;
}

.section-heading p{
    max-width:700px;
    margin:0;
    color:var(--muted);
    line-height:1.7;
}


/* =========================================================
   KONU KARTLARI
========================================================= */

.topic-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.topic-card{
    display:flex;
    align-items:flex-start;
    gap:20px;
    padding:28px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    text-decoration:none;
    transition:.25s ease;
}

.topic-card:hover{
    transform:translateY(-4px);
    background:#fff;
    border-color:#bfd6ff;
    box-shadow:0 15px 35px rgba(15,23,42,.08);
}

.topic-icon{
    width:55px;
    height:55px;
    min-width:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eff6ff;
    border-radius:15px;
    font-size:26px;
}

.topic-content h3{
    margin:0 0 8px;
    color:var(--dark);
    font-size:19px;
}

.topic-content p{
    margin:0 0 12px;
    color:var(--muted);
    font-size:14px;
    line-height:1.6;
}

.topic-content strong{
    color:var(--blue);
    font-size:14px;
}


/* =========================================================
   SINAV BİLGİLERİ
========================================================= */

.exam-facts{
    padding:0 0 70px;
    background:#fff;
}

.exam-facts-box{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#0f172a;
    border-radius:20px;
    overflow:hidden;
}

.exam-fact{
    padding:32px 20px;
    text-align:center;
    border-right:1px solid rgba(255,255,255,.10);
}

.exam-fact:last-child{
    border-right:0;
}

.exam-fact strong{
    display:block;
    margin-bottom:7px;
    color:#fff;
    font-size:32px;
    font-weight:800;
}

.exam-fact span{
    color:#94a3b8;
    font-size:14px;
}


/* =========================================================
   NASIL ÇALIŞMALI
========================================================= */

.study-section{
    padding:75px 0;
    background:#f8fafc;
}

.study-heading{
    max-width:750px;
}

.study-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.study-card{
    padding:30px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    transition:.25s ease;
}

.study-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(15,23,42,.08);
}

.study-number{
    margin-bottom:18px;
    color:var(--blue);
    font-size:15px;
    font-weight:800;
}

.study-card h3{
    margin:0 0 10px;
    color:var(--dark);
    font-size:20px;
}

.study-card p{
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
}


/* =========================================================
   ALT MAVİ ÇAĞRI ALANI
========================================================= */

.home-cta{
    padding:70px 0;
    background:#fff;
}

.home-cta-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:45px 50px;
    border-radius:22px;
    background:linear-gradient(135deg,#1d4ed8,#3b82f6);
    box-shadow:0 20px 45px rgba(37,99,235,.18);
}

.home-cta-box>div>span{
    display:block;
    margin-bottom:8px;
    color:rgba(255,255,255,.75);
    font-size:13px;
    font-weight:800;
    letter-spacing:.5px;
}

.home-cta-box h2{
    margin:0 0 10px;
    color:#fff;
    font-size:30px;
}

.home-cta-box p{
    margin:0;
    color:rgba(255,255,255,.85);
    line-height:1.6;
}

.home-cta-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:190px;
    padding:14px 22px;
    background:#fff;
    color:var(--blue);
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    white-space:nowrap;
    transition:.2s ease;
}

.home-cta-button:hover{
    transform:translateY(-2px);
    color:var(--blue2);
}


/* =========================================================
   İÇERİK / YAZILAR
========================================================= */

.content-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:24px;
}

.posts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.post-card,
.widget,
.single-post,
.page-content{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.post-card{
    overflow:hidden;
}

.post-thumb{
    display:block;
    aspect-ratio:16/9;
    background:#eaf1fb;
    overflow:hidden;
}

.post-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.post-card-body{
    padding:16px;
}

.post-meta{
    font-size:12px;
    color:var(--muted);
    margin-bottom:6px;
}

.post-card h2{
    font-size:18px;
    line-height:1.35;
    margin:0 0 8px;
    color:var(--dark);
}

.post-card p{
    font-size:14px;
    margin:0;
    color:var(--muted);
}

.sidebar{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.widget{
    padding:18px;
}

.widget-title{
    font-size:18px;
    color:var(--dark);
    margin:0 0 12px;
}

.widget ul{
    margin:0;
    padding:0;
    list-style:none;
}

.widget li{
    border-bottom:1px solid var(--border);
    padding:8px 0;
}

.widget li:last-child{
    border-bottom:0;
}

.widget a{
    font-weight:600;
    color:var(--text);
}


/* =========================================================
   SAYFA / YAZI
========================================================= */

.single-post,
.page-content{
    padding:28px;
}

.page-title,
.single-post h1{
    font-size:clamp(28px,4vw,40px);
    line-height:1.2;
    color:var(--dark);
    margin:0 0 15px;
}

.entry-meta{
    color:var(--muted);
    font-size:13px;
    margin-bottom:22px;
}

.single-post h2,
.single-post h3,
.page-content h2,
.page-content h3{
    color:var(--dark);
}

.single-post p,
.page-content p{
    font-size:16px;
}


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

.pagination{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:20px;
}

.pagination a,
.pagination span{
    padding:8px 12px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
}

.pagination .current{
    background:var(--blue);
    color:#fff;
    border-color:var(--blue);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer{
    background:#0f172a;
    color:#cbd5e1;
    margin-top:30px;
}

.footer-top{
    padding:42px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.25fr 1fr 1fr 1fr;
    gap:28px;
}

.footer-col h3{
    color:#fff;
    font-size:17px;
    margin:0 0 14px;
}

.footer-col p{
    font-size:14px;
    color:#94a3b8;
    margin:0 0 12px;
}

.footer-col ul{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-col li{
    margin:7px 0;
}

.footer-col a{
    color:#cbd5e1;
    font-size:14px;
}

.footer-col a:hover{
    color:#fff;
}

.socials{
    display:flex;
    gap:9px;
    flex-wrap:wrap;
    margin-top:10px;
}

.social-icon{
    width:40px;
    height:40px;
    border:1px solid #334155;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    transition:.2s;
}

.social-icon:hover{
    background:var(--blue);
    border-color:var(--blue);
    color:#fff;
}

.social-icon svg{
    width:19px;
    height:19px;
    fill:currentColor;
}

.footer-bottom{
    border-top:1px solid #1e293b;
    padding:16px 0;
    font-size:13px;
    color:#94a3b8;
}

.footer-bottom-inner{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
}


/* =========================================================
   TABLET / MOBİL MENÜ
========================================================= */

@media(max-width:900px){

    .header-inner{
        min-height:68px;
        position:relative;
    }

    .site-branding{
        min-width:0;
        flex:1;
    }

    .custom-logo{
        max-width:190px;
        max-height:50px;
    }

    .site-title{
        font-size:22px;
    }


    /* HAMBURGER BUTONU */

    .menu-toggle{
        display:flex;
    }


    /* NAV KAPALI */

    .main-navigation{
        display:none;
        position:absolute;
        top:68px;
        left:0;
        right:0;
        width:100%;
        margin:0;
        padding:10px;
        background:#fff;
        border-top:1px solid var(--border);
        border-bottom:1px solid var(--border);
        box-shadow:0 10px 25px rgba(0,0,0,.12);
        z-index:10000;
    }


    /* NAV AÇIK */

    .main-navigation.is-open{
        display:block;
    }


    /* MOBİL MENÜ LİSTESİ */

    .main-menu,
    .main-menu ul{
        display:block;
        width:100%;
        margin:0;
        padding:0;
    }

    .main-menu li{
        display:block;
        width:100%;
        border-bottom:1px solid #edf0f3;
    }

    .main-menu li:last-child{
        border-bottom:0;
    }

    .main-menu a{
        display:block;
        width:100%;
        padding:14px 12px;
        font-size:15px;
        border-radius:7px;
        white-space:normal;
    }


    /* Hızlı erişim */

    .quick-grid{
        grid-template-columns:repeat(2,1fr);
    }


    /* Konular */

    .topic-grid{
        grid-template-columns:1fr;
    }


    /* Sınav bilgileri */

    .exam-facts-box{
        grid-template-columns:repeat(2,1fr);
    }

    .exam-fact:nth-child(2){
        border-right:0;
    }

    .exam-fact:nth-child(1),
    .exam-fact:nth-child(2){
        border-bottom:1px solid rgba(255,255,255,.10);
    }


    /* Çalışma */

    .study-grid{
        grid-template-columns:1fr;
    }


    /* CTA */

    .home-cta-box{
        padding:35px;
    }


    /* İçerik */

    .content-grid{
        grid-template-columns:1fr;
    }


    /* Footer */

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* =========================================================
   TELEFON
========================================================= */

@media(max-width:560px){

    .container{
        width:calc(100% - 20px);
        max-width:1180px;
    }


    /* HEADER */

    .header-inner{
        min-height:64px;
    }

    .custom-logo{
        max-width:170px;
        max-height:45px;
    }

    .site-title{
        font-size:21px;
    }

    .menu-toggle{
        width:42px;
        height:40px;
        font-size:22px;
    }


    /* MOBİL NAV */

    .main-navigation{
        top:64px;
        padding:8px;
    }

    .main-menu a{
        padding:13px 11px;
    }


    /* Hero */

    .hero{
        padding:12px 0;
    }

    .hero-box{
        min-height:330px;
    }

    .hero-content{
        padding:26px 22px;
    }

    .hero p{
        font-size:15px;
    }


    /* Hızlı erişim */

    .quick-grid{
        grid-template-columns:1fr;
    }


    /* Konu başlığı */

    .exam-topics{
        padding:50px 0;
    }

    .section-heading h2{
        font-size:26px;
    }


    /* Konu kartları */

    .topic-card{
        padding:22px;
        gap:15px;
    }

    .topic-icon{
        width:48px;
        height:48px;
        min-width:48px;
        font-size:22px;
    }

    .topic-content h3{
        font-size:17px;
    }


    /* Sınav bilgileri */

    .exam-facts{
        padding-bottom:50px;
    }

    .exam-fact{
        padding:25px 15px;
    }

    .exam-fact strong{
        font-size:27px;
    }


    /* Çalışma */

    .study-section{
        padding:50px 0;
    }


    /* CTA */

    .home-cta{
        padding:50px 0;
    }

    .home-cta-box{
        display:block;
        padding:30px 24px;
        border-radius:18px;
    }

    .home-cta-box h2{
        font-size:25px;
    }

    .home-cta-button{
        width:100%;
        margin-top:25px;
    }


    /* Yazılar */

    .posts{
        grid-template-columns:1fr;
    }

    .single-post,
    .page-content{
        padding:20px;
    }


    /* Footer */

    .footer-grid{
        grid-template-columns:1fr;
    }

    .footer-top{
        padding:30px 0;
    }

    .footer-bottom-inner{
        display:block;
    }

    .footer-bottom-inner span{
        display:block;
        margin:4px 0;
    }

    .post-card h2{
        font-size:17px;
    }

}
/* =========================================================
   LOGO TIKLAMA
========================================================= */

.site-logo-link{
    display:flex;
    align-items:center;
    text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.site-logo-link:hover{
    text-decoration:none;
}

.site-logo-link .custom-logo{
    display:block;
}


/* =========================================================
   MOBİL MENÜ
========================================================= */

@media(max-width:900px){

    .site-header{
        position:relative;
        z-index:9999;
    }

    .header-inner{
        position:relative;
    }

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        flex-shrink:0;
        position:relative;
        z-index:10001;
    }

    .main-navigation{
        display:none;
        position:absolute;
        top:68px;
        left:0;
        right:0;
        width:100%;
        margin:0;
        padding:8px;
        background:#fff;
        border-top:1px solid var(--border);
        border-bottom:1px solid var(--border);
        box-shadow:0 10px 25px rgba(0,0,0,.12);
        z-index:10000;
    }

    .main-navigation.is-open{
        display:block;
    }

    .main-menu{
        display:block !important;
        width:100%;
        margin:0;
        padding:0;
    }

    .main-menu li{
        display:block;
        width:100%;
        margin:0;
        padding:0;
        border-bottom:1px solid #edf0f3;
    }

    .main-menu li:last-child{
        border-bottom:0;
    }

    .main-menu a{
        display:block;
        width:100%;
        padding:14px 12px;
        color:#1e293b;
        text-decoration:none;
    }

    .main-menu a:hover{
        background:#eef5ff;
        color:var(--blue);
    }

}


@media(max-width:560px){

    .main-navigation{
        top:64px;
    }

}


/* SINGLE SAYFASI - ANA SAYFA İLE AYNI YERLEŞİM */

.single-main-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.single-article,
.single-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.single-content img,
.single-content video,
.single-content iframe {
    max-width: 100%;
}

.single-content img,
.single-content video {
    height: auto;
}

@media (max-width: 768px) {
    .single .content-grid {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .single .single-main-content,
    .single .single-article,
    .single .single-content,
    .single .sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .single .sidebar {
        margin-top: 24px;
    }

    .single .single-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .single .single-content pre {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
}
