﻿.question-desc {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .question-desc.collapsed {
        max-height: 60px;
    }

    .question-desc.expanded {
        max-height: 1000px;
    }

html {
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    bottom: 110px; /* pehle 50px tha */
    right: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    border: none;
    z-index: 9999;
    font-size: 20px;
    color: #fff;
}

    .back-to-top:hover {
        background-color: #222;
        color: #fff;
    }

    .back-to-top i {
        font-size: 1.2rem;
    }
.card-title a {
    color: #212529;
}

    .card-title a:hover {
        color: #198754;
    }

.question-desc {
    color: #555;
    line-height: 1.7;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.question-desc.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
}
@media (max-width: 576px) {

    .card-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

        .card-footer .btn {
            width: 100%;
        }
    .ask-question-btn {
        width: 100%;
        max-width: 280px;
    }
    .card-body {
        padding: 14px;
    }

    .card-title {
        font-size: 18px;
    }

    .question-desc {
        font-size: 14px;
    }
}