 
 /* body{
    background: #faf8ff;
    width: 100%;
} */


/* .container{
    width:100%;
    max-width:880px !important;
    margin-left:auto;
    margin-right:auto;
} */


.success-header{
    text-align:center;
    margin-bottom:35px;
}

.success-header .small-title{
    font-size:14px;
    font-weight:700;
    letter-spacing:3px;
    color:#e48d0b;
    text-transform:uppercase;
    margin-bottom:10px;
}

.success-header h3{
    
    
    color:#feac00;
    margin-bottom:15px;
        font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(228, 141, 11, 0.05);

}

.success-header h3 span{
    color:#19191a;
}

.success-header p{
    /* font-size:22px; */
    color:#666;
    line-height:1.6;
    /* text-align: justify; */
    font-size: 1em;
}

.success-header b{
    color:#feac00;
}
.stats-box{

    max-width:900px;
    margin:40px auto;
    background:#fff;
    border-radius:22px;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    overflow:hidden;

}

.stat-card{

    width:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:35px;

}

.stat-card:first-child{
    border-right:1px solid #ececec;
}

.stat-card .icon{

    width:72px;
    height:72px;
    border-radius:50%;
    background:#fffcf0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#feac00;
    font-size:30px;
    margin-right:20px;

}

.stat-card h2{

    margin:0;
    font-size:42px;
    color:#feac00;
    font-weight:700;

}

.stat-card p{

    margin:0;
    color:#555;
    /* font-size:18px; */
    text-align: justify;
    font-size: 1em;
    line-height: 1.8em;

}
.btn{
    padding:12px 30px;
     margin:10px;
      color: #0a0a0a;
}
.year-filter{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    flex-wrap:wrap;
    gap:18px;
}

.year-filter .btn{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;

    min-width:75px;      /* Minimum width */
    width:auto;          /* Auto width based on text */
    height:55px;
    padding:0 15px;      /* Adjust according to text */

    border:1px solid #fff3c4;
    border-radius:12px;
    background:#fff;
    white-space:nowrap;  /* Prevent text wrapping */
    font-size:15px;
    font-weight:600;
}

.year-filter .btn::before{
    content:"";
    position:absolute;
    top:-8px;
    left:12px;
    width:28px;
    height:8px;
    background:inherit;
    border:1px solid #fff3c4;
    border-bottom:none;
    border-radius:8px 8px 0 0;
}
.year-filter .btn.active{
    background:#feac00;
    color:#fff;
    border:1px solid #fff3c4;
}
/* =========================
   TOPIC FILTER
========================= */

.topic-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-top:20px;
}

.topic-filter .btn{
    height:46px;
    padding:0 22px;
    border-radius:30px;
    background:#fff;
    border:1px solid #fff3c4;
    font-size:15px;
    font-weight:500;
    color:#0a0a0a;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.topic-filter .btn.active{
    background:#feac00;
    color:#fff;
    border:1px solid #fff3c4;
}
/* =========================
   PAGINATION
========================= */
.pagination-wrapper #pagination-top{
    width:100%;
    margin:35px auto 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.pagination{
    display:flex;
    justify-content:center !important;
    align-items:center;
    gap:8px;
    width:100%;
    margin:0 auto;
    padding:0;
    list-style:none;
    flex-wrap:nowrap;
}

.pagination .page-item{
    margin:0;
}

.pagination .page-link{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #ece4d5;
    border-radius:10px;
    background:#fff;
    color:#feac00;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
    box-shadow:none;
}

.pagination .page-link:hover{
    background:#feac00;
    color:#fff;
    border-color:#feac00;
}

.pagination .page-item.active .page-link{
    background:#feac00;
    border-color:#feac00;
    color:#fff;
}

.pagination .page-item.disabled .page-link{
    opacity:.45;
    color:#999;
    pointer-events:none;
}

.page-count{
    margin-top:14px;
    text-align:center;
    width:100%;
    font-size:22px;
    font-weight:600;
    color:#222;
}

.story-card{

    background:#fff;
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    padding:35px;
    margin-bottom:30px;

}

.left-panel{
    width:25%;
}

.review-panel{
    width:75%;
    padding-left:25px;
}
.student-img{

    width:85px;
    height:85px;
    border-radius:50%;
    object-fit:cover;
    background:#eee;

}

.left-panel h5{

    margin-top:18px;
    font-size:22px;
    font-weight:700;
    color:#222;

}

.course{
    /* font-weight: bold; */
    font-size: 20px;
    text-align: center;
    color:#524b4b;
    /* margin-bottom:12px; */
}

.attempt-badge{

    display:inline-block;
    padding:6px 14px;
    border-radius:30px;
    background:#f7f7f7;
    color:#172a55;
    font-weight:600;
    font-size:14px;

}

.rating{

    color:#feac00;
    font-size:22px;
    letter-spacing:3px;

}

.verified{

    display:inline-block;
    background:#f7f7f7;
    color:#2ea44f;
    border-radius:20px;
    padding:7px 16px;
    font-size:14px;
    font-weight:600;

}
.review-text{
    font-size: 1em;
    /* font-size:20px; */
    color:#444;
    line-height:1.8;
    padding:10px 30px;
    position:relative;
    text-align: justify;

}

.quote-top{

    color:#feac00;
    font-size:50px;
    line-height:0;
    margin-left:15px;

}

.quote-bottom{

    text-align:right;
    color:#feac00;
    font-size:50px;
    line-height:0;

}
.pagination-wrapper #pagination-top{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin:50px auto 25px;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    padding:0;
    margin:0;
    list-style:none;
}

.pagination .page-item{
    margin:0;
}

.pagination .page-link{
    width:46px;
    height:46px;
    border-radius:12px;
    border:1px solid #ead8c3;
    background:#fff;
    color:#e48d0b;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    transition:.25s;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.pagination .page-link:hover{
    background:#fff7ef;
    border-color:#e48d0b;
    color:#e48d0b;
}

.pagination .page-item.active .page-link{
    background:#e48d0b;
    border-color:#e48d0b;
    color:#fff;
    box-shadow:0 8px 20px rgba(228,141,11,.35);
}

.pagination .page-item.disabled .page-link{
    color:#bfbfbf;
    background:#fafafa;
    cursor:not-allowed;
}

.pagination .dots{
    border:none;
    background:transparent;
    box-shadow:none;
    color:#999;
}

.page-count{
    margin-top:18px;
    text-align:center;
    color:#333;
    font-size:18px;
    font-weight:600;
}
#pagination-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 40px auto;
}

#pagination-bottom nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

#pagination-bottom .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
}

/* Each pagination item */
#pagination-bottom .page-item {
    display: inline-flex !important;
    margin: 0 !important;
}

/* Number boxes */
#pagination-bottom .page-link {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #ead8ff !important;
    border-radius: 10px !important;

    background: #fff !important;
    color: #e48d0b !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    text-decoration: none !important;
    box-shadow: none !important;
}

/* Active number */
#pagination-bottom .page-item.active .page-link {
    background: #e48d0b !important;
    border-color: #e48d0b !important;
    color: #fff !important;
}

/* Previous / Next */
#pagination-bottom .page-item.disabled .page-link {
    background: #fff !important;
    border-color: #eee !important;
    color: #ccc !important;
    cursor: not-allowed;
}

/* Dots */
#pagination-bottom .page-item.disabled .page-link {
    min-width: 42px;
}

/* Page count */
#pagination-bottom .page-count {
    margin-top: 15px;
    text-align: center;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

 /* ===================== TABLET ===================== */
@media (max-width:991px){
.container{
    /* max-width:760px;
    padding:0 20px; */
}

.story-card{
    padding:25px;
    margin:20px 0;
}

.story-card .row{
    display:flex;
    align-items:flex-start;
}

.left-panel{
    flex:0 0 30%;
    max-width:30%;
    padding-right:15px;
}

.story-card .col-md-9{
    flex:0 0 70%;
    max-width:70%;
    padding-left:20px;
}

.student-img{
    width:75px;
    height:75px;
}

.left-panel h5{
    font-size:18px;
}

.course{
    font-size:15px;
}

.review-text{
    padding:0;
    font-size:14px;
}

.stats-box{
    margin:25px 20px;
}

.stat-card{
    padding:25px 15px;
}

   .year-filter{
        display:flex;
        justify-content:flex-start;
        align-items:flex-end;
        flex-wrap:nowrap;
        overflow-x:auto;
        gap:14px;
        padding:10px 15px 20px;
        scrollbar-width:none;
        -ms-overflow-style:none;
    }

    .year-filter::-webkit-scrollbar{
        display:none;
    }

    .year-filter .btn{
        flex:0 0 auto;
        width:auto;
        min-width:90px;
        height:68px;
        padding:0 18px;
        font-size:16px;
        white-space:nowrap;
    }
    .topic-filter{
        display:flex;
        justify-content:center;
        flex-wrap:wrap;
        gap:10px;
        padding:0 15px;
    }

    .topic-filter .btn{
        margin:0;
        padding:0 18px;
        height:42px;
        font-size:14px;
    }

    .pagination{
        justify-content:center;
        gap:8px;
        flex-wrap:nowrap;
        overflow-x:auto;
        color:#feac00;
    }

    .pagination::-webkit-scrollbar{
        display:none;
    }
     .pagination{
        gap:8px;
    }

    .pagination .page-link{
        width:42px;
        height:42px;
        font-size:15px;
    }

    .page-count{
        font-size:16px;
    }

}


/* ===================== MOBILE ===================== */
@media (max-width:767px){
.container{
    /* width:100%;
    padding:0 15px; */
}

.story-card{
    width:100%;
    margin:15px 0;
    padding:18px 15px;
    border-radius:18px;
}

.story-card .row{
    display:flex;
    flex-wrap:nowrap;
    align-items:flex-start;
}

.left-panel{
    flex:0 0 32%;
    max-width:32%;
    padding-right:12px;
    border-right:1px solid #eee;
}

.story-card .col-md-9{
    flex:0 0 68%;
    max-width:68%;
    padding-left:15px;
}

.student-img{
    width:65px;
    height:65px;
}

.left-panel h5{
    font-size:16px;
    margin:8px 0;
}

.course{
    font-size:13px;
}

.attempt-badge{
    font-size:11px;
}

.rating{
    font-size:14px;
}

.verified{
    font-size:10px;
    padding:5px 8px;
}

.review-text{
    padding:0;
    font-size:13px;
    line-height:1.7;
    word-break:break-word;
}

.quote-top,
.quote-bottom{
    font-size:24px;
}

.success-header{
    padding:0 15px;
}

.success-header h3{
    font-size:34px;
}

.success-header p{
    font-size:14px;
}

.stats-box{
    margin:20px 15px;
    display:flex;
}

.stat-card{
    width:50%;
    padding:18px 10px;
    flex-direction:column;
    text-align:center;
}

.stat-card:first-child{
    border-right:1px solid #eee;
}

.stat-card .icon{
    margin:0 auto 10px;
}

.stat-card h2{
    font-size:28px;
}

.stat-card p{
    font-size:12px;
    text-align:center;
}
   .year-filter{
        display:flex;
        justify-content:flex-start;
        gap:12px;
        overflow-x:auto;
        flex-wrap:nowrap;
        padding:10px 15px 20px;
        scrollbar-width:none;
    }

    .year-filter::-webkit-scrollbar{
        display:none;
    }

    .year-filter .btn{
        min-width:82px;
        width:82px;
        height:68px;
        font-size:15px;
        flex:none;
    }

    .topic-filter{
        display:flex;
        justify-content:center;
        flex-wrap:wrap;
        gap:10px;
        padding:0 12px;
    }

    .topic-filter .btn{
        height:40px;
        padding:0 16px;
        font-size:13px;
        margin:0;
    }

  .pagination-wrapper #pagination-top{
        overflow:hidden;
    }

    .pagination{
        justify-content:center !important;
        overflow-x:auto;
        scrollbar-width:none;
        -ms-overflow-style:none;
    }

    .pagination::-webkit-scrollbar{
        display:none;
    }

    .pagination .page-link{
        width:38px;
        height:38px;
        min-width:38px;
        font-size:14px;
    }

    .page-count{
        font-size:18px;
    }
     #pagination-bottom {
        margin: 25px auto;
    }

    #pagination-bottom .pagination {
        gap: 6px;
        padding: 0 8px;
    }

    #pagination-bottom .page-link {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
}
/* ================= MOBILE DESIGN ================= */
@media (max-width:480px){

    .container{
        /* width:100%; */
        /* padding:0 12px; */
    }

    .story-card{
        padding:18px 12px;
        border-radius:20px;
        margin-bottom:20px !important;
    }

    /* Keep image left & review right */
    .story-card .row{
        display:flex;
        flex-wrap:nowrap;
        align-items:flex-start;
        margin:0;
    }
    .stat-card:first-child{
    border-right:1px solid #ececec;
}

    .left-panel{
        width:30%;
        max-width:30%;
        flex:0 0 30%;
        border-right:1px solid #eee;
        padding:0 10px 0 0;
        text-align:center;
    }

    .story-card .col-md-9{
        width:70%;
        max-width:70%;
        flex:0 0 70%;
        padding-left:15px;
    }

    .student-img{
        width:70px;
        height:70px;
        border-radius:50%;
        object-fit:cover;
    }

    .left-panel h5{
        font-size:18px;
        line-height:1.2;
        margin-top:10px;
        margin-bottom:5px;
    }

    .course{
        font-size:14px;
        line-height:1.2;
    }

    .attempt-badge{
        font-size:11px;
        padding:4px 10px;
        margin-top:8px;
    }

    .rating{
        font-size:14px;
        letter-spacing:2px;
        margin-top:8px;
    }

    .verified{
        font-size:11px;
        padding:5px 8px;
        margin-top:10px;
    }

    .quote-top{
        font-size:28px;
        margin-bottom:8px;
        line-height:1;
    }

    .quote-bottom{
        font-size:28px;
        margin-top:8px;
        line-height:1;
        text-align:right;
    }

    .review-text{
        padding:0;
        margin:0;
        font-size:13px;
        line-height:1.7;
        text-align:justify;
    }

    /* Stats section */
    .stats-box{
        flex-direction:row;
        margin:20px 12px;
        border-radius:18px;
    }

    .stat-card{
        width:50%;
        padding:18px 10px;
        flex-direction:column;
        text-align:center;
    }

    .stat-card:first-child{
        border-right:1px solid #eee;
    }

    .stat-card .icon{
        width:50px;
        height:50px;
        margin:0 0 10px;
    }

    .stat-card .icon i{
        font-size:24px !important;
    }

    .stat-card h2{
        font-size:28px;
    }

    .stat-card p{
        font-size:12px;
        text-align:center;
    }

    /* Filters */
    /* .year-filter,
    .topic-filter{
        justify-content:center;
        gap:8px;
        padding:0 10px;
    } */

    /* .year-filter .btn,
    .topic-filter .btn{
        font-size:12px;
        padding:8px 14px;
        margin:3px;
        border-radius:10px;
    } */
 .year-filter{
        display:flex;
        justify-content:flex-start;
        align-items:flex-end;
        flex-wrap:nowrap;
        overflow-x:auto;
        gap:12px;
        padding:10px 12px 20px;
        scrollbar-width:none;
        -ms-overflow-style:none;
    }

    .year-filter::-webkit-scrollbar{
        display:none;
    }

    .year-filter .btn{
        flex:0 0 auto;
        width:auto;
        min-width:70px;
        height:50px;
        padding:0 12px;
        font-size:13px;
        white-space:nowrap;
    }

    .year-filter .btn.active::after{
        width:40px;
        bottom:-10px;
    }

    .topic-filter .btn{
        font-size:13px;
        padding:0 16px;
    }

    .success-header h3{
        font-size:32px;
    }

    .success-header p{
        font-size:14px;
    }
     .pagination-wrapper #pagination-top{
        margin-top:35px;
    }

    .pagination{
        gap:6px;
    }

    .pagination .page-link{
        width:38px;
        height:38px;
        border-radius:10px;
        font-size:14px;
    }

    .page-count{
        font-size:15px;
        margin-top:15px;
    }
     #pagination-bottom {
        margin: 25px auto;
        padding: 0 5px;
    }

    #pagination-bottom nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    #pagination-bottom nav::-webkit-scrollbar {
        display: none;
    }

    #pagination-bottom .pagination {
        gap: 5px;
        flex-wrap: nowrap !important;
        padding: 0 5px;
    }

    #pagination-bottom .page-link {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    #pagination-bottom .page-count {
        font-size: 13px;
    }
}





/* --- CLEAN RESPONSIVE FIXES & UI MATCH --- */

html, body {
    overflow-x: hidden;
    width: 100%;
}

#test .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Base Styles */
.stat-card h2 { color: #feac00 !important; }
.attempt-badge { background: #fffcf0; color: #feac00; font-size: 13px; padding: 4px 12px; }
.verified { background: #fffcf0; color: #feac00; border: 1px solid #fff3c4; padding: 6px 12px; }
.verified i { margin-right: 4px; }
.rating i { font-size: 16px; color: #feac00; }
.course { font-size: 14px; color: #666; }

/* Desktop/Tablet Story Card Divider */
.story-card .col-md-9 {
    border-left: 2px solid #f0ecfc;
}

/* Folders (Year Filter) */
.year-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-end !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}
.year-filter .btn {
    position: relative;
    min-width: 70px !important;
    height: 50px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    flex: 0 0 auto !important;
}
.year-filter .btn::before {
    width: 25px !important;
    height: 7px !important;
    top: -7px !important;
    left: 8px !important;
}
.year-filter .btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 20px !important;
    height: 4px !important;
    background: #feac00 !important;
    border-radius: 4px !important;
}

/* Topic Pills */
.topic-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}
.topic-filter .btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
        color: #0a0a0a !important;
    border: 1.5px solid #fbe6c4 !important;
    margin: 0 !important;
}
.topic-filter .btn i { margin: 0 !important; font-size: 12px !important; }
.topic-filter .btn.active { background: #feac00 !important; color: #fff !important; }

/* Mobile View (max-width: 767px) */
@media (max-width: 767px) {
    .stats-box {
        flex-wrap: wrap;
        margin: 20px 0;
    }
    .stat-card {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #ececec;
        padding: 20px 10px;
    }
    .stat-card:last-child {
        border-bottom: none;
    }
    
    .year-filter {
        justify-content: center !important;
    }
    .topic-filter {
        justify-content: center !important;
    }
    
    /* Keep Story Card Side by Side but Adjust Sizes */
    .story-card .row {
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }
    .left-panel {
        flex: 0 0 35% !important;
        max-width: 35% !important;
        padding-right: 10px !important;
        border-right: none !important;
    }
    .story-card .col-md-9 {
        flex: 0 0 65% !important;
        max-width: 65% !important;
        padding-left: 10px !important;
        border-left: 2px solid #f0ecfc !important;
    }
    
    .student-img-wrapper {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 5px auto !important;
    }
    .student-img-wrapper i { font-size: 24px !important; }
    .left-panel h5 { font-size: 14px !important; }
    .course { font-size: 12px !important; }
    .attempt-badge { font-size: 10px !important; padding: 2px 6px !important; }
    .rating i { font-size: 10px !important; }
    .verified { font-size: 9px !important; padding: 4px 6px !important; }
    
    .quote-top, .quote-bottom { font-size: 30px !important; }
    .review-text { font-size: 12px !important; padding: 0 !important; line-height: 1.5 !important; }
}

/* Pagination Fixes */
.pagination-wrapper #pagination-top{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}
.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.pagination .page-item {
    display: inline-block !important;
    margin: 0 !important;
    width: auto !important;
}
.pagination .page-item .page-link {
    border-radius: 8px !important;
    min-width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    color: #feac00!important;
    border: 1px solid #fff3c4 !important;
    font-size: 14px !important;
    background: #fff !important;
}
.pagination .page-item.active .page-link {
    background-color: #feac00!important;
    border-color: #feac00!important;
    color: #fff !important;
}
.pagination .page-item.disabled .page-link {
    color: #ccc !important;
    background-color: #f9f9f9 !important;
    border-color: #eee !important;
}
.pagination .page-item .page-link:hover {
    background-color: #fffcf0 !important;
    color: #feac00!important;
}
.page-count {
    color: #666 !important;
    font-size: 14px !important;
}

/* Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Fix text overflow in quotes */
.review-text {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    #test .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow-x: hidden !important;
    }
    .story-card {
        padding: 15px 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    .story-card .row {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Further Mobile Adjustments */
@media (max-width: 767px) {
    .year-filter .btn {
        margin: 10px 5px !important;
    }
    .text-center.mt-5.mb-5.w-100 .btn {
        max-width: 90% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .story-card .col-md-9 {
        position: relative !important;
        padding: 20px 15px !important;
    }
    .quote-top {
        font-size: 40px !important;
        margin-top: 0 !important;
        margin-bottom: -15px !important;
    }
    .quote-bottom {
        font-size: 40px !important;
        margin-top: -15px !important;
    }
    .review-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================
   EXACT MOBILE LAYOUT FIX (MATCH IMAGE 2)
   ========================================== */
@media (max-width: 767px) {
    .story-card {
        padding: 16px 12px !important;
        margin-bottom: 20px !important;
    }
    .story-card .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        margin: 0 !important;
    }
    
    /* Left Panel Compact Styling */
    .left-panel {
        flex: 0 0 36% !important;
        max-width: 36% !important;
        min-width: 0 !important;
        padding-right: 10px !important;
        padding-left: 0 !important;
        border-right: 1px solid #f0ecfc !important;
        text-align: center !important;
    }
    
    .left-panel .student-img-wrapper {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto !important;
    }
    .left-panel .student-img-wrapper i {
        font-size: 24px !important;
    }
    
    .left-panel h5 {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }
    
    .left-panel .course {
        font-size: 11px !important;
        color: #666 !important;
        margin-bottom: 4px !important;
    }
    
    .left-panel .attempt-badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
        border-radius: 12px !important;
        background: #fff7e6 !important;
        color: #d97706 !important;
        display: inline-block !important;
    }
    
    .left-panel .rating {
        font-size: 11px !important;
        letter-spacing: 1px !important;
        margin-top: 4px !important;
        color: #ffb800 !important;
    }
    
    .left-panel .verified {
        font-size: 9px !important;
        padding: 3px 8px !important;
        border-radius: 12px !important;
        background: #fff7e6 !important;
        color: #feac00!important;
        display: inline-block !important;
        margin-top: 6px !important;
        white-space: nowrap !important;
    }

    /* Right Panel (Testimonial Quote) Compact Styling */
    .story-card .col-md-9 {
        flex: 0 0 64% !important;
        max-width: 64% !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        padding-right: 0 !important;
        position: relative !important;
    }
    
    .quote-top {
        font-size: 32px !important;
        color: #f59e0b !important;
        line-height: 0.5 !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        text-align: left !important;
    }
    
    .quote-bottom {
        font-size: 32px !important;
        color: #fde68a !important;
        line-height: 0.5 !important;
        margin-top: 5px !important;
        text-align: right !important;
    }
    
    .review-text {
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #334155 !important;
        margin: 5px 0 !important;
        padding: 0 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: left !important;
    }
}

/* ==========================================
   HEADER & BUTTON OVERFLOW FIXES (IMAGE 1 & 2)
   ========================================== */
@media (max-width: 767px) {
    /* Prevent header title lines from overflowing */
    .success-header .small-title span:first-child,
    .success-header .small-title span:last-child {
        width: 20px !important;
    }
    .success-header h3 {
        font-size: 26px !important;
    }
    
    /* See More Success Stories Button Clean Layout */
    .text-center.mt-5.mb-5.w-100 .btn {
        font-size: 14px !important;
        padding: 10px 18px !important;
        width: auto !important;
        max-width: 92% !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        border-radius: 25px !important;
    }
    .text-center.mt-5.mb-5.w-100 .btn i {
        font-size: 12px !important;
        padding: 5px !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================
   FORCE CENTER ALIGNMENT FOR ALL SECTIONS
   ========================================== */
.success-header,
.stats-box,
.filter-section-title,
.year-filter,
.topic-filter,
.pagination-wrapper #pagination-top,
.text-center.mt-5.mb-5.w-100 {
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.year-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
}

.topic-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
}

.stats-box {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 767px) {
    #test .container {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .year-filter {
        justify-content: center !important;
    }
    .topic-filter {
        justify-content: center !important;
    }
    .filter-section-title {
        text-align: center !important;
    }
    .text-center.mt-5.mb-5.w-100 {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }
}


/* Image 2 Carousel Dots Pagination */
.pagination-wrapper #pagination-top {
    margin: 25px auto 15px !important;
}
.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}
.pagination .page-item .page-link {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}
.pagination .page-item.active .page-link {
    background-color: #feac00!important;
    border-color: #feac00!important;
    color: #fff !important;
}
.pagination .page-item.disabled .page-link {
    opacity: 0.4 !important;
}

/* ==========================================
   FORCE HORIZONTAL STATS BOX ON ALL VIEWS (IMAGE 2)
   ========================================== */
.stats-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    padding: 12px 10px !important;
    margin: 25px auto !important;
    max-width: 900px !important;
    width: 100% !important;
}

.stat-card {
    width: 50% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    text-align: left !important;
}

.stat-card:first-child {
    border-right: 1px solid #e2e8f0 !important;
}

.stat-card .icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 50% !important;
    background: #fff3c4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #feac00!important;
    font-size: 22px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.stat-card h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #feac00!important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.stat-card p {
    font-size: 12px !important;
    color: #475569 !important;
    margin: 2px 0 0 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
}

@media (max-width: 767px) {
    .stats-box {
        padding: 10px 5px !important;
        margin: 18px auto !important;
        border-radius: 16px !important;
    }
    .stat-card {
        padding: 6px 4px !important;
    }
    .stat-card .icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        font-size: 18px !important;
        margin-right: 8px !important;
    }
    .stat-card h2 {
        font-size: 17px !important;
    }
    .stat-card p {
        font-size: 10px !important;
    }
}

/* ==========================================
   IPHONE & IOS SAFARI COMPATIBILITY FIXES
   ========================================== */
html, body {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    -webkit-tap-highlight-color: transparent !important;
}

button, .btn, input, select {
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 30px;
}

/* Margin Fallbacks for iOS Safari Flexbox Gap support */
.year-filter .btn {
    margin: 4px 6px !important;
}

.topic-filter .btn {
    margin: 5px 6px !important;
}

.pagination .page-item {
    margin: 0 3px !important;
}

/* iPhone Specific WebKit Flex Rules */
@media (max-width: 767px) {
    .stats-box {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
    }
    
    .stat-card {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
    }
    
    .stat-card .icon {
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
    }

    .story-card .row {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-align-items: flex-start !important;
        align-items: flex-start !important;
    }

    .left-panel {
        -webkit-flex: 0 0 36% !important;
        flex: 0 0 36% !important;
        max-width: 36% !important;
        min-width: 0 !important;
    }

    .story-card .col-md-9 {
        -webkit-flex: 0 0 64% !important;
        flex: 0 0 64% !important;
        max-width: 64% !important;
        min-width: 0 !important;
    }

    .review-text {
        -webkit-hyphens: auto !important;
        hyphens: auto !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
}

/* ==========================================
   IPHONE & SAFARI WEBKIT COMPATIBILITY FIXES
   ========================================== */
html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

button, input, select, textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.year-filter, .topic-filter, .stats-box, .story-card .row {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
}

.year-filter .btn {
    margin: 4px 6px !important;
    -webkit-flex-shrink: 0 !important;
    flex-shrink: 0 !important;
}

.topic-filter .btn {
    margin: 4px !important;
}

.stat-card {
    -webkit-box-flex: 1 !important;
    -webkit-flex: 1 1 50% !important;
    -ms-flex: 1 1 50% !important;
    flex: 1 1 50% !important;
}

@media (max-width: 767px) {
    .left-panel {
        -webkit-flex: 0 0 36% !important;
        flex: 0 0 36% !important;
        max-width: 36% !important;
        min-width: 0 !important;
    }
    .story-card .col-md-9 {
        -webkit-flex: 0 0 64% !important;
        flex: 0 0 64% !important;
        max-width: 64% !important;
        min-width: 0 !important;
    }
    .year-filter, .topic-filter {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ==========================================
   HEADER & DROPDOWN MENU Z-INDEX OVERLAP FIX
   ========================================== */
.inner-w3pvt-page, .overlay-innerpage, .main-header, .nav_w3pvt, nav, nav.wthree-w3ls {
    z-index: 99999 !important;
    position: relative !important;
    overflow: visible !important; /* Prevent chopping of dropdowns and breadcrumbs */
}

/* On desktop, restore header to absolute so it floats over breadcrumb */
@media (min-width: 992px) {
    .desktop-global-header {
        /* position: absolute !important; */
        top: 0;
        left: 0;
        width: 100%;
    }
}

ul.menu, ul.menu li, ul.menu li ul, .dropdown-menu {
    z-index: 99999 !important;
}

#test, .banner_bottom, .success-header {
    position: static !important; /* Fixed: Static cannot overlap relative elements */
    z-index: auto !important;
    clear: both !important;
}

@media (max-width: 767px) {
    .nav_w3pvt {
        z-index: 9999 !important;
    }
    #test {
        margin-top: 10px !important;
        position: static !important;
        z-index: auto !important;
    }
}

/* ==========================================
   FORCE OVERFLOW VISIBLE ON DROPDOWNS
   ========================================== */
ul.menu, 
ul.menu > li {
    overflow: visible !important;
    z-index: 99999 !important;
}

ul.menu > li > ul, 
ul.menu > li > [id^=drop]:checked + ul, 
.custome-ul, 
.dropdown-menu {
    z-index: 999999 !important;
    position: absolute !important;
    overflow: visible !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}

/* Force content sections to sit BELOW the header */
#test, 
.banner_bottom, 
.success-header, 
.inner-w3pvt-page-info,
.stats-box,
.story-card {
    position: relative !important;
    z-index: auto !important;
}

/* ==========================================
   MOBILE LAYOUT RE-DESIGN (PURPLE REFERENCE)
   ========================================== */
@media (max-width: 767px) {
    
    /* 1. GRID 3-PER-ROW FOR YEAR FILTERS */
    .year-filter {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        justify-content: center !important;
        align-content: center !important;
        padding: 5px 15px 30px 15px !important; /* Increased bottom padding for the active underline */
        gap: 12px !important;
        margin: 0 auto !important;
        max-width: 420px !important;
    }
    .year-filter .btn {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 45px !important;
        margin: 10px 0 0 0 !important; /* top margin for the tab */
        box-shadow: none !important; /* Removed box-shadow */
        filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.08)) !important; /* Apply shadow to the exact shape (body + tab) */
        border-radius: 0 8px 8px 8px !important;
        background: #ffffff !important; /* White Background */
        color: #333 !important; /* Black Text */
        border: 1.5px solid #feac00!important; /* Dark Gold border */
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 0 4px !important;
        text-align: center !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
    
    /* Folder Top Tab */
    .year-filter .btn::before {
        content: '' !important;
        position: absolute !important;
        top: -9.5px !important; /* Pulled up to sit exactly on the border */
        left: -1.5px !important; /* Shift left to align with the border */
        width: 40% !important;
        min-width: 30px !important;
        height: 11px !important; /* Overlap the top border of the parent */
        background: inherit !important;
        border-radius: 8px 8px 0 0 !important;
        border: 1.5px solid #feac00!important; /* Dark Gold border */
        border-bottom: none !important; /* Prevent seam line */
    }
    
    /* Hide the underline by default */
    .year-filter .btn::after {
        content: none !important;
    }
    
    .year-filter .btn.active {
        background: #feac00!important;
        color: #fff !important;
        border-color: #feac00!important;
    }
    .year-filter .btn.active::before {
        border-color: #feac00!important;
    }
    
    /* Active Underline Indicator */
    .year-filter .btn.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: -18px !important; /* Pushed further down to match reference */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 28px !important; /* Slightly wider */
        height: 5px !important; /* Slightly thicker */
        background: #feac00!important;
        border-radius: 5px !important;
    }
    
    /* 2. GRID WRAP FOR TOPIC FILTERS */
    .topic-filter {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 5px 5px 15px 5px !important;
        gap: 5px !important; /* reduced gap to fit in 2 lines */
        margin: 0 auto !important;
        max-width: 420px !important;
    }
    .topic-filter .btn {
        flex: 0 0 auto !important;
        margin: 0 !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
        border-radius: 20px !important;
        padding: 4px 8px !important; /* reduced padding */
        font-size: 9px !important; /* reduced font size */
        font-weight: 600 !important;
        border: 1.5px solid #fbe6c4 !important;
        background: #fff !important;
        color: #0a0a0a !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
    }
    .topic-filter .btn.active {
        background: #feac00!important;
        color: #fff !important;
        border-color: #feac00!important;
    }
    .topic-filter .btn i {
        font-size: 9px !important;
        margin: 0 !important;
    }

    /* Pagination moved outside media query to apply to all views */

    /* 4. VERTICAL STACK FOR TESTIMONIAL CARDS (Removed horizontal swipe) */
    .mobile-card-slider {
        display: block !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-bottom: 30px !important;
    }
    
    .mobile-card-slider .story-card {
        margin-bottom: 20px !important;
        padding: 20px 15px !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
        background: #fff !important;
        border: 1px solid #f0ecfc !important;
    }

    /* 5. TESTIMONIAL CARD LAYOUT MATCHING REFERENCE */
    .story-card .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        margin: 0 !important;
    }
    
    /* Avatar Left Side */
    .left-panel {
        flex: 0 0 35% !important;
        max-width: 35% !important;
        min-width: 0 !important;
        padding-right: 15px !important;
        padding-left: 0 !important;
        border-right: 1px solid #f0ecfc !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .left-panel .student-img-wrapper {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 10px auto !important;
        border-radius: 50% !important;
        background: #fbe6c4 !important; /* light orange */
    }
    .left-panel .student-img-wrapper i {
        font-size: 30px !important;
        color: #feac00!important;
    }
    
    .left-panel h5 {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        color: #1e293b !important;
    }
    
    .left-panel .course {
        font-size: 11px !important;
        color: #64748b !important;
        margin-bottom: 4px !important;
    }
    
    .left-panel .attempt-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
        border-radius: 12px !important;
        background: #fbe6c4 !important;
        color: #feac00!important;
        display: inline-block !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
    }
    
    .left-panel .rating {
        font-size: 12px !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px !important;
        color: #ffb800 !important;
    }
    
    .left-panel .verified {
        font-size: 9px !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        color: #feac00!important;
        border: 1px solid #e2e8f0 !important;
        display: inline-block !important;
        margin-top: 10px !important;
        white-space: nowrap !important;
    }

    /* Text Right Side */
    .story-card .col-md-9 {
        flex: 0 0 65% !important;
        max-width: 65% !important;
        min-width: 0 !important;
        padding-left: 15px !important;
        padding-right: 0 !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .quote-top {
        font-size: 28px !important;
        color: #feac00!important;
        line-height: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
        text-align: left !important;
    }
    
    .quote-bottom {
        font-size: 28px !important;
        color: #feac00!important; 
        line-height: 1 !important;
        margin-top: 5px !important;
        margin-bottom: 0 !important;
        text-align: right !important;
        opacity: 0.5 !important;
    }
    
    .review-text {
        font-size: 12px !important;
        line-height: 1.6 !important;
        color: #334155 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    /* 6. SEE MORE SUCCESS STORIES BUTTON */
    .text-center.mt-5.mb-5.w-100 {
        margin-top: 0 !important;
        margin-bottom: 30px !important;
        padding: 0 15px !important;
    }
    #load-more-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #load-more-btn i {
        background: #fff !important;
        color: #feac00!important;
        border-radius: 50% !important;
        padding: 4px !important;
        font-size: 12px !important;
        margin-left: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
    }
}

/* ==========================================
   GLOBAL PAGINATION RE-DESIGN (ALL VIEWS)
   MATCHING PURPLE REFERENCE IN GOLD
   ========================================== */
.pagination-wrapper#pagination-top,
#pagination-top {
    margin: 20px auto 30px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}
.pagination-wrapper #pagination-top nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
#pagination-top .pagination {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 12px !important;
}

#pagination-top .pagination .page-item {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 0 !important;
}

#pagination-top .pagination .page-item .page-link {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #feac00!important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 0 !important;
}

/* Pagination Arrows inside Circles */
#pagination-top .pagination .page-item:first-child .page-link,
#pagination-top .pagination .page-item:last-child .page-link {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #feac00!important;
    background: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    border: 1.5px solid #fbe6c4 !important;
    margin: 0 10px !important; /* Extra space separating arrows from dots */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide the numbers, make them dots globally */
#pagination-top .pagination .page-item:not(:first-child):not(:last-child) .page-link {
    font-size: 0 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #fbe6c4 !important; /* light orange for inactive */
    display: block !important;
    padding: 0 !important;
    margin: 0 4px !important;
    border: none !important;
}

#pagination-top .pagination .page-item.active:not(:first-child):not(:last-child) .page-link {
    background-color: #feac00!important; /* solid orange for active */
    width: 8px !important;
    height: 8px !important;
}

#pagination-top .pagination .page-item.disabled .page-link {
    opacity: 0.4 !important;
}
#pagination-top .pagination .page-item.disabled:not(:first-child):not(:last-child) .page-link {
    background-color: #fbe6c4 !important;
}

.page-count {
    display: none !important; /* Hide "Page X of Y" text in all views */
}
