/* ==========================================================================
   POPULAR MOCK TEST SLIDER - CLEAN, NORMAL & ATTRACTIVE DESIGN
   ========================================================================== */

.sr-mock-slider-section {
    max-width: 1320px;
    width: 96%;
    margin: 25px auto 40px;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Header Section */
.sr-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 2px;
}

.sr-slider-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-left: 18px;
}

.sr-slider-title-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 4px;
}

.sr-slider-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sr-slider-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sr-slider-badge-pill i {
    color: #f59e0b;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
}

.sr-badge-glow {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.sr-badge-glow::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.4);
    animation: sr-badge-pulse 1.8s infinite;
}

@keyframes sr-badge-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.sr-slider-title-main {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.sr-slider-title-main .sr-title-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sr-slider-subtext {
    margin: 0;
    font-size: 14.5px;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* Navigation Buttons */
.sr-slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sr-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sr-nav-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.sr-nav-btn:active {
    transform: scale(0.95);
}

/* Track and Viewport */
.sr-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 12px 18px;
    box-sizing: border-box;
}

.sr-slider-track {
    display: flex;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    user-select: none;
}

/* ==================== CLEAN & ATTRACTIVE CARD ==================== */
.sr-clean-mock-card {
    flex: 0 0 calc((100% - (4 * 12px)) / 5);
    width: calc((100% - (4 * 12px)) / 5);
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: 14px 14px 14px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.sr-clean-mock-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

/* Card Header: Logo, Category & Free Badge */
.sr-clean-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sr-clean-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sr-clean-mock-card:hover .sr-clean-logo {
    transform: scale(1.06);
    border-color: #93c5fd;
}

.sr-clean-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sr-clean-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    overflow: hidden;
}

.sr-clean-cat {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-clean-free-badge {
    align-self: flex-start;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Exam Title */
.sr-clean-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.35;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-clean-mock-card:hover .sr-clean-title {
    color: #2563eb;
}

/* Specs Row: Clear & Normal Bullet Info */
.sr-clean-specs {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sr-spec-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #475569;
}

.sr-spec-row-item span:first-child {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sr-spec-row-item span:last-child {
    font-weight: 700;
    color: #1e293b;
}

/* Live Attempts Centered at Top */
.sr-clean-attempts-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #475569;
    margin: 0 auto 8px auto;
    width: fit-content;
    text-align: center;
}

.sr-clean-attempts-top .sr-pulse-dot {
    width: 6.5px;
    height: 6.5px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: srPulse 2s infinite;
}

@keyframes srPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sr-clean-attempts-top .sr-attempts-count {
    font-weight: 800;
    color: #1e293b;
    font-size: 11.5px;
}

/* Clickable Call To Action Button */
.sr-clean-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin-top: auto;
}

.sr-clean-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sr-clean-mock-card:hover .sr-clean-btn {
    background: #1d4ed8;
}

/* Indicator Dots */
.sr-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.sr-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.sr-slider-dot.active {
    width: 20px;
    background: #2563eb;
    border-radius: 9999px;
}

/* Breakpoints */
@media (max-width: 1280px) {
    .sr-clean-mock-card {
        flex: 0 0 calc((100% - (3 * 12px)) / 4);
        width: calc((100% - (3 * 12px)) / 4);
    }
}

@media (max-width: 1000px) {
    .sr-slider-track {
        gap: 10px;
    }
    .sr-clean-mock-card {
        flex: 0 0 calc((100% - (2 * 10px)) / 3);
        width: calc((100% - (2 * 10px)) / 3);
    }
}

@media (max-width: 768px) {
    .sr-mock-slider-section {
        margin: 18px auto 28px;
        padding: 0 8px;
    }
    .sr-slider-title-box {
        padding-left: 14px;
    }
    .sr-slider-title-box::before {
        width: 3.5px;
    }
    .sr-slider-title-main {
        font-size: 22px;
    }
    .sr-slider-track {
        gap: 8px;
    }
    .sr-clean-mock-card {
        flex: 0 0 calc((100% - 8px) / 2);
        width: calc((100% - 8px) / 2);
        min-width: unset;
        padding: 12px 10px;
    }
    .sr-clean-title {
        font-size: 13.5px;
        min-height: 36px;
    }
    .sr-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

@media (max-width: 680px) {
    .sr-slider-controls {
        display: none !important;
    }
}

@media (max-width: 580px) {
    /* Full width header section with slim centered card on mobile */
    .sr-mock-slider-section {
        padding: 0 10px;
        margin: 16px auto 24px;
        width: 96%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .sr-slider-header {
        align-items: flex-start;
        text-align: left;
        justify-content: space-between;
        margin-bottom: 12px;
        width: 100%;
    }
    .sr-slider-title-box {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        padding-left: 14px;
    }
    .sr-slider-title-box::before {
        width: 3.5px;
    }
    .sr-slider-badge-pill {
        display: none !important;
    }
    .sr-slider-title-main {
        font-size: 20px;
        justify-content: flex-start;
        text-align: left;
    }
    .sr-slider-subtext {
        font-size: 12.5px;
        text-align: left;
    }
    .sr-slider-controls {
        display: none !important;
    }
    .sr-slider-container {
        padding: 8px 12px 18px;
        touch-action: pan-y;
        overflow: hidden;
        width: 100%;
        max-width: 275px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .sr-slider-track {
        gap: 16px;
    }
    .sr-clean-mock-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 250px;
        padding: 16px 14px 16px;
        box-sizing: border-box;
    }
}
