/* === Course & Article Shared Styles === */
.search {
    max-width: 550px;
    margin: auto;
}

.mainbody {
    margin: 0 20px;
}

.pagination {
    flex-wrap: wrap;
}

.active>.page-link, .page-link.active {
    z-index: 3;
    background: #65A3C8;
    border: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #65A3C8;
    --bs-btn-border-color: #65A3C8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #65A3C8;
    --bs-btn-hover-border-color: #65A3C8;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #65A3C8;
    --bs-btn-active-border-color: #65A3C8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #65A3C8;
    --bs-btn-disabled-border-color: #65A3C8;
}

/* === Course Specific Styles === */
.offer-price {
  color: #67cce0;
  font-size: 18px;
  text-decoration: line-through;
}
.current-price {
  color: #000000;
  font-size: 18px;
}
.search {
    max-width: 550px;
    margin: auto;
}
.mainbody {
    margin: 0 20px;
}
.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    padding: 0;
}
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: fill;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    border-radius: 35px;
}
.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 20px;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #65A3C8;
    --bs-btn-border-color: #65A3C8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #65A3C8;
    --bs-btn-hover-border-color: #65A3C8;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #65A3C8;
    --bs-btn-active-border-color: #65A3C8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #65A3C8;
    --bs-btn-disabled-border-color: #65A3C8;
}
.course-detailes-btn{
    margin-top: auto;
    background: #65A3C8;
    border: none;
    width: 100%;
}

.add-cart-btn{
    background: none;
}
.course-detailes-btn:hover, .btn.active, .btn:focus-visible {
    background: #4c7e9a;
    border: none;
}
.active>.page-link, .page-link.active {
    z-index: 3;
    background: #65A3C8;
    border: none;
}
.pagination {
    flex-wrap: wrap;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .row {
        justify-content: center;
    }
    .card {
        max-width: 90%;
    }
}
@media (max-width: 576px) {
    .card-img-top {
        height: 160px;
    }
    .offer-price, .current-price {
        font-size: 16px;
    }
}

/* === Article Specific Styles === */
.search {
    max-width: 550px;
    margin: auto;
}

.mainbody {
    margin: 0 20px;
}

.article-card {
    background: white;
    border-radius: 16px;
    transition: box-shadow 0.3s ease;
    height: 100%;
    padding: 20px;
}

.article-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
}

.article-card .btn {
    border-radius: 8px;
}

/* دکمه اصلی */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #65A3C8;
    --bs-btn-border-color: #65A3C8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #65A3C8;
    --bs-btn-hover-border-color: #65A3C8;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #65A3C8;
    --bs-btn-active-border-color: #65A3C8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #65A3C8;
    --bs-btn-disabled-border-color: #65A3C8;
}

/* صفحه‌بندی */
.active>.page-link, .page-link.active {
    z-index: 3;
    background: #65A3C8;
    border: none;
}

.pagination {
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .article-card {
        max-width: 90%;
    }
}

