/* Mobile optimizations for Halkbank static clone. Loaded last so it wins over template.css. */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Prevent iOS zoom on input focus */
input,
select,
textarea {
    font-size: 16px;
}

@media (max-width: 767.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    header.header-desktop {
        display: none !important;
    }

    section,
    .footer-section-middle,
    .footer-section-bottom {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-section-bottom .apps-downloads img {
        max-height: 42px;
        width: auto;
    }

    .cookie-message {
        font-size: 13px;
        line-height: 1.45;
    }

    /* Hero/banner carousels: keep aspect ratio, no overflow */
    picture img,
    .slick-slide img,
    .hero img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Make buttons easier to tap */
    .btn,
    button,
    a.btn {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .top-nav-item,
    .prim-nav-item {
        min-height: 44px;
    }

    .lang-mobile-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 15px;
    }

    .lang-mobile-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.15rem;
    }

    .footer-category-title {
        font-size: 1rem;
    }
}
