/* Document Detail Page */
.document-detail-section {
    padding: 45px 0;
    background: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.document-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Document Meta */
.document-meta {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 20px;
    border-left: 4px solid #51b146;
}

.document-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.type-badge,
.featured-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.featured-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #212529;
}

.document-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #004b6b;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-item i {
    color: #51b146;
    font-size: 0.8rem;
}

/* Document Content */
.document-content {
    margin-bottom: 50px;
}

.document-description {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 75, 107, 0.05);
    border-radius: 20px;
    border-left: 4px solid #004b6b;
}

.document-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 20px;
}

.document-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin: 0;
}

/* Document Actions */
.document-actions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 60px;
}

.download-btn,
.share-btn,
.print-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #51b146;
    background: transparent;
    color: #51b146;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn {
    background: #51b146;
    color: #ffffff;
}

.download-btn:hover {
    background: #004b6b;
    border-color: #004b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.share-btn:hover,
.print-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

/* Related Documents */
.related-documents {
    margin-top: 80px;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #004b6b;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    margin: 25px 25px 15px 25px;
    flex-shrink: 0;
}

.related-content {
    padding: 0 25px 25px 25px;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.related-type,
.related-date {
    font-size: 0.8rem;
    color: #999999;
}

.related-card-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: #51b146;
}

.related-excerpt {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.related-footer {
    display: flex;
    justify-content: flex-end;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
}

.view-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-btn:hover i {
    transform: translateX(3px);
}

/* Dark Theme */
.dark-theme .document-detail-section {
    background: #1a1a1a;
}

.dark-theme .document-meta {
    background: rgba(81, 177, 70, 0.1);
    border-left-color: #51b146;
}

.dark-theme .info-item {
    color: #eeeff1;
}

.dark-theme .document-description h3 {
    color: #eeeff1;
}

.dark-theme .document-description {
    background: rgba(0, 75, 107, 0.1);
    border-left-color: #51b146;
}

.dark-theme .document-description p {
    color: #e0e0e0;
}

.dark-theme .document-actions {
    border-color: #333333;
}

.dark-theme .related-title {
    color: #eeeff1;
}

.dark-theme .related-card {
    background: #2d2d2d;
}

.dark-theme .related-card-title a {
    color: #eeeff1;
}

.dark-theme .related-card-title a:hover {
    color: #51b146;
}

.dark-theme .related-excerpt {
    color: #cccccc;
}

.dark-theme .related-type,
.dark-theme .related-date {
    color: #999999;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .document-detail-section {
        padding: 60px 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767.98px) {
    .document-detail-section {
        padding: 40px 0;
    }
    
    .document-meta {
        padding: 20px;
    }
    
    .document-description p {
        font-size: 1rem;
    }
    
    .document-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn,
    .share-btn,
    .print-btn {
        justify-content: center;
    }
    
    .related-title {
        font-size: 1.6rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .document-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .related-content {
        padding: 0 20px 20px 20px;
    }
}

