/* Cursa Clone — app.css */

/* ── Line clamp utilities ──────────────────────────────────── */
.line-clamp-1 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; }
.line-clamp-2 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.line-clamp-3 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }

/* ── Active nav link ───────────────────────────────────────── */
.nav-link.active {
    color: #c7a559;
    font-weight: 600;
}

/* ── Images ─────────────────────────────────────────────────── */
img {
    opacity: 1;
}

/* ── Horizontal scroll containers ──────────────────────────── */
.scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.scroll-row::-webkit-scrollbar {
    height: 6px;
}
.scroll-row::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.scroll-row > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ── Course card hover ─────────────────────────────────────── */
.course-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ── Category icon circle ──────────────────────────────────── */
.category-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.category-link:hover .category-icon-circle {
    background: #ecfdf5;
    box-shadow: 0 2px 8px rgba(45,106,79,0.15);
}

/* ── Section heading style ─────────────────────────────────── */
.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

/* ── Green checkmark list ──────────────────────────────────── */
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.check-list li::before {
    content: '';
    display: inline-flex;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    background: #c7a559;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Scroll nav arrows ─────────────────────────────────────── */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.15s;
}
.scroll-nav-btn:hover {
    background: #f9fafb;
}
.scroll-nav-btn.left { left: -12px; }
.scroll-nav-btn.right { right: -12px; }

/* ── Badge styles ──────────────────────────────────────────── */
.badge-free {
    background: #c7a559;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
