/* Academy Posts Slider v2.0 */

/* ---- Wrapper ---- */
.aps-wrapper {
    position: relative;
    padding: 40px 60px;
    box-sizing: border-box;
    overflow: hidden;
    background: #f5f5f5;
}

/* ---- Swiper ---- */
.aps-swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
}

/* ---- Card ---- */
.aps-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    overflow: hidden;
    background-color: #1a1a2e;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.aps-card:hover {
    transform: translateY( -4px );
}

/* ---- Card Image ---- */
.aps-card-image {
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.aps-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center center;
    transition: transform 0.4s ease;
}

.aps-card:hover .aps-card-image img {
    transform: scale( 1.05 );
}

.aps-no-image {
    width: 100%;
    height: 100%;
    background: #2a2a40;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.aps-no-image span {
    color: #555;
    font-size: 40px;
}

/* ---- Card Content ---- */
.aps-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---- Badge ---- */
.aps-badge {
    display: inline-block;
    background-color: #00aaff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- Title ---- */
.aps-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

/* ---- Excerpt ---- */
.aps-excerpt {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

/* ---- Meta (date / author) ---- */
.aps-meta {
    color: #aaaaaa;
    font-size: 12px;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.aps-meta-sep {
    opacity: 0.6;
}

/* ---- Read More button ---- */
.aps-read-more {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    background-color: #00aaff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
}

.aps-read-more:hover {
    background-color: #0088cc;
}

/* ---- No results ---- */
.aps-no-results {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* ---- Navigation Arrows ---- */
.aps-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY( -50% );
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00aaff;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.2 );
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    line-height: 1;
}

.aps-nav-btn:hover {
    transform: translateY( -50% ) scale( 1.1 );
}

.aps-nav-prev { left: 10px; }
.aps-nav-next { right: 10px; }

/* ---- Pagination ---- */
.swiper-pagination-bullet {
    background: #00aaff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ---- Responsive ---- */
@media ( max-width: 768px ) {
    .aps-wrapper {
        padding: 30px 50px;
    }
    .aps-nav-prev { left: 5px; }
    .aps-nav-next { right: 5px; }
    .aps-title { font-size: 14px; }
}

@media ( max-width: 480px ) {
    .aps-wrapper { padding: 20px 44px; }
}
