@media (max-width: 1199.98px) {
    .main-nav {
        gap: 12px;
    }

    .nav li a {
        padding: 8px 10px;
    }

    .hi-300 {
        min-height: 250px;
    }

    .profile_name {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    .header-area {
        position: sticky;
    }

    .main-nav {
        min-height: 64px;
        display: grid;
        grid-template-columns: 1fr auto auto auto;
        align-items: center;
        column-gap: 8px;
        padding: 8px 0;
        position: relative;
    }

    .logo img {
        height: 34px;
    }

    .logo {
        margin-right: 0;
        min-width: 0;
    }

        .logo img {
            max-width: 160px;
        }

    .pdsm-0 {
        padding: 0;
    }

    .pdsm-3 {
        padding: 15px;
    }

    .menu-trigger {
        display: inline-flex;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .main-nav > .nav {
        display: none;
        position: absolute;
        top: calc(100% + 0px);
        left: 0;
        right: 0;
        z-index: 1001;
        margin-top: 0;
        border: 1px solid var(--border);
        border-radius: 0;
        background: var(--surface);
        padding: 6px;
        box-shadow: var(--shadow-sm);
    }

    .nav li a {
        color: var(--text-primary);
    }

    .main-nav > .nav li {
        width: 100%;
    }

        .main-nav > .nav li a {
            width: 100%;
            justify-content: flex-start;
            min-height: 34px;
            padding: 6px 10px;
            font-size: 15px;
        }

    .theme-toggle {
        margin-left: 0;
        gap: 6px;
    }

    .user-profile {
        order: 0;
    }

    .profile .selected {
        width: 30px;
        height: 30px;
    }

    .toggle-switch {
        width: 46px;
        height: 26px;
    }

    .toggle-slider::before {
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(20px);
    }

    .toggle-icon {
        font-size: 15px;
    }

    .eq-nav-buttons {
        flex-wrap: wrap;
    }

    .eq-nav-spacer {
        display: none;
    }

    .eq-btn {
        flex: 1 1 calc(50% - 8px);
    }

    .user-profile-info ul {
        grid-template-columns: 120px 1fr;
    }

    .footer-top {
        padding: 22px 0;
    }
}

@media (max-width: 767.98px) {
    .top-breadcrumb {
        margin-top: 12px;
    }

    .breadcrumb {
        padding: 10px 12px;
    }

    .show_time {
        min-width: 58px;
        font-size: 12px;
    }

    .eq-grid-legend {
        gap: 8px;
    }

    .eq-legend-item {
        font-size: 12px;
    }

    .answers-container .form-tool {
        width: 100%;
    }

    .header-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 86px;
        height: 86px;
    }

    .image-overlap {
        width: 33px;
        height: 33px;
    }

    .menu-section .nav {
        width: 100%;
        justify-content: center;
    }

    .user-profile-info ul {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .user-profile-info li:first-child {
        font-size: 12px;
    }

    .item .title h5,
    .main_card .title h5 {
        font-size: 14px;
    }

    .stat-row {
        grid-template-columns: 24px 1fr;
        grid-template-areas:
            'icon label'
            '. value';
    }

    .stat-icon {
        grid-area: icon;
    }

    .stat-label {
        grid-area: label;
    }

    .stat-value {
        grid-area: value;
        justify-self: start;
    }

    #exam-details .modal-dialog {
        margin: 0.5rem;
    }

    .exam-details-body {
        padding: 10px;
    }

    .exam-details-header {
        margin-bottom: 8px;
        padding: 9px 10px;
    }

    .exam-details-stats {
        gap: 8px;
    }

    .exam-details-footer {
        padding: 7px 10px;
    }

    #instruct-modal .check-bx {
        align-items: flex-start;
        gap: 8px;
        padding: 8px 10px;
    }

        #instruct-modal .check-bx .confirm_btn {
            margin-top: 1px;
        }
}

@media (max-width: 575.98px) {
    .logo img {
        height: 42px;
    }

    .theme-toggle {
        transform: none;
    }

    .profile .selected {
        width: 28px;
        height: 28px;
    }

    .main-nav {
        column-gap: 6px;
    }

    .menu-trigger {
        width: 34px;
        height: 34px;
    }

    .main-nav > .nav li a {
        min-height: 32px;
        padding: 8px;
    }

    .page-section {
        padding-bottom: 42px;
    }

    .card_body,
    .card-body,
    .item .title {
        padding-left: 12px;
        padding-right: 12px;
    }

    .eq-btn {
        flex: 1 1 100%;
    }

    .cq-toast-wrapper {
        right: 10px;
        left: 10px;
    }

    .profile-pic {
        width: 78px;
        height: 78px;
    }

    .image-overlap {
        width: 31px;
        height: 31px;
    }

    .mb-smx-1 {
        margin-bottom: 15px !important;
    }

        .mb-smx-1:last-child {
            margin-bottom: 0px !important;
        }

    .hi-300 {
        min-height: auto;
    }
}
