/* pages/slide-details/view.css */


.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumbs ol li {
    color: #fff;
}

.breadcrumbs ol li + li::before {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs ol li a:hover {
    color: #fff;
}

.breadcrumbs ol li.current {
    color: #fff;
    font-weight: 500;
}

/* Slide Details Section */
.courses-course-details {
    padding: 60px 0;
}

/* Main Image */
.slide-main-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.slide-main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.slide-main-image:hover img {
    transform: scale(1.02);
}

/* Title */
.courses-course-details h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Date Badge */
.date-info .badge {
    font-size: 14px;
    padding: 8px 15px;
    font-weight: 400;
}

.date-info .badge i {
    margin-right: 5px;
}

/* Description */
.slide-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
}

.slide-description p {
    margin-bottom: 20px;
}

.slide-description h4,
.slide-description h5 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.slide-description ul,
.slide-description ol {
    margin: 20px 0;
    padding-left: 30px;
}

.slide-description li {
    margin-bottom: 10px;
}

.slide-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

/* External Link Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary i {
    margin-right: 8px;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding-top: 20px;
}

.share-section h5 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: inline-block;
    margin-right: 15px;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Related Slides */
.related-slides-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-slides-section h4 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

/* Card Styles - ปรับปรุงใหม่ */
.card {
    border: none;
    transition: all 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card a {
    text-decoration: none;
    color: inherit;
}

/* Card Image Container - ใหม่ */
.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .courses-course-details h3 {
        font-size: 26px;
    }
    
    .slide-description {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .courses-course-details {
        padding: 40px 0;
    }
    
    .courses-course-details h3 {
        font-size: 22px;
    }
    
    .date-info .badge {
        font-size: 12px;
    }
    
    .slide-description {
        font-size: 14px;
    }
    
    .share-section h5 {
        display: block;
        margin-bottom: 10px;
    }
    
    /* Responsive card image height */
    .card-img-container {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .card-img-container {
        height: 160px;
    }
}

/* Animation */
.slide-main-image,
.card {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .share-section,
    .related-slides-section,
    .breadcrumbs {
        display: none;
    }
    
    .slide-main-image {
        box-shadow: none;
    }
    
    .slide-description {
        font-size: 12pt;
    }
}

/* Gallery Section */
.slide-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.slide-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.slide-gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.slide-gallery-item:hover img {
    transform: scale(1.05);
}