 /* =============================================
   STUDENT.CSS - Student Portal Styles
   ============================================= */

/* Course Cards Grid */
.courses-grid {
    margin: 0 -10px;
}
.courses-grid .col {
    padding: 0 10px;
    margin-bottom: 20px;
}

.course-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
}
.course-card-body {
    padding: 20px;
}
.course-card-footer {
    padding: 15px 20px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}
.course-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Player Layout */
.player-layout {
    display: table;
    width: 100%;
    min-height: calc(100vh - 60px);
}
.player-sidebar {
    display: table-cell;
    width: 300px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    vertical-align: top;
}
.player-main {
    display: table-cell;
    padding: 20px;
    vertical-align: top;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lesson List */
.lesson-list {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.lesson-item {
    display: block;
    padding: 12px 10px;
    margin-bottom: 5px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}
.lesson-item:hover {
    background: var(--bg-color);
}
.lesson-item.active {
    background: var(--primary-color);
    color: white;
}
.lesson-item.completed {
    color: var(--success-color);
}
.lesson-item.active.completed {
    color: white;
}
.lesson-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 10px;
}
.lesson-item.active .lesson-number {
    background: rgba(255,255,255,0.2);
}
.lesson-check {
    float: right;
    color: var(--success-color);
}
.lesson-item.active .lesson-check {
    color: white;
}

.lesson-info {
    max-width: 800px;
}
.lesson-actions {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* Certificate */
.certificate {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}
.cert-border {
    border: 3px solid var(--primary-color);
    padding: 10px;
}
.cert-inner {
    border: 1px solid var(--border-color);
    padding: 50px;
    text-align: center;
}
.cert-logo {
    font-size: 4rem;
    margin-bottom: 20px;
}
.cert-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.cert-subtitle, .cert-text {
    color: var(--text-muted);
    margin: 10px 0;
}
.cert-name {
    font-size: 2rem;
    color: var(--text-main);
    margin: 15px 0;
    font-style: italic;
}
.cert-course {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 15px 0;
}
.cert-date {
    margin-top: 30px;
    color: var(--text-muted);
}
.cert-signature {
    margin-top: 40px;
}
.cert-sig-line {
    width: 200px;
    border-top: 1px solid var(--text-main);
    margin: 0 auto 5px;
}

/* Feedback Form */
.rating-group {
    margin-top: 10px;
}
.rating-option {
    display: block;
    padding: 8px 0;
    cursor: pointer;
}
.rating-option input {
    margin-right: 10px;
}

/* Catalog Grid - Redesigned Clean Layout */
.catalog-grid {
    margin: 0 -15px;
}
.catalog-grid::after {
    content: "";
    display: table;
    clear: both;
}
.catalog-grid .col {
    float: left;
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}
.catalog-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}
.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.catalog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.catalog-card-body .btn {
    margin-top: auto;
}
.catalog-card h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.catalog-card-body p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}
.catalog-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Course Badge */
.course-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Course Image */
.course-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Course Author */
.course-author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Course Meta Info */
.course-meta-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.course-meta-info span {
    margin-right: 15px;
}

/* Search/Filter Bar */
.filter-bar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.filter-bar::after {
    content: "";
    display: table;
    clear: both;
}
.filter-bar .form-control {
    max-width: 300px;
    display: inline-block;
    margin-right: 15px;
}

/* Course Details Layout */
.course-detail-layout {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}
.course-detail-img {
    float: left;
    width: 40%;
}
.course-detail-img img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}
.course-detail-info {
    float: left;
    width: 60%;
    padding: 30px;
}
.course-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.course-hero {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.course-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.course-meta {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.course-meta span {
    margin-right: 20px;
}

