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

.categories-section {
    padding: 80px 0;
    background: #F6F8FF;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.sub-title {
    display: inline-block;
    color: #99AA38;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.main-title {
    font-size: 38px;
    font-weight: 800;
    color: #0A210F;
    margin: 0 0 12px;
}

.desc {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== WRAPPER & SLIDER ========== */
.categories-wrapper {
    position: relative;
    padding: 0 45px;
}

.categories-slider {
    overflow: hidden;
    border-radius: 16px;
}

.categories-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* ========== CARD ========== */
.category-card {
    min-width: 200px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

/* ========== PLACEHOLDER ========== */
.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255,255,255,0.3);
    background: linear-gradient(135deg, #0A210F 0%, #14591D 50%, #392F5A 100%);
    transition: transform 0.4s ease;
}

.category-card:hover .card-placeholder {
    transform: scale(1.06);
}

/* ========== OVERLAY ========== */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10, 33, 15, 0.95) 0%,
        rgba(10, 33, 15, 0.5) 60%,
        transparent 100%
    );
    padding: 50px 16px 18px;
}

.card-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-count {
    display: inline-block;
    background: rgba(153, 170, 56, 0.9);
    color: #0A210F;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ========== SLIDER BUTTONS ========== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #0A210F;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    color: #0A210F;
    font-size: 14px;
}

.slider-btn:hover {
    background: #99AA38;
    border-color: #99AA38;
    color: #fff;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .categories-section { padding: 60px 0; }
    .main-title { font-size: 30px; }
    .categories-wrapper { padding: 0 38px; }
    .category-card { min-width: 170px; height: 220px; }
    .card-placeholder { font-size: 48px; }
}

@media (max-width: 767.98px) {
    .categories-section { padding: 45px 0; }
    .main-title { font-size: 26px; }
    .categories-wrapper { padding: 0 32px; }
    .category-card { min-width: 150px; height: 200px; }
    .card-placeholder { font-size: 40px; }
    .card-name { font-size: 12px; }
    .card-overlay { padding: 35px 12px 14px; }
}

@media (max-width: 575.98px) {
    .categories-section { padding: 30px 0; }
    .categories-wrapper { padding: 0 28px; }
    .category-card { min-width: 140px; height: 180px; }
    .slider-btn { width: 34px; height: 34px; font-size: 12px; }
    .card-placeholder { font-size: 34px; }
    .main-title { font-size: 22px; }
}