/**
 * Common List View Styles
 * 
 * This file contains shared list-view styles used across multiple pages:
 * - Online Courses (tc/onlinecourse/online_course.php)
 * - Photo Gallery (tc/news/photo_gallery_new.php)
 * 
 * These styles ensure consistent list view appearance across the site.
 */

/* List View Container */
.list-view {
    border-radius: 8px;
    overflow: hidden;
}

/* List View Items */
.list-view-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    padding: 15px;
}

.list-view-item:hover {
    background-color: #f8f9fa;
}

.list-view-item:last-child {
    border-bottom: none;
}

/* List View Content Layout */
.list-view-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* List View Image */
.list-view-image {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    padding: 0px;
}

.list-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* List View Title - Using multiple selectors for higher specificity to override bsplus.css body .mainContent h3 */
.list-view-item h3.list-view-title {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0b4b71;
    line-height: 1.4;
}

/* Ensure h4 defaults don't interfere (for backward compatibility) */
.list-view-item h4.list-view-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* List View Meta Information */
.list-view-meta {
    font-size: 1.1rem;
    color: #6c757d;
}

.list-view-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-view-organizer {
    display: block;
    margin-bottom: 5px;
}

.list-view-date {
    display: block;
}

/* List View Actions */
.list-view-action {
    flex: 0 0 auto;
}

.list-view-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.list-view-action{
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .list-view-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .list-view-image {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .list-view-details {
        width: 100%;
    }

    .list-view-action {
        width: 100%;
    }

    .list-view-btn {
        width: 100%;
        text-align: center;
    }
}


