/* Courses page — learning-app layout (Drishti-inspired) */

.courses-learning-page {
    background: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.courses-learning-page main {
    margin-top: 0 !important;
    padding: 0;
}

/* ----- Sub toolbar ----- */
.clp-toolbar {
    background: #fff;
    border-bottom: 1px solid #e8ecf2;
    padding: 10px 0;
}

.clp-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.clp-toolbar__explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: none;
    border-radius: 6px;
    background: #2f6fed;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.clp-toolbar__explore:hover {
    background: #1d5ad8;
    color: #fff;
}

.clp-toolbar__login {
    position: absolute;
    right: 16px;
    padding: 7px 20px;
    border: 1px solid #2f6fed;
    border-radius: 6px;
    background: #fff;
    color: #2f6fed;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.clp-toolbar__login:hover {
    background: #2f6fed;
    color: #fff;
}

/* ----- Hero ----- */
.clp-hero {
    background: #fff;
    padding: 40px 0 48px;
}

.clp-hero__welcome {
    color: #2f6fed;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.clp-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 12px;
}

.clp-hero__sub {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 420px;
    margin-bottom: 24px;
}

.clp-search {
    display: flex;
    max-width: 480px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(47, 111, 237, 0.08);
}

.clp-search__input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
}

.clp-search__input::placeholder {
    color: #9ca3af;
}

.clp-search__btn {
    border: none;
    background: #2f6fed;
    color: #fff;
    padding: 0 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clp-search__btn:hover {
    background: #1d5ad8;
}

/* Hero carousel card */
.clp-hero-carousel-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #ff8c42 0%, #e85d4c 100%);
    min-height: 280px;
}

.clp-hero-carousel {
    border-radius: 12px;
    min-height: 280px;
}

.clp-hero-carousel .carousel-inner,
.clp-hero-carousel .carousel-item {
    min-height: 280px;
}

.clp-hero-carousel .carousel-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.clp-hero-carousel .carousel-indicators {
    margin-bottom: 8px;
}

.clp-hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
}

.clp-hero-carousel .carousel-indicators .active {
    background: #2f6fed;
}

.clp-hero-carousel--empty {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    font-size: 15px;
}

.clp-hero-carousel .carousel-control-prev,
.clp-hero-carousel .carousel-control-next {
    width: 12%;
    opacity: 0.9;
}

/* ----- Trust banner ----- */
.clp-trust {
    background: linear-gradient(90deg, #1e5bb8 0%, #4a9fe5 55%, #7ec8f7 100%);
    padding: 28px 0;
    margin-bottom: 0;
}

.clp-trust__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.clp-trust__text h2 {
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.clp-trust__text p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    margin: 0;
    max-width: 520px;
    line-height: 1.5;
}

.clp-trust__img {
    flex-shrink: 0;
    max-height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* ----- Exam categories ----- */
.clp-section {
    padding: 48px 0 32px;
    max-width: 1140px;
    margin: 0 auto;
}

.clp-section__head {
    text-align: center;
    margin-bottom: 36px;
    padding: 0 16px;
}

.clp-section__head h2 {
    color: #1e3a8a;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.clp-section__head p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.clp-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 16px;
}

.clp-cat-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
}

.clp-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(47, 111, 237, 0.12);
}

.clp-cat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 16px;
}

.clp-cat-card__icon--blue { background: #2f6fed; }
.clp-cat-card__icon--orange { background: #f59e0b; }
.clp-cat-card__icon--pink { background: #ec4899; }
.clp-cat-card__icon--teal { background: #14b8a6; }
.clp-cat-card__icon--purple { background: #8b5cf6; }
.clp-cat-card__icon--green { background: #22c55e; }

.clp-cat-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.clp-cat-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 18px;
}

.clp-cat-card__btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #2f6fed;
    border-radius: 6px;
    color: #2f6fed;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.clp-cat-card__btn:hover {
    background: #2f6fed;
    color: #fff;
}

.clp-cat-card.is-active {
    border-color: #2f6fed;
    box-shadow: 0 8px 24px rgba(47, 111, 237, 0.18);
}

/* ----- Courses grid (from database) ----- */
.clp-courses {
    padding: 32px 16px 56px;
    max-width: 1140px;
    margin: 0 auto;
}

.clp-courses__head {
    margin-bottom: 28px;
    padding: 0 4px;
}

.clp-courses__head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.clp-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f6;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.clp-course-card-wrap.hide {
    display: none !important;
}

.clp-course-card:hover {
    transform: translateY(-4px);
}

.clp-course-card__img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.clp-course-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clp-course-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.clp-course-card__meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.clp-course-card__price {
    margin-top: auto;
    padding-top: 8px;
}

.clp-course-card__buy {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    background: #c0392b;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.clp-course-card__buy:hover {
    background: #922b21;
    color: #fff;
}

.clp-courses__empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 16px;
}

@media (max-width: 992px) {
    .clp-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clp-trust__inner {
        flex-direction: column;
        text-align: center;
    }

    .clp-trust__text p {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .clp-toolbar__login {
        position: static;
        margin-left: auto;
    }

    .clp-toolbar__inner {
        justify-content: space-between;
    }

    .clp-hero {
        padding: 28px 0;
    }

    .clp-hero__right {
        margin-top: 28px;
    }

    .clp-cat-grid {
        grid-template-columns: 1fr;
    }
}
