   .error,
    .required {
        color: #dc3545;
    }

    .brand-logo {
        max-height: 50px;
        /* adjust as needed */
        width: auto;
    }

    @media (max-width: 768px) {
        .brand-logo {
            max-height: 40px;
        }
    }

    .mainloader {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .exam-section-head {
        display: flex;
        height: 50vh;
    }

    .exam-sidebar1 {
        width: 270px;
        border-right: 1px solid #ddd;
        overflow-y: auto;
        background: #f8f9fa;
    }

    .exam-sidebar1 .category-item {
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        transition: 0.3s;
    }

    .exam-sidebar1 .category-item:hover,
    .exam-sidebar1 .category-item.active {
        background: #e8f0ff;
        color: #0d6efd;
    }

    .exam-sidebar1 img {
        width: 22px;
        height: 22px;
    }

    .exam-content1 {
        overflow-y: auto;
        flex-grow: 1;
    }

    .exam-card1 {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
        gap: 10px;
        background: #fff;
        transition: 0.2s;
    }

    .exam-card1:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transform: translateY(-2px);
        color:black;
    }

    .exam-card1 img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .exam-category-container {
        display: none;
    }

    .exam-category-container.active {
        display: block;
    }

    .btn-primary {
        background: #761a8d !important;
        border-color: #761a8d !important;
    }

    .btn-primary:hover {
        background: #521262 !important;
        border-color: #521262 !important;
    }

    .btn-outline-primary {
        color: #761a8d !important;
        border-color: #761a8d !important;
    }

    .btn-outline-primary:hover {
        background: #761a8d !important;
        color: #fff !important;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        content: "›";
        color: #333;
    }

    .breadcrumb-item a {
        color: #333;

        text-decoration: none;
        font-weight: 500;
    }

:root {
    --brand-main: #761a8d;
    --brand-dark: #521262;
    --brand-accent: #9a22b8;

    --radius-s: 7px;
    --radius-m: 11px;
    --radius-l: 18px;

    --shadow-soft: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);

    --transition-fast: 0.22s ease-out;
    --transition-mid: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* ================= ERROR + REQUIRED ================== */
.error,
.required {
    color: #dc3545;
}


/* ================= BRAND LOGO ================== */
.brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

@media (max-width: 768px) {
    .brand-logo {
        max-height: 38px;
    }
}


/* ================= LOADER ================== */
.mainloader {
    border: 4px solid #e8e8e8;
    border-top-color: #3498db;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}


/* ================= MASTER LAYOUT ================== */
.exam-section-head {
    display: flex;
    height: 50vh;
    background: #fff;
    gap: 0px;
}


/* ================= SIDEBAR ================== */
.exam-sidebar1 {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e7e7e7;
    overflow-y: auto;
    padding: 16px 14px;
    height: 50vh;
    scroll-behavior: smooth;

}

/* Sidebar Items */
.exam-sidebar1 .category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-m);
    margin-bottom: 7px;
    font-weight: 500;
    text-decoration: none;
    color: #2d2d2d;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.exam-sidebar1 .category-item img {
    width: 30px;
    height: 30px;
}

.exam-sidebar1 .category-item span {
    font-size: 15px;
    line-height: 1.3;
    white-space: normal !important;
}

/* Hover + Active */
.exam-sidebar1 .category-item:hover,
.exam-sidebar1 .category-item.active {
    background: #f2ecff;
    color: var(--brand-main);
    transform: translateX(2px);
    box-shadow: var(--shadow-soft);
}


/* ================= RIGHT CONTENT AREA ================== */
.exam-content1 {
    flex-grow: 1;
    height: 50vh;
    overflow-y: auto;
    padding: 26px;
    border-left: 1px solid #e7e7e7;
    background: #fafafd;
}

.exam-category-container {
    display: none;
}
.exam-category-container.active {
    display: block;
}


/* ================= EXAM CARDS ================== */
.exam-card1 {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    background: #fff;
    border-radius: var(--radius-m);
    border: 1px solid #eee;
    transition: var(--transition-mid);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: #2b2b2b;
}

.exam-card1 img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.exam-card1:hover {
    border-color: var(--brand-main);
    background: #faf4ff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}


/* ================= BUTTON COLORS ================== */
.btn-primary {
    background: var(--brand-main) !important;
    border-color: var(--brand-main) !important;
}

.btn-primary:hover {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}

.btn-outline-primary {
    color: var(--brand-main) !important;
    border-color: var(--brand-main) !important;
}

.btn-outline-primary:hover {
    background: var(--brand-main) !important;
    color: #fff !important;
}


/* ================= FOOTER ================== */
.exam-footer {
    background: #0e0d0f;
    color: #fff;
}

.exam-footer-grid {
    display: grid;
    gap: 42px 32px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.exam-footer-column {
    min-width: 200px;
}

.exam-cat-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.exam-link {
    font-size: 14px;
    color: #cfcfcf;
    text-decoration: none;
    line-height: 1.6;
    transition: var(--transition-fast);
}

.exam-link:hover {
    color: var(--brand-accent);
    text-decoration: underline;
}


/* ================= RESPONSIVE ================== */
@media (max-width: 991px) {
    .exam-section-head {
        flex-direction: column;
        min-height: auto;
    }

    .exam-sidebar1 {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        height: auto;
        width: 100%;
    }

    .exam-sidebar1 .category-item {
        flex-direction: column;
        min-width: 90px;
        text-align: center;
        padding: 10px;
    }

    .exam-content1 {
        padding-top: 16px;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .exam-footer-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}
.exam-card1 {
    opacity: 0;
    transform: translateY(-15px);
    animation: dropIn 0.45s ease forwards;
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
