.page-container {
    width: 100%;
    background: linear-gradient(133deg, #00123c, var(--dark-blue), #002d48);
}

.center-section {
    width: 80%;
    background: white;
    margin: auto;
    padding: 15px;
    border-radius: 0 0 50px 50px;
}

.question-container {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.col {
    flex: 1 1 50%;
    min-width: 300px;
}

.description {
    padding: 20px;
    max-width: 50%;
}

.description h2 {
    font-size: 33px;
    margin-bottom: 10px;
    font-weight: bold;
}

.description p {
    padding: 5px 15px;
    line-height: 1.9;
    font-size: 23px;
    color: #727272;
}

.image-col img {
    width: 100%;
    object-fit: cover;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 15px auto;
    padding: 18px 0;
    background: rgba(30, 112, 206, 0.42);
}

.stat {
    display: flex;
    gap: 50px;
    flex-direction: row-reverse;
    align-items: center;
}

.number {
    font-size: 36px;
    font-weight: 800;
    color: #005f8f;
}

.label {
    font-weight: bold;
    font-size: 24px;
    color: black;
}

.titr {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-blue);
}

.row p {
    white-space: pre-line;
}

.questions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px auto;
    max-width: 80%;
    padding: 0 20px;
}

.question-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.29), rgb(255, 255, 255), rgba(0, 128, 255, 0.13));
    border-radius: 18px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(16, 67, 110, 0.35);
    border: 1px solid rgba(232, 238, 246, 0.51);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(19, 63, 138, 0.2);
}

.question-content {
    flex: 1;
}

.question-title {
    color: #133f8a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.question-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.question-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    gap: 15px;
}

.question-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    min-width: 70px;
}

.stat-box {
    background: #f5f8ff;
    border: 1px solid #d5e1fa;
    color: #133f8a;
    box-shadow: 0 4px 15px rgba(16, 67, 110, 0.35);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    min-width: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.sort-buttons h3 {
    color: var(--dark-blue);
}

.sort-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.63), rgb(255, 255, 255), rgba(164, 164, 164, 0.68));
    border-radius: 10px;
    font-family: unset;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 18px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 39, 122, 0.52);
}

.sort-btn:hover,
.sort-btn.active {
    background: #133f8a;
    color: #fff;
    transform: translateY(-2px);
}

.stat-box:hover {
    background: #133f8a;
    color: #fff;
}

.no-questions {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}


#question-form {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgb(0, 163, 185);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.5s ease;
}

#question-form.open {
    max-height: 700px; /* متناسب با ارتفاع فرم */
    opacity: 1;
    padding: 25px;
}

#show-form-btn {
    background-color: #133f8a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 40px 0 20px;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#show-form-btn:hover {
    background-color: #0f3366;
    transform: translateY(-2px);
}

.questions_container {
    max-width: 80%;
    background-color: white;
    margin: 20px auto;
    border-radius: 50px 50px 0 0;
    padding-top: 30px;
}

label {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-blue);
}

/* ===== فیلدهای فرم ===== */
#question-form input[type="text"],
#question-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 22px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#question-form input[type="text"]:focus,
#question-form textarea:focus {
    border-color: #133f8a;
    box-shadow: 0 0 8px rgba(19, 63, 138, 0.3);
    outline: none;
}

/* ===== دکمه ارسال فرم ===== */
#question-form button[type="submit"] {
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    font-family: 'Vazir', sans-serif;
}

.pagination-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(19, 63, 138, 0.1);
    color: #133f8a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(19, 63, 138, 0.2);
    transition: all 0.25s ease;
    cursor: pointer;
}

.pagination-link:hover {
    background: #133f8a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(19, 63, 138, 0.3);
}

.pagination-info {
    font-weight: 700;
    font-size: 20px;
    color: #005181;
}

/* ===== لینک ورود ===== */
#question-form a,
a.login-link {
    color: #133f8a;
    font-weight: 500;
    text-decoration: none;
}

#question-form a:hover,
a.login-link:hover {
    text-decoration: underline;
}
.image-col img{
    aspect-ratio: 2/1;
}
/* ===== ریسپانسیو ===== */
@media screen and (max-width: 768px) {
    #question-form, .question-item {
        padding: 10px;
    }

    #show-form-btn {
        width: 100%;
        padding: 10px;
        margin: 40px 0 0 0;

    }
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .center-section {
        width: 90%;
        padding: 0;
    }

    .description {
        padding: 0;
    }

    .description p {
        padding: 15px 0;
        font-size: 19px;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    .bar-chart .bar {
        width: calc(100% / 14 - 6px);
    }

    #question-form.open {
        width: 90%;
        padding: 10px;
        margin-top: 10px;
    }

    .questions_container {
        max-width: 90%;
    }

    .questions-wrapper {
        margin: 0;
        max-width: unset;
        padding: 15px 10px;
    }
    .question-card{
        padding: 15px;
        display: block;
    }
    .question-stats{
        flex-direction: row;
        margin-top: 15px;
    }
    .question-desc{
        font-size: 17px;
    }
    .question-title{
        font-size: 19px;
    }
    .stat-box{
        font-size: 12px;
    }

    /* لایه تارکننده */
    .overlay.mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .overlay.mobile.show {
        display: block;
        opacity: 1;
    }

    /* منوی کشویی مرتب‌سازی */
    .drawer.mobile {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 9999;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        transition: bottom 0.35s ease;
    }

    .drawer.mobile.open {
        bottom: 0;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
    }

    .drawer-header p {
        margin: 0;
        font-weight: 600;
        font-size: 16px;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
    }

    .sort-buttons {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .sort-btn {
        background: #f6f7fa;
        border: none;
        padding: 12px;
        border-radius: 10px;
        width: 99%;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s;
    }
    .support-btn{
        display: none;
    }
    .sort-btn:hover {
        background: #e9ecf3;
    }

    .sort-btn.active {
        background: #133f8a;
        color: #fff;
    }
    #mobile-sort-bar img{
        width: 55px;
        height: 55px;
    }
    #mobile-sort-bar button{
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
        background-color: var(--dark-blue);
        width: 100%;
        position: fixed;
        bottom: 0;
        color: white;
        font-size: 19px;
        z-index: 9999;
    }
    .description h2 {
        font-size: 25px;
    }
}