﻿
.page-section {
    display: flex;
    flex-direction: column; /* normalde üstte header, altta banner */
}

.page-header {
    order: 1;
}

.page-banner {
    order: 2;
}

/* Desktop row */
.yk-myworld-header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo sol, nav sağ */
    gap: 24px;
    width: 100%;
}

.yk-myworld-header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
}

/* Mobile row kapalı (desktop) */
.yk-myworld-header-mobile {
    display: none;
}

/* Logo boyutu */
.yk-myworld-header-logo img,
.yk-myworld-header-logo-mobile img {
    width: 100%;
}

/* Hamburger */
.yk-myworld-burger {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

    .yk-myworld-burger span {
        display: block;
        height: 2px;
        width: 20px;
        background: #111;
        border-radius: 2px;
    }

.yk-myworld-header-spacer {
    width: 44px; /* hamburger ile aynı: logo ortalansın */
}

.d-none {
    display: none !important;
}

.d-block {
    display: block;
}

@media (max-width: 991px) {

    .page-header {
        order: 2;
        padding-top: 24px;
    }

    .page-banner {
        order: 1;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .yk-myworld-header-desktop {
        display: none; /* desktop satırını kapat */
    }

    .yk-myworld-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    /* Mobilde logo tam ortada */
    .yk-myworld-header-logo-mobile {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .yk-myworld-header-drawer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        position: absolute;
        left: 16px;
        top: 50px;
        background-color: #f3f3f3;
        padding: 12px;
        border-radius: 8px;
        width: calc(100% - 56px);
    }

    .yk-myworld-header-link:not(:first-child) {
        margin-left: 0px;
    }

    .yk-myworld-header-logo img, .yk-myworld-header-logo-mobile img {
        height: 28px;
    }

  
}

