/* FAM Layihə Karuseli – Puneva */

/* Bölmə */

.fam-projects {
    width: 100%;
    padding: 60px 0;
}

.fam-projects-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Başlıq */

.fam-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.fam-projects-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fam-projects-title {
    font-size: 32px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

.fam-projects-accent {
    width: 64px;
    height: 3px;
    background-color: #fbbf24;
}

/* Oxlar */

.fam-projects-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fam-projects-arrow {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #111827;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.fam-projects-arrow span {
    font-size: 16px;
    line-height: 1;
}

.fam-projects-arrow:hover {
    background-color: #fbbf24;
    color: #111827;
    border-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

/* Track – əsas karusel */

.fam-projects-track-wrapper {
    position: relative;
}

.fam-projects-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar tam gizli – “scrollbar kimi görünməsin” */
.fam-projects-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fam-projects-track::-webkit-scrollbar {
    display: none;
}

/* Kart */

.fam-project-card {
    flex: 0 0 32%;
    min-width: 280px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    background-color: #000;
}

.fam-project-card-link-wrapper {
    display: block;
    color: inherit;
    text-decoration: none;
}

.fam-project-card-inner {
    position: relative;
    height: 100%;
}

.fam-project-card-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

/* Overlay və mətn */

.fam-project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.fam-project-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    padding: 0 24px;
    z-index: 2;
}

.fam-project-card-category {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.fam-project-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Alt xətt */

.fam-project-card-bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background-color: #fbbf24;
    z-index: 2;
}

/* Alt “Bütün Layihələr” düyməsi */

.fam-projects-footer {
    margin-top: 28px;
    text-align: center;
}

.fam-projects-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1.5px solid #111827;
    background-color: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fam-projects-button:hover {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 12px 24px rgba(15,23,42,0.35);
    transform: translateY(-1px);
}

/* Responsiv görünüş */

@media (max-width: 1024px) {
    .fam-project-card {
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
    .fam-projects-inner {
        padding: 0 16px;
    }

    .fam-projects-title {
        font-size: 26px;
    }

    .fam-projects-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .fam-project-card {
        flex: 0 0 80%;
    }
}

@media (max-width: 480px) {
    .fam-project-card {
        flex: 0 0 90%;
    }
}

/* Mobil GRID variantı */

@media (max-width: 768px) {

    .fam-projects.fam-projects--mobile-grid .fam-projects-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .fam-projects.fam-projects--mobile-grid .fam-project-card {
        flex: 0 0 auto;
        min-width: 0;
    }

    .fam-projects.fam-projects--mobile-grid .fam-projects-header-right {
        display: none; /* Grid modunda mobil oxlar gizli */
    }
}

@media (max-width: 480px) {
    .fam-projects.fam-projects--mobile-grid .fam-projects-track {
        grid-template-columns: 1fr;
    }
}
