@media (max-width: 1120px) {
    nav {
        flex-direction: column;
        display: none !important;
    }

    #logo {
        width: 130px !important;
        margin-top: 15px !important;
        margin-left: -10%;
    }

    #menubar {
        height: 50px !important;
    }
    .axan-xeber{
        margin-top: 53px !important;
    }
    .axan-track{
        padding: 3px !important;
    }
    #axtaris-dugme{
        right: 0 !important;
    }
    #hava{
        right: 40px !important;
    }
}


#menubar {
    background-color: #cf1d39;
    width: 100%;
    height: 80px;
    display: flex;
    position: fixed;
    top: 0;
    z-index: 100;
}

main {
    margin-top: 100px !important;

}

#logo {
    width: 190px;
    margin-top: 24px;
}

nav {
    letter-spacing: 1px;
    margin-top: 31px;
    font-family: "Vazirmatn", sans-serif;
    display: inline-block;
    font-size: 16px;
    font-weight: 1000;
    margin-left: 30px;

}

nav :hover,
nav :hover i {
    color: #cf1d39 !important;
    background-color: white;
    border-radius: 0px 15px;
}

nav a {
    padding: 10px;
    text-decoration: none;
    color: white;
}

.active,
#icon {
    color: #cf1d39 !important;
    background-color: white;
    border-radius: 0px 15px;
}

nav :hover span,
nav :hover #canliikon {
    color: #f5d2d7 !important;
    background: none !important;
}

nav:hover .boz {
    background: none !important;
}

#canliikon {
    animation: canlireng 1s infinite;
}

@keyframes canlireng {

    0%,
    100% {
        color: #cf1d39;
    }

    50% {
        color: rgb(255, 255, 255);
    }
}

body {
    margin: 0;
}

:root {
    --icerik: 1000px;
}

.yan-mobil {
    position: fixed;
    top: 130px;
    z-index: 50;
}

.yan-mobil-sol {
    margin-top: 2%;
    left: 20px;
}

.yan-mobil-sag {
    margin-top: 2%;
    right: 20px;
}

.yan-mobil img {
    display: block;
    width: max(0px, min(230px, calc((100vw - var(--icerik)) / 2 - 30px)));
    height: auto; 
}

@media (max-width: 1150px) {
    .yan-mobil {
        display: none;
    }
}

#slider {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto 20px;
}

#slider-sekil {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

#slider-sekil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

#slider-basliq {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 40px 20px 15px;
    color: white;
    font-size: 22px;
    font-family: "Vazirmatn", sans-serif;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

#slider-link {
    text-decoration: none;
}

#sol-ox,
#sag-ox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

#sol-ox {
    left: 0;
}

#sag-ox {
    right: 0;
}

#sol-ox:hover,
#sag-ox:hover {
    background: #cf1d39;
}

#slider-nomreler {
    width: 100%;
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

#slider-nomreler button {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 0 10px;
    width: 36px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    background: #f2f2f2;
    color: #444;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#slider-nomreler button.aktiv {
    background: #cf1d39;
    border-color: #cf1d39;
    color: white;
}

.xeberler {
    max-width: 990px;
    margin: 35px auto;
    padding: 0 20px;
    font-family: "Vazirmatn", sans-serif;
}

.xeber-siyahisi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.xeber-karti {
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    box-shadow: 0 20px 12px #00000018;
    display: flex;
    flex-direction: column;
}

.xeber-karti img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.xeber-melumat {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.xeber-melumat h2 {
    font-size: 18px;
}

.xeber-tarixi {
    color: #777;
    font-size: 14px;
    margin-top: auto;
}

.xeberlink {
    color: black;
    text-decoration: none;
    display: flex;
}

.xeber-melumat p {
    color: #cf1d39;
    text-decoration: none;
    bottom: 260px;
    display: flex;
}

.sehifeleme {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 35px 0 50px;
}

.sehifeleme a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 0 15px;
    background: white;
    color: #444;
    font-family: "Vazirmatn", sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sehifeleme a:hover {
    background: #f2f2f2;
}

.sehifeleme a.aktiv {
    background: #cf1d39;
    border-color: #cf1d39;
    color: white;
}

.axan-yazi {
    z-index: 67;
    box-shadow: 0 10px 12px 1px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    margin-top: -67px;
    overflow: hidden;
    background: white;
    border-bottom: 1px solid #ddd;
}

.axan-track {
    display: flex;
    width: max-content;
    padding: 12px 0;
    animation: axan 60s linear infinite;
}


.axan-yazi:hover .axan-track {
    animation-play-state: paused;
}

.axan-xeber {
    position: relative;
    margin-top: 80px;
    margin-right: 70px; 
    padding-left: 18px;
    color: #222;
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.axan-xeber::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -5px;
    border-radius: 50%;
    background: #cf1d39;
}

.axan-xeber:hover {
    color: #cf1d39;
}

@keyframes axan {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(var(--mesafe) * -1)); }
}

#axtaris-dugme {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#axtaris-dugme:hover {
    opacity: 0.75;
}

#axtaris-panel {
    display: none;
    position: absolute;
    right: 20px;
    top: 100%;
    width: 380px;
    max-width: calc(100vw - 40px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    box-shadow: 0 12px 30px #0003;
    z-index: 200;
    font-family: "Vazirmatn", sans-serif;
}

#axtaris-panel.aktiv {
    display: block;
}

#axtaris-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

#axtaris-input:focus {
    border-color: #cf1d39;
}

#axtaris-netice {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 8px;
}

#axtaris-netice a {
    display: block;
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

#axtaris-netice a:hover {
    background: #f2f2f2;
    color: #cf1d39;
}

#axtaris-netice .bos {
    padding: 10px 8px;
    color: #888;
    font-size: 14px;
}

#hava {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Vazirmatn", sans-serif;
    z-index: 150;
}

#hava-dugme {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#hava-ikon {
    font-size: 20px;
}

#hava-ox {
    font-size: 11px;
    transition: transform 0.2s;
}

#hava.aktiv #hava-ox {
    transform: rotate(180deg);
}

#hava-siyahi {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    width: 190px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    box-shadow: 0 12px 30px #0003;
}

#hava.aktiv #hava-siyahi {
    display: block;
}

#hava-siyahi button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    text-align: left;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

#hava-siyahi button:hover {
    background: #f2f2f2;
    color: #cf1d39;
}

#hava-siyahi button.secili {
    color: #cf1d39;
    font-weight: 700;
}
