/* ============================================
   COURSES PAGE CSS - Knowledge Wave India
   Colors: #0A210F #14591D #99AA38 #392F5A #F6F8FF
   ============================================ */

.courses-page-area {
    padding: 80px 0;
    background: #F6F8FF;
}

/* ========== FILTERS ========== */
.courses-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}

.filter-left {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #F6F8FF;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #99AA38;
}

.filter-right {
    display: flex;
    gap: 10px;
}

.search-box {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #F6F8FF;
}

.search-input {
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 220px;
    background: transparent;
}

.search-btn {
    background: #99AA38;
    border: none;
    color: #0A210F;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0A210F;
    color: #99AA38;
}

/* ========== COURSES GRID ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(153,170,56,0.15);
}

.course-thumb {
    height: 200px;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.course-body {
    padding: 20px;
}

.course-title {
    font-size: 17px;
    font-weight: 700;
    color: #0A210F;
    margin: 0 0 8px;
    line-height: 1.4;
}

.course-count {
    font-size: 13px;
    color: #99AA38;
    font-weight: 500;
    margin: 0 0 15px;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0A210F;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.course-link:hover {
    color: #99AA38;
}

.course-link:hover i {
    transform: translateX(4px);
}

/* ========== PAGINATION ========== */
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.page-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.page-item.active a {
    background: #99AA38;
    color: #0A210F;
    border-color: #99AA38;
}

.page-item a:hover {
    background: #99AA38;
    color: #0A210F;
    border-color: #99AA38;
}

/* ========== SCROLL TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #99AA38;
    color: #0A210F;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(153,170,56,0.4);
    transition: all 0.3s ease;
}

.scroll-top.show { display: flex; }
.scroll-top:hover { background: #0A210F; color: #99AA38; transform: translateY(-5px); }

/* ========== RESPONSIVE ========== */

@media (max-width: 1199.98px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .courses-page-area { padding: 50px 0; }
    .courses-filters { flex-direction: column; align-items: stretch; }
    .filter-left { flex-direction: column; }
    .search-input { width: 100%; }
    .search-box { width: 100%; }
    .courses-grid { grid-template-columns: 1fr; gap: 20px; }
    .course-thumb { height: 180px; }
}

@media (max-width: 575.98px) {
    .courses-page-area { padding: 35px 0; }
    .course-thumb { height: 160px; }
    .course-title { font-size: 15px; }
    .pagination-list { flex-wrap: wrap; }
    .page-item a { width: 36px; height: 36px; font-size: 13px; }
}