/* Study Library Specific Styles */
.study-library-title {
    text-align: center;
    color: #002d40;
    margin: 30px 0;
    font-weight: 700;
}

/* Tab System Styles */
.study-tabs {
    margin: 40px 0;
}

.tab-titles {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.tab-link {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-link:hover {
    color: #002d40;
}

.tab-link.active {
    color: #002d40;
    border-bottom-color: #002d40;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Video Thumbnails */
.video-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.video-thumbnail iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-thumbnail p {
    margin-top: 12px;
    font-weight: 500;
}

.video-placeholder {
    width: 100%;
    height: 315px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-placeholder p {
    color: #888;
    font-weight: 500;
}

/* Document Items */
.doc-viewer {
    display: none;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.doc-viewer iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.doc-item {
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.doc-item:hover {
    transform: translateY(-5px);
}

.doc-item img {
    max-width: 100px;
    margin-bottom: 10px;
}

/* Image Modal */
#imageModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#modalImage {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    padding-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-titles {
        flex-direction: column;
    }
    
    .tab-link {
        border-bottom: 1px solid #eee;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }
    
    .tab-link.active {
        border-left-color: #002d40;
        border-bottom: 1px solid #eee;
    }
    
    .doc-item {
        margin-bottom: 20px;
    }
}
/* Video Container for responsive aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 15px;
}

.video-container iframe,
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder p {
    color: #888;
    font-weight: 500;
}