/* Foundation navigation and programme-card refinements */
.header-main{gap:16px}.menu-button--left{display:flex;align-items:center;gap:8px;margin-right:3px}.menu-button--left b{font-size:12px;font-weight:800;color:var(--ink)}.menu-button--left span{display:block}.program-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.program-card:nth-child(5) .program-card__art{background:linear-gradient(125deg,#f1d7bd,#d89562)}.program-card__art .program-card__number{left:22px;bottom:19px;font-size:58px;letter-spacing:-4px;line-height:.8}.program-card__category{position:absolute;z-index:3;top:20px;left:21px;color:#fff;font-size:9px;font-weight:800;letter-spacing:1.05px}.program-card__spark{position:absolute;z-index:3;right:24px;bottom:19px;color:#fff;font-size:21px}.program-card:nth-child(2) .program-card__spark{right:auto;left:49%;top:50px}.program-card:nth-child(3) .program-card__spark{right:40px;top:35px}.program-card__art i:nth-of-type(1){right:-33px;top:-56px}.program-card__art i:nth-of-type(2){right:19px;top:75px}.program-card__art i:nth-of-type(3){left:58%;top:27px}.program-card__content{padding:20px}.program-card p{min-height:57px}.program-card:nth-child(4){grid-column:1/2}.program-card:nth-child(5){grid-column:2/3}@media(max-width:900px){.program-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.program-card:nth-child(4),.program-card:nth-child(5){grid-column:auto}.header-actions>.button,.student-link{display:none}}@media(max-width:640px){.program-grid{grid-template-columns:1fr}.program-card{display:grid;grid-template-columns:125px 1fr}.program-card__art .program-card__number{font-size:46px;left:16px}.program-card__category{left:16px;top:17px;font-size:8px}.program-card__spark{right:12px;bottom:16px}.program-card p{min-height:0}.menu-button--left b{display:none}}

/* =========================================================
   HEADER — WIDE / EDGE ALIGNED
   ========================================================= */

.site-header .header-main {
    width: 100%;
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
}

.site-header .announcement__inner {
    width: 100%;
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
}

/* Hamburger + logo solda birbirine yakın */
.site-header .header-main {
    display: flex;
    align-items: center;
}

.site-header .menu-button--left {
    flex: 0 0 auto;
    margin-right: 20px;
}

.site-header .brand {
    margin-right: auto;
}

/* Sağ taraf ekranın sağ kenarına yaklaşsın */
.site-header .header-actions {
    margin-left: auto;
}

/* Announcement üst bar dağılımı */
.site-header .announcement__inner {
    display: flex;
    align-items: center;
}

.site-header .announcement__phone {
    margin-left: auto;
}


/* Büyük monitörde biraz nefes */
@media (min-width: 1440px) {
    .site-header .header-main,
    .site-header .announcement__inner {
        padding-left: 42px;
        padding-right: 42px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .site-header .header-main,
    .site-header .announcement__inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .site-header .header-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header .announcement__inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header .menu-button--left {
        margin-right: 12px;
    }
}

/* =========================================================
   BENİM HOCAM LOGO
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 190px;
    object-fit: contain;
}

/* Header */
.header-main > .brand .brand__logo {
    height: 50px;
    max-width: 200px;
}

/* Hamburger drawer */

/* Footer */
.site-footer .brand__logo {
    height: 54px;
    max-width: 210px;
}

/* Mobil */
@media (max-width: 600px) {

    .header-main > .brand .brand__logo {
        height: 42px;
        max-width: 165px;
    }


}

/* =========================================================
   GLOBAL DESKTOP WIDTH
   %100 browser zoom'da daha dengeli görünüm
   ========================================================= */

@media (min-width: 1100px) {

    .shell {
        width: calc(100% - 64px);
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Header daha önce edge aligned yaptığımız için onu daraltma */
    .site-header .header-main,
    .site-header .announcement__inner {
        width: 100%;
        max-width: none;
    }

}

/* =========================================================
   DESKTOP CONTENT SCALE — FINAL OVERRIDE
   ========================================================= */

@media (min-width: 1100px) {

    body .shell {
        width: calc(100% - 48px) !important;
        max-width: 1040px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Header kenarlarda kalacak */
    body .site-header .header-main,
    body .site-header .announcement__inner {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   HEADER QUICK NAV
   ========================================================= */

.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-left: auto;
    margin-right: 25px;
}

.header-nav__item {
    position: relative;
}

.header-nav__trigger {
    height: 42px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 13px;

    border-radius: 8px;

    color: #272625;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease;
}

.header-nav__trigger > span {
    position: relative;
    top: -1px;

    color: #a8a5a3;
    font-size: 13px;

    transition: transform .2s ease;
}

.header-nav__item:hover .header-nav__trigger {
    background: #f6f6f6;
}

.header-nav__item:hover .header-nav__trigger > span {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.header-dropdown {
    position: absolute;
    z-index: 100;

    top: calc(100% + 7px);
    left: 50%;

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, 7px);

    padding: 17px;

    border: 1px solid #ecebea;
    border-radius: 13px;

    background: #fff;

    box-shadow:
        0 18px 50px rgba(39,38,37,.13);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* hover köprüsü */
.header-dropdown::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: -12px;

    height: 12px;
}

.header-nav__item:hover .header-dropdown,
.header-dropdown:hover {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* küçük kırmızı çizgi */

.header-dropdown::after {
    content: "";

    position: absolute;

    top: 0;
    left: 22px;

    width: 34px;
    height: 3px;

    border-radius: 0 0 5px 5px;

    background: #d9511b;
}


.header-dropdown__label {
    display: block;

    margin: 4px 4px 13px;

    color: #a7a4a2;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}


/* =========================================================
   PROGRAM DROPDOWN
   ========================================================= */

.header-dropdown--programs {
    width: 450px;
}

.header-dropdown__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.header-dropdown__grid > a {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;

    padding: 11px;

    border-radius: 9px;

    color: #272625;
    text-decoration: none;

    transition:
        background .18s ease,
        transform .18s ease;
}

.header-dropdown__grid > a:hover {
    background: #f7f7f7;
    transform: translateX(2px);
}

.header-dropdown__grid > a > small {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: #f2f2f1;

    color: #272625;

    font-size: 8px;
    font-weight: 800;
}

.header-dropdown__grid > a:hover > small {
    background: #d9511b;
    color: #fff;
}

.header-dropdown strong,
.header-dropdown em {
    display: block;
}

.header-dropdown strong {
    color: #272625;

    font-size: 11px;
    font-weight: 800;
}

.header-dropdown em {
    margin-top: 2px;

    color: #a19e9c;

    font-size: 8px;
    font-style: normal;
    font-weight: 500;
}


/* =========================================================
   TOOLS DROPDOWN
   ========================================================= */

.header-dropdown--tools {
    width: 280px;
}

.header-dropdown--tools > a {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px;

    border-radius: 9px;

    color: #272625;
    text-decoration: none;

    transition: background .18s ease;
}

.header-dropdown--tools > a:hover {
    background: #f7f7f7;
}

.header-tool-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #f2f2f1;

    color: #272625;

    font-size: 11px;
    font-weight: 800;
}

.header-dropdown--tools > a:hover .header-tool-icon {
    background: #d9511b;
    color: #fff;
}


/* =========================================================
   STUDENT LOGIN
   ========================================================= */

.header-student {
    height: 40px;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-left: 4px;
    padding: 0 14px;

    border: 1px solid #e6e5e4;
    border-radius: 8px;

    color: #272625;

    font-size: 11px;
    font-weight: 800;
    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.header-student:hover {
    background: #272625;
    border-color: #272625;

    color: #fff;
}

.header-student__icon {
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   Hamburger zaten mobil navigasyonu sağlıyor
   ========================================================= */

@media (max-width: 1050px) {

    .header-nav {
        display: none;
    }

}

/* =========================================================
   DESKTOP HEADER NAV — LOGO SONRASI
   ========================================================= */

.site-header .header-main {
    display: flex;
    align-items: center;
}

/* Önceden verdiğimiz auto margin'i kaldır */
.site-header .header-main > .brand {
    flex: 0 0 auto;
    margin-right: 38px !important;
}

.site-header .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;

    margin-right: auto;
}


.desktop-nav__item {
    position: relative;
}

.desktop-nav__link {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 10px;
    color: #2d2b2a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.desktop-nav__link > span {
    color: #9a9693;
    font-size: 14px;
    transition: transform .26s ease;
}

.desktop-nav__item:is(:hover, :focus-within) > .desktop-nav__link {
    background: #f6f5f5;
    color: #272625;
}

.desktop-nav__item:is(:hover, :focus-within) > .desktop-nav__link > span {
    transform: rotate(180deg);
}

.desktop-nav__dropdown {
    position: absolute;
    z-index: 300;
    top: calc(100% + 6px);
    left: 0;
    padding: 20px;
    border: 1px solid #ecebea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(39,38,37,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.985);
    transform-origin: top left;
    transition:
        opacity .26s ease,
        visibility .26s ease,
        transform .26s cubic-bezier(.22,1,.36,1);
}

.desktop-nav__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.desktop-nav__item:is(:hover, :focus-within) > .desktop-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.desktop-nav__dropdown > p {
    margin: 0 4px 15px;
    color: #999692;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.desktop-nav__dropdown--programs {
    width: min(520px, calc(100vw - 32px));
}

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

.desktop-nav__program-grid > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.desktop-nav__program-grid > a:is(:hover, :focus-visible) {
    background: #f7f7f7;
    border-color: #edeceb;
    transform: translateY(-2px);
}

.desktop-nav__program-grid small {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f2f2f2;
    color: #ae471e;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease;
}

.desktop-nav__program-grid a:is(:hover, :focus-visible) small {
    background: #ae471e;
    color: #fff;
}

.desktop-nav__program-grid strong,
.desktop-nav__program-grid em {
    display: block;
}

.desktop-nav__program-grid strong {
    color: #272625;
    font-size: 13px;
    font-weight: 800;
}

.desktop-nav__program-grid em {
    margin-top: 4px;
    color: #8a8683;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
}

.desktop-nav__dropdown--tools {
    width: min(340px, calc(100vw - 32px));
}

.desktop-nav__dropdown--tools > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.desktop-nav__dropdown--tools > a:is(:hover, :focus-visible) {
    background: #f7f7f7;
    border-color: #edeceb;
}

.desktop-nav__dropdown--tools b {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f2f2f2;
    color: #ae471e;
    font-size: 15px;
}

.desktop-nav__dropdown--tools strong,
.desktop-nav__dropdown--tools em {
    display: block;
}

.desktop-nav__dropdown--tools strong {
    color: #272625;
    font-size: 13px;
    font-weight: 800;
}

.desktop-nav__dropdown--tools em {
    margin-top: 4px;
    color: #8a8683;
    font-size: 11px;
    font-style: normal;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .desktop-nav__dropdown,
    .desktop-nav__link,
    .desktop-nav__program-grid > a,
    .desktop-nav__dropdown--tools > a {
        transition: none !important;
    }
}

/* -------------------------
   ÖĞRENCİ GİRİŞİ
   ------------------------- */

.desktop-nav__student {
    height: 40px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 13px;

    border-left: 1px solid #e9e8e7;

    color: #2d2b2a;
    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    transition: color .16s ease;
}

.desktop-nav__student:hover {
    color: #d9511b;
}

.desktop-nav__student span {
    color: #d9511b;
}


/* Telefon sağda kalmaya devam etsin */

.site-header .header-actions {
    flex: 0 0 auto;
    margin-left: 20px !important;
}


/* Tablet / mobilde hamburger yeterli */

@media (max-width: 1050px) {

    .site-header .desktop-nav {
        display: none;
    }

    .site-header .header-main > .brand {
        margin-right: auto !important;
    }

}

   ========================================================= */

@media (min-width: 1100px) {

    /*
     * 125% zoom'daki algıya yakın içerik genişliği.
     * Tüm ana bölümler aynı dikey hizada kalır.
     */
    body .shell {
        width: calc(100% - 64px) !important;
        max-width: 1040px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }


    /*
     * Header'ın içeriği de aynı 1040px grid'e otursun.
     */
    body .site-header .header-main {
        width: calc(100% - 64px) !important;
        max-width: 1040px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }


    /*
     * Üst bilgi bandının içeriği.
     */
    body .site-header .announcement__inner {
        width: calc(100% - 64px) !important;
        max-width: 1040px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

}


/* Orta boy laptoplarda kenarlar fazla sıkışmasın */
@media (min-width: 1100px) and (max-width: 1250px) {

    body .shell,
    body .site-header .header-main,
    body .site-header .announcement__inner {
        width: calc(100% - 40px) !important;
    }

}

/* =========================================================
   DESKTOP WIDTH FIX V2
   Header geniş kalır — sayfa içeriği kompakt kalır
   ========================================================= */

@media (min-width: 1100px) {

    /* ANA SAYFA İÇERİĞİ */
    body .shell {
        width: calc(100% - 48px) !important;
        max-width: 1040px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    /* HEADER'I TEKRAR TAM GENİŞLİĞE ÇIKAR */
    body .site-header .header-main {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 24px !important;
        padding-right: 24px !important;
    }


    /* ÜST BANT DA GENİŞ KALSIN */
    body .site-header .announcement__inner {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 24px !important;
        padding-right: 24px !important;
    }


    /* HAMBURGER SOLDA */
    body .site-header .menu-button--left {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }


    /* LOGO HAMBURGER'DAN SONRA */
    body .site-header .header-main > .brand {
        flex: 0 0 auto !important;
        margin-left: 18px !important;
        margin-right: 38px !important;
    }


    /* ORTA NAV */
    body .site-header .desktop-nav {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }


    /* TELEFON + BİLGİ AL SAĞDA */
    body .site-header .header-actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

}

/* =========================================================
   FINAL DESKTOP SCALE
   Browser %120 görünümünü browser %100'de yaklaştırır
   ========================================================= */

@media (min-width: 1100px) {

    /*
     * Önce daha önce yaptığımız 1040px daraltmalarını iptal et.
     */
    body .shell {
        width: calc(100% - 48px) !important;
        max-width: 1280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /*
     * Header kendi doğal geniş düzeninde kalacak.
     */
    body .site-header .header-main,
    body .site-header .announcement__inner {
        width: calc(100% - 48px) !important;
        max-width: 1280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /*
     * Desktop tasarım ölçeği.
     *
     * zoom burada özellikle tercih edildi:
     * font, buton, logo, kart, gap ve padding
     * birlikte büyür.
     */
    html {
        zoom: 1.20;
    }

}


/*
 * Tablet ve mobil kesinlikle scale edilmeyecek.
 */
@media (max-width: 1099px) {

    html {
        zoom: 1;
    }

}

/* =========================================================
   HEADER POSITION FIX
   Ölçek aynı — sadece header tekrar kenarlara açılıyor
   ========================================================= */

@media (min-width: 1100px) {

    /* HEADER FULL WIDTH */
    body .site-header .header-main {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    /* ÜST BANT DA FULL WIDTH */
    body .site-header .announcement__inner {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    /* HAMBURGER SOLDA */
    body .site-header .menu-button--left {
        flex: 0 0 auto !important;

        margin-left: 0 !important;
        margin-right: 18px !important;
    }

    /* LOGO */
    body .site-header .header-main > .brand {
        flex: 0 0 auto !important;

        margin-left: 0 !important;
        margin-right: 34px !important;
    }

    /* PROGRAMLAR / ARAÇLAR / ÖĞRENCİ */
    body .site-header .desktop-nav {
        flex: 0 0 auto !important;

        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* TELEFON + BİLGİ AL SAĞA */
    body .site-header .header-actions {
        flex: 0 0 auto !important;

        margin-left: auto !important;
        margin-right: 0 !important;
    }

}
