/* ============================================================
   All Courses page — subcategory tabs + course grid
   ============================================================ */

.all-courses-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 60%);
}

/* --- Heading --- */
.ac-head {
    margin-bottom: 40px;
}

.ac-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #20a8ff;
    background: #eaf6ff;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.ac-title {
    font-size: 38px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 12px;
}

.ac-sub {
    font-size: 16px;
    color: #6b7a89;
    max-width: 620px;
    margin: 0 auto;
}

/* --- Filter bar --- */
.ac-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 12px 30px -18px rgba(32, 84, 137, 0.25);
    margin-bottom: 30px;
}

.ac-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 240px;
    min-width: 200px;
}

.ac-filter-field label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7a8a99;
    margin: 0;
}

.ac-filter-field select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid #e3e9f0;
    border-radius: 10px;
    background: #f8fafc url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'14'%20height%3D'14'%20viewBox%3D'0%200%2016%2016'%20fill%3D'%23667'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M1.646%204.646a.5.5%200%200%201%20.708%200L8%2010.293l5.646-5.647a.5.5%200%200%201%20.708.708l-6%206a.5.5%200%200%201-.708%200l-6-6a.5.5%200%200%201%200-.708z'%2F%3E%3C%2Fsvg%3E") no-repeat right 14px center;
    padding: 12px 38px 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #2d3a47;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ac-filter-field select:focus {
    outline: none;
    border-color: #20a8ff;
    box-shadow: 0 0 0 3px rgba(32, 168, 255, 0.15);
}

.ac-filter-field select:disabled {
    background-color: #f1f4f7;
    color: #9aa7b3;
    cursor: not-allowed;
}

.ac-reset {
    flex: 0 0 auto;
    border: 1px solid #e3e9f0;
    background: #fff;
    color: #46566a;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 46px;
}

.ac-reset:hover {
    border-color: #ffb307;
    color: #1f2d3d;
    background: #fff7e6;
}

/* --- Result title --- */
.ac-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 22px;
}

/* --- Grid --- */
.ac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

/* --- Course card --- */
.ac-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ac-card a {
    text-decoration: none;
    display: block;
    color: inherit;
}

.ac-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -16px rgba(32, 84, 137, 0.25);
    border-color: #d9ecff;
}

.ac-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f7fa;
}

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

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

.ac-card-body {
    padding: 18px 18px 22px;
}

.ac-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.ac-card-provider {
    font-size: 13px;
    color: #7a8a99;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.ac-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ac-sale {
    font-size: 20px;
    font-weight: 700;
    color: #0f7a3d;
}

.ac-mrp {
    font-size: 15px;
    color: #9aa7b3;
    text-decoration: line-through;
}

.ac-empty {
    padding: 60px 0;
    color: #6b7a89;
}

/* --- Responsive --- */
@media (max-width: 1199.98px) {
    .ac-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .ac-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-title { font-size: 30px; }
}

@media (max-width: 575.98px) {
    .ac-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .all-courses-section { padding: 40px 0 60px; }
    .ac-card-body { padding: 14px 14px 18px; }
    .ac-card-title { font-size: 14px; min-height: 40px; }
    .ac-sale { font-size: 17px; }
    .ac-tab { padding: 9px 18px; font-size: 14px; }
}
