﻿.categories-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
}

/* Arka plan resimleri */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
    opacity: 0;
}

    .bg-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

    /* Aktif arka plan */
    .bg-image.active {
        opacity: 1;
    }

.container-fluid {
    position: relative;
    z-index: 2;
    width: 100%;
}

.row {
    align-items: flex-end; /* Tüm kartları aynı hizaya getir */
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    min-height: 200px; /* Minimum yükseklik */
}

.category-content {
    position: relative;
    height: 200px; /* Sabit başlangıç yüksekliği */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 30px 20px;
}

.category-card:hover .category-content {
    height: 240px; /* Hover'da yukarı büyür */
    background: #16374b;
    border-color: #16374b;
    justify-content: flex-start; /* Üstten hizala */
    padding-top: 60px;
}

.category-title {
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    transition: margin-bottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-title {
    margin-bottom: 25px;
}

.category-description {
    max-height: 0;
    overflow: hidden;
    width: 85%;
    padding: 0;
    color: #ffffff;
    opacity: 0;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-description {
    max-height: 150px;
    opacity: 1;
}

.category-description h3 {
    display: none;
}

.category-description p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Responsive */
@media (max-width: 991px) {
    .categories-section {
        min-height: auto;
    }

    .category-content {
        height: 180px;
    }

    .category-card:hover .category-content {
        height: 340px;
        padding-top: 50px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-card:hover .category-title {
        margin-bottom: 20px;
    }

    .category-description p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .category-content {
        height: 160px;
    }

    .category-card:hover .category-content {
        height: 300px;
        padding-top: 40px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-card:hover .category-title {
        margin-bottom: 15px;
    }

    .category-description {
        width: 90%;
    }

        .category-description p {
            font-size: 13px;
            line-height: 1.6;
        }
}
