/* ============================================
   Parent Course Pages — Supplementary Styles
   Extends new-course.css for category listing pages
   ============================================ */

/* Hero Video Background */
.pp-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.pp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,10,26,.82) 0%, rgba(10,10,26,.55) 40%, rgba(10,10,26,.75) 100%),
        linear-gradient(135deg, rgba(139,92,246,.12) 0%, transparent 60%);
}

/* Sub-course Cards Grid */
.pp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Card inner layout */
.pp-course-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.pp-course-code {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #facc15;
}

.pp-course-code i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.pp-course-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.pp-course-duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pp-course-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    flex-grow: 1;
}

.pp-know-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #facc15;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.pp-know-more:hover {
    color: #fde68a;
    gap: 0.75rem;
}

.pp-know-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.pp-know-more:hover i {
    transform: translateX(4px);
}

/* Highlights / Why Choose grid */
.pp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pp-highlight-card {
    padding: 1.75rem;
    text-align: center;
}

.pp-highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(139, 92, 246, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: #facc15;
}

.pp-highlight-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.pp-highlight-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.55;
}

/* Category overview text block */
.pp-overview-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .pp-courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pp-highlights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pp-course-card {
        padding: 1.5rem;
    }

    .pp-course-name {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .pp-highlights-grid {
        grid-template-columns: 1fr;
    }
}
