/*
 * Köhnə saytın SƏHİFƏ İÇİ üslubları.
 *
 * AZ: Bu qaydalar köhnə `include/head.php` faylının içində, HTML-in ortasında
 * `<style>` bloku kimi yazılmışdı — heç bir CSS faylında deyil. Ona görə
 * `main.css` və `minit2.css` köçürüləndə onlar geridə qalmışdı və nəticədə
 * sağ sütunun şəkilli qutuları hündürlüksüz (0 piksel) render olunurdu.
 *
 * Məzmun OLDUĞU KİMİ köçürülüb — dəyişdirilməyib, çünki məqsəd eyni görünüşü
 * almaqdır. Yalnız bu şərh əlavə edilib.
 *
 * EN: These rules lived inline inside head.php, not in any stylesheet, so they
 * were missed on the first pass; the sidebar slide boxes rendered with zero
 * height as a result.
 */

@media only screen and (max-width: 480px) {
            .bannerframe , .reklam, .hidden-xs {
                display: none;
            }

        }

        @media only screen and (max-width: 800px) {
             .hidden-xs {
                display: none;
            }

        }

        @media only screen and (max-width: 1000px) {
            .bannerframe {
                display: none;
            }
        }

        .slide-wrap {
            width: 100%;
            max-width: 350px;
            height: 250px;
            overflow: hidden;
        }

        .slides {
            position: relative;
            padding: 0px;
            margin: 0px;
            list-style-type: none;
            width: 100%;
            display: block;
            max-width: 100%;
            height: 200px;
        }

        .slide {
            position: absolute;
            left: 0px;
            top: 0px;
            width: 100%;
            height: 100%;
            opacity: 0;
            z-index: 1;

            -webkit-transition: opacity 1s;
            -moz-transition: opacity 1s;
            -o-transition: opacity 1s;
            transition: opacity 1s;
        }

        .slide .image {
            width: 100%;
            height: 200px;
            /* S3 şəkli tam ölçüdə gəlir (resizer ləğv olundu) — qutuya
               oturması üçün cover + mərkəz. Bunsuz şəkil sol-yuxarıdan
               kəsilib düz yerləşmirdi. */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .showing {
            opacity: 1;
            z-index: 2;
        }

        /*
non-essential styles:
just for appearance; change whatever you want
*/

        .slide {
            box-sizing: border-box;
            background: #333;
            color: #fff;
        }

        .buttons {
            position: relative;
            text-align: center;
            margin-bottom: 10px;
            overflow: hidden;
            margin-top: 10px;
        }

        .buttons:after, .buttons:before {
            content: "";
            width: 50%;
            height: 1px;
            position: absolute;
            border-bottom: 1px solid #eee;
            left: -40px;
            top: 50%;
        }

        .buttons:after {
            right: -40px;
            left: auto;
        }
        .buttons a{
            text-align: center;
            line-height: 28px;
            width: 30px;
            height: 28px;
            display: inline-block;
            text-decoration: none;
            border: 1px solid #eee;
            color: #a0a0a0;
            font-size: 12px;
        }

        .buttons a:focus{
            border: 1px solid #e0e0e0;
            color: #212121;
        }
        .banner_content {
            padding: 20px 15px 10px;
            position: absolute;
            color: #fff;
            bottom: 0;
            background: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .65) 70%);
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#a6000000", GradientType=0);
        }

        .banner_content a{
            color: #fff;
            text-decoration: none;
        }
        .banner_content a:hover{
            color: #eee;
            text-decoration: none;
        }

        .banner_title {
            font-size: 17px;
            font-weight: 500;
            margin: 0 auto 5px;
        }
        .banner_meta {
            font-size: 11px;
            text-transform: uppercase;
        }

        .banner_label{
            position: absolute;
            z-index: 3;

            top: 10px;
            left: 10px;
            margin: 0;
            line-height: 1;
        }

        .banner_label a{
            background: #c91212;
            color: #fff;
            text-decoration: none;
            padding: 2px 5px;
            font-size: 12px;
        }

/* ── Mobil header ──────────────────────────────────────────────────────────
   jnews teması desktop `.jeg_header`-i ≤1024px gizlədir, mobil header isə
   render olunmurdu → mobildə header yox idi. Bu sadə mobil header (loqo +
   sürüşən kateqoriyalar) yalnız ≤1024px göstərilir. */
.ml-mobile-header { display: none; }
@media only screen and (max-width: 1024px) {
  .jeg_viewport .ml-mobile-header,
  .ml-mobile-header {
    display: block;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
  }
  .ml-mh-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
  }
  .ml-mh-logo { display: inline-flex; }
  .ml-mh-logo img { height: 34px; width: auto; display: block; }
  .ml-mh-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 9px 14px;
    border-top: 1px solid #f1f1f1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ml-mh-nav::-webkit-scrollbar { display: none; }
  .ml-mh-nav a {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #262626;
    text-decoration: none;
    padding: 2px 0;
  }
  .ml-mh-nav a:active,
  .ml-mh-nav a:hover { color: #d50e39; }
}
