﻿/* Container */
.dnow-links-student-container, .dnow-links-student-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft JhengHei', sans-serif;
}

/* Header */
.dls-header {
    text-align: center;
    margin-bottom: 30px;
}

.dls-header h2 {
    font-size: 28px;
    color: #333;
    display: inline-block;
    position: relative;
    margin: 0;
    padding-bottom: 10px;
}

.dls-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background-color: #a8cf7d; /* 類似圖中的淺綠色底線 */
    border-radius: 2px;
}

/* Grid Layout */
.dls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .dls-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 1024px) {
    .dls-grid {
        grid-template-columns: repeat(6, 1fr); /* 仿造圖中一排大約 6 個 */
    }
}

/* Card Style */
.dls-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dls-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-decoration: none;
}

.dls-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dls-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.dls-no-img {
    font-size: 48px;
    color: #ccc;
    font-weight: bold;
}

.dls-card-title {
    padding: 12px 10px;
    text-align: center;
    color: #0b4b7a; /* 類似圖中標題的深藍色 */
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Load More Button */
.dls-load-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.dls-btn-load-more {
    background-color: #fff;
    color: #0b4b7a;
    border: 1px solid #0b4b7a;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.dls-btn-load-more:hover {
    background-color: #0b4b7a;
    color: #fff;
}

.dls-btn-load-more:disabled {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

/* View All Button */
.dls-btn-view-all:hover {
    background-color: #e0e0e0 !important;
}
