/* Intermediary Download Component Styles */
.page-section.page-profile {
    margin-top: 0;
    padding-top: 0;
}

/* Download Section */
.download-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.download-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.download-item {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    background: #fff;
    transition: box-shadow 0.3s;
    overflow: hidden;
    padding-bottom: 25px;
    border-bottom: solid 1px var(--border-color);
}

.download-item:last-child {
    border: none;
}



.download-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.download-item-info {
    flex: 1;
    min-width: 0;
}

.download-item-title {
    font-size: 20px;
    color: #333333;
    font-weight: bold;
    line-height: 24px;
    height: auto;
    overflow: hidden;
}

.download-item-meta {
    font-size: 13px;
    font-weight: normal;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-item-meta span {
    white-space: nowrap;
}

.file-type {
    color: #333;
    font-weight: normal;
}

.file-size {
    color: #333;
    font-weight: normal;
}

.update-date {
    color: #333;
}

.download-item-action {
    flex-shrink: 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--main-color);
    color: var(--text-contrast-color);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-button:hover {
    background: var(--sub-color);
    color: var(--text-contrast-color);
    text-decoration: none;
    border-color: #999;
}

.download-button i {
    font-size: 1rem;
}

.no-downloads {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.access-denied {
    text-align: center;
    padding: 2rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 2rem 0;
}

.access-denied p {
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
   
    .download-section {
        gap: 0;
    }
    
    .download-section-title {
        font-size: 1.25rem;
    }
    
    .download-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0rem;
    }
    
    .download-item-action {
        width: 100%;
    }
    .download-item{
        margin: 0;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
    
    .download-item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .download-item:first-child {
    border-top: solid 1px var(--border-color);
    padding-top: 25px;
}
}

@media screen and (max-width: 480px) {
    .download-item-content {
        padding: 0rem;
    }
}
