/* continuous-education-specific.css */

.education-thumbnail-gallery-wrapper {
    position: relative;
    margin-bottom: 2rem;
    padding: 0 40px; /* Space for navigation buttons */
}

.image-strip {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    padding: 1rem 0;
    justify-content: flex-start; /* Align items to start */
    gap: 1rem; /* Space between thumbnails */
}

.image-strip::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.image-strip .thumbnail {
    flex-shrink: 0; /* Prevent thumbnails from shrinking */
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-strip .thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.image-strip .thumbnail.active-thumb {
    border-color: #3b82f6; /* Tailwind blue-500 */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5); /* Outer glow */
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-button:hover {
    background-color: #e2e8f0;
}

.gallery-nav-button.left {
    left: 0;
}

.gallery-nav-button.right {
    right: 0;
}

.gallery-nav-button svg {
    width: 24px;
    height: 24px;
    color: #4a5568;
}

#eduContentDisplay {
    margin-top: 1.5rem;
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.edu-subtopic-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem; /* Add margin for spacing between cards */
}

.edu-subtopic-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.edu-subtopic-card h4 {
    font-size: 0.5rem;
    font-weight: 600;
    color: #5183e1;
    margin-top: -1.0rem;
    margin-bottom: 1.0rem;
    text-align: center;
}

.edu-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.edu-card-item {
    background-color: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: auto; /* Enable scroll if needed */
    height: 600px;
}

.edu-card-item h3 {
    height: 100px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #3b82f6; /* Blue for sub-card titles */
    margin-bottom: 1rem;
}

.edu-card-item ul {
    list-style-type: disc;
    list-style-position: inside;
    text-align: left;
    width: 100%;
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 1rem;
    height: 300px;
    overflow: auto;
}

.edu-card-item li {
    margin-bottom: 0.5rem;
}

.edu-card-item .certificate-image-container {
    width: 100%;
    max-width: 300px;
    height: 200px;
    background-color: #e0f2fe;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    position: relative;
    margin-bottom: 1rem;
}

.edu-card-item .certificate-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.edu-card-item .certificate-image.hidden {
    opacity: 0;
}

.edu-card-item .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* Specific styling for image galleries within education sub-topics */
.edu-card-item .image-gallery {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #d1e7fd; /* Lighter blue border */
    background-color: #f0f8ff; /* Very light blue background */
}

.edu-card-item .image-gallery .main-image-display {
    height: 180px; /* Slightly smaller main image in sub-cards */
}

.edu-card-item .image-gallery .thumbnail-strip {
    padding: 0.25rem 0;
}

.edu-card-item .image-gallery .thumbnail {
    width: 60px;
    height: 45px;
    margin: 0 0.25rem;
}
