/* ძირითადი სტილები */
.category-link {
    display: block;
    color: inherit;
    text-decoration: none; /* დამატებული */
}

.category-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* დამატებული */
}

.category-card:hover {
    transform: translateY(-3px); /* დამატებული */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12); /* დამატებული */
}

/* სურათის თავზე რბილი გრადიენტი */
.category-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 პროპორცია */
    overflow: hidden;
    background: linear-gradient(45deg, #f7f9fc, #ffffff);
}

.category-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.category-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* კონტენტის ნაწილი */
.category-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.category-title {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #1a365d; /* ICETECH-ის ფერთან დაკავშირებული */
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    display: box; /* დამატებული სტანდარტული თვისება */
    -webkit-line-clamp: 2;
    line-clamp: 2; /* დამატებული სტანდარტული თვისება */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* დამატებული სტანდარტული თვისება */
    line-height: 1.3;
    min-height: 40px;
    text-overflow: ellipsis; /* დამატებული */
}

/* "ნახვა" დეკორატიული ელემენტი */
.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: #00a4bd; /* ICETECH-ის მეორე ფერი */
    font-size: 14px;
    font-weight: normal;
    opacity: 0.85;
    transition: opacity 0.2s ease; /* დამატებული */
}

.view-more:hover {
    opacity: 1; /* დამატებული */
}

.view-more i {
    margin-left: 6px;
    font-size: 14px;
}

/* მობილური რესპონსიული დიზაინის გაუმჯობესება */
@media (max-width: 1200px) {
    .category-title {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .category-image-wrapper {
        padding-top: 80%;
    }
    .category-content {
        padding: 14px;
    }
    .category-title {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .row.g-4 {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 15px;
    }
    .category-image-wrapper {
        padding-top: 75%;
    }
    .category-content {
        padding: 12px 10px;
    }
    .category-title {
        font-size: 14px;
        min-height: 38px;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* დამატებული */
    }
    .view-more {
        margin-top: 8px;
        font-size: 13px;
    }
    .view-more i {
        font-size: 13px;
    }
}

/* მობილური ტელეფონების გაუმჯობესება */
@media (max-width: 575px) {
    .row.g-4 {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 12px;
        margin-left: -4px;
        margin-right: -4px;
    }
    .row.g-4 > [class*="col-"] {
        padding-left: 4px;
        padding-right: 4px;
    }
    .category-card {
        border-radius: 8px;
    }
    .category-image-wrapper {
        padding-top: 70%; /* უფრო მცირე სიმაღლე მობილურებზე */
    }
    .category-image-container {
        padding: 8px;
    }
    .category-content {
        padding: 10px 8px;
    }
    .category-title {
        font-size: 13px;
        min-height: 34px;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* დამატებული */
    }
    .view-more {
        font-size: 12px;
        margin-top: 6px;
    }
    .view-more i {
        font-size: 12px;
        margin-left: 4px;
    }
}

/* პატარა მობილურებისთვის */
@media (max-width: 359px) {
    .category-title {
        font-size: 12px;
        min-height: 32px;
    }
    .view-more {
        font-size: 11px;
    }
    .view-more i {
        font-size: 11px;
    }
    .category-content {
        padding: 8px 6px;
    }
}