/* =========================
   GLOBAL
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mobile-toggle {
    display: none;
}


/* =========================
   CONTAINER
========================= */

@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
	.innn {
    padding-bottom: 50px;
}
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
	.innn {
    padding-bottom: 50px;
}
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    color: white;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
	.innn {
    padding-bottom: 50px;
}
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: white;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 10px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}
}


/* =========================
   HEADER — MOBİL LAYOUT

   Sətir 1: logo + yazı (tam en)
   Sətir 2: [ dil ]  [ axtarış ]  [ ☰ ]
========================= */

@media (max-width: 768px) {

    /* Desktop menyunu gizlə */
    .desktop-menu,
    nav {
        display: none !important;
    }

    /* .container içindəki header-flex: 2 sətir */
    .header-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    /* ── Sətir 1: Logo + yazı ── */
    .site-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        flex-shrink: 1 !important;   /* əsas CSS-dəki flex-shrink:0 ləğv edilir */
        text-decoration: none;
    }

    .logo {
        height: 44px !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .site-title span:first-child {
        font-size: 12px !important;
    }

    .site-title span:last-child {
        font-size: 14px !important;
        line-height: 20px;
    }

    /* ── Sətir 2: Dil + Axtarış + ☰ ── */
    .right-panel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* Dil — öz ölçüsündə, sıxılmasın */
    .right-panel .lang {
        flex: 0 0 auto !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    /* Axtarış — boşluğu doldursun */
    .search-box {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .search-box input {
        width: 100% !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
        border-radius: 16px !important;
    }

    /* Hamburger — sağda, sıxılmasın, brown */
    .mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        font-size: 22px !important;
        color: #6B3A2A !important;
        cursor: pointer !important;
        line-height: 1 !important;
        user-select: none !important;
        padding: 0 2px !important;
        position: static !important;   /* əsas CSS-dəki position:absolute ləğv edilir */
    }

}

@media (max-width: 480px) {

    .logo {
        height: 38px !important;
    }

    .site-title span:first-child {
        font-size: 11px !important;
    }

    .site-title span:last-child {
        font-size: 12px !important;
        line-height: 20px;
    }

    .right-panel {
        gap: 6px !important;
    }

    .search-box input {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }

    .mobile-toggle {
        font-size: 20px !important;
    }

}


/* =========================
   MOBİL MENYU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-close {
    font-size: 24px;
    margin-bottom: 15px;
    cursor: pointer;
    color: #6B3A2A;
    display: block;
}

.mobile-menu a,
.mobile-menu span {
    display: block;
    padding: 5px 12px 5px 12px;
    color: #333;
    text-decoration: none;
}

.mobile-menu ul ul {
    display: none;
    padding-left: 15px;
}

.mobile-sub > span {
    position: relative;
    font-weight: 600;
    cursor: pointer;
    color: #6B3A2A;
}

.mobile-sub > span::after {
    content: "›";
    position: absolute;
    right: 10px;
    font-size: 18px;
    color: #6B3A2A;
    transition: transform 0.3s;
}

.mobile-sub.active > span::after {
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 260px;
    }
}


/* =========================
   OVERLAY
========================= */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================
   BODY LOCK
========================= */

body.menu-open {
    overflow: hidden;
}


/* =========================
   HERO / SLİDER
========================= */

@media (max-width: 1024px) {
    .hero-slider { height: 420px; }
}

@media (max-width: 768px) {
    .hero-slider { height: 300px; }
        .page-title h1 {
    font-size: 20px;
}
.news_innnnn{
    padding: 0px 0px 40px 0px;
}
.services {
    padding: 50px 0;
}
.page-title {
    background: var(--soft);
    padding: 30px 0;
    margin-bottom: 20px;
}
}

@media (max-width: 480px) {

    .hero-slider { height: 220px; }

    .hero-slide {
        width: 100%;
        height: 100%;
        left: 0;
    }
    .news_innnnn {
    padding: 0px 0px 40px 0px;
}

.services {
    padding: 50px 0;
}
.page-title {
    background: var(--soft);
    padding: 30px 0;
    margin-bottom: 20px;
}

    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-text {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 13px;
        padding: 8px;
    }

    .hero-text h1 {
        font-size: 11px;
    }

}


/* =========================
   GRID
========================= */

@media (max-width: 768px) {

    .services-grid,
    .news-grid,
    .announce-grid,
    .gallery-grid,
    .news-gallery {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 480px) {

    .services-grid,
    .news-grid,
    .announce-grid,
    .gallery-grid,
    .news-gallery {
        grid-template-columns: 1fr !important;
    }

}


/* =========================
   XƏBƏR DETALİ
========================= */

@media (max-width: 768px) {

    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-video iframe {
        height: 250px;
    }

}

@media (max-width: 480px) {

    .news-title { font-size: 20px; }

    .news-meta {
        gap: 5px;
        font-size: 13px;
    }

    .news-detail {
        font-size: 15px;
        line-height: 1.7;
    }

    .news-gallery img { height: 140px; }

    .news-video iframe { height: 200px; }

}


/* =========================
   ƏLAQƏ / XƏRİTƏ
========================= */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
        .page-title h1 {
    font-size: 20px;
}
}

@media (max-width: 480px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map iframe {
        height: 220px;
    }

}


/* =========================
   FOOTER
========================= */

@media (max-width: 480px) {
    footer {
        font-size: 13px;
        padding: 20px 0;
    }
    
    .page-title h1 {
    font-size: 20px;
}
}


/* =========================
   YUXARIYA QAYIT
========================= */

@media (max-width: 480px) {
    #backToTop {
        width: 38px;
        height: 38px;
        right: 12px;
        bottom: 12px;
    }
}



/* =========================
   TABLET (3 logo)
========================= */

@media (max-width:768px){

.partner-slider{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    justify-items:center;
}

.partner-slider img{
    height:60px;
}

}


/* =========================
   MOBILE (2 logo)
========================= */

@media (max-width:480px){

.partner-slider{
    grid-template-columns:repeat(2, 1fr);
    gap:15px;
}

.partner-slider img{
    height:55px;
}

}