@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2 supports variations'), url('../fonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
   
}

body {
    font-family: Vazirmatn;
    font-feature-settings: "ss01";
}

.only-number, input[type='tel'] {
    direction: ltr;
}

.mobile-ussd{
    display:none;
}

.validation-summary-errors {
    color: #dc3545;
}

    .validation-summary-errors ul {
        padding-right: 1rem;
    }

/* Hide the default radio button */
input[type="radio"] {
    display: none;
}

/* Create a custom radio button */
.radio-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 55px;
    right: 20px;
    display: none;
}
    /* Square style for the radio button */
    .radio-container::before {
        content: attr(data-value);
        display: inline-block;
        width: 24px;
        height: 24px;
        border: 2px solid #ddd;
        text-align: center;
        margin-right: 4px;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

/* Change background color when the radio button is checked */
input[type="radio"]:checked + .radio-container::before {
    background-color: green;
    color: white;
    border-color: green;
}

.correct {
    background-color: #d4edda;
    color: #155724;
}

.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

.unanswered {
    background-color: #fff3cd;
    color: #856404;
}

.no-correct-answer {
    background-color: #e2e3e5;
    color: #6c757d;
}

.option-container {
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.correctOption {
    background-color: green !important;
    color: white !important;
    border-color: green !important;
}

.keyOption {
    color: green;
    border: 2px solid green;
}

.incorrectOption {
    background-color: red !important;
    color: white !important;
    border-color: red !important;
}

.unansweredOption {
    background-color: gray !important;
    color: white !important;
    border-color: gray !important;
}

.selectedOption {
    font-weight: bold;
}

@media (max-width: 768px) {
    .option-container {
        padding: 1px 6px !important;
        margin-right: 2px !important;
    }
}


.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
}




.info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

    .info-box span {
        font-weight: bold;
        margin-left: 10px;
    }

.bg-primary {
    background-color: #007bff;
}

.bg-secondary {
    background-color: #6c757d;
}

.bg-success {
    background-color: #28a745;
}

.bg-info {
    background-color: #17a2b8;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-warning {
    background-color: #ffc107;
}

.bg-dark {
    background-color: #343a40;
}
















a {
    text-decoration: none;
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.greeting h1 {
    font-size: 24px;
    margin: 0;
}

.greeting p {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

.avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

    .stats a {
        color: #333;
    }

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .stat-item img {
        width: 40px;
        height: 40px;
    }

    .stat-item span {
        font-size: 14px;
        color: #777;
    }

    .stat-item h2 {
        font-size: 20px;
        margin: 0;
        color: #007bff;
    }

/* Categories Section */
.categories {
    margin-top: 30px;
}

    .categories h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s;
}

    .category-card:hover {
        transform: translateY(-5px);
    }

    .category-card img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .category-card h3 {
        font-size: 16px;
        margin: 10px 0 5px;
        color: #333;
    }

    .category-card p {
        font-size: 14px;
        color: #777;
    }




.custom-video-card {
    border-radius: 15px;
    background-color: #f8f9fa;
    transition: all 0.3s ease-in-out;
    padding: 20px;
}

    .custom-video-card:hover {
        background-color: #ffffff;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    }

.icon-container {
    width: 120px;
    height: 60px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .icon-container span {
        font-weight: bold;
    }



.stats img {
    width: 40%; /* Adjust the percentage as needed */
    max-width: 60px; /* Set a max width to ensure consistency */
    margin-bottom: 10px; /* Add some spacing below the images */
}

.stats h3 {
    font-size: 1.2rem; /* Adjust the font size for better balance */
}

.stats span {
    font-size: 1rem; /* Ensure the text below the images is readable */
    display: block; /* Place the text below the image */
    margin-bottom: 5px; /* Add spacing between text and the next element */
}

.stats .col-6 {
    text-align: center; /* Center-align content in columns */
}

@media (max-width: 375px) {
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}





/**********************************/
.loading-overlay {
    display: table;
    opacity: 0.7;
}

.loading-overlay-content {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 1.15em;
    font-weight: bold;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
}

.loading-overlay.loading-theme-light {
    background-color: #fff;
    color: #000;
}

.loading-overlay.loading-theme-dark {
    background-color: #000;
    color: #fff;
}
/**********************************/